diff options
| author | Luna <git@l4.pm> | 2019-12-31 15:33:23 -0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-31 15:58:03 -0500 |
| commit | f0cbf63e1ae38d9c13cb07a151567b4890287ae9 (patch) | |
| tree | 91a5365929cb596fef39a21b364986f4e9995aa2 /lib/std/os/linux.zig | |
| parent | 997812e8fb9146360aa5200f0adbcd4863183287 (diff) | |
| download | zig-f0cbf63e1ae38d9c13cb07a151567b4890287ae9.tar.gz zig-f0cbf63e1ae38d9c13cb07a151567b4890287ae9.zip | |
os: use system for memfd_create
- os: update flags type for memfd_create
Diffstat (limited to 'lib/std/os/linux.zig')
| -rw-r--r-- | lib/std/os/linux.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 69e5b25f86..b6030fe2fe 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -1110,7 +1110,7 @@ pub fn io_uring_register(fd: i32, opcode: u32, arg: ?*const c_void, nr_args: u32 return syscall4(SYS_io_uring_register, @bitCast(usize, @as(isize, fd)), opcode, @ptrToInt(arg), nr_args); } -pub fn memfd_create(name: [*:0]const u8, flags: usize) usize { +pub fn memfd_create(name: [*:0]const u8, flags: u32) usize { return syscall2(SYS_memfd_create, @ptrToInt(name), flags); } |
