diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2000-02-17 19:39:46 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2000-02-17 19:39:46 +0000 |
commit | 43b55bace5fad27af5da7a99784667363b92c45d (patch) | |
tree | 17fe82f6ba0d93b76d10dd73d4945ab81b69db40 /newlib/libc/sys/sysvi386/sys/utmp.h | |
parent | 8dabd7496a9eeaca2a7180c0a176059ba9229bb2 (diff) | |
download | gdb-43b55bace5fad27af5da7a99784667363b92c45d.tar.gz |
import newlib-2000-02-17 snapshotnewlib-2000-02-17SNAPSHOT
Diffstat (limited to 'newlib/libc/sys/sysvi386/sys/utmp.h')
-rw-r--r-- | newlib/libc/sys/sysvi386/sys/utmp.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/newlib/libc/sys/sysvi386/sys/utmp.h b/newlib/libc/sys/sysvi386/sys/utmp.h new file mode 100644 index 00000000000..f519e6af058 --- /dev/null +++ b/newlib/libc/sys/sysvi386/sys/utmp.h @@ -0,0 +1,43 @@ +#ifndef _UTMP_H +# define _UTMP_H + +#include <sys/types.h> + +# define UTMP_FILE "/etc/utmp" +# define WTMP_FILE "/etc/wtmp" + +struct utmp { + char ut_user[8]; /* how limited */ + char ut_id[4]; /* ditto */ + char ut_line[12]; /* I'm repeating myself */ + short ut_pid; + short ut_type; + struct exit_status { + short e_termination; + short e_exit; + } ut_exit; /* for DEAD_PROCESS processes */ + time_t ut_time; +}; + +/* Definitions for ut_type fields */ + +# define EMPTY 0 +# define RUN_LVL 1 +# define BOOT_TIME 2 +# define OLD_TIME 3 +# define NEW_TIME 4 +# define INIT_PROCESS 5 +# define LOGIN_PROCESS 6 +# define USER_PROCESS 7 +# define DEAD_PROCESS 8 +# define ACCOUNTING 9 +# define UTMAXTYPE ACCOUNTING + +# define RUNLVL_MSG "run-level %c" +# define BOOT_MSG "system boot" +# define OTIME_MSG "old time" +# define NTIME_MSG "new time" + +#endif /* _UTMP_H */ + + |