diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-14 20:54:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-14 20:54:04 -0500 |
| commit | c2f5848fe4dc3d3ffbebdbaaf8ff55fa2a9eb286 (patch) | |
| tree | 714af317059e20a7c8f6f075c946a3a2f30fe5c6 /lib/std/c | |
| parent | 4af305b30acdefb9da380b21b446d2b31b5a6295 (diff) | |
| parent | b911b54aeb45d2d2d7a8d616af5df04ad230bcc3 (diff) | |
| download | zig-c2f5848fe4dc3d3ffbebdbaaf8ff55fa2a9eb286.tar.gz zig-c2f5848fe4dc3d3ffbebdbaaf8ff55fa2a9eb286.zip | |
Merge pull request #11594 from KaneRoot/master
Dir.statFile now uses fstatat (fewer syscalls)
Diffstat (limited to 'lib/std/c')
| -rw-r--r-- | lib/std/c/linux.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/c/linux.zig b/lib/std/c/linux.zig index cfdf5dfc45..d72fd15a57 100644 --- a/lib/std/c/linux.zig +++ b/lib/std/c/linux.zig @@ -229,7 +229,7 @@ pub const EAI = enum(c_int) { pub extern "c" fn fallocate64(fd: fd_t, mode: c_int, offset: off_t, len: off_t) c_int; pub extern "c" fn fopen64(noalias filename: [*:0]const u8, noalias modes: [*:0]const u8) ?*FILE; pub extern "c" fn fstat64(fd: fd_t, buf: *Stat) c_int; -pub extern "c" fn fstatat64(dirfd: fd_t, path: [*:0]const u8, stat_buf: *Stat, flags: u32) c_int; +pub extern "c" fn fstatat64(dirfd: fd_t, noalias path: [*:0]const u8, noalias stat_buf: *Stat, flags: u32) c_int; pub extern "c" fn ftruncate64(fd: c_int, length: off_t) c_int; pub extern "c" fn getrlimit64(resource: rlimit_resource, rlim: *rlimit) c_int; pub extern "c" fn lseek64(fd: fd_t, offset: i64, whence: c_int) i64; |
