File tree 9 files changed +28
-1
lines changed
9 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ fn main() {
226
226
cfg. header ( "sys/reboot.h" ) ;
227
227
if !emscripten {
228
228
cfg. header ( "linux/netfilter_ipv4.h" ) ;
229
+ cfg. header ( "linux/fs.h" ) ;
229
230
}
230
231
if !musl {
231
232
cfg. header ( "asm/mman.h" ) ;
@@ -464,7 +465,8 @@ fn main() {
464
465
465
466
// Musl uses old, patched kernel headers
466
467
"FALLOC_FL_COLLAPSE_RANGE" | "FALLOC_FL_ZERO_RANGE" |
467
- "FALLOC_FL_INSERT_RANGE" | "FALLOC_FL_UNSHARE_RANGE" if musl => true ,
468
+ "FALLOC_FL_INSERT_RANGE" | "FALLOC_FL_UNSHARE_RANGE" |
469
+ "RENAME_NOREPLACE" | "RENAME_EXCHANGE" | "RENAME_WHITEOUT" if musl => true ,
468
470
469
471
// Defined by libattr not libc on linux (hard to test).
470
472
// See constant definition for more details.
Original file line number Diff line number Diff line change @@ -673,6 +673,10 @@ pub const PTHREAD_PROCESS_PRIVATE: ::c_int = 0;
673
673
pub const PTHREAD_PROCESS_SHARED : :: c_int = 1 ;
674
674
pub const __SIZEOF_PTHREAD_COND_T: usize = 48 ;
675
675
676
+ pub const RENAME_NOREPLACE : :: c_int = 1 ;
677
+ pub const RENAME_EXCHANGE : :: c_int = 2 ;
678
+ pub const RENAME_WHITEOUT : :: c_int = 4 ;
679
+
676
680
pub const SCHED_OTHER : :: c_int = 0 ;
677
681
pub const SCHED_FIFO : :: c_int = 1 ;
678
682
pub const SCHED_RR : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -390,3 +390,6 @@ pub const TIOCM_RNG: ::c_int = 0x080;
390
390
pub const TIOCM_DSR : :: c_int = 0x100 ;
391
391
pub const TIOCM_CD : :: c_int = TIOCM_CAR ;
392
392
pub const TIOCM_RI : :: c_int = TIOCM_RNG ;
393
+
394
+ // Syscall table
395
+ pub const SYS_renameat2 : :: c_long = 382 ;
Original file line number Diff line number Diff line change @@ -79,3 +79,6 @@ pub const SIGSTKSZ: ::size_t = 12288;
79
79
pub const PF_MAX : :: c_int = 43 ;
80
80
#[ doc( hidden) ]
81
81
pub const AF_MAX : :: c_int = PF_MAX ;
82
+
83
+ // Syscall table
84
+ pub const SYS_renameat2 : :: c_long = 276 ;
Original file line number Diff line number Diff line change @@ -78,3 +78,6 @@ pub const MINSIGSTKSZ: ::size_t = 2048;
78
78
pub const AF_MAX : :: c_int = 42 ;
79
79
#[ doc( hidden) ]
80
80
pub const PF_MAX : :: c_int = AF_MAX ;
81
+
82
+ // Syscall table
83
+ pub const SYS_renameat2 : :: c_long = 357 ;
Original file line number Diff line number Diff line change @@ -249,3 +249,6 @@ pub const TIOCOUTQ: ::c_ulong = 0x5411;
249
249
pub const TIOCGWINSZ : :: c_ulong = 0x5413 ;
250
250
pub const TIOCSWINSZ : :: c_ulong = 0x5414 ;
251
251
pub const FIONREAD : :: c_ulong = 0x541B ;
252
+
253
+ // Syscall table
254
+ pub const SYS_renameat2 : :: c_long = 382 ;
Original file line number Diff line number Diff line change @@ -488,3 +488,6 @@ pub const TIOCOUTQ: ::c_ulong = 0x5411;
488
488
pub const TIOCGWINSZ : :: c_ulong = 0x5413 ;
489
489
pub const TIOCSWINSZ : :: c_ulong = 0x5414 ;
490
490
pub const FIONREAD : :: c_ulong = 0x541B ;
491
+
492
+ // Syscall table
493
+ pub const SYS_renameat2 : :: c_long = 276 ;
Original file line number Diff line number Diff line change @@ -485,3 +485,6 @@ pub const TIOCOUTQ: ::c_ulong = 0x40047473;
485
485
pub const TIOCGWINSZ : :: c_ulong = 0x40087468 ;
486
486
pub const TIOCSWINSZ : :: c_ulong = 0x80087467 ;
487
487
pub const FIONREAD : :: c_ulong = 0x4004667f ;
488
+
489
+ // Syscall table
490
+ pub const SYS_renameat2 : :: c_long = 357 ;
Original file line number Diff line number Diff line change @@ -779,6 +779,9 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
779
779
pub const FIONREAD : :: c_ulong = 0x541B ;
780
780
pub const TIOCCONS : :: c_ulong = 0x541D ;
781
781
782
+ // Syscall table
783
+ pub const SYS_renameat2 : :: c_long = 347 ;
784
+
782
785
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
783
786
pub const RTLD_GLOBAL : :: c_int = 0x100 ;
784
787
pub const RTLD_NOLOAD : :: c_int = 0x4 ;
You can’t perform that action at this time.
0 commit comments