| OLD | NEW |
| 1 #ifndef _UTMPX_H | 1 #ifndef _UTMPX_H |
| 2 #define _UTMPX_H | 2 #define _UTMPX_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 #include <features.h> | 8 #include <features.h> |
| 9 | 9 |
| 10 #define __NEED_pid_t | 10 #define __NEED_pid_t |
| 11 #define __NEED_time_t | 11 #define __NEED_time_t |
| 12 #define __NEED_suseconds_t | 12 #define __NEED_suseconds_t |
| 13 #define __NEED_struct_timeval | 13 #define __NEED_struct_timeval |
| 14 | 14 |
| 15 #include <bits/alltypes.h> | 15 #include <bits/alltypes.h> |
| 16 | 16 |
| 17 struct utmpx | 17 struct utmpx { |
| 18 { | 18 short ut_type; |
| 19 » short ut_type; | 19 pid_t ut_pid; |
| 20 » pid_t ut_pid; | 20 char ut_line[32]; |
| 21 » char ut_line[32]; | 21 char ut_id[4]; |
| 22 » char ut_id[4]; | 22 char ut_user[32]; |
| 23 » char ut_user[32]; | 23 char ut_host[256]; |
| 24 » char ut_host[256]; | 24 struct { |
| 25 » struct { | 25 short __e_termination; |
| 26 » » short __e_termination; | 26 short __e_exit; |
| 27 » » short __e_exit; | 27 } ut_exit; |
| 28 » } ut_exit; | 28 long ut_session; |
| 29 » long ut_session; | 29 struct timeval ut_tv; |
| 30 » struct timeval ut_tv; | 30 unsigned ut_addr_v6[4]; |
| 31 » unsigned ut_addr_v6[4]; | 31 char __unused[20]; |
| 32 » char __unused[20]; | |
| 33 }; | 32 }; |
| 34 | 33 |
| 35 void endutxent(void); | 34 void endutxent(void); |
| 36 struct utmpx *getutxent(void); | 35 struct utmpx* getutxent(void); |
| 37 struct utmpx *getutxid(const struct utmpx *); | 36 struct utmpx* getutxid(const struct utmpx*); |
| 38 struct utmpx *getutxline(const struct utmpx *); | 37 struct utmpx* getutxline(const struct utmpx*); |
| 39 struct utmpx *pututxline(const struct utmpx *); | 38 struct utmpx* pututxline(const struct utmpx*); |
| 40 void setutxent(void); | 39 void setutxent(void); |
| 41 | 40 |
| 42 #if defined(_BSD_SOURCE) | defined(_GNU_SOURCE) | 41 #if defined(_BSD_SOURCE) | defined(_GNU_SOURCE) |
| 43 #define e_exit __e_exit | 42 #define e_exit __e_exit |
| 44 #define e_termination __e_termination | 43 #define e_termination __e_termination |
| 45 void updwtmpx(const char *, const struct utmpx *); | 44 void updwtmpx(const char*, const struct utmpx*); |
| 46 int utmpxname(const char *); | 45 int utmpxname(const char*); |
| 47 #endif | 46 #endif |
| 48 | 47 |
| 49 #define EMPTY 0 | 48 #define EMPTY 0 |
| 50 #define RUN_LVL 1 | 49 #define RUN_LVL 1 |
| 51 #define BOOT_TIME 2 | 50 #define BOOT_TIME 2 |
| 52 #define NEW_TIME 3 | 51 #define NEW_TIME 3 |
| 53 #define OLD_TIME 4 | 52 #define OLD_TIME 4 |
| 54 #define INIT_PROCESS 5 | 53 #define INIT_PROCESS 5 |
| 55 #define LOGIN_PROCESS 6 | 54 #define LOGIN_PROCESS 6 |
| 56 #define USER_PROCESS 7 | 55 #define USER_PROCESS 7 |
| 57 #define DEAD_PROCESS 8 | 56 #define DEAD_PROCESS 8 |
| 58 | 57 |
| 59 #ifdef __cplusplus | 58 #ifdef __cplusplus |
| 60 } | 59 } |
| 61 #endif | 60 #endif |
| 62 | 61 |
| 63 #endif | 62 #endif |
| OLD | NEW |