File: inotify_add_watch.c

package info (click to toggle)
trinity 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,252 kB
  • ctags: 2,738
  • sloc: ansic: 24,011; sh: 322; makefile: 141
file content (46 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
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
/*
 * SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname, u32, mask)
 */
#include "sanitise.h"
#include "compat.h"

#include <sys/inotify.h>

struct syscall syscall_inotify_add_watch = {
	.name = "inotify_add_watch",
	.num_args = 3,
	.arg1name = "fd",
	.arg1type = ARG_FD,
	.arg2name = "pathname",
	.arg2type = ARG_PATHNAME,
	.arg3name = "mask",
	.arg3type = ARG_LIST,
	.arg3list = {
		.num = 21,
		.values = {
			IN_ACCESS,
			IN_MODIFY,
			IN_ATTRIB,
			IN_CLOSE_WRITE,
			IN_CLOSE_NOWRITE,
			IN_OPEN,
			IN_MOVED_FROM,
			IN_MOVED_TO,
			IN_CREATE,
			IN_DELETE,
			IN_DELETE_SELF,
			IN_MOVE_SELF,
			IN_UNMOUNT,
			IN_Q_OVERFLOW,
			IN_IGNORED,
			IN_ONLYDIR,
			IN_DONT_FOLLOW,
			IN_EXCL_UNLINK,
			IN_MASK_ADD,
			IN_ISDIR,
			IN_ONESHOT,
		},
	},
	.flags = NEED_ALARM,
	.group = GROUP_VFS,
};