| author | |
| committer | |
| log | 4532f5ecad23a3478310f159f43d31217c863c35 |
| tree | 5270cd8825b004b308128224515d8ad76c01af3b |
| parent | 819537d70a3283737474e1b673fc20f574ac6bb6 |
As recommended by LemonBoy2 files changed, 3 insertions(+), 3 deletions(-)
lib/std/os.zig+1-1| ... | ... | @@ -1147,7 +1147,7 @@ pub const LockCmd = enum { |
| 1147 | 1147 | }; |
| 1148 | 1148 | |
| 1149 | 1149 | /// Attempts to get lock the file, blocking if the file is locked. |
| 1150 | pub fn fcntlFlock(fd: fd_t, lock_cmd: LockCmd, flock_p: *const Flock) OpenError!void { | |
| 1150 | pub fn fcntlFlock(fd: fd_t, lock_cmd: LockCmd, flock_p: *Flock) OpenError!void { | |
| 1151 | 1151 | const cmd: i32 = cmdval: { |
| 1152 | 1152 | switch (lock_cmd) { |
| 1153 | 1153 | .GetLock => break :cmdval F_GETLK, |
lib/std/os/linux.zig+2-2| ... | ... | @@ -219,8 +219,8 @@ pub fn mmap(address: ?[*]u8, length: usize, prot: usize, flags: u32, fd: i32, of |
| 219 | 219 | } |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | pub fn fcntl(fd: fd_t, cmd: i32, flock_p: *const c_void) usize { | |
| 223 | return syscall3(SYS_fcntl, @bitCast(usize, @as(isize, fd)), @bitCast(usize, @as(isize, cmd)), @ptrToInt(flock_p)); | |
| 222 | pub fn fcntl(fd: fd_t, cmd: i32, arg: ?*c_void) usize { | |
| 223 | return syscall3(SYS_fcntl, @bitCast(usize, @as(isize, fd)), @bitCast(usize, @as(isize, cmd)), @ptrToInt(arg)); | |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | pub fn mprotect(address: [*]const u8, length: usize, protection: usize) usize { |