Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ utmpx(4) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getutx(3C)

login(1)

who(1)

write(1)



utmpx(4)                         UNIX System V                         utmpx(4)


NAME
      utmpx, wtmpx - utmpx and wtmpx entry formats

SYNOPSIS
      #include <utmpx.h>

DESCRIPTION
      utmpx(4) is an extended version of utmp(4).

      These files, which hold user and accounting information for such commands
      as who, write, and login, have the following structure as defined by
      <utmpx.h>:

      #define   UTMPXFILE   "/var/adm/utmpx"
      #define   WTMPXFILE   "/var/adm/wtmpx"
      #define   utname    utuser
      #define   utxtime   uttv.tvsec
      struct utmpx  {
         char   utuser[32];           /* user login name */
         char   utid[4];              /* inittab id */
         char   utline[32];           /* device name (console, lnxx) */
         pidt  utpid;                /* process id */
         short  uttype;               /* type of entry */
         struct exitstatus utexit;   /* process termination/exit status */
         struct timeval uttv;         /* time entry was made */
         long   utsession;            /* session ID, used for windowing */
         long   pad[5];                /* reserved for future use */
         short  utsyslen;             /* significant length of uthost */
                                       /* including terminating null */
         char   uthost[257];          /* remote host name */
        } ;

      /* Definitions for uttype */
      #define   EMPTY          0
      #define   RUNLVL        1
      #define   BOOTTIME      2
      #define   OLDTIME       3
      #define   NEWTIME       4
      #define   INITPROCESS   5  /* Process spawned by "init" */
      #define   LOGINPROCESS  6  /* A "getty" process waiting for login */
      #define   USERPROCESS   7  /* A user process */
      #define   DEADPROCESS   8
      #define   ACCOUNTING     9
      #define   UTMAXTYPE  ACCOUNTING  /* Largest legal value of uttype */
      /* Below are special strings or formats used in the "utline" */
      /* field when accounting for something other than a process. */
      /* No string for the utline field can be more than 11 chars + */
      /* a null character in length. */
      #define   RUNLVLMSG     "run-level %c"
      #define   BOOTMSG       "system boot"
      #define   OTIMEMSG      "old time"
      #define   NTIMEMSG      "new time"


10/89                                                                    Page 1







utmpx(4)                         UNIX System V                         utmpx(4)


      #define   MODWIN        10

FILES
      /var/adm/utmpx
      /var/adm/wtmpx

SEE ALSO
      getutx(3C)
      login(1), who(1), write(1) in the User's Reference Manual













































Page 2                                                                    10/89





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026