HomeSort by relevance Sort by last modified time
    Searched defs:utmpx (Results 1 - 17 of 17) sorted by null

  /netvirt/usr/src/cmd/acct/
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);
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) && !(nonuser(*utmpx))) {
59 time(&utmpx->ut_xtime);
60 fwrite(utmpx, sizeof(*utmpx), 1, fp)
    [all...]
  /netvirt/usr/src/cmd/ttymon/
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 *up
    [all...]
  /netvirt/usr/src/lib/libmail/common/
notifyu.c 39 #include <utmpx.h>
61 struct utmpx utmpx, *putmpx = &utmpx; local
67 if (strncmp(user, utmpx.ut_name,
68 sizeof (utmpx.ut_name)) == 0) {
69 char tty[sizeof (utmpx.ut_line)+1];
75 for (i = 0; i < sizeof (utmpx.ut_line); i++)
76 tty[i] = utmpx.ut_line[i];
93 (void) fprintf(stderr, "%s in utmpx is
    [all...]
  /netvirt/usr/src/ucbcmd/users/
users.c 25 #include <utmpx.h>
40 struct utmpx *utmpx; local
52 while ((utmpx = getutxent()) != NULL) {
53 if (utmpx->ut_name[0] == '\0')
55 if (utmpx->ut_type != USER_PROCESS)
57 if (nonuserx(*utmpx))
65 *namp++ = strndup(utmpx->ut_name, sizeof (utmpx->ut_name));
  /netvirt/usr/src/lib/libbc/libc/sys/common/
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
  /netvirt/usr/src/head/
utmpx.h 38 #pragma ident "@(#)utmpx.h 1.18 05/06/08 SMI"
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 */
133 extern struct utmpx *getutxent(void);
134 extern struct utmpx *getutxid(const struct utmpx *);
135 extern struct utmpx *getutxline(const struct utmpx *)
    [all...]
  /netvirt/usr/src/cmd/saf/
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 entry to clean up (indicated by a no
537 struct utmpx utmpx; \/* prototype utmpx entry *\/ local
    [all...]
  /netvirt/usr/src/cmd/cmd-inet/usr.sbin/
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...]
  /netvirt/usr/src/cmd/utmpd/
utmpd.c 41 * its utmpx entry on termination.
44 * Also the program periodically scans the /etc/utmpx file for
60 #include <utmpx.h>
152 * Scanner - periodically scans the utmpx file for stale entries
157 static void scan_utmps(); /* Scanner, reads utmpx file */
169 static void clean_utmpx_ent(); /* Cleans a utmpx entry */
286 * Loop here scanning the utmpx file and waiting for processes
318 * the tables by scanning utmpx
521 * scan_utmps() - Scan the utmpx file.
531 struct utmpx *utmpx local
    [all...]
  /netvirt/usr/src/ucbcmd/shutdown/
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->ut_user[0] != '\0'
    [all...]
  /netvirt/usr/src/cmd/rpcsvc/
rstat_proc.c 38 #include <utmpx.h>
179 struct utmpx *utmpx, utmpx_id; local
201 * To get the boot time, use utmpx, which is per-zone, but fall back
202 * to the system-wide kstat if utmpx is hosed for any reason.
205 if ((utmpx = getutxid(&utmpx_id)) != NULL)
206 btm = utmpx->ut_tv;
  /netvirt/usr/src/lib/libc/port/gen/
getutx.c 43 * Routines to read and write the /etc/utmpx file. Also contains
76 #include <utmpx.h>
91 #define MAXFILE 79 /* Maximum pathname length for "utmpx" file */
97 #define VAR_UTMPX_FILE "/var/adm/utmpx" /* for sanity check only */
115 static void utmpx_frec2api(const struct futmpx *, struct utmpx *);
116 static void utmpx_api2frec(const struct utmpx *, struct futmpx *);
125 static struct utmpx *invoke_utmp_update(const struct utmpx *);
127 static void putoneutx(const struct utmpx *, off_t);
142 static int fd = -1; /* File descriptor for the utmpx file. *
297 struct utmpx *utmpx; local
412 struct utmpx utmpx; local
475 struct utmpx utmpx; local
724 struct utmpx utmpx; local
912 struct utmpx utmpx; local
980 struct utmpx utmpx; local
1262 struct utmpx utmpx; local
    [all...]
  /netvirt/usr/src/cmd/cmd-inet/usr.bin/pppd/
sys-solaris.c 58 #include <utmpx.h>
2989 static struct utmpx utmpx; local
    [all...]
  /netvirt/usr/src/cmd/find/
find.c 1377 #include <utmpx.h>
1380 struct utmpx utmpx; variable in typeref:struct:utmpx
1381 #define NMAX (sizeof (utmpx.ut_name))
    [all...]
  /netvirt/usr/src/cmd/login/
login.c 78 #include <utmpx.h>
105 * These need to be defined for UTMPX management.
156 #define NMAX sizeof (((struct utmpx *)0)->ut_name)
157 #define HMAX sizeof (((struct utmpx *)0)->ut_host)
582 * NOTE: telnetd and rlogind rely upon this updating of utmpx
2019 struct utmpx utmpx; local
    [all...]
  /netvirt/usr/src/cmd/tar/
tar.c 6022 struct utmpx utmpx; variable in typeref:struct:utmpx
    [all...]

Completed in 900 milliseconds