/illumos-gate/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 …]
|
/illumos-gate/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 *);
|
/illumos-gate/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 | fwtmp.c | 37 struct utmpx Ut; 40 static int inp(FILE *, struct utmpx *); 103 inp(FILE *file, struct utmpx *u) in inp()
|
H A D | acctwtmp.c | 42 struct utmpx wb; 47 struct utmpx *p; in main()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | notifyu.c | 54 struct utmpx utmpx, *putmpx = &utmpx; in notify() local 60 if (strncmp(user, utmpx.ut_name, in notify() 61 sizeof (utmpx.ut_name)) == 0) { in notify() 62 char tty[sizeof (utmpx.ut_line)+1]; in notify() 68 for (i = 0; i < sizeof (utmpx.ut_line); i++) in notify() 69 tty[i] = utmpx.ut_line[i]; in notify()
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 61 struct utmpx utmpx; /* prototype utmpx entry */ in account() local 62 struct utmpx *up = &utmpx; /* and a pointer to it */ in account() 64 (void) memset(up, '\0', sizeof (utmpx)); in account() 90 struct utmpx *u; in checkut_line() 122 struct utmpx *up; in cleanut() 180 struct utmpx *u; in getty_account()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rwhod.c | 357 struct utmpx *utmpx; variable 366 struct utmpx *utp; in onalrm() 367 struct utmpx *utmpxbegin; in onalrm() 384 utmpxsize = utmpxent * sizeof (struct utmpx); in onalrm() 385 utmpx = realloc(utmpx, utmpxsize); in onalrm() 386 if (utmpx == NULL) { in onalrm() 392 utmpxbegin = utmpx; in onalrm() 396 (void) memcpy(utmpxbegin++, utp, sizeof (struct utmpx)); in onalrm() 400 if (utmpx[i].ut_name[0] && in onalrm() 401 utmpx[i].ut_type == USER_PROCESS) { in onalrm() [all …]
|
H A D | in.comsat.c | 67 struct utmpx *utmp = NULL; 122 void notify(struct utmpx *utp, int offset); 223 utmpsize = statbf.st_size + 10 * sizeof (struct utmpx); in onalrm() 225 utmp = (struct utmpx *)realloc(utmp, utmpsize); in onalrm() 227 utmp = (struct utmpx *)malloc(utmpsize); in onalrm() 234 nutmp = read(uf, utmp, statbf.st_size)/sizeof (struct utmpx); in onalrm() 242 struct utmpx *utp = &utmp[nutmp]; in mailfor() 272 notify(struct utmpx *utp, int offset) in notify()
|
/illumos-gate/usr/src/cmd/login/ |
H A D | login.c | 154 #define NMAX sizeof (((struct utmpx *)0)->ut_name) 155 #define HMAX sizeof (((struct utmpx *)0)->ut_host) 2020 struct utmpx *u = NULL; in update_utmpx_entry() 2021 struct utmpx utmpx; in update_utmpx_entry() local 2044 (void) memset((void *)&utmpx, 0, sizeof (utmpx)); in update_utmpx_entry() 2045 (void) time(&utmpx.ut_tv.tv_sec); in update_utmpx_entry() 2046 utmpx.ut_pid = getpid(); in update_utmpx_entry() 2049 SCPYN(utmpx.ut_host, remote_host); in update_utmpx_entry() 2051 if (tmplen < sizeof (utmpx.ut_host)) in update_utmpx_entry() 2052 utmpx.ut_syslen = tmplen; in update_utmpx_entry() [all …]
|
/illumos-gate/usr/src/ucbcmd/shutdown/ |
H A D | shutdown.c | 100 struct utmpx *utmpx; variable 112 char term[sizeof tpath + sizeof (utmpx->ut_line)]; 339 while ((utmpx = getutxent()) != NULL) { in main() 340 if (utmpx->ut_name[0] && in main() 341 strncmp(utmpx->ut_name, IGNOREUSER, in main() 342 sizeof (utmpx->ut_name))) { in main() 346 if (utmpx->ut_type != USER_PROCESS && in main() 347 utmpx->ut_user[0] != '\0') in main() 353 (void) strncat(term, utmpx->ut_line, in main() 354 sizeof (utmpx->ut_line)); in main() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 550 struct utmpx *utmpx; in scan_utmps() local 558 while ((utmpx = getutxent()) != NULL) { in scan_utmps() 559 if (utmpx->ut_type == USER_PROCESS) { in scan_utmps() 563 if (proc_is_alive(utmpx->ut_pid)) { in scan_utmps() 568 if (find_pid(utmpx->ut_pid, &i) == 0) in scan_utmps() 569 add_pid(utmpx->ut_pid); /* No, add it */ in scan_utmps() 575 if (find_pid(utmpx->ut_pid, &i) == 1) in scan_utmps() 576 rem_pid(utmpx->ut_pid, i, CLEANIT); in scan_utmps() 578 clean_utmpx_ent(utmpx); in scan_utmps() 932 struct utmpx *u; in clean_entry() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | check.c | 74 struct utmpx utmpx; in rckrunlevel() local 75 struct utmpx *putmpx; in rckrunlevel() 91 utmpx.ut_type = RUN_LVL; in rckrunlevel() 92 putmpx = getutxid(&utmpx); in rckrunlevel()
|
/illumos-gate/usr/src/cmd/last/ |
H A D | last.c | 65 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 66 #define LMAX (sizeof (((struct utmpx *)0)->ut_line)) 67 #define HMAX (sizeof (((struct utmpx *)0)->ut_host)) 91 static struct utmpx buf[128]; 114 static int want(struct utmpx *, char **, char **); 115 static void record_time(time_t *, int *, int, struct utmpx *); 129 struct utmpx *bp; in main() 511 want(struct utmpx *bp, char **host, char **user) in want() 578 record_time(time_t *otime, int *print, int i, struct utmpx *bp) in record_time()
|
/illumos-gate/usr/src/lib/libutempter/common/ |
H A D | utempter.c | 42 struct utmpx ut; in utempter_update_utmpx() 60 struct utmpx *ut1; in utempter_update_utmpx() 61 struct utmpx ut2; in utempter_update_utmpx()
|
/illumos-gate/usr/src/cmd/wall/ |
H A D | wall.c | 67 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 68 #define LMAX (sizeof (((struct utmpx *)0)->ut_line)) 83 static void sendmes(struct utmpx *, zoneid_t); 296 struct utmpx *p; in sendmes_tozone() 337 sendmes(struct utmpx *p, zoneid_t zid) in sendmes()
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sac.c | 301 struct utmpx *uxp; /* working pointer */ in readutmpx() 460 struct utmpx ut; in cleanutx() 461 struct utmpx *up; in cleanutx() 533 struct utmpx utmpx; /* prototype utmpx entry */ in account() local 534 struct utmpx *up = &utmpx; /* and a pointer to it */ in account() 536 (void) memset(up, '\0', sizeof (utmpx)); in account()
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 82 static struct utmpx dummy; 149 struct utmpx *ut; in main() 150 struct utmpx *utmpbegin; in main() 151 struct utmpx *utmpend; in main() 152 struct utmpx *utp; in main() 273 if ((ut = calloc(entries, sizeof (struct utmpx))) == NULL) in main()
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 79 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 80 #define LMAX (sizeof (((struct utmpx *)0)->ut_line)) 182 struct utmpx *ut; in main() 183 struct utmpx *utmpbegin; in main() 184 struct utmpx *utmpend; in main() 185 struct utmpx *utp; in main() 296 if ((ut = calloc(entries, sizeof (struct utmpx))) == NULL) in main()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | check.c | 295 struct utmpx utmpx; in ckrunlevel() local 296 struct utmpx *putmpx; in ckrunlevel() 310 utmpx.ut_type = RUN_LVL; in ckrunlevel() 311 putmpx = getutxid(&utmpx); in ckrunlevel()
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-library-libutempter.p5m | 13 set name=pkg.summary value="Interface to record user sessions in utmpx database" 15 value="Interface to record user sessions in utmpx database"
|