Home
last modified time | relevance | path

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

123

/netbsd/src/lib/libc/compat/include/
Dutmpx.h63 utmpx50_to_utmpx(const struct utmpx50 *ut50, struct utmpx *ut) in utmpx50_to_utmpx()
70 utmpx_to_utmpx50(const struct utmpx *ut, struct utmpx50 *ut50) in utmpx_to_utmpx50()
77 struct utmpx *__getutxent50(void);
79 struct utmpx *__getutxid50(const struct utmpx *);
81 struct utmpx *__getutxline50(const struct utmpx *);
83 struct utmpx *__pututxline50(const struct utmpx *);
85 int __updwtmpx50(const char *, const struct utmpx *);
90 void __getutmp50(const struct utmpx *, struct utmp *);
92 void __getutmpx50(const struct utmp *, struct utmpx *);
/netbsd/src/usr.bin/login/
Dcommon.c241 struct utmpx utmpx; in doutmpx() local
244 memset((void *)&utmpx, 0, sizeof(utmpx)); in doutmpx()
245 utmpx.ut_tv = now; in doutmpx()
246 (void)strncpy(utmpx.ut_name, username, sizeof(utmpx.ut_name)); in doutmpx()
248 (void)strncpy(utmpx.ut_host, hostname, sizeof(utmpx.ut_host)); in doutmpx()
249 utmpx.ut_ss = ss; in doutmpx()
251 (void)strncpy(utmpx.ut_line, tty, sizeof(utmpx.ut_line)); in doutmpx()
252 utmpx.ut_type = USER_PROCESS; in doutmpx()
253 utmpx.ut_pid = getpid(); in doutmpx()
255 if ((size_t)(t - tty) >= sizeof(utmpx.ut_id)) { in doutmpx()
[all …]
/netbsd/src/include/
Dutmpx.h103 struct utmpx { struct
135 struct utmpx *getutxent(void) __RENAME(__getutxent50); argument
136 struct utmpx *getutxid(const struct utmpx *) __RENAME(__getutxid50);
137 struct utmpx *getutxline(const struct utmpx *) __RENAME(__getutxline50);
138 struct utmpx *pututxline(const struct utmpx *) __RENAME(__pututxline50);
143 int updwtmpx(const char *, const struct utmpx *) __RENAME(__updwtmpx50);
149 void getutmp(const struct utmpx *, struct utmp *) __RENAME(__getutmp50);
150 void getutmpx(const struct utmp *, struct utmpx *) __RENAME(__getutmpx50);
Dutil.h70 struct utmpx;
90 void loginx(const struct utmpx *) __RENAME(__loginx50);
/netbsd/src/lib/libpam/modules/pam_lastlog/
Dpam_lastlog.c274 struct utmpx utmpx; in doutmpx() local
277 memset((void *)&utmpx, 0, sizeof(utmpx)); in doutmpx()
278 utmpx.ut_tv = *now; in doutmpx()
279 (void)strncpy(utmpx.ut_name, username, sizeof(utmpx.ut_name)); in doutmpx()
281 (void)strncpy(utmpx.ut_host, hostname, sizeof(utmpx.ut_host)); in doutmpx()
283 utmpx.ut_ss = *ss; in doutmpx()
285 (void)strncpy(utmpx.ut_line, tty, sizeof(utmpx.ut_line)); in doutmpx()
286 utmpx.ut_type = USER_PROCESS; in doutmpx()
287 utmpx.ut_pid = getpid(); in doutmpx()
289 if ((size_t)(t - tty) >= sizeof(utmpx.ut_id)) { in doutmpx()
[all …]
/netbsd/src/lib/libc/gen/
Dutmpx.c60 static struct utmpx ut;
63 static struct utmpx *utmp_update(const struct utmpx *);
73 old2new(struct utmpx *utx) in old2new()
83 new2old(struct utmpx *utx) in new2old()
117 struct utmpx *
169 struct utmpx *
170 getutxid(const struct utmpx *utx) in getutxid()
216 struct utmpx *
217 getutxline(const struct utmpx *utx) in getutxline()
240 struct utmpx *
[all …]
/netbsd/src/lib/libc/compat/gen/
Dcompat_utmpx.c69 cvt(struct utmpx *ut) in cvt()
104 struct utmpx ut; in getutxid()
112 struct utmpx ut; in getutxline()
120 struct utmpx ut; in pututxline()
128 struct utmpx ut; in updwtmpx()
183 struct utmpx utx; in getutmp()
191 struct utmpx utx; in getutmpx()
/netbsd/src/share/man/man5/
DMakefile19 utmp.5 utmpx.5 veriexec.5 weekly.5 wscons.conf.5
28 MLINKS+=utmpx.5 wtmpx.5 utmpx.5 lastlogx.5
/netbsd/src/libexec/ftpd/
Dlogwtmp.c121 struct utmpx ut; in ftpd_logwtmpx()
139 if(write(fdx, (char *)&ut, sizeof(struct utmpx)) != in ftpd_logwtmpx()
140 sizeof(struct utmpx)) in ftpd_logwtmpx()
Dftpd.c206 static struct utmpx utmpx; /* for utmpx */ variable
1226 (void)memset(&utmpx, 0, sizeof(utmpx)); in login_utmp()
1227 utmpx.ut_tv = tv; in login_utmp()
1228 utmpx.ut_pid = getpid(); in login_utmp()
1229 utmpx.ut_id[0] = 'f'; in login_utmp()
1230 utmpx.ut_id[1] = 't'; in login_utmp()
1231 utmpx.ut_id[2] = 'p'; in login_utmp()
1232 utmpx.ut_id[3] = '*'; in login_utmp()
1233 utmpx.ut_type = USER_PROCESS; in login_utmp()
1234 (void)strncpy(utmpx.ut_name, name, sizeof(utmpx.ut_name)); in login_utmp()
[all …]
Dextern.h181 struct utmpx;
187 void ftpd_loginx(const struct utmpx *);
Dlogutmp.c162 ftpd_loginx(const struct utmpx *ut) in ftpd_loginx()
/netbsd/src/lib/libutil/compat/
Dutil.h44 struct utmpx;
59 void __loginx50(const struct utmpx *);
Dcompat_loginx.c58 struct utmpx ut; in loginx()
Dcompat_logoutx.c58 struct utmpx *utp, ut; in logoutx()
/netbsd/src/lib/libc/
Dshlib_version18 # - libc/gen/utmpx.c, utmpx.h: remove lastlogxname, __getlastlogx13 -> getlastlogx
19 # - libc/gen/utmpx.c, utmpx.h: add expansion space to struct lastlogx
/netbsd/src/usr.bin/who/
Dutmpentry.c64 static void getentryx(struct utmpentry *, struct utmpx *);
178 struct utmpx *utx; in getutentries()
298 getentryx(struct utmpentry *e, struct utmpx *up) in getentryx()
/netbsd/src/libexec/utmp_update/
Dutmp_update.c76 struct utmpx *utx; in main()
149 struct utmpx utold, *utoldp; in main()
/netbsd/src/lib/libutil/
Dloginx.c50 loginx(const struct utmpx *ut) in loginx()
Dlogoutx.c58 struct utmpx *utp, ut; in logoutx()
Dlogwtmpx.c59 struct utmpx ut; in logwtmpx()
/netbsd/src/external/mit/xorg/bin/sessreg/
DMakefile16 __utmp_manpage__ utmpx \
/netbsd/src/distrib/utils/libhack/
Dutmp.c21 const struct utmpx *ut; in loginx()
/netbsd/src/crypto/external/cpl/trousers/dist/src/tcsd/
Dplatform.c117 struct utmpx ut, *utp = NULL; in platform_get_runlevel()
/netbsd/src/external/bsd/tmux/usr.bin/tmux/
Dutempter.c63 struct utmpx ut; in doutmpx()

123