Server for Information Technologies

(095) 932-9212, 932-9213, 939-0783
E-mail: info@citforum.ru
(!) CIT Forum CD-ROM

UTMP(5)
XENIX System V (1 ap 1989)


utmp - opa utmp wtmp.

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


a, oope coepa opa oaee, eya opa ax oa, a who(1), write(1) login(1), coy cpyypy, ocay utmp.h:

#define  UTMP_FILE  "/etc/utmp"
#define  WTMP_FILE  "/etc/wtmp"
#define  ut_name    ut_user

struct  utmp{
char    ut_user[8];             /*  ooae*/
char    ut_id[4];               /* oo cpoa #*/
char    ut_line[12];  /* y ycpoca (oco, pep lnxx*/
short   ut_pid;       /* oep poecca*/
short   ut_type;      /*  xoa*/
struct  exit_status{
        short  e_termination;   /* cayc aepe poecca*/
        short  e_exit;          /* cayc aepe poecca*/
        }
time_t  ut_time;      /* pe xoa*/
};

#define         EMPTY           0
#define         RUN_LVL         1
#define         BOOT_TIME       2
#define         OLD_TIME        3
#define         NEW_TIME        4
#define         INIT_PROCESS    5   /* poecc opoe poeypo "init"*/
#define         LOGIN_PROCESS   6   /* poecc "getty" oae  */
#define         USER_PROCESS    7   /* ooaec poecc*/
#define         DEAD_PROCESS    8
#define         ACCOUNING       9
#define         UTMAXTYPE       ACCOUNTING  /* aoa ooa
                                             ea ut_type*/
/* Ceae cpo opao, coyee  oe "ut_line", */
/* oa ey ec eoop pyo poecc.            */
/* Cpoa  o "ut_line" e oe  oee 11 coo   */
/* + yeo co a pa oa aa                    */

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

.
getut(2), login(1), who(1), write(1)
Comments: info@citmgu.ru
Designed by Andrey Novikov
Copyright © CIT