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