Home
last modified time | relevance | path

Searched refs:utmp (Results 1 – 25 of 69) sorted by relevance

123

/minix3/external/bsd/tmux/dist/
H A Dutmp.c62 struct utmp ut;
108 login_utmp(struct utmp *utmp, const char *username, const char *hostname, in login_utmp() argument
111 (void)memset(utmp, 0, sizeof(*utmp)); in login_utmp()
112 utmp->ut_time = now->tv_sec; in login_utmp()
113 (void)strncpy(utmp->ut_name, username, sizeof(utmp->ut_name)); in login_utmp()
115 (void)strncpy(utmp->ut_host, hostname, sizeof(utmp->ut_host)); in login_utmp()
116 (void)strncpy(utmp->ut_line, tty, sizeof(utmp->ut_line)); in login_utmp()
117 login(utmp); in login_utmp()
121 logout_utmp(struct utmp *utmp, const struct timeval *now) in logout_utmp() argument
123 logout(utmp->ut_line); in logout_utmp()
/minix3/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dx_long.c113 unsigned long utmp; in long_i2c() local
129 utmp = -ltmp - 1; in long_i2c()
131 utmp = ltmp; in long_i2c()
132 clen = BN_num_bits_word(utmp); in long_i2c()
146 cont[i] = (unsigned char)(utmp & 0xff); in long_i2c()
149 utmp >>= 8; in long_i2c()
160 unsigned long utmp = 0; in long_c2i() local
171 utmp = 0; in long_c2i()
173 utmp <<= 8; in long_c2i()
175 utmp |= cont[i] ^ 0xff; in long_c2i()
[all …]
/minix3/lib/libc/gen/
H A Dutmp.c46 static struct utmp utmp; variable
58 struct utmp *
71 numentries = st.st_size / sizeof(utmp); in getutent()
72 if ((off_t)(numentries * sizeof(utmp)) != st.st_size) in getutent()
75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1) in getutent()
76 return &utmp; in getutent()
/minix3/lib/libutil/
H A Dlogin.c53 login(const struct utmp *ut) in login()
62 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); in login()
63 (void)write(fd, ut, sizeof(struct utmp)); in login()
67 (void)write(fd, ut, sizeof(struct utmp)); in login()
H A Dlogwtmp.c56 struct utmp ut; in logwtmp()
71 if (write(fd, &ut, sizeof(struct utmp)) != sizeof(struct utmp)) in logwtmp()
/minix3/lib/libc/compat/include/
H A Dutmpx.h88 struct utmp;
89 void getutmp(const struct utmpx50 *, struct utmp *);
90 void __getutmp50(const struct utmpx *, struct utmp *);
91 void getutmpx(const struct utmp *, struct utmpx50 *);
92 void __getutmpx50(const struct utmp *, struct utmpx *);
H A Dutmp.h51 utmp_to_utmp50(const struct utmp *ut, struct utmp50 *ut50) in utmp_to_utmp50()
58 utmp50_to_utmp(const struct utmp50 *ut50, struct utmp *ut) in utmp50_to_utmp()
65 struct utmp *__getutent50(void);
/minix3/usr.bin/login/
H A Dcommon.c301 struct utmp utmp; in doutmp() local
303 (void)memset((void *)&utmp, 0, sizeof(utmp)); in doutmp()
304 utmp.ut_time = now.tv_sec; in doutmp()
305 (void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name)); in doutmp()
307 (void)strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host)); in doutmp()
308 (void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line)); in doutmp()
309 login(&utmp); in doutmp()
/minix3/etc/rc.d/
H A Dsysdb84 if [ ! -f /var/run/utmp$i ]; then
87 install -c -m 664 -g utmp /dev/null /var/run/utmp$i
/minix3/include/
H A Dutmpx.h148 struct utmp;
149 void getutmp(const struct utmpx *, struct utmp *) __RENAME(__getutmp50);
150 void getutmpx(const struct utmp *, struct utmpx *) __RENAME(__getutmpx50);
H A Dutmp.h56 struct utmp { struct
67 struct utmp *getutent(void) __RENAME(__getutent50); argument
H A Dutil.h68 struct utmp;
88 void login(const struct utmp *) __RENAME(__login50);
/minix3/lib/libutil/compat/
H A Dutil.h43 struct utmp;
58 void __login50(const struct utmp *);
H A Dcompat_login.c64 struct utmp ut; in login()
70 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); in login()
/minix3/libexec/ftpd/
H A Dlogwtmp.c89 struct utmp ut; in ftpd_logwtmp()
99 if (write(fd, (char *)&ut, sizeof(struct utmp)) != in ftpd_logwtmp()
100 sizeof(struct utmp)) in ftpd_logwtmp()
H A Dlogutmp.c80 typedef struct utmp UTMP;
91 ftpd_login(const struct utmp *ut) in ftpd_login()
/minix3/usr.bin/last/
H A Dwant.c31 static struct utmp *buf;
35 static int want(struct utmp *, int);
36 static const char *gethost(struct utmp *, const char *, int);
40 gethost(struct utmp *ut, const char *host, int numeric) in gethost()
70 struct utmp *bp; /* current structure */ in wtmp()
268 want(struct utmp *bp, int check) in want()
/minix3/bin/ed/
H A Dundo.c83 undo_t utmp; \
84 utmp = x, x = y, y = utmp; \
/minix3/crypto/external/bsd/heimdal/dist/
H A Dconfigure.ac382 utmp.h \
541 dnl Check for fields in struct utmp
544 AC_HAVE_STRUCT_FIELD(struct utmp, ut_addr, [#include <utmp.h>])
545 AC_HAVE_STRUCT_FIELD(struct utmp, ut_host, [#include <utmp.h>])
546 AC_HAVE_STRUCT_FIELD(struct utmp, ut_id, [#include <utmp.h>])
547 AC_HAVE_STRUCT_FIELD(struct utmp, ut_pid, [#include <utmp.h>])
548 AC_HAVE_STRUCT_FIELD(struct utmp, ut_type, [#include <utmp.h>])
549 AC_HAVE_STRUCT_FIELD(struct utmp, ut_user, [#include <utmp.h>])
/minix3/minix/man/man5/
H A DMakefile4 termcap.5 ttytab.5 TZ.5 utmp.5 \
/minix3/lib/libc/compat/gen/
H A Dcompat_utmp.c53 cvt(struct utmp *ut) in cvt()
H A Dcompat_utmpx.c181 getutmp(const struct utmpx50 *utx50, struct utmp *ut) in getutmp()
189 getutmpx(const struct utmp *ut, struct utmpx50 *utx50) in getutmpx()
/minix3/usr.bin/who/
H A Dutmpentry.c60 static void getentry(struct utmpentry *, struct utmp *);
188 struct utmp *ut; in getutentries()
272 getentry(struct utmpentry *e, struct utmp *up) in getentry()
/minix3/etc/
H A Dgroup31 utmp:*:45:
/minix3/external/bsd/libpcap/dist/lbl/
H A Dos-sunos4.h118 struct utmp;
120 void login(struct utmp *);

123