|
|
1.1 ! root 1: ! 2: ! 3: utmp.h Header File utmp.h ! 4: ! 5: ! 6: ! 7: ! 8: Login accounting information ! 9: ! 10: #include <utmp.h> ! 11: ! 12: /etc/utmp contains a utmp entry for every user currently logged ! 13: into the COHERENT system. The structure utmp is defined in the ! 14: the header file utmp.h, as follows: ! 15: ! 16: ! 17: #define DIRSIZ 14 ! 18: struct utmp { ! 19: char ut_line[8]; /* terminal name */ ! 20: char ut_name[DIRSIZ];/* user name */ ! 21: time_t ut_time; /* time of login */ ! 22: }; ! 23: ! 24: ! 25: If either the user name or terminal name is cleared, the entry is ! 26: unused. The element ut_line is the name of the special file for ! 27: the user's terminal, and is normally found in the directory /dev. ! 28: ut_time gives the date and time the user logged into COHERENT. ! 29: ! 30: The file /usr/adm/wtmp maintains a record of all logins and ! 31: logouts, and may be summarized by the command ac. The processes ! 32: login and init write entries into the file wtmp; neither creates ! 33: the file, so login accounting is disabled unless /usr/adm/wtmp ! 34: exists. ! 35: ! 36: Entries in wtmp are identical to those in utmp. A null string in ! 37: the ut_name field indicates a logout. The following three ! 38: special terminal names may be found in wtmp. When the system is ! 39: booted, init writes a ut_line entry of `~'. When the time is ! 40: changed with the command date, it writes an entry giving the old ! 41: date (`|') and an entry giving the new date (`}'). This allows ! 42: ac to adjust connect times appropriately. ! 43: ! 44: ***** Files ***** ! 45: ! 46: <utmp.h> ! 47: /etc/utmp ! 48: /usr/adm/wtmp ! 49: ! 50: ***** See Also ***** ! 51: ! 52: ac, date, file formats, header files, init, login, who ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.