| ... | ... | @@ -1299,7 +1299,13 @@ pub const ioprio_get = @compileError("TODO: ioprio_get"); |
| 1299 | 1299 | // inotify_init |
| 1300 | 1300 | // int inotify_init(void); |
| 1301 | 1301 | // asmlinkage long sys_inotify_init(void); |
| 1302 | | pub const inotify_init = @compileError("TODO: inotify_init"); |
| 1302 | pub fn inotify_init() errno.Error!c_int { |
| 1303 | const r = syscall0(.inotify_init); |
| 1304 | return switch (_errno(r)) { |
| 1305 | .ok => @intCast(r), |
| 1306 | _ => |c| errno.errorFromInt(@intFromEnum(c)), |
| 1307 | }; |
| 1308 | } |
| 1303 | 1309 | |
| 1304 | 1310 | // inotify_add_watch |
| 1305 | 1311 | // int inotify_add_watch(int fd, const char *pathname, uint32_t mask); |