| /freebsd-14.2/lib/libc/gen/ |
| H A D | utxdb.c | 74 UTOF_ID(ut, fu); in utx_to_futx() 82 UTOF_ID(ut, fu); in utx_to_futx() 86 UTOF_ID(ut, fu); in utx_to_futx() 92 UTOF_ID(ut, fu); in utx_to_futx() 130 if (ut == NULL) { in futx_to_utx() 131 ut = calloc(1, sizeof *ut); in futx_to_utx() 132 if (ut == NULL) in futx_to_utx() 135 memset(ut, 0, sizeof *ut); in futx_to_utx() 168 return (ut); in futx_to_utx() 172 FTOU_TV(fu, ut); in futx_to_utx() [all …]
|
| /freebsd-14.2/lib/libsysdecode/ |
| H A D | utrace.c | 82 fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name, in print_utrace_rtld() 86 fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name, in print_utrace_rtld() 94 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 95 ut->name); in print_utrace_rtld() 99 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 100 ut->name); in print_utrace_rtld() 105 ut->handle, ut->name, ut->refcnt); in print_utrace_rtld() 112 ut->name); in print_utrace_rtld() 119 fprintf(fp, "RTLD: dlsym(%p, %s)", ut->handle, ut->name); in print_utrace_rtld() 159 fprintf(fp, "%p = malloc(%zu)", ut->r, ut->s); in print_utrace_malloc() [all …]
|
| /freebsd-14.2/crypto/heimdal/appl/login/ |
| H A D | utmpx_login.c | 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() 43 if (ut->ut_syslen > sizeof(ut->ut_host)) in utmpx_update() 44 ut->ut_syslen = sizeof(ut->ut_host); in utmpx_update() 50 pututxline(ut); in utmpx_update() 52 updwtmpx(WTMPX_FILE, ut); in utmpx_update() 70 struct utmpx *ut, save_ut; in utmpx_login() local 84 if (ut->ut_pid == mypid in utmpx_login() [all …]
|
| /freebsd-14.2/libexec/ftpd/ |
| H A D | logwtmp.c | 55 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.2/crypto/openssh/ |
| H A D | loginrec.c | 657 memset(ut, '\0', sizeof(*ut)); in construct_utmp() 711 ut->ut_addr_v6[0] = ut->ut_addr_v6[3]; in construct_utmp() 910 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in utmp_write_direct() 1104 if (atomicio(vwrite, fd, ut, sizeof(*ut)) != sizeof(*ut)) { in wtmp_write() 1212 if (atomicio(read, fd, &ut, sizeof(ut)) != sizeof(ut)) { in wtmp_get_entry() 1422 ut = xmalloc(sizeof(*ut)); in syslogin_perform_login() 1425 free(ut); in syslogin_perform_login() 1692 memset(&ut, 0, sizeof(ut)); in record_failed_login() 1694 strncpy(ut.ut_user, username, sizeof(ut.ut_user)); in record_failed_login() 1703 strncpy(ut.ut_host, hostname, sizeof(ut.ut_host)); in record_failed_login() [all …]
|
| /freebsd-14.2/usr.bin/who/ |
| H A D | who.c | 163 row(const struct utmpx *ut) in row() argument 186 printf("%-16s ", ut->ut_user); in row() 189 if (ut->ut_type == BOOT_TIME) 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() 286 memset(&ut, 0, sizeof(ut)); in whoami() 291 strlcpy(ut.ut_user, name, sizeof ut.ut_user); in whoami() [all …]
|
| /freebsd-14.2/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-14.2/contrib/ntp/libntp/ |
| H A D | systime.c | 405 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() 430 pututline(&ut); in update_uwtmp() 432 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp() 435 pututline(&ut); in update_uwtmp() 469 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp() 472 pututline(&ut); in update_uwtmp() 474 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp() [all …]
|
| /freebsd-14.2/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() 341 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid()); in physical_Close() 342 ID0logout(&ut); in physical_Close() 903 memset(&ut, 0, sizeof ut); in physical_Login() 906 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid()); in physical_Login() 907 strncpy(ut.ut_user, name, sizeof ut.ut_user); in physical_Login() 910 strncpy(ut.ut_host, p->name.base, sizeof ut.ut_host); in physical_Login() 911 colon = memchr(ut.ut_host, ':', sizeof ut.ut_host); in physical_Login() 915 strncpy(ut.ut_line, p->name.base, sizeof ut.ut_line); in physical_Login() [all …]
|
| /freebsd-14.2/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-14.2/usr.bin/getent/ |
| H A D | getent.c | 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() 665 ut->ut_pid, ut->ut_user, ut->ut_line, ut->ut_host); in utmpxprint() 681 const struct utmpx *ut; in utmpx() local 710 while ((ut = getutxent()) != NULL) in utmpx() [all …]
|
| /freebsd-14.2/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-14.2/usr.bin/finger/ |
| H A D | util.c | 108 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() 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() 148 strcpy(w->tty, ut->ut_line); in enter_where() 149 strcpy(w->host, ut->ut_host); in enter_where() [all …]
|
| /freebsd-14.2/libexec/talkd/ |
| H A D | process.c | 185 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.2/usr.bin/users/ |
| H A D | users.cc | 48 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.2/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-14.2/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-14.2/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-14.2/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-14.2/sys/fs/procfs/ |
| H A D | procfs_status.c | 127 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.2/usr.bin/last/ |
| H A D | last.c | 229 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.2/sys/kern/ |
| H A D | kern_acct.c | 337 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.2/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()
|
| /freebsd-14.2/usr.sbin/rwhod/ |
| H A D | rwhod.c | 457 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()
|