@@ -656,7 +656,7 @@ pub const INIT_PROCESS: c_short = 5;
656
656
pub const LOGIN_PROCESS : c_short = 6 ;
657
657
pub const USER_PROCESS : c_short = 7 ;
658
658
pub const DEAD_PROCESS : c_short = 8 ;
659
- // musl does not define ACCOUNTING
659
+ pub const ACCOUNTING : c_short = 9 ;
660
660
661
661
pub const SFD_CLOEXEC : c_int = 0x080000 ;
662
662
@@ -888,6 +888,10 @@ pub const _CS_V7_ENV: c_int = 1149;
888
888
889
889
pub const CLONE_NEWTIME : c_int = 0x80 ;
890
890
891
+ pub const UT_HOSTSIZE : usize = 256 ;
892
+ pub const UT_LINESIZE : usize = 32 ;
893
+ pub const UT_NAMESIZE : usize = 32 ;
894
+
891
895
cfg_if ! {
892
896
if #[ cfg( target_arch = "s390x" ) ] {
893
897
pub const POSIX_FADV_DONTNEED : c_int = 6 ;
@@ -984,12 +988,41 @@ extern "C" {
984
988
fd : c_int ,
985
989
) -> c_int ;
986
990
991
+ #[ deprecated(
992
+ since = "0.2.172" ,
993
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
994
+ ) ]
987
995
pub fn getutxent ( ) -> * mut utmpx ;
996
+ #[ deprecated(
997
+ since = "0.2.172" ,
998
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
999
+ ) ]
988
1000
pub fn getutxid ( ut : * const utmpx ) -> * mut utmpx ;
1001
+ #[ deprecated(
1002
+ since = "0.2.172" ,
1003
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
1004
+ ) ]
989
1005
pub fn getutxline ( ut : * const utmpx ) -> * mut utmpx ;
1006
+ #[ deprecated(
1007
+ since = "0.2.172" ,
1008
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
1009
+ ) ]
990
1010
pub fn pututxline ( ut : * const utmpx ) -> * mut utmpx ;
1011
+ #[ deprecated(
1012
+ since = "0.2.172" ,
1013
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
1014
+ ) ]
991
1015
pub fn setutxent ( ) ;
1016
+ #[ deprecated(
1017
+ since = "0.2.172" ,
1018
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
1019
+ ) ]
992
1020
pub fn endutxent ( ) ;
1021
+ #[ deprecated(
1022
+ since = "0.2.172" ,
1023
+ note = "musl provides `utmp` as stubs and an alternative should be preferred; see https://wiki.musl-libc.org/faq.html"
1024
+ ) ]
1025
+ pub fn utmpxname ( file : * const c_char ) -> c_int ;
993
1026
}
994
1027
995
1028
// Alias <foo> to <foo>64 to mimic glibc's LFS64 support
0 commit comments