1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef _UTMPX_H
- # error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
- #endif
- #include <bits/types.h>
- #include <sys/time.h>
- #ifdef __USE_GNU
- # include <paths.h>
- # define _PATH_UTMPX _PATH_UTMP
- # define _PATH_WTMPX _PATH_WTMP
- #endif
- #define __UT_LINESIZE 32
- #define __UT_NAMESIZE 32
- #define __UT_HOSTSIZE 256
- struct __exit_status
- {
- #ifdef __USE_GNU
- short int e_termination;
- short int e_exit;
- #else
- short int __e_termination;
- short int __e_exit;
- #endif
- };
- struct utmpx
- {
- short int ut_type;
- __pid_t ut_pid;
- char ut_line[__UT_LINESIZE];
- char ut_id[4];
- char ut_user[__UT_NAMESIZE];
- char ut_host[__UT_HOSTSIZE];
- struct __exit_status ut_exit;
- long int ut_session;
- struct timeval ut_tv;
- __int32_t ut_addr_v6[4];
- char __unused[20];
- };
- #define EMPTY 0
- #ifdef __USE_GNU
- # define RUN_LVL 1
- #endif
- #define BOOT_TIME 2
- #define NEW_TIME 3
- #define OLD_TIME 4
- #define INIT_PROCESS 5
- #define LOGIN_PROCESS 6
- #define USER_PROCESS 7
- #define DEAD_PROCESS 8
- #ifdef __USE_GNU
- # define ACCOUNTING 9
- #endif
|