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 @@ -575,12 +575,12 @@ dlinfo
575
575
dlmopen
576
576
endutxent
577
577
explicit_bzero
578
+ fgetgrent_r
578
579
fgetspent_r
579
580
futimes
580
581
getauxval
581
582
getentropy
582
583
getgrent_r
583
- fgetgrent_r
584
584
getloadavg
585
585
getpt
586
586
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 @@ -279,7 +279,11 @@ cfg_if! {
279
279
pub const RLIMIT_NICE : :: c_int = 13 ;
280
280
pub const RLIMIT_RTPRIO : :: c_int = 14 ;
281
281
pub const RLIMIT_RTTIME : :: c_int = 15 ;
282
+ #[ cfg( target_env = "ohos" ) ]
283
+ // FIXME: is it ?
282
284
pub const RLIM_NLIMITS : :: c_int = 15 ;
285
+ #[ cfg( target_env = "musl" ) ]
286
+ pub const RLIM_NLIMITS : :: c_int = 16 ;
283
287
pub const RLIMIT_NLIMITS : :: c_int = RLIM_NLIMITS ;
284
288
}
285
289
}
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 @@ -303,7 +303,7 @@ s_no_extra_traits! {
303
303
pub ut_exit: __exit_status,
304
304
305
305
#[ cfg( target_env = "musl" ) ]
306
- pub ut_session: :: c_long ,
306
+ pub ut_session: :: c_int ,
307
307
308
308
#[ cfg( target_env = "ohos" ) ]
309
309
#[ cfg( target_endian = "little" ) ]
@@ -782,6 +782,13 @@ extern "C" {
782
782
783
783
pub fn dirname ( path : * mut :: c_char ) -> * mut :: c_char ;
784
784
pub fn basename ( path : * mut :: c_char ) -> * mut :: c_char ;
785
+
786
+ pub fn getutxent ( ) -> * mut utmpx ;
787
+ pub fn getutxid ( ut : * const utmpx ) -> * mut utmpx ;
788
+ pub fn getutxline ( ut : * const utmpx ) -> * mut utmpx ;
789
+ pub fn pututxline ( ut : * const utmpx ) -> * mut utmpx ;
790
+ pub fn setutxent ( ) ;
791
+ pub fn endutxent ( ) ;
785
792
}
786
793
787
794
cfg_if ! {
You can’t perform that action at this time.
0 commit comments