| ... | @@ -3652,6 +3652,7 @@ pub const INotifyAddWatchError = error{ | ... | @@ -3652,6 +3652,7 @@ pub const INotifyAddWatchError = error{ |
| 3652 | FileNotFound, | 3652 | FileNotFound, |
| 3653 | SystemResources, | 3653 | SystemResources, |
| 3654 | UserResourceLimitReached, | 3654 | UserResourceLimitReached, |
| | 3655 | NotDir, |
| 3655 | } || UnexpectedError; | 3656 | } || UnexpectedError; |
| 3656 | | 3657 | |
| 3657 | /// add a watch to an initialized inotify instance | 3658 | /// add a watch to an initialized inotify instance |
| ... | @@ -3675,6 +3676,7 @@ pub fn inotify_add_watchZ(inotify_fd: i32, pathname: [*:0]const u8, mask: u32) I | ... | @@ -3675,6 +3676,7 @@ pub fn inotify_add_watchZ(inotify_fd: i32, pathname: [*:0]const u8, mask: u32) I |
| 3675 | ENOENT => return error.FileNotFound, | 3676 | ENOENT => return error.FileNotFound, |
| 3676 | ENOMEM => return error.SystemResources, | 3677 | ENOMEM => return error.SystemResources, |
| 3677 | ENOSPC => return error.UserResourceLimitReached, | 3678 | ENOSPC => return error.UserResourceLimitReached, |
| | 3679 | ENOTDIR => return error.NotDir, |
| 3678 | else => |err| return unexpectedErrno(err), | 3680 | else => |err| return unexpectedErrno(err), |
| 3679 | } | 3681 | } |
| 3680 | } | 3682 | } |