/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...] |
H A D | acctwtmp.c | 32 * writes utmpx.h record (with current time) to specific file 39 #include <utmpx.h> 43 struct utmpx wb; 48 struct utmpx *p;
|
H A D | fwtmp.c | 35 #include <utmpx.h> 39 struct utmpx Ut; 42 static int inp(FILE *, struct utmpx *); 105 inp(FILE *file, struct utmpx *u)
|
/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/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/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/cmd/oamuser/user/ |
H A D | isbusy.c | 35 #include <utmpx.h> 48 struct utmpx *utxptr;
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | lseek.c | 46 sizeof (struct utmpx)); 48 ret = getmodsize(ret, sizeof (struct utmpx),
|
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/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/killall/ |
H A D | killall.c | 35 #include <utmpx.h> 43 struct utmpx *u;
|
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | read.c | 54 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx, really) */ 56 sizeof (struct utmpx)); 71 ret = getmodsize(ret, sizeof (struct utmpx), 88 struct utmpx *utx; 90 utx = (struct utmpx *)nbuf;
|
H A D | write.c | 57 if (fd_get(fd) != -1) { /* writing utmp (utmpx actually) */ 59 sizeof (struct utmpx)); 79 ret = getmodsize(ret, sizeof (struct utmpx), 101 struct utmpx *utx; 103 utx = (struct utmpx *) nbuf;
|
H A D | readv.c | 56 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx really) */ 60 sizeof (struct utmpx)); 76 ret = getmodsize(ret, sizeof (struct utmpx),
|
H A D | writev.c | 58 if (fd_get(fd) != -1) { /* writing utmp (utmpx, actually) */ 62 sizeof (struct utmpx)); 82 ret = getmodsize(ret, sizeof (struct utmpx),
|
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | read.c | 54 if (fd_get(fd) != -1) { /* we're reading utmp (utmpx, really) */ 56 sizeof (struct utmpx)); 70 ret = getmodsize(ret, sizeof (struct utmpx), 83 struct utmpx *utx; 85 utx = (struct utmpx *)nbuf;
|
H A D | readv.c | 59 sizeof (struct utmpx)); 73 ret = getmodsize(ret, sizeof (struct utmpx),
|
H A D | write.c | 55 sizeof (struct utmpx)); 73 ret = getmodsize(ret, sizeof (struct utmpx), 89 struct utmpx *utx; 91 utx = (struct utmpx *) nbuf;
|
H A D | writev.c | 59 sizeof (struct utmpx)); 77 ret = getmodsize(ret, sizeof (struct utmpx),
|
/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/lib/libbc/libc/gen/common/ |
H A D | ttyslot.c | 55 struct utmpx utx; 68 AT_FDCWD, "/etc/utmpx", O_RDONLY)) == -1) { 69 perror("ttyslot: open of /etc/utmpx failed:"); 74 while (_read(fd, &utx, sizeof (struct utmpx)) > 0) {
|
/illumos-gate/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 27 * utmp_update - Update the /var/adm/utmpx file 30 * so we only handle updating the utmpx file now. 31 * The utmpx routines in libc "simulate" calls 36 * write to /var/adm/utmpx. Non-root callers of pututxline 37 * will invoke this program to write the utmpx entry. 47 #include <utmpx.h> 81 #define MAX_SYSLEN 257 /* From utmpx.h host length + nul */ 104 static void load_utmpx_struct(struct utmpx *, char **); 106 static void check_utmpx(struct utmpx *); 110 static int invalid_utmpx(struct utmpx *, struc [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/lastcomm/ |
H A D | lastcomm.h | 50 #include <utmpx.h> 67 * utmpx defines wider fields for user and line. For compatibility of output, 76 static struct utmpx dummy;
|