File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -938,6 +938,7 @@ pub const MSG_FBLOCKING: ::c_int = 0x00010000;
938
938
pub const MSG_FNONBLOCKING : :: c_int = 0x00020000 ;
939
939
pub const MSG_FMASK : :: c_int = 0xFFFF0000 ;
940
940
941
+ // utmpx entry types
941
942
pub const EMPTY : :: c_short = 0 ;
942
943
pub const RUN_LVL : :: c_short = 1 ;
943
944
pub const BOOT_TIME : :: c_short = 2 ;
@@ -947,6 +948,13 @@ pub const INIT_PROCESS: ::c_short = 5;
947
948
pub const LOGIN_PROCESS : :: c_short = 6 ;
948
949
pub const USER_PROCESS : :: c_short = 7 ;
949
950
pub const DEAD_PROCESS : :: c_short = 8 ;
951
+ pub const ACCOUNTING : :: c_short = 9 ;
952
+ pub const SIGNATURE : :: c_short = 10 ;
953
+ pub const DOWNTIME : :: c_short = 11 ;
954
+ // utmpx database types
955
+ pub const UTX_DB_UTMPX : :: c_uint = 0 ;
956
+ pub const UTX_DB_WTMPX : :: c_uint = 1 ;
957
+ pub const UTX_DB_LASTLOG : :: c_uint = 2 ;
950
958
951
959
pub const LC_COLLATE_MASK : :: c_int = ( 1 << 0 ) ;
952
960
pub const LC_CTYPE_MASK : :: c_int = ( 1 << 1 ) ;
Original file line number Diff line number Diff line change @@ -1009,6 +1009,7 @@ pub const MSG_COMPAT: ::c_int = 0x00008000;
1009
1009
pub const MSG_CMSG_CLOEXEC : :: c_int = 0x00040000 ;
1010
1010
pub const MSG_NOSIGNAL : :: c_int = 0x20000 ;
1011
1011
1012
+ // utmpx entry types
1012
1013
pub const EMPTY : :: c_short = 0 ;
1013
1014
pub const BOOT_TIME : :: c_short = 1 ;
1014
1015
pub const OLD_TIME : :: c_short = 2 ;
@@ -1018,6 +1019,10 @@ pub const INIT_PROCESS: ::c_short = 5;
1018
1019
pub const LOGIN_PROCESS : :: c_short = 6 ;
1019
1020
pub const DEAD_PROCESS : :: c_short = 7 ;
1020
1021
pub const SHUTDOWN_TIME : :: c_short = 8 ;
1022
+ // utmp database types
1023
+ pub const UTXDB_ACTIVE : :: c_int = 0 ;
1024
+ pub const UTXDB_LASTLOGIN : :: c_int = 1 ;
1025
+ pub const UTXDB_LOG : :: c_int = 2 ;
1021
1026
1022
1027
pub const LC_COLLATE_MASK : :: c_int = ( 1 << 0 ) ;
1023
1028
pub const LC_CTYPE_MASK : :: c_int = ( 1 << 1 ) ;
You can’t perform that action at this time.
0 commit comments