Lines Matching refs:file
53 static void check_mark(char *file, unsigned long long flag, char *flagstr,
57 file) != expect) {
60 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file,
65 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file,
73 test_event(file);
76 FAN_OPEN, AT_FDCWD, file);
80 #define CHECK_MARK(file, flag, expect, func) check_mark(file, flag, #flag, expect, func)
82 static void do_open(char *file, int flag)
86 fd = SAFE_OPEN(file, O_RDONLY | flag);
90 static void open_file(char *file)
92 do_open(file, 0);
95 static void open_dir(char *file)
97 do_open(file, O_DIRECTORY);
124 static void do_open_test(char *file, int flag, int mask)
126 do_open(file, flag);
131 static void test_open_file(char *file)
133 do_open_test(file, 0, S_IFREG);
158 static void test_open_symlink(char *file)
160 /* Since mark is on a symlink, no event should be generated by opening a file */
161 do_open(file, 0);