github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/sys/freebsd/inotify.txt (about)

     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