Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ utmp(4) — Atari System V 1.1-06

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getut(3C)

login(1)

who(1)

write(1)





   utmp(4)                                                             utmp(4)


   NAME
         utmp, wtmp - utmp and wtmp entry formats

   SYNOPSIS
         #include <utmp.h>

   DESCRIPTION
         These files, which hold user and accounting information for such
         commands as who, write, and login, have the following structure,
         defined in <utmp.h> for the M88000 family of processors reference
         platform:

         #define   UTMPFILE   "/var/adm/utmp"
         #define   WTMPFILE   "/var/adm/wtmp"
         #define   utname     utuser

         struct     utmp {
            char    utuser[8];      /* user login name */
            char    utid[4];        /* /sbin/inittab id (created by */
                                     /* process that puts entry in utmp) */
            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;               /* exit status of a process
                                      * marked as DEADPROCESS */
            timet  uttime;         /* time entry was made */
            char uthost[24];        /* hostname, if remote(BCS) */
         };

         /*  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 ACOUNTING      9
         #define FTP            128
         #define REMOTELOGIN   129
         #define REMOTEPROCESS 130
         #define UTMAXTYPE     REMOTE PROCESS/* max 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.  */


   8/91                                                                 Page 1









   utmp(4)                                                             utmp(4)


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

   FILES
         /var/adm/utmp
         /var/adm/wtmp

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









































   Page 2                                                                 8/91





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