/freebsd-10-stable/lib/libc/gen/ |
H A D | utxdb.c | 40 #define UTOF_STRING(ut, fu, field) do { \ 41 strncpy((fu)->fu_ ## field, (ut)->ut_ ## field, \ 42 MIN(sizeof (fu)->fu_ ## field, sizeof (ut)->ut_ ## field)); \ 44 #define UTOF_ID(ut, fu) do { \ 45 memcpy((fu)->fu_id, (ut)->ut_id, \ 46 MIN(sizeof (fu)->fu_id, sizeof (ut)->ut_id)); \ 48 #define UTOF_PID(ut, fu) do { \ 49 (fu)->fu_pid = htobe32((ut)->ut_pid); \ 51 #define UTOF_TYPE(ut, fu) do { \ 52 (fu)->fu_type = (ut) 62 utx_to_futx(const struct utmpx *ut, struct futx *fu) argument 130 static struct utmpx *ut; local [all...] |
/freebsd-10-stable/crypto/heimdal/appl/login/ |
H A D | utmpx_login.c | 30 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-10-stable/libexec/ftpd/ |
H A D | logwtmp.c | 55 struct utmpx ut; local 57 memset(&ut, 0, sizeof(ut)); 61 ut.ut_type = USER_PROCESS; 62 (void)strncpy(ut.ut_user, user, sizeof(ut.ut_user)); 64 realhostname_sa(ut.ut_host, sizeof(ut.ut_host), 68 ut.ut_type = DEAD_PROCESS; 71 ut [all...] |
/freebsd-10-stable/contrib/opie/libopie/ |
H A D | logwtmp.c | 118 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-10-stable/crypto/openssh/ |
H A D | loginrec.c | 191 void set_utmp_time(struct logininfo *li, struct utmp *ut); 192 void construct_utmp(struct logininfo *li, struct utmp *ut); 196 void set_utmpx_time(struct logininfo *li, struct utmpx *ut); 197 void construct_utmpx(struct logininfo *li, struct utmpx *ut); 635 set_utmp_time(struct logininfo *li, struct utmp *ut) argument 638 ut->ut_tv.tv_sec = li->tv_sec; 639 ut->ut_tv.tv_usec = li->tv_usec; 641 ut->ut_time = li->tv_sec; 647 struct utmp *ut) 653 memset(ut, '\ 646 construct_utmp(struct logininfo *li, struct utmp *ut) argument 826 utmp_write_library(struct logininfo *li, struct utmp *ut) argument 842 utmp_write_direct(struct logininfo *li, struct utmp *ut) argument 927 struct utmp ut; local 948 struct utmp ut; local 1092 wtmp_write(struct logininfo *li, struct utmp *ut) argument 1116 struct utmp ut; local 1126 struct utmp ut; local 1167 wtmp_islogin(struct logininfo *li, struct utmp *ut) argument 1185 struct utmp ut; local 1419 struct utmp *ut; local 1665 struct utmp ut; local [all...] |
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/ |
H A D | logwtmp.c | 115 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-10-stable/contrib/ofed/libsdp/config/ |
H A D | libsdp_indent | 64 # -ut No tabs as we allow spaces 71 -hnl -i3 -npcs -prs -sc -nsob -ts3 -psl -bfda -ut -br -ce $*
|
/freebsd-10-stable/usr.bin/who/ |
H A D | who.c | 163 row(const struct utmpx *ut) argument 178 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line); 186 printf("%-16s ", ut->ut_user); 189 if (ut->ut_type == BOOT_TIME) 192 printf("%-12s ", ut->ut_line); 193 t = ut->ut_tv.tv_sec; 206 if (*ut->ut_host != '\0') 207 printf("(%s)", ut->ut_host); 266 struct utmpx ut, *utx; local 274 strlcpy(ut [all...] |
/freebsd-10-stable/sys/sparc64/sparc64/ |
H A D | sys_machdep.c | 120 struct md_utrap *ut; local 124 ut = td->td_proc->p_md.md_utrap; 142 ut != NULL ? (long)ut->ut_precise[ua.type] : 0); 147 if (ut == NULL) { 148 ut = utrap_alloc(); 149 td->td_proc->p_md.md_utrap = ut; 151 ut->ut_precise[ua.type] = ua.new_precise;
|
H A D | machdep.c | 1084 struct md_utrap *ut; local 1086 ut = malloc(sizeof(struct md_utrap), M_SUBPROC, M_WAITOK | M_ZERO); 1087 ut->ut_refcnt = 1; 1088 return (ut); 1092 utrap_free(struct md_utrap *ut) argument 1096 if (ut == NULL) 1098 mtx_pool_lock(mtxpool_sleep, ut); 1099 ut->ut_refcnt--; 1100 refcnt = ut->ut_refcnt; 1101 mtx_pool_unlock(mtxpool_sleep, ut); 1107 utrap_hold(struct md_utrap *ut) argument [all...] |
/freebsd-10-stable/usr.bin/users/ |
H A D | users.c | 65 struct utmpx *ut; local 78 while ((ut = getutxent()) != NULL) { 79 if (ut->ut_type != USER_PROCESS) 89 (void)strlcpy(names[ncnt], ut->ut_user, sizeof(*names));
|
/freebsd-10-stable/usr.sbin/ppp/ |
H A D | id.c | 205 ID0login(const struct utmpx *ut) argument 208 pututxline(ut); 210 (int)sizeof ut->ut_id, ut->ut_id, 211 (int)sizeof ut->ut_user, ut->ut_user, 212 (int)sizeof ut->ut_line, ut->ut_line, 213 (int)sizeof ut->ut_host, ut 218 ID0logout(const struct utmpx *ut) argument [all...] |
H A D | physical.c | 335 struct utmpx ut; local 347 memset(&ut, 0, sizeof ut); 348 ut.ut_type = DEAD_PROCESS; 349 gettimeofday(&ut.ut_tv, NULL); 350 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid()); 351 ID0logout(&ut); 912 struct utmpx ut; local 916 memset(&ut, [all...] |
/freebsd-10-stable/crypto/openssh/regress/ |
H A D | keytype.sh | 35 for ut in $ktypes; do 36 htypes=$ut 47 trace "ssh connect, userkey $ut, hostkey $ht" 56 echo IdentityFile $OBJ/key.$ut 64 cat $OBJ/key.$ut.pub > $OBJ/authorized_keys_$USER 66 printf "userkey $ut, hostkey ${ht}:\t" 69 fail "ssh userkey $ut, hostkey $ht failed"
|
/freebsd-10-stable/sys/ia64/ia64/ |
H A D | unwind.c | 151 struct unw_table *ut; local 153 LIST_FOREACH(ut, &unw_tables, ut_link) { 154 if (ip >= ut->ut_base && ip < ut->ut_limit) 155 return (ut); 286 struct unw_table *ut; local 290 ut = unw_table_lookup(ip); 291 if (ut == NULL) 294 rs->keyval[1] = ut->ut_base; 296 rs->keyval[3] = (intptr_t)ut 439 struct unw_table *ut; local 458 struct unw_table *ut; local [all...] |
/freebsd-10-stable/libexec/rpc.rusersd/ |
H A D | rusers_proc.c | 156 static utmpidlearr ut; local 160 memset(&ut, 0, sizeof(ut)); 161 ut.utmpidlearr_val = &utmp_idle[0]; 183 ut.utmpidlearr_len = nusers; 184 return(&ut); 208 static utmparr ut; local 211 bzero((char *)&ut, sizeof(ut)); 215 ut [all...] |
/freebsd-10-stable/sys/sparc64/include/ |
H A D | md_var.h | 56 void utrap_free(struct md_utrap *ut); 57 struct md_utrap *utrap_hold(struct md_utrap *ut);
|
/freebsd-10-stable/contrib/ntp/libntp/ |
H A D | systime.c | 406 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-10-stable/usr.bin/finger/ |
H A D | util.c | 108 struct utmpx *ut = NULL; local 112 ut = getutxuser(pn->name); 115 else if (ut != NULL && ut->ut_type == USER_PROCESS) { 119 w->loginat < ut->ut_tv.tv_sec) 128 strcmp(w->tty, ut->ut_line) == 0) 131 if (ut != NULL && doit) { 134 strcpy(w->tty, ut->ut_line); 135 strcpy(w->host, ut->ut_host); 136 w->loginat = ut 142 enter_where(struct utmpx *ut, PERSON *pn) argument [all...] |
/freebsd-10-stable/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) argument 630 if (ut->ut_type == EMPTY) 634 (intmax_t)ut->ut_tv.tv_sec, (unsigned int)ut->ut_tv.tv_usec, 635 ctime(&ut->ut_tv.tv_sec)); 637 switch (ut->ut_type) { 654 ut->ut_pid, ut 681 const struct utmpx *ut; local [all...] |
/freebsd-10-stable/libexec/talkd/ |
H A D | process.c | 185 struct utmpx *ut; local 189 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)]; 194 while ((ut = getutxent()) != NULL) 195 if (ut->ut_type == USER_PROCESS && 196 strcmp(ut->ut_user, name) == 0) { 202 ut->ut_line); 208 (void) strcpy(tty, ut->ut_line); 214 if (strcmp(ut->ut_line, tty) == 0) {
|
/freebsd-10-stable/usr.bin/kdump/ |
H A D | kdump.c | 1512 struct utrace_rtld *ut = p; local 1517 switch (ut->event) { 1519 mode = ut->refcnt; 1520 printf("dlopen(%s, ", ut->name); 1541 printf("%p = dlopen(%s) ref %d\n", ut->handle, ut->name, 1542 ut->refcnt); 1545 printf("dlclose(%p) (%s, %d)\n", ut->handle, ut->name, 1546 ut 1607 struct utrace_malloc *ut = p; local [all...] |
/freebsd-10-stable/sys/fs/procfs/ |
H A D | procfs_status.c | 84 /* comm pid ppid pgid sid tty ctty,sldr start ut st wmsg 126 struct timeval start, ut, st; local 129 calcru(p, &ut, &st); 135 (intmax_t)ut.tv_sec, ut.tv_usec,
|
/freebsd-10-stable/usr.bin/last/ |
H A D | last.c | 206 struct utmpx *ut; local 218 while ((ut = getutxent()) != NULL) { 220 buf = realloc(buf, (amount + 128) * sizeof *ut); 224 memcpy(&buf[amount++], ut, sizeof *ut); 225 if (t > ut->ut_tv.tv_sec) 226 t = ut->ut_tv.tv_sec;
|
/freebsd-10-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-cray.c | 691 cray_retain_utmp(struct utmp *ut, int pid) argument 700 ut->ut_jid = utmp.ut_jid; 701 strncpy(ut->ut_tpath, utmp.ut_tpath, sizeof(utmp.ut_tpath)); 702 strncpy(ut->ut_host, utmp.ut_host, sizeof(utmp.ut_host)); 703 strncpy(ut->ut_name, utmp.ut_name, sizeof(utmp.ut_name)); 790 cray_set_tmpdir(struct utmp *ut) argument 801 ut->ut_jid = jid; 802 strncpy(ut->ut_tpath, cray_tmpdir, TPATHSIZ);
|