Home
last modified time | relevance | path

Searched refs:utmpx (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/include/
H A Dutmpx.h41 struct utmpx { struct
76 struct utmpx *getutxent(void); argument
77 struct utmpx *getutxid(const struct utmpx *);
78 struct utmpx *getutxline(const struct utmpx *);
79 struct utmpx *pututxline(const struct utmpx *);
83 struct utmpx *getutxuser(const char *);
/freebsd/usr.sbin/lastlogin/
H A Dlastlogin.c53 static void output(struct utmpx *);
65 return (order * strcmp(((const struct utmpx *)u1)->ut_user, in utcmp_user()
66 ((const struct utmpx *)u2)->ut_user)); in utcmp_user()
74 t1 = ((const struct utmpx *)u1)->ut_tv.tv_sec; in utcmp_time()
75 t2 = ((const struct utmpx *)u2)->ut_tv.tv_sec; in utcmp_time()
83 struct utmpx *u, *ulist; in main()
134 (ulistsize + 16) * sizeof(struct utmpx)); in main()
142 qsort(ulist, ulistsize, sizeof(struct utmpx), utcmp); in main()
157 output(struct utmpx *u) in output()
/freebsd/lib/libc/gen/
H A Dgetutxent.c151 struct utmpx *
161 struct utmpx *
162 getutxid(const struct utmpx *id) in getutxid()
197 struct utmpx *
198 getutxline(const struct utmpx *line) in getutxline()
221 struct utmpx *
H A Dutxdb.h46 struct utmpx;
58 void utx_to_futx(const struct utmpx *, struct futx *);
59 struct utmpx *futx_to_utx(const struct futx *);
H A Dpututxline.c287 struct utmpx *
288 pututxline(const struct utmpx *utmpx) in pututxline() argument
295 utx_to_futx(utmpx, &fu); in pututxline()
H A Dutxdb.c61 utx_to_futx(const struct utmpx *ut, struct futx *fu) in utx_to_futx()
125 struct utmpx *
128 static _Thread_local struct utmpx *ut; in futx_to_utx()
/freebsd/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c51 struct utmpx wtmp;
1289 struct utmpx utmpx; in start_login() local
1298 memset(&utmpx, 0, sizeof(utmpx)); in start_login()
1299 strncpy(utmpx.ut_user, ".telnet", sizeof(utmpx.ut_user)); in start_login()
1300 strncpy(utmpx.ut_line, clean_tty, sizeof(utmpx.ut_line)); in start_login()
1302 strncpy(utmpx.ut_id, make_id(clean_tty), sizeof(utmpx.ut_id)); in start_login()
1304 utmpx.ut_pid = pid; in start_login()
1306 utmpx.ut_type = LOGIN_PROCESS; in start_login()
1309 utmpx.ut_tv.tv_sec = tv.tv_sec; in start_login()
1310 utmpx.ut_tv.tv_usec = tv.tv_usec; in start_login()
[all …]
/freebsd/usr.bin/last/
H A Dlast.c74 char id[sizeof ((struct utmpx *)0)->ut_id]; /* identifier */
94 static void doentry(struct utmpx *);
96 static void printentry(struct utmpx *, struct idtab *);
98 static int want(struct utmpx *);
221 struct utmpx *buf = NULL; in wtmp()
222 struct utmpx *ut; in wtmp()
265 doentry(struct utmpx *bp) in doentry()
342 printentry(struct utmpx *bp, struct idtab *tt) in printentry()
418 want(struct utmpx *bp) in want()
/freebsd/usr.sbin/ac/
H A Dac.c51 char user[sizeof(((struct utmpx *)0)->ut_user)];
52 char id[sizeof(((struct utmpx *)0)->ut_id)];
54 char line[sizeof(((struct utmpx *)0)->ut_line)];
64 char user[sizeof(((struct utmpx *)0)->ut_user)];
73 char line[sizeof(((struct utmpx *)0)->ut_line) + 2];
316 log_out(const struct utmpx *up) in log_out()
347 log_in(struct utmpx *up) in log_in()
406 struct utmpx *usr, usht; in ac()
/freebsd/usr.sbin/ppp/
H A Did.h30 struct utmpx;
44 extern void ID0login(const struct utmpx *);
45 extern void ID0logout(const struct utmpx *);
H A Did.c205 ID0login(const struct utmpx *ut) in ID0login()
218 ID0logout(const struct utmpx *ut) in ID0logout()
/freebsd/usr.bin/who/
H A Dwho.c52 static void row(const struct utmpx *);
162 row(const struct utmpx *ut) in row()
228 struct utmpx *utx; in process_utmp()
242 struct utmpx *utx; in quick()
268 struct utmpx ut, *utx; in whoami()
/freebsd/lib/libulog/
H A Dulog_login.c35 #include <utmpx.h>
39 ulog_fill(struct utmpx *utx, const char *line) in ulog_fill()
65 struct utmpx utx; in ulog_login()
78 struct utmpx utx; in ulog_logout()
/freebsd/crypto/openssh/
H A Dloginrec.c179 void set_utmpx_time(struct logininfo *li, struct utmpx *ut);
180 void construct_utmpx(struct logininfo *li, struct utmpx *ut);
713 set_utmpx_time(struct logininfo *li, struct utmpx *utx) in set_utmpx_time()
724 construct_utmpx(struct logininfo *li, struct utmpx *utx) in construct_utmpx()
984 utmpx_write_library(struct logininfo *li, struct utmpx *utx) in utmpx_write_library()
999 utmpx_write_direct(struct logininfo *li, struct utmpx *utx) in utmpx_write_direct()
1009 struct utmpx utx; in utmpx_perform_login()
1030 struct utmpx utx; in utmpx_perform_logout()
1246 wtmpx_write(struct logininfo *li, struct utmpx *utx) in wtmpx_write()
1278 struct utmpx utx; in wtmpx_perform_login()
[all …]
/freebsd/crypto/heimdal/appl/login/
H A Dutmpx_login.c30 utmpx_update(struct utmpx *ut, char *line, const char *user, const char *host) in utmpx_update()
70 struct utmpx *ut, save_ut; in utmpx_login()
96 struct utmpx newut; in utmpx_login()
/freebsd/usr.bin/finger/
H A Dfinger.h60 char tty[sizeof ((struct utmpx *)0)->ut_line]; /* tty line */
61 char host[sizeof ((struct utmpx *)0)->ut_host]; /* host name */
H A Dextern.h49 void enter_where(struct utmpx *, PERSON *);
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c118 struct utmpx utx; in ftpd_logwtmp_wtmp()
122 memset(&utx, 0, sizeof(struct utmpx)); in ftpd_logwtmp_wtmp()
184 write(fdx, &utx, sizeof(struct utmpx)); in ftpd_logwtmp_wtmp()
/freebsd/usr.sbin/utx/
H A Dutx.c54 struct utmpx utx = { .ut_type = DEAD_PROCESS }; in rm()
84 struct utmpx utx = { .ut_type = type }; in boot()
/freebsd/libexec/comsat/
H A Dcomsat.c64 static void notify(struct utmpx *, char[], off_t, int);
111 struct utmpx *utp; in mailfor()
145 notify(struct utmpx *utp, char file[], off_t offset, int folder) in notify()
/freebsd/libexec/rpc.rusersd/
H A Drusers_proc.c57 static struct utmpx utmp_list[MAXUSERS];
154 struct utmpx *usr; in do_names_2()
188 struct utmpx *usr; in rusers_num()
/freebsd/usr.bin/getent/
H A Dgetent.c71 static int utmpx(int, char *[]);
94 { "utmpx", utmpx, },
627 utmpxprint(const struct utmpx *ut) in utmpxprint()
679 utmpx(int argc, char *argv[]) in utmpx() function
681 const struct utmpx *ut; in utmpx()
/freebsd/lib/libpam/modules/pam_lastlog/
H A Dpam_lastlog.c70 struct utmpx *utx, utl; in pam_sm_open_session()
157 struct utmpx utl; in pam_sm_close_session()
/freebsd/contrib/tcsh/
H A Dtc.who.c43 # define UTNAMLEN sizeof(((struct utmpx *) 0)->ut_name)
44 # define UTLINLEN sizeof(((struct utmpx *) 0)->ut_line)
46 # define UTHOSTLEN sizeof(((struct utmpx *) 0)->ut_host)
68 # define utmp utmpx
/freebsd/usr.bin/users/
H A Dusers.cc47 struct utmpx *ut; in main()

123