/illumos-gate/usr/src/cmd/acct/ |
H A D | closewtmp.c | 39 #include <utmpx.h> 44 struct utmpx *utmpx; local 47 while ((utmpx = getutxent()) != NULL) { 48 if (utmpx->ut_type == USER_PROCESS) { 49 utmpx->ut_type = DEAD_PROCESS; 50 time(&utmpx->ut_xtime); 51 (void) updwtmpx(WTMPX_FILE, utmpx);
|
H A D | utmp2wtmp.c | 32 * is being run. Look at utmpx, and update the time stamp. New info 38 #include <utmpx.h> 47 struct utmpx *utmpx; local 57 while ((utmpx = getutxent()) != NULL) { 58 if ((utmpx->ut_type == USER_PROCESS) && !(nonuserx(*utmpx))) { 59 time(&utmpx->ut_xtime); 60 fwrite(utmpx, sizeof (*utmpx), [all...] |
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | notifyu.c | 36 #include <utmpx.h> 58 struct utmpx utmpx, *putmpx = &utmpx; local 64 if (strncmp(user, utmpx.ut_name, 65 sizeof (utmpx.ut_name)) == 0) { 66 char tty[sizeof (utmpx.ut_line)+1]; 72 for (i = 0; i < sizeof (utmpx.ut_line); i++) 73 tty[i] = utmpx.ut_line[i]; 90 (void) fprintf(stderr, "%s in utmpx i [all...] |
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 49 #include <utmpx.h> 58 * account - create a utmpx record for service 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; 128 struct utmpx *u [all...] |
/illumos-gate/usr/src/ucbcmd/users/ |
H A D | users.c | 21 #include <utmpx.h> 35 struct utmpx *utmpx; local 47 while ((utmpx = getutxent()) != NULL) { 48 if (utmpx->ut_name[0] == '\0') 50 if (utmpx->ut_type != USER_PROCESS) 52 if (nonuserx(*utmpx)) 60 *namp++ = strndup(utmpx->ut_name, sizeof (utmpx->ut_name));
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | compat.h | 35 * used to hold the fd of the utmpx or wtmpx file when the application 36 * attempted to open utmp or wtmp. Since we now only support utmpx 39 * the fd is "special", in that we have to do utmp to utmpx 65 struct utmpx struct
|
/illumos-gate/usr/src/head/ |
H A D | utmpx.h | 49 #define _UTMPX_FILE "/var/adm/utmpx" 60 * This data structure describes the utmpx entries returned by 62 * correspond to the contents of the utmpx or wtmpx files. 67 struct utmpx { struct 123 /* and marking the utmpx entry as a normal user */ 131 extern struct utmpx *getutxent(void); 132 extern struct utmpx *getutxid(const struct utmpx *); 133 extern struct utmpx *getutxline(const struct utmpx *); [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | check.c | 35 #include <utmpx.h> 70 struct utmpx utmpx; local 71 struct utmpx *putmpx; 87 utmpx.ut_type = RUN_LVL; 88 putmpx = getutxid(&utmpx);
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sac.c | 44 #include <utmpx.h> 286 * readutmpx - read the utmpx file to find out the ids of running port 303 struct utmpx *uxp; /* working pointer */ 339 "ambiguous utmpx entry <%.8s>", 424 * clean up old utmpx if its there 430 * create a utmpx entry and set initial states 449 * cleanutx - clean out a utmpx record for a port monitor 463 struct utmpx ut; 464 struct utmpx *up; 470 * check to see if there is a utmpx entr 537 struct utmpx utmpx; /* prototype utmpx entry */ local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | check.c | 38 #include <utmpx.h> 295 struct utmpx utmpx; local 296 struct utmpx *putmpx; 310 utmpx.ut_type = RUN_LVL; 311 putmpx = getutxid(&utmpx); 322 * out of the utmpx entry...the level starts in column
|
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 43 * its utmpx entry on termination. 46 * Also the program periodically scans the /etc/utmpx file for 62 #include <utmpx.h> 155 * Scanner - periodically scans the utmpx file for stale entries 160 static void scan_utmps(); /* Scanner, reads utmpx file */ 172 static void clean_utmpx_ent(); /* Cleans a utmpx entry */ 304 * Loop here scanning the utmpx file and waiting for processes 336 * the tables by scanning utmpx 539 * scan_utmps() - Scan the utmpx file. 549 struct utmpx *utmp local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rwhod.c | 52 #include <utmpx.h> 359 struct utmpx *utmpx; variable in typeref:struct:utmpx 368 struct utmpx *utp; 369 struct utmpx *utmpxbegin; 386 utmpxsize = utmpxent * sizeof (struct utmpx); 387 utmpx = realloc(utmpx, utmpxsize); 388 if (utmpx == NULL) { 394 utmpxbegin = utmpx; 484 struct utmpx *utmpx, utmpx_id; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 42 * Routines to read and write the /etc/utmpx file. Also contains 52 #include <utmpx.h> 68 #define MAXFILE 79 /* Maximum pathname length for "utmpx" file */ 74 #define VAR_UTMPX_FILE "/var/adm/utmpx" /* for sanity check only */ 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); 119 static int fd = -1; /* File descriptor for the utmpx fil 274 struct utmpx *utmpx; local 389 struct utmpx utmpx; local 452 struct utmpx utmpx; local 704 struct utmpx utmpx; local 892 struct utmpx utmpx; local 960 struct utmpx utmpx; local 1242 struct utmpx utmpx; local [all...] |
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rstat_proc.c | 37 #include <utmpx.h> 178 struct utmpx *utmpx, utmpx_id; local 200 * To get the boot time, use utmpx, which is per-zone, but fall back 201 * to the system-wide kstat if utmpx is hosed for any reason. 204 if ((utmpx = getutxid(&utmpx_id)) != NULL) 205 btm = utmpx->ut_tv;
|
/illumos-gate/usr/src/ucbcmd/shutdown/ |
H A D | shutdown.c | 45 #include <utmpx.h> 102 struct utmpx *utmpx; variable in typeref:struct:utmpx 114 char term[sizeof tpath + sizeof (utmpx->ut_line)]; 341 while ((utmpx = getutxent()) != NULL) { 342 if (utmpx->ut_name[0] && 343 strncmp(utmpx->ut_name, IGNOREUSER, 344 sizeof (utmpx->ut_name))) { 348 if (utmpx->ut_type != USER_PROCESS && 349 utmpx [all...] |
/illumos-gate/usr/src/cmd/login/ |
H A D | login.c | 74 #include <utmpx.h> 152 #define NMAX sizeof (((struct utmpx *)0)->ut_name) 153 #define HMAX sizeof (((struct utmpx *)0)->ut_host) 209 * login_pid, used to find utmpx entry to update. 587 * NOTE: telnetd and rlogind rely upon this updating of utmpx 2002 * update_utmpx_entry - Searchs for the correct utmpx entry, making an 2011 static char *errmsg = "No utmpx entry. " 2014 struct utmpx *u = (struct utmpx *)0; 2015 struct utmpx utmp local [all...] |
/illumos-gate/usr/src/man/man3head/ |
H A D | Makefile | 103 utmpx.h.3head \ 192 utmpx.3head \ 281 utmpx.3head := LINKSRC = utmpx.h.3head
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | sys-solaris.c | 57 #include <utmpx.h> 2874 static struct utmpx utmpx; local 2880 (void) strncpy(utmpx.ut_user, name, sizeof (utmpx.ut_user)); 2881 (void) strncpy(utmpx.ut_id, ifname, sizeof (utmpx.ut_id)); 2882 (void) strncpy(utmpx.ut_line, line, sizeof (utmpx.ut_line)); 2884 utmpx [all...] |
/illumos-gate/usr/src/cmd/find/ |
H A D | find.c | 1591 #include <utmpx.h> 1594 struct utmpx utmpx; variable in typeref:struct:utmpx 1595 #define NMAX (sizeof (utmpx.ut_name))
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 6227 #include <utmpx.h> 6229 struct utmpx utmpx; variable in typeref:struct:utmpx 6231 #define NMAX (sizeof (utmpx.ut_name))
|