authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2021-07-14 18:06:53-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-21 12:25:10-07:00
log84154b10a23db1157998bcb3b3d5f9a42c2c0860
tree9f0b06cc003607522c36e8209c23b1a4abf70003
parentba47e0937321d2371875fbc3d8cecbd9bfe407b1

Add inotify_rm_watch definition to c/linux.zig

Also make inotify_add_watch's pathname marked as nul-terminated

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/c/linux.zig+2-1
......@@ -94,7 +94,8 @@ pub extern "c" fn epoll_pwait(
9494 sigmask: *const sigset_t,
9595) c_int;
9696pub extern "c" fn inotify_init1(flags: c_uint) c_int;
97pub extern "c" fn inotify_add_watch(fd: fd_t, pathname: [*]const u8, mask: u32) c_int;
97pub extern "c" fn inotify_add_watch(fd: fd_t, pathname: [*:0]const u8, mask: u32) c_int;
98pub extern "c" fn inotify_rm_watch(fd: fd_t, wd: c_int) c_int;
9899
99100/// See std.elf for constants for this
100101pub extern "c" fn getauxval(__type: c_ulong) c_ulong;