diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-05-20 22:48:30 +0000 |
|---|---|---|
| committer | Mark Johnston <markjdb@gmail.com> | 2025-07-04 17:55:21 +0000 |
| commit | 4f67c4aece4f5794be20c6bc99c177e44b1320e8 (patch) | |
| tree | 69e27a66077db488adb14fb17be45fb85f03cdd5 /sys/freebsd | |
| parent | 5b7dc819b6c0cc8f01071c701d4835d2a5cb17d4 (diff) | |
sys/freebsd: add inotify definitions
Diffstat (limited to 'sys/freebsd')
| -rw-r--r-- | sys/freebsd/inotify.txt | 19 | ||||
| -rw-r--r-- | sys/freebsd/inotify.txt.const | 27 |
2 files changed, 46 insertions, 0 deletions
diff --git a/sys/freebsd/inotify.txt b/sys/freebsd/inotify.txt new file mode 100644 index 000000000..940bab884 --- /dev/null +++ b/sys/freebsd/inotify.txt @@ -0,0 +1,19 @@ +# Copyright 2015 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include <sys/inotify.h> +include <sys/specialfd.h> + +resource fd_inotify[fd] +resource inotifydesc[int32] + +__specialfd$inotify(type const[SPECIALFD_INOTIFY], req ptr[in, specialfd_inotify], len len[req]) fd_inotify +inotify_add_watch_at(fd fd_inotify, dfd fd_dir, file ptr[in, filename], mask flags[inotify_mask]) inotifydesc +inotify_rm_watch(fd fd_inotify, wd inotifydesc) + +specialfd_inotify { + flags flags[inotify_flags, int32] +} + +inotify_flags = IN_NONBLOCK, IN_CLOEXEC +inotify_mask = IN_ACCESS, IN_ATTRIB, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, IN_CREATE, IN_DELETE, IN_DELETE_SELF, IN_MODIFY, IN_MOVE_SELF, IN_MOVED_FROM, IN_MOVED_TO, IN_OPEN, IN_DONT_FOLLOW, IN_EXCL_UNLINK, IN_MASK_ADD, IN_ONESHOT, IN_ONLYDIR, IN_MASK_CREATE, IN_ISDIR diff --git a/sys/freebsd/inotify.txt.const b/sys/freebsd/inotify.txt.const new file mode 100644 index 000000000..462ba991d --- /dev/null +++ b/sys/freebsd/inotify.txt.const @@ -0,0 +1,27 @@ +# Code generated by syz-sysgen. DO NOT EDIT. +arches = 386, amd64, arm64, riscv64 +IN_ACCESS = 1 +IN_ATTRIB = 4 +IN_CLOEXEC = 1048576 +IN_CLOSE_NOWRITE = 16 +IN_CLOSE_WRITE = 8 +IN_CREATE = 256 +IN_DELETE = 512 +IN_DELETE_SELF = 1024 +IN_DONT_FOLLOW = 33554432 +IN_EXCL_UNLINK = 67108864 +IN_ISDIR = 1073741824 +IN_MASK_ADD = 536870912 +IN_MASK_CREATE = 268435456 +IN_MODIFY = 2 +IN_MOVED_FROM = 64 +IN_MOVED_TO = 128 +IN_MOVE_SELF = 2048 +IN_NONBLOCK = 4 +IN_ONESHOT = 2147483648 +IN_ONLYDIR = 16777216 +IN_OPEN = 32 +SPECIALFD_INOTIFY = 2 +SYS___specialfd = 577 +SYS_inotify_add_watch_at = 593 +SYS_inotify_rm_watch = 594 |
