File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1318,6 +1318,16 @@ pub const PRIO_PROCESS: ::c_int = 0;
1318
1318
pub const PRIO_PGRP : :: c_int = 1 ;
1319
1319
pub const PRIO_USER : :: c_int = 2 ;
1320
1320
1321
+ // utmpx entry types
1322
+ pub const EMPTY : :: c_short = 0 ;
1323
+ pub const BOOT_TIME : :: c_short = 1 ;
1324
+ pub const OLD_TIME : :: c_short = 2 ;
1325
+ pub const NEW_TIME : :: c_short = 3 ;
1326
+ pub const USER_PROCESS : :: c_short = 4 ;
1327
+ pub const INIT_PROCESS : :: c_short = 5 ;
1328
+ pub const LOGIN_PROCESS : :: c_short = 6 ;
1329
+ pub const DEAD_PROCESS : :: c_short = 7 ;
1330
+
1321
1331
pub const LOG_PID : :: c_int = 1 << 12 ;
1322
1332
pub const LOG_CONS : :: c_int = 2 << 12 ;
1323
1333
pub const LOG_ODELAY : :: c_int = 4 << 12 ;
@@ -1622,6 +1632,12 @@ extern "C" {
1622
1632
) -> :: pid_t ;
1623
1633
pub fn sethostname ( name : * const :: c_char , len : :: size_t ) -> :: c_int ;
1624
1634
pub fn uname ( buf : * mut :: utsname ) -> :: c_int ;
1635
+ pub fn getutxent ( ) -> * mut utmpx ;
1636
+ pub fn getutxid ( ut : * const utmpx ) -> * mut utmpx ;
1637
+ pub fn getutxline ( ut : * const utmpx ) -> * mut utmpx ;
1638
+ pub fn pututxline ( ut : * const utmpx ) -> * mut utmpx ;
1639
+ pub fn setutxent ( ) ;
1640
+ pub fn endutxent ( ) ;
1625
1641
}
1626
1642
1627
1643
cfg_if ! {
You can’t perform that action at this time.
0 commit comments