Skip to content

Commit 4f67c4a

Browse files
committed
sys/freebsd: add inotify definitions
1 parent 5b7dc81 commit 4f67c4a

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

sys/freebsd/inotify.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2015 syzkaller project authors. All rights reserved.
2+
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
3+
4+
include <sys/inotify.h>
5+
include <sys/specialfd.h>
6+
7+
resource fd_inotify[fd]
8+
resource inotifydesc[int32]
9+
10+
__specialfd$inotify(type const[SPECIALFD_INOTIFY], req ptr[in, specialfd_inotify], len len[req]) fd_inotify
11+
inotify_add_watch_at(fd fd_inotify, dfd fd_dir, file ptr[in, filename], mask flags[inotify_mask]) inotifydesc
12+
inotify_rm_watch(fd fd_inotify, wd inotifydesc)
13+
14+
specialfd_inotify {
15+
flags flags[inotify_flags, int32]
16+
}
17+
18+
inotify_flags = IN_NONBLOCK, IN_CLOEXEC
19+
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

sys/freebsd/inotify.txt.const

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Code generated by syz-sysgen. DO NOT EDIT.
2+
arches = 386, amd64, arm64, riscv64
3+
IN_ACCESS = 1
4+
IN_ATTRIB = 4
5+
IN_CLOEXEC = 1048576
6+
IN_CLOSE_NOWRITE = 16
7+
IN_CLOSE_WRITE = 8
8+
IN_CREATE = 256
9+
IN_DELETE = 512
10+
IN_DELETE_SELF = 1024
11+
IN_DONT_FOLLOW = 33554432
12+
IN_EXCL_UNLINK = 67108864
13+
IN_ISDIR = 1073741824
14+
IN_MASK_ADD = 536870912
15+
IN_MASK_CREATE = 268435456
16+
IN_MODIFY = 2
17+
IN_MOVED_FROM = 64
18+
IN_MOVED_TO = 128
19+
IN_MOVE_SELF = 2048
20+
IN_NONBLOCK = 4
21+
IN_ONESHOT = 2147483648
22+
IN_ONLYDIR = 16777216
23+
IN_OPEN = 32
24+
SPECIALFD_INOTIFY = 2
25+
SYS___specialfd = 577
26+
SYS_inotify_add_watch_at = 593
27+
SYS_inotify_rm_watch = 594

0 commit comments

Comments
 (0)