/freebsd/lib/libc/gen/ |
H A D | utxdb.c | 39 #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/lib/libsysdecode/ |
H A D | utrace.c | 53 struct utrace_rtld *ut = p; in print_utrace_rtld() local 57 switch (ut->event) { in print_utrace_rtld() 59 mode = ut->refcnt; in print_utrace_rtld() 60 fprintf(fp, "dlopen(%s, ", ut->name); in print_utrace_rtld() 81 fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name, in print_utrace_rtld() 82 ut->refcnt); in print_utrace_rtld() 85 fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name, in print_utrace_rtld() 86 ut->refcnt); in print_utrace_rtld() 89 fprintf(fp, "dlclose(%p) finished", ut->handle); in print_utrace_rtld() 92 fprintf(fp, "RTLD: loaded %p @ %p - %p (%s)", ut->handle, in print_utrace_rtld() [all …]
|
/freebsd/crypto/heimdal/appl/login/ |
H A D | utmpx_login.c | 30 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/libexec/ftpd/ |
H A D | logwtmp.c | 48 struct utmpx ut; in ftpd_logwtmp() local 50 memset(&ut, 0, sizeof(ut)); in ftpd_logwtmp() 54 ut.ut_type = USER_PROCESS; in ftpd_logwtmp() 55 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user)); in ftpd_logwtmp() 57 realhostname_sa(ut.ut_host, sizeof(ut.ut_host), in ftpd_logwtmp() 61 ut.ut_type = DEAD_PROCESS; in ftpd_logwtmp() 64 ut.ut_pid = getpid(); in ftpd_logwtmp() 65 gettimeofday(&ut.ut_tv, NULL); in ftpd_logwtmp() 66 (void)strncpy(ut.ut_id, id, sizeof(ut.ut_id)); in ftpd_logwtmp() 67 (void)strncpy(ut.ut_line, "ftpd", sizeof(ut.ut_line)); in ftpd_logwtmp() [all …]
|
/freebsd/crypto/openssh/ |
H A D | loginrec.c | 174 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/usr.bin/who/ |
H A D | who.c | 162 row(const struct utmpx *ut) in row() argument 177 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line); in row() 185 printf("%-16s ", ut->ut_user); in row() 188 if (ut->ut_type == BOOT_TIME) in row() 191 printf("%-12s ", ut->ut_line); in row() 192 t = ut->ut_tv.tv_sec; in row() 205 if (*ut->ut_host != '\0') in row() 206 printf("(%s)", ut->ut_host); in row() 268 struct utmpx ut, *utx; in whoami() local 276 strlcpy(ut.ut_line, tty, sizeof ut.ut_line); in whoami() [all …]
|
/freebsd/crypto/heimdal/appl/ftp/ftpd/ |
H A D | logwtmp.c | 115 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/contrib/ntp/libntp/ |
H A D | systime.c | 405 struct utmp ut; in update_uwtmp() 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 in update_uwtmp() 406 struct utmp ut; update_uwtmp() local [all...] |
/freebsd/usr.sbin/ppp/ |
H A D | id.c | 205 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()
|
H A D | physical.c | 326 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/libexec/rpc.rusersd/ |
H A D | rusers_proc.c | 153 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/usr.bin/getent/ |
H A D | getent.c | 622 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/crypto/openssh/regress/ |
H A D | keytype.sh | 51 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/usr.bin/finger/ |
H A D | util.c | 101 struct utmpx *ut = NULL; in enter_lastlog() local 105 ut = getutxuser(pn->name); in enter_lastlog() 108 else if (ut != NULL && ut->ut_type == USER_PROCESS) { in enter_lastlog() 112 w->loginat < ut->ut_tv.tv_sec) in enter_lastlog() 121 strcmp(w->tty, ut->ut_line) == 0) in enter_lastlog() 124 if (ut != NULL && doit) { in enter_lastlog() 127 strcpy(w->tty, ut->ut_line); in enter_lastlog() 128 strcpy(w->host, ut->ut_host); in enter_lastlog() 129 w->loginat = ut->ut_tv.tv_sec; in enter_lastlog() 135 enter_where(struct utmpx *ut, PERSON *pn) in enter_where() argument [all …]
|
/freebsd/libexec/talkd/ |
H A D | process.c | 179 struct utmpx *ut; in find_user() local 183 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)]; in find_user() 188 while ((ut = getutxent()) != NULL) in find_user() 189 if (ut->ut_type == USER_PROCESS && in find_user() 190 strcmp(ut->ut_user, name) == 0) { in find_user() 196 ut->ut_line); in find_user() 202 (void) strcpy(tty, ut->ut_line); in find_user() 208 if (strcmp(ut->ut_line, tty) == 0) { in find_user()
|
/freebsd/usr.bin/users/ |
H A D | users.cc | 47 struct utmpx *ut; in main() local 60 while ((ut = getutxent()) != NULL) in main() 61 if (ut->ut_type == USER_PROCESS) in main() 62 names.insert(ut->ut_user); in main()
|
/freebsd/sys/sys/ |
H A D | atomic_common.h | 79 #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/crypto/openssl/test/ |
H A D | data2.bin | 7 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/contrib/ntp/sntp/libopts/ |
H A D | intprops.h | 422 #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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/ |
H A D | zstd_test_data.txt | 1 …ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco labor…
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 64 struct timeval start, ut, st; in procfs_doprocstatus() 84 /* comm pid ppid pgid sid tty ctty,sldr start ut st wmsg in procfs_doprocstatus() 126 calcru(p, &ut, &st); in procfs_doprocstatus() 133 (intmax_t)ut.tv_sec, ut.tv_usec, in procfs_doprocstatus() 125 struct timeval start, ut, st; procfs_doprocstatus() local
|
/freebsd/usr.bin/last/ |
H A D | last.c | 222 struct utmpx *ut; in wtmp() local 234 while ((ut = getutxent()) != NULL) { in wtmp() 236 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp() 240 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp() 241 if (t > ut->ut_tv.tv_sec) in wtmp() 242 t = ut->ut_tv.tv_sec; in wtmp()
|
/freebsd/sys/kern/ |
H A D | kern_acct.c | 334 struct timeval ut, st, tmp; in acct_process() local 381 rufetchcalc(p, &ru, &ut, &st); in acct_process() 382 acct.ac_utime = encode_timeval(ut); in acct_process() 394 tmp = ut; in acct_process()
|
/freebsd/usr.sbin/rwhod/ |
H A D | rwhod.c | 444 struct utmpx *ut; in sender_process() local 458 while ((ut = getutxent()) != NULL && we < wend) { in sender_process() 459 if (ut->ut_type != USER_PROCESS) in sender_process() 461 strncpy(we->we_utmp.out_line, ut->ut_line, in sender_process() 463 strncpy(we->we_utmp.out_name, ut->ut_user, in sender_process() 466 htonl(_time_to_time32(ut->ut_tv.tv_sec)); in sender_process()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_scalars.c | 72 OS_getSystemUptime(uint32_t *ut) in OS_getSystemUptime() argument 84 *ut = UINT32_MAX; in OS_getSystemUptime() 86 *ut = (uint32_t)uptime; in OS_getSystemUptime()
|