File tree Expand file tree Collapse file tree 5 files changed +39
-1
lines changed Expand file tree Collapse file tree 5 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -2025,6 +2025,7 @@ RESOLVE_IN_ROOT
2025
2025
RESOLVE_NO_MAGICLINKS
2026
2026
RESOLVE_NO_SYMLINKS
2027
2027
RESOLVE_NO_XDEV
2028
+ RLIM64_INFINITY
2028
2029
RLIMIT_AS
2029
2030
RLIMIT_CORE
2030
2031
RLIMIT_CPU
Original file line number Diff line number Diff line change @@ -1579,6 +1579,23 @@ pub const FIONREAD: ::c_int = 0x541B;
1579
1579
pub const TIOCCONS : :: c_int = 0x541D ;
1580
1580
pub const TIOCSBRK : :: c_int = 0x5427 ;
1581
1581
pub const TIOCCBRK : :: c_int = 0x5428 ;
1582
+ cfg_if ! {
1583
+ if #[ cfg( any( target_arch = "x86" ,
1584
+ target_arch = "x86_64" ,
1585
+ target_arch = "arm" ,
1586
+ target_arch = "aarch64" ,
1587
+ target_arch = "riscv64" ,
1588
+ target_arch = "s390x" ) ) ] {
1589
+ pub const FICLONE : :: c_int = 0x40049409 ;
1590
+ pub const FICLONERANGE : :: c_int = 0x4020940D ;
1591
+ } else if #[ cfg( any( target_arch = "mips" ,
1592
+ target_arch = "mips64" ,
1593
+ target_arch = "powerpc" ,
1594
+ target_arch = "powerpc64" ) ) ] {
1595
+ pub const FICLONE : :: c_int = 0x80049409 ;
1596
+ pub const FICLONERANGE : :: c_int = 0x8020940D ;
1597
+ }
1598
+ }
1582
1599
1583
1600
pub const ST_RDONLY : :: c_ulong = 1 ;
1584
1601
pub const ST_NOSUID : :: c_ulong = 2 ;
@@ -3531,6 +3548,7 @@ extern "C" {
3531
3548
longindex : * mut :: c_int ,
3532
3549
) -> :: c_int ;
3533
3550
3551
+ pub fn sync ( ) ;
3534
3552
pub fn syncfs ( fd : :: c_int ) -> :: c_int ;
3535
3553
}
3536
3554
Original file line number Diff line number Diff line change @@ -108,9 +108,18 @@ cfg_if! {
108
108
cfg_if ! {
109
109
if #[ cfg( any( target_arch = "x86" ,
110
110
target_arch = "x86_64" ,
111
- target_arch = "aarch64" ) ) ] {
111
+ target_arch = "arm" ,
112
+ target_arch = "aarch64" ,
113
+ target_arch = "riscv64" ,
114
+ target_arch = "s390x" ) ) ] {
112
115
pub const FICLONE : :: c_ulong = 0x40049409 ;
113
116
pub const FICLONERANGE : :: c_ulong = 0x4020940D ;
117
+ } else if #[ cfg( any( target_arch = "mips" ,
118
+ target_arch = "mips64" ,
119
+ target_arch = "powerpc" ,
120
+ target_arch = "powerpc64" ) ) ] {
121
+ pub const FICLONE : :: c_ulong = 0x80049409 ;
122
+ pub const FICLONERANGE : :: c_ulong = 0x8020940D ;
114
123
}
115
124
}
116
125
// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
Original file line number Diff line number Diff line change @@ -556,6 +556,14 @@ pub const PROT_EXEC: ::c_int = 4;
556
556
pub const XATTR_CREATE : :: c_int = 0x1 ;
557
557
pub const XATTR_REPLACE : :: c_int = 0x2 ;
558
558
559
+ cfg_if ! {
560
+ if #[ cfg( target_os = "android" ) ] {
561
+ pub const RLIM64_INFINITY : :: c_ulonglong = !0 ;
562
+ } else {
563
+ pub const RLIM64_INFINITY : :: rlim64_t = !0 ;
564
+ }
565
+ }
566
+
559
567
cfg_if ! {
560
568
if #[ cfg( target_env = "ohos" ) ] {
561
569
pub const LC_CTYPE : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -3196,6 +3196,8 @@ extern "C" {
3196
3196
longopts : * const option ,
3197
3197
longindex : * mut :: c_int ,
3198
3198
) -> :: c_int ;
3199
+
3200
+ pub fn sync ( ) ;
3199
3201
}
3200
3202
3201
3203
#[ link( name = "sendfile" ) ]
You can’t perform that action at this time.
0 commit comments