Home
last modified time | relevance | path

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

123

/freebsd-10-stable/lib/libc/gen/
Dutxdb.c40 #define UTOF_STRING(ut, fu, field) do { \ argument
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 { \ argument
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 { \ argument
49 (fu)->fu_pid = htobe32((ut)->ut_pid); \
51 #define UTOF_TYPE(ut, fu) do { \ argument
52 (fu)->fu_type = (ut)->ut_type; \
[all …]
/freebsd-10-stable/crypto/heimdal/appl/login/
Dutmpx_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-10-stable/crypto/openssh/
Dloginrec.c191 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) in set_utmp_time() argument
638 ut->ut_tv.tv_sec = li->tv_sec; in set_utmp_time()
639 ut->ut_tv.tv_usec = li->tv_usec; in set_utmp_time()
641 ut->ut_time = li->tv_sec; in set_utmp_time()
647 struct utmp *ut) in construct_utmp() argument
653 memset(ut, '\0', sizeof(*ut)); in construct_utmp()
[all …]
/freebsd-10-stable/libexec/ftpd/
Dlogwtmp.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-10-stable/contrib/opie/libopie/
Dlogwtmp.c118 struct utmp ut; variable
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.ut_name, name, sizeof(ut.ut_name));
156 strncpy(ut.ut_host, host, sizeof(ut.ut_host));
158 time(&ut.ut_time);
[all …]
/freebsd-10-stable/usr.bin/who/
Dwho.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()
266 struct utmpx ut, *utx; in whoami() local
274 strlcpy(ut.ut_line, tty, sizeof ut.ut_line); in whoami()
[all …]
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/
Dlogwtmp.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-10-stable/contrib/ntp/libntp/
Dsystime.c406 struct utmp ut; in update_uwtmp() local
413 ZERO(ut); in update_uwtmp()
427 ut.ut_type = OLD_TIME; in update_uwtmp()
428 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
429 ut.ut_time = tvlast.tv_sec; in update_uwtmp()
431 pututline(&ut); in update_uwtmp()
432 ut.ut_type = NEW_TIME; in update_uwtmp()
433 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line)); in update_uwtmp()
434 ut.ut_time = timetv.tv_sec; in update_uwtmp()
436 pututline(&ut); in update_uwtmp()
[all …]
/freebsd-10-stable/usr.sbin/ppp/
Did.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()
Dphysical.c335 struct utmpx ut; in physical_Close() local
347 memset(&ut, 0, sizeof ut); in physical_Close()
348 ut.ut_type = DEAD_PROCESS; in physical_Close()
349 gettimeofday(&ut.ut_tv, NULL); in physical_Close()
350 snprintf(ut.ut_id, sizeof ut.ut_id, "%xppp", (int)getpid()); in physical_Close()
351 ID0logout(&ut); in physical_Close()
912 struct utmpx ut; in physical_Login() local
916 memset(&ut, 0, sizeof ut); in physical_Login()
917 ut.ut_type = USER_PROCESS; in physical_Login()
918 gettimeofday(&ut.ut_tv, NULL); in physical_Login()
[all …]
/freebsd-10-stable/sys/ia64/ia64/
Dunwind.c151 struct unw_table *ut; in unw_table_lookup() local
153 LIST_FOREACH(ut, &unw_tables, ut_link) { in unw_table_lookup()
154 if (ip >= ut->ut_base && ip < ut->ut_limit) in unw_table_lookup()
155 return (ut); in unw_table_lookup()
286 struct unw_table *ut; in unw_cb_lookup() local
290 ut = unw_table_lookup(ip); in unw_cb_lookup()
291 if (ut == NULL) in unw_cb_lookup()
294 rs->keyval[1] = ut->ut_base; in unw_cb_lookup()
296 rs->keyval[3] = (intptr_t)ut->ut_start; in unw_cb_lookup()
298 rs->keyval[5] = (intptr_t)ut->ut_end; in unw_cb_lookup()
[all …]
/freebsd-10-stable/libexec/rpc.rusersd/
Drusers_proc.c156 static utmpidlearr ut; in do_names_2() local
160 memset(&ut, 0, sizeof(ut)); in do_names_2()
161 ut.utmpidlearr_val = &utmp_idle[0]; in do_names_2()
183 ut.utmpidlearr_len = nusers; in do_names_2()
184 return(&ut); in do_names_2()
208 static utmparr ut; in do_names_1() local
211 bzero((char *)&ut, sizeof(ut)); in do_names_1()
215 ut.utmparr_len = utidle->utmpidlearr_len; in do_names_1()
216 ut.utmparr_val = &old_utmp[0]; in do_names_1()
217 for (i = 0; i < ut.utmparr_len; i++) in do_names_1()
[all …]
/freebsd-10-stable/usr.bin/getent/
Dgetent.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-10-stable/sys/sparc64/sparc64/
Dsys_machdep.c120 struct md_utrap *ut; in sparc_utrap_install() local
124 ut = td->td_proc->p_md.md_utrap; in sparc_utrap_install()
142 ut != NULL ? (long)ut->ut_precise[ua.type] : 0); in sparc_utrap_install()
147 if (ut == NULL) { in sparc_utrap_install()
148 ut = utrap_alloc(); in sparc_utrap_install()
149 td->td_proc->p_md.md_utrap = ut; in sparc_utrap_install()
151 ut->ut_precise[ua.type] = ua.new_precise; in sparc_utrap_install()
Dmachdep.c1084 struct md_utrap *ut; in utrap_alloc() local
1086 ut = malloc(sizeof(struct md_utrap), M_SUBPROC, M_WAITOK | M_ZERO); in utrap_alloc()
1087 ut->ut_refcnt = 1; in utrap_alloc()
1088 return (ut); in utrap_alloc()
1092 utrap_free(struct md_utrap *ut) in utrap_free() argument
1096 if (ut == NULL) in utrap_free()
1098 mtx_pool_lock(mtxpool_sleep, ut); in utrap_free()
1099 ut->ut_refcnt--; in utrap_free()
1100 refcnt = ut->ut_refcnt; in utrap_free()
1101 mtx_pool_unlock(mtxpool_sleep, ut); in utrap_free()
[all …]
/freebsd-10-stable/usr.bin/finger/
Dutil.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-10-stable/crypto/openssh/regress/
Dkeytype.sh35 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/usr.bin/kdump/
Dkdump.c1512 struct utrace_rtld *ut = p; in ktruser_rtld() local
1517 switch (ut->event) { in ktruser_rtld()
1519 mode = ut->refcnt; in ktruser_rtld()
1520 printf("dlopen(%s, ", ut->name); in ktruser_rtld()
1541 printf("%p = dlopen(%s) ref %d\n", ut->handle, ut->name, in ktruser_rtld()
1542 ut->refcnt); in ktruser_rtld()
1545 printf("dlclose(%p) (%s, %d)\n", ut->handle, ut->name, in ktruser_rtld()
1546 ut->refcnt); in ktruser_rtld()
1549 printf("dlclose(%p) finished\n", ut->handle); in ktruser_rtld()
1552 printf("RTLD: loaded %p @ %p - %p (%s)\n", ut->handle, in ktruser_rtld()
[all …]
/freebsd-10-stable/contrib/groff/contrib/mom/examples/
Dsample_docs.mom58 nonumy eirmod tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat,
64 tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat, sed diam
68 ut labore et do\%lo\%re magna ali\%quyam erat, sed diam voluptua. At
75 kasd gubergren, no sea takimata sanctus est. Tempor invidunt ut
79 nonumy eirmod tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat,
81 eirmod tempor invidunt ut labore et do\%lo\%re magna. Tempor invidunt
82 ut labore et do\%lo\%re magna ali\%quyam erat, sed diam voluptua.
89 sed diam nonumy eirmod tempor invidunt ut labore et do\%lo\%re magna
96 invidunt ut labore et do\%lo\%re magna ali\%quyam erat, sed diam voluptua.
102 tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat, sed diam
[all …]
/freebsd-10-stable/libexec/talkd/
Dprocess.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-10-stable/usr.bin/users/
Dusers.c65 struct utmpx *ut; in main() local
78 while ((ut = getutxent()) != NULL) { in main()
79 if (ut->ut_type != USER_PROCESS) in main()
89 (void)strlcpy(names[ncnt], ut->ut_user, sizeof(*names)); in main()
/freebsd-10-stable/usr.bin/last/
Dlast.c206 struct utmpx *ut; in wtmp() local
218 while ((ut = getutxent()) != NULL) { in wtmp()
220 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp()
224 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp()
225 if (t > ut->ut_tv.tv_sec) in wtmp()
226 t = ut->ut_tv.tv_sec; in wtmp()
/freebsd-10-stable/sys/fs/procfs/
Dprocfs_status.c126 struct timeval start, ut, st; in procfs_doprocstatus() local
129 calcru(p, &ut, &st); in procfs_doprocstatus()
135 (intmax_t)ut.tv_sec, ut.tv_usec, in procfs_doprocstatus()
/freebsd-10-stable/crypto/openssh/openbsd-compat/
Dbsd-cray.c691 cray_retain_utmp(struct utmp *ut, int pid) in cray_retain_utmp() argument
700 ut->ut_jid = utmp.ut_jid; in cray_retain_utmp()
701 strncpy(ut->ut_tpath, utmp.ut_tpath, sizeof(utmp.ut_tpath)); in cray_retain_utmp()
702 strncpy(ut->ut_host, utmp.ut_host, sizeof(utmp.ut_host)); in cray_retain_utmp()
703 strncpy(ut->ut_name, utmp.ut_name, sizeof(utmp.ut_name)); in cray_retain_utmp()
790 cray_set_tmpdir(struct utmp *ut) in cray_set_tmpdir() argument
801 ut->ut_jid = jid; in cray_set_tmpdir()
802 strncpy(ut->ut_tpath, cray_tmpdir, TPATHSIZ); in cray_set_tmpdir()
/freebsd-10-stable/sys/sparc64/include/
Dmd_var.h56 void utrap_free(struct md_utrap *ut);
57 struct md_utrap *utrap_hold(struct md_utrap *ut);

123