| ... | ... | @@ -73,7 +73,6 @@ pub extern "c" fn abort() noreturn; |
| 73 | 73 | pub extern "c" fn exit(code: c_int) noreturn; |
| 74 | 74 | pub extern "c" fn isatty(fd: fd_t) c_int; |
| 75 | 75 | pub extern "c" fn close(fd: fd_t) c_int; |
| 76 | | pub extern "c" fn fstatat(dirfd: fd_t, path: [*:0]const u8, stat_buf: *Stat, flags: u32) c_int; |
| 77 | 76 | pub extern "c" fn lseek(fd: fd_t, offset: off_t, whence: c_int) off_t; |
| 78 | 77 | pub extern "c" fn open(path: [*:0]const u8, oflag: c_uint, ...) c_int; |
| 79 | 78 | pub extern "c" fn openat(fd: c_int, path: [*:0]const u8, oflag: c_uint, ...) c_int; |
| ... | ... | @@ -116,9 +115,11 @@ pub extern "c" fn readlinkat(dirfd: fd_t, noalias path: [*:0]const u8, noalias b |
| 116 | 115 | pub usingnamespace switch (builtin.os.tag) { |
| 117 | 116 | .macosx, .ios, .watchos, .tvos => struct { |
| 118 | 117 | pub const realpath = @"realpath$DARWIN_EXTSN"; |
| 118 | pub const fstatat = @"fstatat$INODE64"; |
| 119 | 119 | }, |
| 120 | 120 | else => struct { |
| 121 | 121 | pub extern "c" fn realpath(noalias file_name: [*:0]const u8, noalias resolved_name: [*]u8) ?[*:0]u8; |
| 122 | pub extern "c" fn fstatat(dirfd: fd_t, path: [*:0]const u8, stat_buf: *Stat, flags: u32) c_int; |
| 122 | 123 | }, |
| 123 | 124 | }; |
| 124 | 125 | |