Home
last modified time | relevance | path

Searched refs:ut (Results 1 – 25 of 57) sorted by relevance

123

/freebsd-14-stable/lib/libc/gen/
HDutxdb.c39 #define UTOF_STRING(ut, fu, field) do { \ argument
40 strncpy((fu)->fu_ ## field, (ut)->ut_ ## field, \
41 MIN(sizeof (fu)->fu_ ## field, sizeof (ut)->ut_ ## field)); \
43 #define UTOF_ID(ut, fu) do { \ argument
44 memcpy((fu)->fu_id, (ut)->ut_id, \
45 MIN(sizeof (fu)->fu_id, sizeof (ut)->ut_id)); \
47 #define UTOF_PID(ut, fu) do { \ argument
48 (fu)->fu_pid = htobe32((ut)->ut_pid); \
50 #define UTOF_TYPE(ut, fu) do { \ argument
51 (fu)->fu_type = (ut)->ut_type; \
[all …]
/freebsd-14-stable/lib/libsysdecode/
HDutrace.c54 struct utrace_rtld *ut = p; in print_utrace_rtld() local
58 switch (ut->event) { in print_utrace_rtld()
60 mode = ut->refcnt; in print_utrace_rtld()
61 fprintf(fp, "dlopen(%s, ", ut->name); in print_utrace_rtld()
82 fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name, in print_utrace_rtld()
83 ut->refcnt); in print_utrace_rtld()
86 fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name, in print_utrace_rtld()
87 ut->refcnt); in print_utrace_rtld()
90 fprintf(fp, "dlclose(%p) finished", ut->handle); in print_utrace_rtld()
93 fprintf(fp, "RTLD: loaded %p @ %p - %p (%s)", ut->handle, in print_utrace_rtld()
[all …]
/freebsd-14-stable/crypto/heimdal/appl/login/
HDutmpx_login.c30 utmpx_update(struct utmpx *ut, char *line, const char *user, const char *host) in utmpx_update() argument
35 strncpy(ut->ut_line, clean_tty, sizeof(ut->ut_line)); in utmpx_update()
37 strncpy(ut->ut_id, make_id(clean_tty), sizeof(ut->ut_id)); in utmpx_update()
39 strncpy(ut->ut_user, user, sizeof(ut->ut_user)); in utmpx_update()
40 shrink_hostname (host, ut->ut_host, sizeof(ut->ut_host)); in utmpx_update()
42 ut->ut_syslen = strlen(host) + 1; in utmpx_update()
43 if (ut->ut_syslen > sizeof(ut->ut_host)) in utmpx_update()
44 ut->ut_syslen = sizeof(ut->ut_host); in utmpx_update()
46 ut->ut_type = USER_PROCESS; in utmpx_update()
48 ut->ut_tv.tv_sec = tmp.tv_sec; in utmpx_update()
[all …]
/freebsd-14-stable/libexec/ftpd/
HDlogwtmp.c55 struct utmpx ut; in ftpd_logwtmp() local
57 memset(&ut, 0, sizeof(ut)); in ftpd_logwtmp()
61 ut.ut_type = USER_PROCESS; in ftpd_logwtmp()
62 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user)); in ftpd_logwtmp()
64 realhostname_sa(ut.ut_host, sizeof(ut.ut_host), in ftpd_logwtmp()
68 ut.ut_type = DEAD_PROCESS; in ftpd_logwtmp()
71 ut.ut_pid = getpid(); in ftpd_logwtmp()
72 gettimeofday(&ut.ut_tv, NULL); in ftpd_logwtmp()
73 (void)strncpy(ut.ut_id, id, sizeof(ut.ut_id)); in ftpd_logwtmp()
74 (void)strncpy(ut.ut_line, "ftpd", sizeof(ut.ut_line)); in ftpd_logwtmp()
[all …]
/freebsd-14-stable/crypto/openssh/
HDloginrec.c174 void set_utmp_time(struct logininfo *li, struct utmp *ut);
175 void construct_utmp(struct logininfo *li, struct utmp *ut);
179 void set_utmpx_time(struct logininfo *li, struct utmpx *ut);
180 void construct_utmpx(struct logininfo *li, struct utmpx *ut);
621 set_utmp_time(struct logininfo *li, struct utmp *ut) in set_utmp_time() argument
624 ut->ut_tv.tv_sec = li->tv_sec; in set_utmp_time()
625 ut->ut_tv.tv_usec = li->tv_usec; in set_utmp_time()
627 ut->ut_time = li->tv_sec; in set_utmp_time()
633 struct utmp *ut) in construct_utmp() argument
639 memset(ut, '\0', sizeof(*ut)); in construct_utmp()
[all …]
/freebsd-14-stable/usr.bin/who/
HDwho.c163 row(const struct utmpx *ut) in row() argument
178 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line); in row()
186 printf("%-16s ", ut->ut_user); in row()
189 if (ut->ut_type == BOOT_TIME) in row()
192 printf("%-12s ", ut->ut_line); in row()
193 t = ut->ut_tv.tv_sec; in row()
206 if (*ut->ut_host != '\0') in row()
207 printf("(%s)", ut->ut_host); in row()
269 struct utmpx ut, *utx; in whoami() local
277 strlcpy(ut.ut_line, tty, sizeof ut.ut_line); in whoami()
[all …]
/freebsd-14-stable/crypto/heimdal/appl/ftp/ftpd/
HDlogwtmp.c115 struct utmp ut; in ftpd_logwtmp_wtmp() local
125 memset(&ut, 0, sizeof(struct utmp)); in ftpd_logwtmp_wtmp()
128 ut.ut_type = USER_PROCESS; in ftpd_logwtmp_wtmp()
130 ut.ut_type = DEAD_PROCESS; in ftpd_logwtmp_wtmp()
132 strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpd_logwtmp_wtmp()
133 strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpd_logwtmp_wtmp()
135 ut.ut_pid = getpid(); in ftpd_logwtmp_wtmp()
138 strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in ftpd_logwtmp_wtmp()
140 ut.ut_time = time(NULL); in ftpd_logwtmp_wtmp()
181 write(fd, &ut, sizeof(struct utmp)); /* XXX */ in ftpd_logwtmp_wtmp()
/freebsd-14-stable/contrib/ntp/libntp/
HDsystime.c405 struct utmp ut; in update_uwtmp() local
412 ZERO(ut); in update_uwtmp()
426 ut.ut_type = OLD_TIME; in update_uwtmp()
427 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
428 ut.ut_time = tvlast.tv_sec; in update_uwtmp()
430 pututline(&ut); in update_uwtmp()
431 ut.ut_type = NEW_TIME; in update_uwtmp()
432 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
433 ut.ut_time = timetv.tv_sec; in update_uwtmp()
435 pututline(&ut); in update_uwtmp()
[all …]
/freebsd-14-stable/usr.sbin/ppp/
HDid.c205 ID0login(const struct utmpx *ut) in ID0login() argument
208 pututxline(ut); in ID0login()
210 (int)sizeof ut->ut_id, ut->ut_id, in ID0login()
211 (int)sizeof ut->ut_user, ut->ut_user, in ID0login()
212 (int)sizeof ut->ut_line, ut->ut_line, in ID0login()
213 (int)sizeof ut->ut_host, ut->ut_host); in ID0login()
218 ID0logout(const struct utmpx *ut) in ID0logout() argument
221 pututxline(ut); in ID0logout()
223 (int)sizeof ut->ut_id, ut->ut_id); in ID0logout()
HDphysical.c326 struct utmpx ut; in physical_Close() local
338 memset(&ut, 0, sizeof ut); in physical_Close()
339 ut.ut_type = DEAD_PROCESS; in physical_Close()
340 gettimeofday(&ut.ut_tv, NULL); in physical_Close()
341 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid()); in physical_Close()
342 ID0logout(&ut); in physical_Close()
899 struct utmpx ut; in physical_Login() local
903 memset(&ut, 0, sizeof ut); in physical_Login()
904 ut.ut_type = USER_PROCESS; in physical_Login()
905 gettimeofday(&ut.ut_tv, NULL); in physical_Login()
[all …]
/freebsd-14-stable/libexec/rpc.rusersd/
HDrusers_proc.c153 static utmpidlearr ut; in do_names_2() local
157 memset(&ut, 0, sizeof(ut)); in do_names_2()
158 ut.utmpidlearr_val = &utmp_idle[0]; in do_names_2()
180 ut.utmpidlearr_len = nusers; in do_names_2()
181 return(&ut); in do_names_2()
205 static utmparr ut; in do_names_1() local
208 bzero((char *)&ut, sizeof(ut)); in do_names_1()
212 ut.utmparr_len = utidle->utmpidlearr_len; in do_names_1()
213 ut.utmparr_val = &old_utmp[0]; in do_names_1()
214 for (i = 0; i < ut.utmparr_len; i++) in do_names_1()
[all …]
/freebsd-14-stable/usr.bin/getent/
HDgetent.c622 for (i = 0; i < sizeof ut->ut_id; i++) \
623 printf("%02hhx", ut->ut_id[i]); \
627 utmpxprint(const struct utmpx *ut) in utmpxprint() argument
630 if (ut->ut_type == EMPTY) in utmpxprint()
634 (intmax_t)ut->ut_tv.tv_sec, (unsigned int)ut->ut_tv.tv_usec, in utmpxprint()
635 ctime(&ut->ut_tv.tv_sec)); in utmpxprint()
637 switch (ut->ut_type) { in utmpxprint()
654 ut->ut_pid, ut->ut_user, ut->ut_line, ut->ut_host); in utmpxprint()
659 printf("\" pid=\"%d\"\n", ut->ut_pid); in utmpxprint()
665 ut->ut_pid, ut->ut_user, ut->ut_line, ut->ut_host); in utmpxprint()
[all …]
/freebsd-14-stable/crypto/openssh/regress/
HDkeytype.sh51 for ut in $ktypes; do
52 user_type=`kname_to_ktype "$ut"`
53 htypes="$ut"
57 trace "ssh connect, userkey $ut, hostkey $ht"
66 echo IdentityFile $OBJ/key.$ut
74 cat $OBJ/key.$ut.pub > $OBJ/authorized_keys_$USER
76 verbose "userkey $ut, hostkey ${ht}"
79 fail "ssh userkey $ut, hostkey $ht failed"
/freebsd-14-stable/usr.bin/finger/
HDutil.c108 struct utmpx *ut = NULL; in enter_lastlog() local
112 ut = getutxuser(pn->name); in enter_lastlog()
115 else if (ut != NULL && ut->ut_type == USER_PROCESS) { in enter_lastlog()
119 w->loginat < ut->ut_tv.tv_sec) in enter_lastlog()
128 strcmp(w->tty, ut->ut_line) == 0) in enter_lastlog()
131 if (ut != NULL && doit) { in enter_lastlog()
134 strcpy(w->tty, ut->ut_line); in enter_lastlog()
135 strcpy(w->host, ut->ut_host); in enter_lastlog()
136 w->loginat = ut->ut_tv.tv_sec; in enter_lastlog()
142 enter_where(struct utmpx *ut, PERSON *pn) in enter_where() argument
[all …]
/freebsd-14-stable/libexec/talkd/
HDprocess.c185 struct utmpx *ut; in find_user() local
189 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)]; in find_user()
194 while ((ut = getutxent()) != NULL) in find_user()
195 if (ut->ut_type == USER_PROCESS && in find_user()
196 strcmp(ut->ut_user, name) == 0) { in find_user()
202 ut->ut_line); in find_user()
208 (void) strcpy(tty, ut->ut_line); in find_user()
214 if (strcmp(ut->ut_line, tty) == 0) { in find_user()
/freebsd-14-stable/usr.bin/users/
HDusers.cc48 struct utmpx *ut; in main() local
61 while ((ut = getutxent()) != NULL) in main()
62 if (ut->ut_type == USER_PROCESS) in main()
63 names.insert(ut->ut_user); in main()
/freebsd-14-stable/sys/sys/
HDatomic_common.h79 #define __atomic_load_generic(p, t, ut, n) \ argument
82 ut: __atomic_load_ ## n ## _relaxed(p))
83 #define __atomic_store_generic(p, v, t, ut, n) \ argument
86 ut: __atomic_store_ ## n ## _relaxed(p, v))
92 #define __atomic_load_generic(p, t, ut, n) \ argument
94 #define __atomic_store_generic(p, v, t, ut, n) \ argument
/freebsd-14-stable/crypto/openssl/test/
HDdata2.bin7 tempor incididunt ut labore et dolore magna aliqua. Hendrerit dolor magna
17 volutpat diam ut venenatis tellus. Hac habitasse platea dictumst quisque.
18 Augue ut lectus arcu bibendum at varius vel pharetra. Nisl nunc mi ipsum
27 mauris a diam maecenas sed enim ut sem viverra. Fermentum leo vel orci
42 venenatis urna cursus. Lacus luctus accumsan tortor posuere ac ut. Eu
53 aliquam sem fringilla ut. Viverra accumsan in nisl nisi. Nam at lectus
54 urna duis convallis convallis. Tortor posuere ac ut consequat semper.
57 venenatis lectus magna. A diam maecenas sed enim ut sem viverra aliquet.
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
HDzstd_test_data.txt1ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco labor…
/freebsd-14-stable/contrib/ntp/sntp/libopts/
HDintprops.h422 #define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \ argument
424 ? _GL_INT_OP_CALC1 ((t) (a), (t) (b), r, op, overflow, ut, t, tmin, tmax) \
425 : _GL_INT_OP_CALC1 (a, b, r, op, overflow, ut, t, tmin, tmax))
426 #define _GL_INT_OP_CALC1(a, b, r, op, overflow, ut, t, tmin, tmax) \ argument
430 ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \
431 : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0))
450 #define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t) \ argument
451 ((t) ((ut) (a) op (ut) (b)))
/freebsd-14-stable/sys/fs/procfs/
HDprocfs_status.c127 struct timeval start, ut, st; in procfs_doprocstatus() local
130 calcru(p, &ut, &st); in procfs_doprocstatus()
137 (intmax_t)ut.tv_sec, ut.tv_usec, in procfs_doprocstatus()
/freebsd-14-stable/usr.bin/last/
HDlast.c229 struct utmpx *ut; in wtmp() local
241 while ((ut = getutxent()) != NULL) { in wtmp()
243 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp()
247 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp()
248 if (t > ut->ut_tv.tv_sec) in wtmp()
249 t = ut->ut_tv.tv_sec; in wtmp()
/freebsd-14-stable/sys/kern/
HDkern_acct.c337 struct timeval ut, st, tmp; in acct_process() local
384 rufetchcalc(p, &ru, &ut, &st); in acct_process()
385 acct.ac_utime = encode_timeval(ut); in acct_process()
397 tmp = ut; in acct_process()
/freebsd-14-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
HDhostres_scalars.c72 OS_getSystemUptime(uint32_t *ut) in OS_getSystemUptime() argument
84 *ut = UINT32_MAX; in OS_getSystemUptime()
86 *ut = (uint32_t)uptime; in OS_getSystemUptime()
/freebsd-14-stable/usr.sbin/rwhod/
HDrwhod.c457 struct utmpx *ut; in sender_process() local
471 while ((ut = getutxent()) != NULL && we < wend) { in sender_process()
472 if (ut->ut_type != USER_PROCESS) in sender_process()
474 strncpy(we->we_utmp.out_line, ut->ut_line, in sender_process()
476 strncpy(we->we_utmp.out_name, ut->ut_user, in sender_process()
479 htonl(_time_to_time32(ut->ut_tv.tv_sec)); in sender_process()

123