| ... | @@ -8903,8 +8903,10 @@ pub const sigaltstack = switch (native_os) { | ... | @@ -8903,8 +8903,10 @@ pub const sigaltstack = switch (native_os) { |
| 8903 | }; | 8903 | }; |
| 8904 | | 8904 | |
| 8905 | pub extern "c" fn memfd_create(name: [*:0]const u8, flags: c_uint) c_int; | 8905 | pub extern "c" fn memfd_create(name: [*:0]const u8, flags: c_uint) c_int; |
| 8906 | pub extern "c" fn pipe2(fds: *[2]fd_t, flags: O) c_int; | 8906 | pub const pipe2 = switch (native_os) { |
| 8907 | | 8907 | .dragonfly, .emscripten, .netbsd, .freebsd, .kfreebsd, .solaris, .illumos, .openbsd, .linux => private.pipe2, |
| | 8908 | else => {}, |
| | 8909 | }; |
| 8908 | pub const copy_file_range = switch (native_os) { | 8910 | pub const copy_file_range = switch (native_os) { |
| 8909 | .linux => private.copy_file_range, | 8911 | .linux => private.copy_file_range, |
| 8910 | .freebsd, .kfreebsd => freebsd.copy_file_range, | 8912 | .freebsd, .kfreebsd => freebsd.copy_file_range, |
| ... | @@ -9686,6 +9688,7 @@ const private = struct { | ... | @@ -9686,6 +9688,7 @@ const private = struct { |
| 9686 | extern "c" fn gettimeofday(noalias tv: ?*timeval, noalias tz: ?*timezone) c_int; | 9688 | extern "c" fn gettimeofday(noalias tv: ?*timeval, noalias tz: ?*timezone) c_int; |
| 9687 | extern "c" fn msync(addr: *align(page_size) const anyopaque, len: usize, flags: c_int) c_int; | 9689 | extern "c" fn msync(addr: *align(page_size) const anyopaque, len: usize, flags: c_int) c_int; |
| 9688 | extern "c" fn nanosleep(rqtp: *const timespec, rmtp: ?*timespec) c_int; | 9690 | extern "c" fn nanosleep(rqtp: *const timespec, rmtp: ?*timespec) c_int; |
| | 9691 | extern "c" fn pipe2(fds: *[2]fd_t, flags: O) c_int; |
| 9689 | extern "c" fn readdir(dir: *DIR) ?*dirent; | 9692 | extern "c" fn readdir(dir: *DIR) ?*dirent; |
| 9690 | extern "c" fn realpath(noalias file_name: [*:0]const u8, noalias resolved_name: [*]u8) ?[*:0]u8; | 9693 | extern "c" fn realpath(noalias file_name: [*:0]const u8, noalias resolved_name: [*]u8) ?[*:0]u8; |
| 9691 | extern "c" fn sched_yield() c_int; | 9694 | extern "c" fn sched_yield() c_int; |