File tree 5 files changed +26
-9
lines changed
src/unix/linux_like/linux
5 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -582,12 +582,12 @@ dlinfo
582
582
dlmopen
583
583
endutxent
584
584
explicit_bzero
585
+ fgetgrent_r
585
586
fgetspent_r
586
587
futimes
587
588
getauxval
588
589
getentropy
589
590
getgrent_r
590
- fgetgrent_r
591
591
getloadavg
592
592
getpt
593
593
getpwent_r
Original file line number Diff line number Diff line change @@ -32,13 +32,22 @@ aio_return
32
32
aio_suspend
33
33
aio_write
34
34
aiocb
35
+ asctime_r
36
+ basename
35
37
clock_adjtime
36
38
copy_file_range
37
39
ctermid
40
+ dirname
41
+ eaccess
42
+ endutxent
43
+ euidaccess
38
44
explicit_bzero
39
45
futimes
40
46
getauxval
41
47
getloadavg
48
+ getutxent
49
+ getutxid
50
+ getutxline
42
51
lio_listio
43
52
ntptimeval
44
53
open_wmemstream
@@ -47,13 +56,10 @@ prlimit
47
56
prlimit64
48
57
process_vm_readv
49
58
process_vm_writev
59
+ pututxline
50
60
pwritev64
51
61
reallocarray
52
- timex
53
- euidaccess
54
- eaccess
55
- asctime_r
62
+ setutxent
56
63
strftime
57
64
strptime
58
- dirname
59
- basename
65
+ timex
Original file line number Diff line number Diff line change @@ -275,7 +275,11 @@ cfg_if! {
275
275
pub const RLIMIT_NICE : :: c_int = 13 ;
276
276
pub const RLIMIT_RTPRIO : :: c_int = 14 ;
277
277
pub const RLIMIT_RTTIME : :: c_int = 15 ;
278
+ #[ cfg( target_env = "ohos" ) ]
279
+ // FIXME: is it ?
278
280
pub const RLIM_NLIMITS : :: c_int = 15 ;
281
+ #[ cfg( target_env = "musl" ) ]
282
+ pub const RLIM_NLIMITS : :: c_int = 16 ;
279
283
pub const RLIMIT_NLIMITS : :: c_int = RLIM_NLIMITS ;
280
284
}
281
285
}
Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ pub const MAP_32BIT: ::c_int = 0x0040;
671
671
pub const O_APPEND : :: c_int = 1024 ;
672
672
pub const O_DIRECT : :: c_int = 0x4000 ;
673
673
pub const O_DIRECTORY : :: c_int = 0x10000 ;
674
- pub const O_LARGEFILE : :: c_int = 0 ;
674
+ pub const O_LARGEFILE : :: c_int = 0x8000 ;
675
675
pub const O_NOFOLLOW : :: c_int = 0x20000 ;
676
676
pub const O_CREAT : :: c_int = 64 ;
677
677
pub const O_EXCL : :: c_int = 128 ;
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ s_no_extra_traits! {
309
309
pub ut_exit: __exit_status,
310
310
311
311
#[ cfg( target_env = "musl" ) ]
312
- pub ut_session: :: c_long ,
312
+ pub ut_session: :: c_int ,
313
313
314
314
#[ cfg( target_env = "ohos" ) ]
315
315
#[ cfg( target_endian = "little" ) ]
@@ -779,6 +779,13 @@ extern "C" {
779
779
780
780
pub fn dirname ( path : * mut :: c_char ) -> * mut :: c_char ;
781
781
pub fn basename ( path : * mut :: c_char ) -> * mut :: c_char ;
782
+
783
+ pub fn getutxent ( ) -> * mut utmpx ;
784
+ pub fn getutxid ( ut : * const utmpx ) -> * mut utmpx ;
785
+ pub fn getutxline ( ut : * const utmpx ) -> * mut utmpx ;
786
+ pub fn pututxline ( ut : * const utmpx ) -> * mut utmpx ;
787
+ pub fn setutxent ( ) ;
788
+ pub fn endutxent ( ) ;
782
789
}
783
790
784
791
// Alias <foo> to <foo>64 to mimic glibc's LFS64 support
You can’t perform that action at this time.
0 commit comments