Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ utmp(4) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(1)

who(1)

write(1)

getut(3C)

limits(4)



utmp(4)                        DG/UX 5.4R3.00                        utmp(4)


NAME
       utmp, wtmp - utmp and wtmp entry formats

SYNOPSIS
       #include <sys/types.h>
       #include <limits.h>
       #include <utmp.h>

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

       #define UTMPFILE "/etc/utmp"
       #define WTMPFILE "/etc/wtmp"
       #define utname   utuser

       struct utmp {
         char    utuser[USRNAME]; /* User login name */
         char    utid[4];          /* /etc/inittab id (usually line #) */
         char    utline[12];       /* device name (console, lnxx) */
         short   utpid;            /* process id */
         short   uttype;           /* type of entry */
         struct  exitstatus {
           short   etermination;   /* Process termination status */
           short   eexit;          /* Process exit status */
         } utexit;                 /* The exit status of a process
                                     * marked as DEADPROCESS. */
         timet  uttime;           /* time entry was made */
         char    uthost[16];       /* hostname, if remote */
       };

       /*  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 */

       /*  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 in length  */

       #define RUNLVLMSG  "run-level %c"
       #define BOOTMSG    "system boot"
       #define OTIMEMSG   "old time"
       #define NTIMEMSG   "new time"



Licensed material--property of copyright holder(s)                         1




utmp(4)                        DG/UX 5.4R3.00                        utmp(4)


FILES
       /usr/include/utmp.h
       /etc/utmp
       /etc/wtmp

SEE ALSO
       login(1), who(1), write(1), getut(3C), limits(4).


















































Licensed material--property of copyright holder(s)                         2


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