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

  /onnv/onnv-gate/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...]
  /onnv/onnv-gate/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...]
  /onnv/onnv-gate/usr/src/lib/libmail/common/
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 is
    [all...]
  /onnv/onnv-gate/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));
  /onnv/onnv-gate/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
  /onnv/onnv-gate/usr/src/head/
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 */
133 extern struct utmpx *getutxent(void);
134 extern struct utmpx *getutxid(const struct utmpx *);
135 extern struct utmpx *getutxline(const struct utmpx *);
    [all...]
  /onnv/onnv-gate/usr/src/cmd/svr4pkg/pkgremove/
check.c 36 #include <utmpx.h>
74 struct utmpx utmpx; local
75 struct utmpx *putmpx;
91 utmpx.ut_type = RUN_LVL;
92 putmpx = getutxid(&utmpx);
  /onnv/onnv-gate/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...]
  /onnv/onnv-gate/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...]
  /onnv/onnv-gate/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...]
  /onnv/onnv-gate/usr/src/cmd/svr4pkg/pkginstall/
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
  /onnv/onnv-gate/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...]
  /onnv/onnv-gate/usr/src/cmd/rpcsvc/
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;
  /onnv/onnv-gate/usr/src/lib/libc/port/gen/
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 file. *
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...]
  /onnv/onnv-gate/usr/src/cmd/find/
find.c 1392 #include <utmpx.h>
1395 struct utmpx utmpx; variable in typeref:struct:utmpx
1396 #define NMAX (sizeof (utmpx.ut_name))
    [all...]
  /onnv/onnv-gate/usr/src/cmd/login/
login.c 77 #include <utmpx.h>
104 * These need to be defined for UTMPX management.
155 #define NMAX sizeof (((struct utmpx *)0)->ut_name)
156 #define HMAX sizeof (((struct utmpx *)0)->ut_host)
216 * login_pid, used to find utmpx entry to update.
609 * NOTE: telnetd and rlogind rely upon this updating of utmpx
2045 struct utmpx utmpx; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
sys-solaris.c 57 #include <utmpx.h>
2874 static struct utmpx utmpx; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/tar/
tar.c 6052 struct utmpx utmpx; variable in typeref:struct:utmpx
    [all...]

Completed in 5220 milliseconds