diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-11 16:33:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 16:33:57 -0400 |
| commit | 1eaf0691f97decfdee9d73a72869ad63805d159b (patch) | |
| tree | 58564e4b6df649f051681470ae5ced82f2f85a55 /lib/std/os/linux.zig | |
| parent | 42c32dbc7b6cb474a1aa6dc524acb7451efeb15e (diff) | |
| parent | 1078810cef4b346bdcd0ab0cab27dd997e68d206 (diff) | |
| download | zig-1eaf0691f97decfdee9d73a72869ad63805d159b.tar.gz zig-1eaf0691f97decfdee9d73a72869ad63805d159b.zip | |
Merge pull request #6320 from ifreund/prctl
std: add prctl and securebits definitions for linux/C
Diffstat (limited to 'lib/std/os/linux.zig')
| -rw-r--r-- | lib/std/os/linux.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 25a0d6814d..50d1e4ae78 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -1259,6 +1259,10 @@ pub fn fdatasync(fd: fd_t) usize { return syscall1(.fdatasync, @bitCast(usize, @as(isize, fd))); } +pub fn prctl(option: i32, arg2: usize, arg3: usize, arg4: usize, arg5: usize) usize { + return syscall5(.prctl, @bitCast(usize, @as(isize, option)), arg2, arg3, arg4, arg5); +} + test "" { if (builtin.os.tag == .linux) { _ = @import("linux/test.zig"); |
