/usr/lib/gcc-cross/i686-linux-gnu/6/include/d/core/sys/linux/sys/inotify.d is in libgphobos-6-dev-i386-cross 6.4.0-17ubuntu1cross1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | /**
* D header file for GNU/Linux.
*
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: Gary Willoughby
*/
module core.sys.linux.sys.inotify;
version (linux):
extern (C):
@system:
nothrow:
struct inotify_event
{
int wd;
uint mask;
uint cookie;
uint len;
char[0] name;
}
enum: uint
{
IN_ACCESS = 0x00000000,
IN_MODIFY = 0x00000002,
IN_ATTRIB = 0x00000004,
IN_CLOSE_WRITE = 0x00000008,
IN_CLOSE_NOWRITE = 0x00000010,
IN_OPEN = 0x00000020,
IN_MOVED_FROM = 0x00000040,
IN_MOVED_TO = 0x00000080,
IN_CREATE = 0x00000100,
IN_DELETE = 0x00000200,
IN_DELETE_SELF = 0x00000400,
IN_MOVE_SELF = 0x00000800,
IN_UMOUNT = 0x00002000,
IN_Q_OVERFLOW = 0x00004000,
IN_IGNORED = 0x00008000,
IN_CLOSE = 0x00000018,
IN_MOVE = 0x000000C0,
IN_ONLYDIR = 0x01000000,
IN_DONT_FOLLOW = 0x02000000,
IN_EXCL_UNLINK = 0x04000000,
IN_MASK_ADD = 0x20000000,
IN_ISDIR = 0x40000000,
IN_ONESHOT = 0x80000000,
IN_ALL_EVENTS = 0x80000FFF,
}
version (X86)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x800; // octal!4000
}
else version (X86_64)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x800; // octal!4000
}
else version (MIPS32)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x80; // octal!200
}
else version (MIPS64)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x80; // octal!200
}
else version (PPC)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x800; // octal!4000
}
else version (PPC64)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x800; // octal!4000
}
else version (ARM)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x800; // octal!4000
}
else version (AArch64)
{
enum IN_CLOEXEC = 0x80000; // octal!2000000
enum IN_NONBLOCK = 0x800; // octal!4000
}
else
static assert(0, "unimplemented");
int inotify_init();
int inotify_init1(int flags);
int inotify_add_watch(int fd, const(char)* name, uint mask);
int inotify_rm_watch(int fd, uint wd);
|