Searched refs:ut (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-11-stable/lib/libc/gen/
H A Dutxdb.c40 #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-11-stable/crypto/heimdal/appl/login/
H A Dutmpx_login.c30 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-11-stable/libexec/ftpd/
H A Dlogwtmp.c55 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-11-stable/lib/libsysdecode/
H A Dutrace.c56 struct utrace_rtld *ut = p; local
60 switch (ut->event) {
62 mode = ut->refcnt;
63 fprintf(fp, "dlopen(%s, ", ut->name);
84 fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name,
85 ut->refcnt);
88 fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name,
89 ut
150 struct utrace_malloc *ut = p; local
[all...]
/freebsd-11-stable/contrib/opie/libopie/
H A Dlogwtmp.c118 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-11-stable/crypto/openssh/
H A 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) 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-11-stable/usr.bin/users/
H A Dusers.cc48 struct utmpx *ut; local
61 while ((ut = getutxent()) != NULL)
62 if (ut->ut_type == USER_PROCESS)
63 names.insert(ut->ut_user);
/freebsd-11-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c115 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-11-stable/sys/sparc64/sparc64/
H A Dsys_machdep.c120 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 Dmachdep.c1082 struct md_utrap *ut; local
1084 ut = malloc(sizeof(struct md_utrap), M_SUBPROC, M_WAITOK | M_ZERO);
1085 ut->ut_refcnt = 1;
1086 return (ut);
1090 utrap_free(struct md_utrap *ut) argument
1094 if (ut == NULL)
1096 mtx_pool_lock(mtxpool_sleep, ut);
1097 ut->ut_refcnt--;
1098 refcnt = ut->ut_refcnt;
1099 mtx_pool_unlock(mtxpool_sleep, ut);
1105 utrap_hold(struct md_utrap *ut) argument
[all...]
/freebsd-11-stable/usr.bin/who/
H A Dwho.c165 row(const struct utmpx *ut) argument
180 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line);
188 printf("%-16s ", ut->ut_user);
191 if (ut->ut_type == BOOT_TIME)
194 printf("%-12s ", ut->ut_line);
195 t = ut->ut_tv.tv_sec;
208 if (*ut->ut_host != '\0')
209 printf("(%s)", ut->ut_host);
268 struct utmpx ut, *utx; local
276 strlcpy(ut
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dsystime.c406 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-11-stable/crypto/openssh/regress/
H A 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-11-stable/usr.sbin/ppp/
H A Did.c207 ID0login(const struct utmpx *ut) argument
210 pututxline(ut);
212 (int)sizeof ut->ut_id, ut->ut_id,
213 (int)sizeof ut->ut_user, ut->ut_user,
214 (int)sizeof ut->ut_line, ut->ut_line,
215 (int)sizeof ut->ut_host, ut
220 ID0logout(const struct utmpx *ut) argument
[all...]
H A Dphysical.c335 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-11-stable/libexec/rpc.rusersd/
H A Drusers_proc.c156 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-11-stable/sys/sparc64/include/
H A Dmd_var.h56 void utrap_free(struct md_utrap *ut);
57 struct md_utrap *utrap_hold(struct md_utrap *ut);
/freebsd-11-stable/usr.bin/finger/
H A Dutil.c108 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-11-stable/usr.bin/getent/
H A Dgetent.c624 for (i = 0; i < sizeof ut->ut_id; i++) \
625 printf("%02hhx", ut->ut_id[i]); \
629 utmpxprint(const struct utmpx *ut) argument
632 if (ut->ut_type == EMPTY)
636 (intmax_t)ut->ut_tv.tv_sec, (unsigned int)ut->ut_tv.tv_usec,
637 ctime(&ut->ut_tv.tv_sec));
639 switch (ut->ut_type) {
656 ut->ut_pid, ut
683 const struct utmpx *ut; local
[all...]
/freebsd-11-stable/libexec/talkd/
H A Dprocess.c185 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-11-stable/sys/fs/procfs/
H A Dprocfs_status.c85 /* comm pid ppid pgid sid tty ctty,sldr start ut st wmsg
127 struct timeval start, ut, st; local
130 calcru(p, &ut, &st);
137 (intmax_t)ut.tv_sec, ut.tv_usec,
/freebsd-11-stable/usr.bin/last/
H A Dlast.c246 struct utmpx *ut; local
260 while ((ut = getutxent()) != NULL) {
262 buf = realloc(buf, (amount + 128) * sizeof *ut);
266 memcpy(&buf[amount++], ut, sizeof *ut);
267 if (t > ut->ut_tv.tv_sec)
268 t = ut->ut_tv.tv_sec;
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbsd-cray.c690 cray_retain_utmp(struct utmp *ut, int pid) argument
699 ut->ut_jid = utmp.ut_jid;
700 strncpy(ut->ut_tpath, utmp.ut_tpath, sizeof(utmp.ut_tpath));
701 strncpy(ut->ut_host, utmp.ut_host, sizeof(utmp.ut_host));
702 strncpy(ut->ut_name, utmp.ut_name, sizeof(utmp.ut_name));
789 cray_set_tmpdir(struct utmp *ut) argument
800 ut->ut_jid = jid;
801 strncpy(ut->ut_tpath, cray_tmpdir, TPATHSIZ);
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_scalars.c77 OS_getSystemUptime(uint32_t *ut) argument
109 *ut = UINT32_MAX;
111 *ut = now - kernel_boot;
/freebsd-11-stable/usr.sbin/rwhod/
H A Drwhod.c456 struct utmpx *ut; local
470 while ((ut = getutxent()) != NULL && we < wend) {
471 if (ut->ut_type != USER_PROCESS)
473 strncpy(we->we_utmp.out_line, ut->ut_line,
475 strncpy(we->we_utmp.out_name, ut->ut_user,
478 htonl(_time_to_time32(ut->ut_tv.tv_sec));

Completed in 141 milliseconds

12