| ... | @@ -3667,6 +3667,7 @@ pub const INotifyAddWatchError = error{ | ... | @@ -3667,6 +3667,7 @@ pub const INotifyAddWatchError = error{ |
| 3667 | FileNotFound, | 3667 | FileNotFound, |
| 3668 | SystemResources, | 3668 | SystemResources, |
| 3669 | UserResourceLimitReached, | 3669 | UserResourceLimitReached, |
| | 3670 | NotDir, |
| 3670 | } || UnexpectedError; | 3671 | } || UnexpectedError; |
| 3671 | | 3672 | |
| 3672 | /// add a watch to an initialized inotify instance | 3673 | /// add a watch to an initialized inotify instance |
| ... | @@ -3690,6 +3691,7 @@ pub fn inotify_add_watchZ(inotify_fd: i32, pathname: [*:0]const u8, mask: u32) I | ... | @@ -3690,6 +3691,7 @@ pub fn inotify_add_watchZ(inotify_fd: i32, pathname: [*:0]const u8, mask: u32) I |
| 3690 | ENOENT => return error.FileNotFound, | 3691 | ENOENT => return error.FileNotFound, |
| 3691 | ENOMEM => return error.SystemResources, | 3692 | ENOMEM => return error.SystemResources, |
| 3692 | ENOSPC => return error.UserResourceLimitReached, | 3693 | ENOSPC => return error.UserResourceLimitReached, |
| | 3694 | ENOTDIR => return error.NotDir, |
| 3693 | else => |err| return unexpectedErrno(err), | 3695 | else => |err| return unexpectedErrno(err), |
| 3694 | } | 3696 | } |
| 3695 | } | 3697 | } |