Searched refs:ut (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-13-stable/lib/libc/gen/
H A Dutxdb.c42 #define UTOF_STRING(ut, fu, field) do { \
43 strncpy((fu)->fu_ ## field, (ut)->ut_ ## field, \
44 MIN(sizeof (fu)->fu_ ## field, sizeof (ut)->ut_ ## field)); \
46 #define UTOF_ID(ut, fu) do { \
47 memcpy((fu)->fu_id, (ut)->ut_id, \
48 MIN(sizeof (fu)->fu_id, sizeof (ut)->ut_id)); \
50 #define UTOF_PID(ut, fu) do { \
51 (fu)->fu_pid = htobe32((ut)->ut_pid); \
53 #define UTOF_TYPE(ut, fu) do { \
54 (fu)->fu_type = (ut)
64 utx_to_futx(const struct utmpx *ut, struct futx *fu) argument
131 static _Thread_local struct utmpx *ut; local
[all...]
/freebsd-13-stable/crypto/heimdal/appl/login/
H A Dutmpx_login.c30 utmpx_update(struct utmpx *ut, char *line, const char *user, const char *host) argument
35 strncpy(ut->ut_line, clean_tty, sizeof(ut->ut_line));
37 strncpy(ut->ut_id, make_id(clean_tty), sizeof(ut->ut_id));
39 strncpy(ut->ut_user, user, sizeof(ut->ut_user));
40 shrink_hostname (host, ut->ut_host, sizeof(ut->ut_host));
42 ut
70 struct utmpx *ut, save_ut; local
[all...]
/freebsd-13-stable/libexec/ftpd/
H A Dlogwtmp.c57 struct utmpx ut; local
59 memset(&ut, 0, sizeof(ut));
63 ut.ut_type = USER_PROCESS;
64 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user));
66 realhostname_sa(ut.ut_host, sizeof(ut.ut_host),
70 ut.ut_type = DEAD_PROCESS;
73 ut
[all...]
/freebsd-13-stable/lib/libsysdecode/
H A Dutrace.c56 struct utrace_rtld *ut = p; local
60 switch (ut->event) {
62 mode = ut->refcnt;
63 fprintf(fp, "dlopen(%s, ", ut->name);
84 fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name,
85 ut->refcnt);
88 fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name,
89 ut
154 struct utrace_malloc *ut = p; local
[all...]
/freebsd-13-stable/contrib/opie/libopie/
H A Dlogwtmp.c118 struct utmp ut; local
125 memset(&ut, 0, sizeof(struct utmp));
142 ut.ut_type = USER_PROCESS;
144 ut.ut_type = DEAD_PROCESS;
148 strncpy(ut.ut_id, id, sizeof(ut.ut_id));
151 ut.ut_pid = getpid();
153 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
154 strncpy(ut
[all...]
/freebsd-13-stable/crypto/openssh/
H A Dloginrec.c192 void set_utmp_time(struct logininfo *li, struct utmp *ut);
193 void construct_utmp(struct logininfo *li, struct utmp *ut);
197 void set_utmpx_time(struct logininfo *li, struct utmpx *ut);
198 void construct_utmpx(struct logininfo *li, struct utmpx *ut);
636 set_utmp_time(struct logininfo *li, struct utmp *ut) argument
639 ut->ut_tv.tv_sec = li->tv_sec;
640 ut->ut_tv.tv_usec = li->tv_usec;
642 ut->ut_time = li->tv_sec;
648 struct utmp *ut)
654 memset(ut, '\
647 construct_utmp(struct logininfo *li, struct utmp *ut) argument
821 utmp_write_library(struct logininfo *li, struct utmp *ut) argument
837 utmp_write_direct(struct logininfo *li, struct utmp *ut) argument
922 struct utmp ut; local
943 struct utmp ut; local
1087 wtmp_write(struct logininfo *li, struct utmp *ut) argument
1111 struct utmp ut; local
1121 struct utmp ut; local
1162 wtmp_islogin(struct logininfo *li, struct utmp *ut) argument
1180 struct utmp ut; local
1414 struct utmp *ut; local
1660 struct utmp ut; local
[all...]
/freebsd-13-stable/usr.bin/users/
H A Dusers.cc50 struct utmpx *ut; local
63 while ((ut = getutxent()) != NULL)
64 if (ut->ut_type == USER_PROCESS)
65 names.insert(ut->ut_user);
/freebsd-13-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c115 struct utmp ut; local
125 memset(&ut, 0, sizeof(struct utmp));
128 ut.ut_type = USER_PROCESS;
130 ut.ut_type = DEAD_PROCESS;
132 strncpy(ut.ut_line, line, sizeof(ut.ut_line));
133 strncpy(ut.ut_name, name, sizeof(ut.ut_name));
135 ut.ut_pid = getpid();
138 strncpy(ut
[all...]
/freebsd-13-stable/usr.bin/who/
H A Dwho.c165 row(const struct utmpx *ut) argument
180 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line);
188 printf("%-16s ", ut->ut_user);
191 if (ut->ut_type == BOOT_TIME)
194 printf("%-12s ", ut->ut_line);
195 t = ut->ut_tv.tv_sec;
208 if (*ut->ut_host != '\0')
209 printf("(%s)", ut->ut_host);
268 struct utmpx ut, *utx; local
276 strlcpy(ut
[all...]
/freebsd-13-stable/contrib/ntp/libntp/
H A Dsystime.c406 struct utmp ut; local
413 ZERO(ut);
427 ut.ut_type = OLD_TIME;
428 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line));
429 ut.ut_time = tvlast.tv_sec;
431 pututline(&ut);
432 ut.ut_type = NEW_TIME;
433 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut
[all...]
/freebsd-13-stable/crypto/openssh/regress/
H A Dkeytype.sh30 for ut in $ktypes; do
31 htypes=$ut
42 trace "ssh connect, userkey $ut, hostkey $ht"
51 echo IdentityFile $OBJ/key.$ut
59 cat $OBJ/key.$ut.pub > $OBJ/authorized_keys_$USER
61 verbose "userkey $ut, hostkey ${ht}"
64 fail "ssh userkey $ut, hostkey $ht failed"
/freebsd-13-stable/usr.sbin/ppp/
H A Did.c207 ID0login(const struct utmpx *ut) argument
210 pututxline(ut);
212 (int)sizeof ut->ut_id, ut->ut_id,
213 (int)sizeof ut->ut_user, ut->ut_user,
214 (int)sizeof ut->ut_line, ut->ut_line,
215 (int)sizeof ut->ut_host, ut
220 ID0logout(const struct utmpx *ut) argument
[all...]
H A Dphysical.c328 struct utmpx ut; local
340 memset(&ut, 0, sizeof ut);
341 ut.ut_type = DEAD_PROCESS;
342 gettimeofday(&ut.ut_tv, NULL);
343 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid());
344 ID0logout(&ut);
901 struct utmpx ut; local
905 memset(&ut,
[all...]
/freebsd-13-stable/libexec/rpc.rusersd/
H A Drusers_proc.c158 static utmpidlearr ut; local
162 memset(&ut, 0, sizeof(ut));
163 ut.utmpidlearr_val = &utmp_idle[0];
185 ut.utmpidlearr_len = nusers;
186 return(&ut);
210 static utmparr ut; local
213 bzero((char *)&ut, sizeof(ut));
217 ut
[all...]
/freebsd-13-stable/usr.bin/finger/
H A Dutil.c110 struct utmpx *ut = NULL; local
114 ut = getutxuser(pn->name);
117 else if (ut != NULL && ut->ut_type == USER_PROCESS) {
121 w->loginat < ut->ut_tv.tv_sec)
130 strcmp(w->tty, ut->ut_line) == 0)
133 if (ut != NULL && doit) {
136 strcpy(w->tty, ut->ut_line);
137 strcpy(w->host, ut->ut_host);
138 w->loginat = ut
144 enter_where(struct utmpx *ut, PERSON *pn) argument
[all...]
/freebsd-13-stable/usr.bin/getent/
H A Dgetent.c624 for (i = 0; i < sizeof ut->ut_id; i++) \
625 printf("%02hhx", ut->ut_id[i]); \
629 utmpxprint(const struct utmpx *ut) argument
632 if (ut->ut_type == EMPTY)
636 (intmax_t)ut->ut_tv.tv_sec, (unsigned int)ut->ut_tv.tv_usec,
637 ctime(&ut->ut_tv.tv_sec));
639 switch (ut->ut_type) {
656 ut->ut_pid, ut
683 const struct utmpx *ut; local
[all...]
/freebsd-13-stable/libexec/talkd/
H A Dprocess.c187 struct utmpx *ut; local
191 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)];
196 while ((ut = getutxent()) != NULL)
197 if (ut->ut_type == USER_PROCESS &&
198 strcmp(ut->ut_user, name) == 0) {
204 ut->ut_line);
210 (void) strcpy(tty, ut->ut_line);
216 if (strcmp(ut->ut_line, tty) == 0) {
/freebsd-13-stable/sys/fs/procfs/
H A Dprocfs_status.c87 /* comm pid ppid pgid sid tty ctty,sldr start ut st wmsg
129 struct timeval start, ut, st; local
132 calcru(p, &ut, &st);
139 (intmax_t)ut.tv_sec, ut.tv_usec,
/freebsd-13-stable/usr.bin/last/
H A Dlast.c263 struct utmpx *ut; local
275 while ((ut = getutxent()) != NULL) {
277 buf = realloc(buf, (amount + 128) * sizeof *ut);
281 memcpy(&buf[amount++], ut, sizeof *ut);
282 if (t > ut->ut_tv.tv_sec)
283 t = ut->ut_tv.tv_sec;
/freebsd-13-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_scalars.c77 OS_getSystemUptime(uint32_t *ut) argument
109 *ut = UINT32_MAX;
111 *ut = now - kernel_boot;
/freebsd-13-stable/usr.sbin/rwhod/
H A Drwhod.c459 struct utmpx *ut; local
473 while ((ut = getutxent()) != NULL && we < wend) {
474 if (ut->ut_type != USER_PROCESS)
476 strncpy(we->we_utmp.out_line, ut->ut_line,
478 strncpy(we->we_utmp.out_name, ut->ut_user,
481 htonl(_time_to_time32(ut->ut_tv.tv_sec));
/freebsd-13-stable/lib/libc/rpc/
H A Dauth_time.c255 char ut[64], ipuaddr[64]; local
380 sprintf(ut, "%d.%d.%d.%d.0.37", a1, a2, a3, a4);
382 if (uaddr_to_sockaddr(ut, &sin)) {
/freebsd-13-stable/sys/kern/
H A Dkern_acct.c340 struct timeval ut, st, tmp; local
385 rufetchcalc(p, &ru, &ut, &st);
386 acct.ac_utime = encode_timeval(ut);
398 tmp = ut;
/freebsd-13-stable/contrib/diff/lib/
H A Dstrftime.c345 # define extra_args , ut, ns
346 # define extra_args_spec , int ut, int ns
358 # define ut 0 macro
439 if (ut)
1247 if (ut)
1323 strftime function plus the ut argument, but without the ns argument. */
1326 const struct tm *tp, int ut)
1328 return my_strftime (s, maxsize, format, tp, ut, 0);
/freebsd-13-stable/crypto/heimdal/appl/gssmask/
H A Dgssmask.c654 struct utsname ut; local
655 if (uname(&ut) == 0) {
657 ut.sysname, ut.version, ut.machine);

Completed in 309 milliseconds

12