| ... | @@ -968,6 +968,10 @@ pub fn umount2(special: [*:0]const u8, flags: u32) usize { | ... | @@ -968,6 +968,10 @@ pub fn umount2(special: [*:0]const u8, flags: u32) usize { |
| 968 | return syscall2(.umount2, @intFromPtr(special), flags); | 968 | return syscall2(.umount2, @intFromPtr(special), flags); |
| 969 | } | 969 | } |
| 970 | | 970 | |
| | 971 | pub fn pivot_root(new_root: [*:0]const u8, put_old: [*:0]const u8) usize { |
| | 972 | return syscall2(.pivot_root, @intFromPtr(new_root), @intFromPtr(put_old)); |
| | 973 | } |
| | 974 | |
| 971 | pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: MAP, fd: i32, offset: i64) usize { | 975 | pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: MAP, fd: i32, offset: i64) usize { |
| 972 | if (@hasField(SYS, "mmap2")) { | 976 | if (@hasField(SYS, "mmap2")) { |
| 973 | return syscall6( | 977 | return syscall6( |