/titanic_44/usr/src/head/ |
H A D | utmpx.h | 67 struct utmpx { struct 131 extern struct utmpx *getutxent(void); 132 extern struct utmpx *getutxid(const struct utmpx *); 133 extern struct utmpx *getutxline(const struct utmpx *); 134 extern struct utmpx *pututxline(const struct utmpx *); 139 extern struct utmpx *makeutx(const struct utmpx *); 140 extern struct utmpx *modutx(const struct utmpx *); 141 extern void getutmp(const struct utmpx *, struct utmp *); 142 extern void getutmpx(const struct utmp *, struct utmpx *); 144 extern void updwtmpx(const char *, struct utmpx *);
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 92 static void utmpx_frec2api(const struct futmpx *, struct utmpx *); 93 static void utmpx_api2frec(const struct utmpx *, struct futmpx *); 102 static struct utmpx *invoke_utmp_update(const struct utmpx *); 104 static void putoneutx(const struct utmpx *, off_t); 131 static struct utmpx ubuf; /* Last entry returned to client */ 139 utmpx_frec2api(const struct futmpx *src, struct utmpx *dst) in utmpx_frec2api() 160 utmpx_api2frec(const struct utmpx *src, struct futmpx *dst) in utmpx_api2frec() 257 struct utmpx * 274 struct utmpx *utmpx; in getutent() local 285 if ((utmpx = getutxent()) == NULL) in getutent() [all …]
|
/titanic_44/usr/src/cmd/acct/ |
H A D | utmp2wtmp.c | 47 struct utmpx *utmpx; in main() local 57 while ((utmpx = getutxent()) != NULL) { in main() 58 if ((utmpx->ut_type == USER_PROCESS) && !(nonuserx(*utmpx))) { in main() 59 time(&utmpx->ut_xtime); in main() 60 fwrite(utmpx, sizeof (*utmpx), 1, fp); in main()
|
H A D | closewtmp.c | 44 struct utmpx *utmpx; in main() local 47 while ((utmpx = getutxent()) != NULL) { in main() 48 if (utmpx->ut_type == USER_PROCESS) { in main() 49 utmpx->ut_type = DEAD_PROCESS; in main() 50 time(&utmpx->ut_xtime); in main() 51 (void) updwtmpx(WTMPX_FILE, utmpx); in main()
|
H A D | acctwtmp.c | 43 struct utmpx wb; 48 struct utmpx *p; in main()
|
H A D | fwtmp.c | 39 struct utmpx Ut; 42 static int inp(FILE *, struct utmpx *); 105 inp(FILE *file, struct utmpx *u) in inp()
|
/titanic_44/usr/src/ucbcmd/users/ |
H A D | users.c | 35 struct utmpx *utmpx; in main() local 47 while ((utmpx = getutxent()) != NULL) { in main() 48 if (utmpx->ut_name[0] == '\0') in main() 50 if (utmpx->ut_type != USER_PROCESS) in main() 52 if (nonuserx(*utmpx)) in main() 60 *namp++ = strndup(utmpx->ut_name, sizeof (utmpx->ut_name)); in main()
|
/titanic_44/usr/src/lib/libmail/common/ |
H A D | notifyu.c | 58 struct utmpx utmpx, *putmpx = &utmpx; in notify() local 64 if (strncmp(user, utmpx.ut_name, in notify() 65 sizeof (utmpx.ut_name)) == 0) { in notify() 66 char tty[sizeof (utmpx.ut_line)+1]; in notify() 72 for (i = 0; i < sizeof (utmpx.ut_line); i++) in notify() 73 tty[i] = utmpx.ut_line[i]; in notify()
|
/titanic_44/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 66 struct utmpx utmpx; /* prototype utmpx entry */ local 67 struct utmpx *up = &utmpx; /* and a pointer to it */ 69 (void) memset(up, '\0', sizeof (utmpx)); 95 struct utmpx *u; in checkut_line() 128 struct utmpx *up; 129 struct utmpx ut; 187 struct utmpx *u;
|
/titanic_44/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 104 static void load_utmpx_struct(struct utmpx *, char **); 106 static void check_utmpx(struct utmpx *); 110 static int invalid_utmpx(struct utmpx *, struct utmpx *); 118 struct utmpx *rutmpx; in main() 119 struct utmpx entryx; in main() 175 for (rutmpx = getutxent(); rutmpx != (struct utmpx *)NULL; in main() 198 if (pututxline(&entryx) == (struct utmpx *)NULL) { in main() 226 load_utmpx_struct(struct utmpx *entryx, char *argv[]) in load_utmpx_struct() 233 (void) memset(entryx, 0, sizeof (struct utmpx)); in load_utmpx_struct() 308 check_utmpx(struct utmpx *entryx) in check_utmpx() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rwhod.c | 359 struct utmpx *utmpx; variable 368 struct utmpx *utp; in onalrm() 369 struct utmpx *utmpxbegin; in onalrm() 386 utmpxsize = utmpxent * sizeof (struct utmpx); in onalrm() 387 utmpx = realloc(utmpx, utmpxsize); in onalrm() 388 if (utmpx == NULL) { in onalrm() 394 utmpxbegin = utmpx; in onalrm() 398 (void) memcpy(utmpxbegin++, utp, sizeof (struct utmpx)); in onalrm() 402 if (utmpx[i].ut_name[0] && in onalrm() 403 utmpx[i].ut_type == USER_PROCESS) { in onalrm() [all …]
|
H A D | in.comsat.c | 70 struct utmpx *utmp = NULL; 127 void notify(struct utmpx *utp, int offset); 230 utmpsize = statbf.st_size + 10 * sizeof (struct utmpx); in onalrm() 232 utmp = (struct utmpx *)realloc(utmp, utmpsize); in onalrm() 234 utmp = (struct utmpx *)malloc(utmpsize); in onalrm() 241 nutmp = read(uf, utmp, statbf.st_size)/sizeof (struct utmpx); in onalrm() 250 struct utmpx *utp = &utmp[nutmp]; 281 struct utmpx *utp; in notify()
|
/titanic_44/usr/src/cmd/login/ |
H A D | login.c | 152 #define NMAX sizeof (((struct utmpx *)0)->ut_name) 153 #define HMAX sizeof (((struct utmpx *)0)->ut_host) 2014 struct utmpx *u = (struct utmpx *)0; in update_utmpx_entry() 2015 struct utmpx utmpx; in update_utmpx_entry() local 2038 (void) memset((void *)&utmpx, 0, sizeof (utmpx)); in update_utmpx_entry() 2039 (void) time(&utmpx.ut_tv.tv_sec); in update_utmpx_entry() 2040 utmpx.ut_pid = getpid(); in update_utmpx_entry() 2043 SCPYN(utmpx.ut_host, remote_host); in update_utmpx_entry() 2045 if (tmplen < sizeof (utmpx.ut_host)) in update_utmpx_entry() 2046 utmpx.ut_syslen = tmplen; in update_utmpx_entry() [all …]
|
/titanic_44/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | read.c | 56 sizeof (struct utmpx)); in bc_read() 70 ret = getmodsize(ret, sizeof (struct utmpx), in bc_read() 83 struct utmpx *utx; in to_utmp() 85 utx = (struct utmpx *)nbuf; in to_utmp()
|
H A D | write.c | 55 sizeof (struct utmpx)); in bc_write() 73 ret = getmodsize(ret, sizeof (struct utmpx), in bc_write() 89 struct utmpx *utx; in conv2utmpx() 91 utx = (struct utmpx *) nbuf; in conv2utmpx()
|
/titanic_44/usr/src/ucbcmd/shutdown/ |
H A D | shutdown.c | 102 struct utmpx *utmpx; variable 114 char term[sizeof tpath + sizeof (utmpx->ut_line)]; 341 while ((utmpx = getutxent()) != NULL) { in main() 342 if (utmpx->ut_name[0] && in main() 343 strncmp(utmpx->ut_name, IGNOREUSER, in main() 344 sizeof (utmpx->ut_name))) { in main() 348 if (utmpx->ut_type != USER_PROCESS && in main() 349 utmpx->ut_user[0] != '\0') in main() 355 (void) strncat(term, utmpx->ut_line, in main() 356 sizeof (utmpx->ut_line)); in main() [all …]
|
/titanic_44/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | read.c | 56 sizeof (struct utmpx)); in bc_read() 71 ret = getmodsize(ret, sizeof (struct utmpx), in bc_read() 88 struct utmpx *utx; in to_utmp() 90 utx = (struct utmpx *)nbuf; in to_utmp()
|
H A D | write.c | 59 sizeof (struct utmpx)); in bc_write() 79 ret = getmodsize(ret, sizeof (struct utmpx), in bc_write() 101 struct utmpx *utx; in conv2utmpx() 103 utx = (struct utmpx *) nbuf; in conv2utmpx()
|
/titanic_44/usr/src/cmd/svc/startd/ |
H A D | utmpx.c | 65 struct utmpx ut, *oldu; in utmpx_mark_init() 130 struct utmpx *up; in utmpx_mark_dead() 211 struct utmpx *up; in utmpx_get_runlevel() 231 struct utmpx u; in utmpx_set_runlevel() 232 struct utmpx *oup; in utmpx_set_runlevel() 241 bzero(&u, sizeof (struct utmpx)); in utmpx_set_runlevel() 309 struct utmpx u; in utmpx_write_entry() 310 struct utmpx *oup; in utmpx_write_entry() 313 bzero(&u, sizeof (struct utmpx)); in utmpx_write_entry()
|
/titanic_44/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | check.c | 70 struct utmpx utmpx; in rckrunlevel() local 71 struct utmpx *putmpx; in rckrunlevel() 87 utmpx.ut_type = RUN_LVL; in rckrunlevel() 88 putmpx = getutxid(&utmpx); in rckrunlevel()
|
/titanic_44/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 549 struct utmpx *utmpx; in scan_utmps() local 557 while ((utmpx = getutxent()) != NULL) { in scan_utmps() 558 if (utmpx->ut_type == USER_PROCESS) { in scan_utmps() 562 if (proc_is_alive(utmpx->ut_pid)) { in scan_utmps() 567 if (find_pid(utmpx->ut_pid, &i) == 0) in scan_utmps() 568 add_pid(utmpx->ut_pid); /* No, add it */ in scan_utmps() 574 if (find_pid(utmpx->ut_pid, &i) == 1) in scan_utmps() 575 rem_pid(utmpx->ut_pid, i, CLEANIT); in scan_utmps() 577 clean_utmpx_ent(utmpx); in scan_utmps() 931 struct utmpx *u; in clean_entry() [all …]
|
/titanic_44/usr/src/cmd/last/ |
H A D | last.c | 63 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 64 #define LMAX (sizeof (((struct utmpx *)0)->ut_line)) 65 #define HMAX (sizeof (((struct utmpx *)0)->ut_host)) 88 static struct utmpx buf[128]; 111 static int want(struct utmpx *, char **, char **); 112 static void record_time(time_t *, int *, int, struct utmpx *); 125 struct utmpx *bp; in main() 458 want(struct utmpx *bp, char **host, char **user) in want() 525 record_time(time_t *otime, int *print, int i, struct utmpx *bp) in record_time()
|
/titanic_44/usr/src/cmd/ssh/sshd/ |
H A D | loginrec.c | 190 void set_utmpx_time(struct logininfo *li, struct utmpx *ut); 191 void construct_utmpx(struct logininfo *li, struct utmpx *ut); 671 set_utmpx_time(struct logininfo *li, struct utmpx *utx) in set_utmpx_time() 684 construct_utmpx(struct logininfo *li, struct utmpx *utx) in construct_utmpx() 906 utmpx_write_library(struct logininfo *li, struct utmpx *utx) in utmpx_write_library() 921 utmpx_write_direct(struct logininfo *li, struct utmpx *utx) in utmpx_write_direct() 931 struct utmpx utx; in utmpx_perform_login() 952 struct utmpx utx; in utmpx_perform_logout() 1167 wtmpx_write(struct logininfo *li, struct utmpx *utx) in wtmpx_write() 1194 struct utmpx utx; in wtmpx_perform_login() [all …]
|
/titanic_44/usr/src/lib/libbc/libc/sys/common/ |
H A D | lseek.c | 46 sizeof (struct utmpx)); in lseek() 48 ret = getmodsize(ret, sizeof (struct utmpx), in lseek()
|
/titanic_44/usr/src/lib/libbc/libc/gen/common/ |
H A D | ttyslot.c | 55 struct utmpx utx; in ttyslot() 74 while (_read(fd, &utx, sizeof (struct utmpx)) > 0) { in ttyslot()
|