unix/src/aix-ps2-1-2/Uutmp.i3


Copyright (C) 1994, Digital Equipment Corp.
File: Uutmp.i3

INTERFACE Uutmp;

FROM Ctypes IMPORT char, char_star, long;
** <utmp.h> **

* Structure of utmp and wtmp files. *

TYPE
    struct_utmp = RECORD
	ut_line: ARRAY [0..7] OF char;		(* tty name *)
	ut_name: ARRAY [0..7] OF char;		(* user id *)
	ut_host: ARRAY [0..15] OF char;		(* host name, if remote *)
	ut_time: long				(* time on *)
     END;

CONST
   UTMP_FILE	= "/etc/utmp";
   WTMP_FILE	= "/usr/adm/wtmp";
Special strings or formats used in the ut_line field when accounting for something other than a process. No string for the ut_line field can be more than 7 chars + a NULL in length.

EMPTY	= "";
   BOOT_MSG	= "~";
   OTIME_MSG	= "|";
   NTIME_MSG	= "}";
** getlogin(3) **

<*EXTERNAL*> PROCEDURE getlogin (): char_star;

END Uutmp.