Lines Matching refs:FILE1
32 #define FILE1 PDIR "/file1" macro
725 init_test(&test, "1.1.2: unlink a file", FILE1, 1, 0, NOTE_DELETE, YES_EVENT); in run_note_delete_tests()
727 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
728 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_delete_tests()
739 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
741 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_delete_tests()
754 init_test(&test, "1.1.6: make a fifo, unlink it", FILE1, 1, 0, NOTE_DELETE, YES_EVENT); in run_note_delete_tests()
756 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
757 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 1, (void*)FILE1); in run_note_delete_tests()
760 init_test(&test, "1.1.7: rename a file over a fifo", FILE1, 2, 1, NOTE_DELETE, YES_EVENT); in run_note_delete_tests()
763 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
765 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE2, (void*)FILE1); in run_note_delete_tests()
766 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_delete_tests()
771 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
772 init_action(&(test.t_prep_actions[1]), NOSLEEP, SYMLINK, 2, (void*)FILE1, (void*)FILE2); in run_note_delete_tests()
774 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_delete_tests()
779 init_test(&test, "1.2.1: Straight-up rename file", FILE1, 1, 1, NOTE_DELETE, NO_EVENT); in run_note_delete_tests()
780 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
781 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_delete_tests()
791 init_test(&test, "1.2.3: Null action on file", FILE1, 1, 1, NOTE_DELETE, NO_EVENT); in run_note_delete_tests()
792 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
794 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
797 …init_test(&test, "1.2.4: Rename one file over another: watch the file that lives", FILE1, 2, 1, NO… in run_note_delete_tests()
798 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_delete_tests()
800 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_delete_tests()
827 init_test(&test, "2.1.1: Straight-up write to a file", FILE1, 1, 1, NOTE_WRITE, YES_EVENT); in run_note_write_tests()
828 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
829 init_action(&test.t_helpthreadact, SLEEP, WRITE, 2, (void*)FILE1, NULL); in run_note_write_tests()
830 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
834 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
843 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
852 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
861 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
872 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
877 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)pathbuf, (void*)FILE1); in run_note_write_tests()
878 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
882 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
886 init_action(&(test.t_prep_actions[1]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
887 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)pathbuf); in run_note_write_tests()
892 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
901 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
910 init_test(&test, "2.1.12: write to a FIFO", FILE1, 1, 1, NOTE_WRITE, YES_EVENT); in run_note_write_tests()
912 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
915 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
919 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
924 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 2, (void*)pathbuf, (void*)FILE1); in run_note_write_tests()
931 makepath(pathbuf, DIR1, FILE1); in run_note_write_tests()
945 init_test(&test, "2.1.15: Change a file with mmap()", FILE1, 1, 1, NOTE_WRITE, YES_EVENT); in run_note_write_tests()
946 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
947 init_action(&test.t_helpthreadact, SLEEP, MMAP, 2, (void*)FILE1, (void*)1); /* 1 -> "modify it"*/ in run_note_write_tests()
948 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
952 init_test(&test, "2.2.1: just open and close existing file", FILE1, 1, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
953 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
954 init_action(&test.t_helpthreadact, SLEEP, OPEN, 2, (void*)FILE1, NULL); in run_note_write_tests()
955 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
958 init_test(&test, "2.2.2: read from existing file", FILE1, 1, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
959 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
960 init_action(&test.t_helpthreadact, SLEEP, READ, 2, (void*)FILE1, NULL); in run_note_write_tests()
961 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
964 init_test(&test, "2.2.3: rename existing file", FILE1, 1, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
965 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
966 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_write_tests()
984 init_test(&test, "2.2.8: rename a fifo", FILE1, 1, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
986 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
987 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_write_tests()
991 init_test(&test, "2.2.9: unlink a fifo", FILE1, 1, 0, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
993 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
994 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 1, (void*)FILE1); in run_note_write_tests()
997 init_test(&test, "2.2.10: chmod a file", FILE1, 1, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
998 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
999 init_action(&test.t_helpthreadact, SLEEP, CHMOD, 2, (void*)FILE1, (void*)0700); in run_note_write_tests()
1000 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
1006 init_test(&test, "2.2.11: chown a file", FILE1, 2, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
1007 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
1008 …init_action(&test.t_prep_actions[1], NOSLEEP, CHOWN, 3, (void*)FILE1, (void*)pwd->pw_uid, (void*)p… in run_note_write_tests()
1009 …init_action(&test.t_helpthreadact, SLEEP, CHOWN, 3, (void*)FILE1, (void*)getuid(), (void*)getgid()… in run_note_write_tests()
1010 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
1030 init_test(&test, "2.1.14: mmap() a file but do not change it", FILE1, 1, 1, NOTE_WRITE, NO_EVENT); in run_note_write_tests()
1031 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
1032 init_action(&test.t_helpthreadact, SLEEP, MMAP, 2, (void*)FILE1, (void*)0); in run_note_write_tests()
1033 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_write_tests()
1045 init_test(&test, "3.1.1: write beyond the end of a file", FILE1, 1, 1, NOTE_EXTEND, YES_EVENT); in run_note_extend_tests()
1047 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1048 init_action(&test.t_helpthreadact, SLEEP, WRITE, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1049 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1092 init_test(&test, "3.1.7: lengthen a file with truncate()", FILE1, 1, 1, NOTE_EXTEND, YES_EVENT); in run_note_extend_tests()
1094 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1095 init_action(&test.t_helpthreadact, SLEEP, LENGTHEN, 2, FILE1, (void*)NULL); in run_note_extend_tests()
1096 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1101 init_test(&test, "3.2.1: setxattr() a file", FILE1, 1, 1, NOTE_EXTEND, NO_EVENT); in run_note_extend_tests()
1102 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1103 init_action(&test.t_helpthreadact, SLEEP, SETXATTR, 2, FILE1, (void*)NULL); in run_note_extend_tests()
1104 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1107 init_test(&test, "3.2.2: chmod a file", FILE1, 1, 1, NOTE_EXTEND, NO_EVENT); in run_note_extend_tests()
1108 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1109 init_action(&test.t_helpthreadact, SLEEP, CHMOD, 2, (void*)FILE1, (void*)0700); in run_note_extend_tests()
1110 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1115 init_test(&test, "3.2.3: chown a file", FILE1, 2, 1, NOTE_EXTEND, NO_EVENT); in run_note_extend_tests()
1116 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1117 …init_action(&test.t_prep_actions[1], NOSLEEP, CHOWN, 3, (void*)FILE1, (void*)pwd->pw_uid, (void*)p… in run_note_extend_tests()
1118 …init_action(&test.t_helpthreadact, SLEEP, CHOWN, 3, (void*)FILE1, (void*)getuid(), (void*)getgid()… in run_note_extend_tests()
1119 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1140 init_test(&test, "3.2.6: TRUNC a file with truncate()", FILE1, 1, 1, NOTE_EXTEND, NO_EVENT); in run_note_extend_tests()
1141 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1142 init_action(&test.t_helpthreadact, SLEEP, TRUNC, 2, FILE1, (void*)NULL); in run_note_extend_tests()
1143 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_extend_tests()
1153 init_test(&test, "4.1.1: chmod a file", FILE1, 1, 1, NOTE_ATTRIB, YES_EVENT); in run_note_attrib_tests()
1155 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1156 init_action(&test.t_helpthreadact, SLEEP, CHMOD, 2, FILE1, (void*)0700); in run_note_attrib_tests()
1157 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1162 init_test(&test, "4.1.2: chown a file", FILE1, 2, 1, NOTE_ATTRIB, YES_EVENT); in run_note_attrib_tests()
1163 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1164 …init_action(&(test.t_prep_actions[1]), NOSLEEP, CHOWN, 3, (void*)FILE1, (void*)pwd->pw_uid, (void*… in run_note_attrib_tests()
1165 init_action(&test.t_helpthreadact, SLEEP, CHOWN, 3, FILE1, (void*)getuid(), (void*)pwd->pw_gid); in run_note_attrib_tests()
1166 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1185 init_test(&test, "4.1.5: setxattr on a file", FILE1, 1, 1, NOTE_ATTRIB, YES_EVENT); in run_note_attrib_tests()
1187 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1188 init_action(&test.t_helpthreadact, SLEEP, SETXATTR, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1189 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1201 init_test(&test, "4.1.7: exchangedata", FILE1, 2, 2, NOTE_ATTRIB, YES_EVENT); in run_note_attrib_tests()
1202 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1204 init_action(&test.t_helpthreadact, SLEEP, EXCHANGEDATA, 2, (void*)FILE1, (void*)FILE2); in run_note_attrib_tests()
1205 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1210 init_test(&test, "4.1.8: utimes on a file", FILE1, 1, 1, NOTE_ATTRIB, YES_EVENT); in run_note_attrib_tests()
1212 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1213 init_action(&test.t_helpthreadact, SLEEP, UTIMES, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1214 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1226 init_test(&test, "4.2.1: rename a file", FILE1, 1, 1, NOTE_ATTRIB, NO_EVENT); in run_note_attrib_tests()
1227 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1228 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_attrib_tests()
1232 init_test(&test, "4.2.2: open (do not change) a file", FILE1, 1, 1, NOTE_ATTRIB, NO_EVENT); in run_note_attrib_tests()
1233 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1234 init_action(&test.t_helpthreadact, SLEEP, OPEN, 2, (void*)FILE1, NULL); in run_note_attrib_tests()
1235 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_attrib_tests()
1238 init_test(&test, "4.2.3: stat a file", FILE1, 1, 1, NOTE_ATTRIB, NO_EVENT); in run_note_attrib_tests()
1239 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1240 init_action(&test.t_helpthreadact, SLEEP, STAT, 2, (void*)FILE1, NULL); in run_note_attrib_tests()
1241 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_attrib_tests()
1244 init_test(&test, "4.2.4: unlink a file", FILE1, 1, 0, NOTE_ATTRIB, NO_EVENT); in run_note_attrib_tests()
1245 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1246 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_attrib_tests()
1249 init_test(&test, "4.2.5: write to a file", FILE1, 1, 1, NOTE_ATTRIB, NO_EVENT); in run_note_attrib_tests()
1250 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1251 init_action(&test.t_helpthreadact, SLEEP, WRITE, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1252 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1258 makepath(pathbuf, DIR1, FILE1); in run_note_attrib_tests()
1276 makepath(pathbuf, DIR1, FILE1); in run_note_attrib_tests()
1285 makepath(pathbuf, DIR1, FILE1); in run_note_attrib_tests()
1287 init_action(&(test.t_prep_actions[1]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_attrib_tests()
1288 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)pathbuf); in run_note_attrib_tests()
1295 makepath(pathbuf, DIR1, FILE1); in run_note_attrib_tests()
1304 makepath(pathbuf, DIR1, FILE1); in run_note_attrib_tests()
1321 init_test(&test, "5.1.1: unlink() a file", FILE1, 1, 0, NOTE_LINK, YES_EVENT); in run_note_link_tests()
1323 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_link_tests()
1324 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 2, (void*)FILE1, (void*)NULL); in run_note_link_tests()
1328 init_test(&test, "5.1.1.5: link A to B, watch A, remove B", FILE1, 2, 1, NOTE_LINK, YES_EVENT); in run_note_link_tests()
1329 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_link_tests()
1330 init_action(&(test.t_prep_actions[1]), NOSLEEP, HARDLINK, 2, (void*)FILE1, (void*)FILE2); in run_note_link_tests()
1332 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_link_tests()
1335 init_test(&test, "5.1.2: link() to a file", FILE1, 1, 2, NOTE_LINK, YES_EVENT); in run_note_link_tests()
1339 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_link_tests()
1340 init_action(&test.t_helpthreadact, SLEEP, HARDLINK, 2, (void*)FILE1, (void*)FILE2); in run_note_link_tests()
1341 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_link_tests()
1404 makepath(pathbuf, DIR1, FILE1); in run_note_link_tests()
1413 makepath(pathbuf, DIR1, FILE1); in run_note_link_tests()
1422 makepath(pathbuf, DIR1, FILE1); in run_note_link_tests()
1433 makepath(pathbuf, DIR1, FILE1); in run_note_link_tests()
1437 init_action(&(test.t_prep_actions[1]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_link_tests()
1438 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)pathbuf); in run_note_link_tests()
1443 makepath(pathbuf, DIR1, FILE1); in run_note_link_tests()
1455 init_action(&test.t_helpthreadact, SLEEP, SYMLINK, 2, (void*)DIR1, (void*)FILE1); in run_note_link_tests()
1456 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_link_tests()
1460 init_test(&test, "5.2.7: make a symlink to a file", FILE1, 1, 2, NOTE_LINK, NO_EVENT); in run_note_link_tests()
1461 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_link_tests()
1462 init_action(&test.t_helpthreadact, SLEEP, SYMLINK, 2, (void*)FILE1, (void*)FILE2); in run_note_link_tests()
1464 init_action(&test.t_cleanup_actions[1], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_link_tests()
1473 init_test(&test, "6.1.1: rename a file", FILE1, 1, 1, NOTE_RENAME, YES_EVENT); in run_note_rename_tests()
1475 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_rename_tests()
1476 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_rename_tests()
1487 init_test(&test, "6.1.3: rename one file over another", FILE1, 2, 1, NOTE_RENAME, YES_EVENT); in run_note_rename_tests()
1488 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_rename_tests()
1490 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_rename_tests()
1504 init_test(&test, "6.2.1: unlink a file", FILE1, 1, 0, NOTE_RENAME, NO_EVENT); in run_note_rename_tests()
1505 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_rename_tests()
1506 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_rename_tests()
1514 init_test(&test, "6.2.3: link() to a file", FILE1, 1, 2, NOTE_RENAME, NO_EVENT); in run_note_rename_tests()
1515 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_rename_tests()
1516 init_action(&test.t_helpthreadact, SLEEP, HARDLINK, 2, (void*)FILE1, (void*)FILE2); in run_note_rename_tests()
1517 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_rename_tests()
1523 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_rename_tests()
1525 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_note_rename_tests()
1537 init_test(&test, "6.2.6: rename a file to itself", FILE1, 1, 1, NOTE_RENAME, NO_EVENT); in run_note_rename_tests()
1538 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_note_rename_tests()
1539 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE1); in run_note_rename_tests()
1540 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_note_rename_tests()
1554 init_test(&test, "7.1.1: revoke file", FILE1, 1, 1, NOTE_REVOKE, YES_EVENT); in run_note_revoke_tests()
1555 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_note_revoke_tests()
1556 init_action(&test.t_helpthreadact, SLEEP, REVOKE, 1, (void*)FILE1); in run_note_revoke_tests()
1557 init_action(&(test.t_cleanup_actions[0]), NOSLEEP, UNLINK, 1, (void*)FILE1); in run_note_revoke_tests()
1560 init_test(&test, "7.2.1: delete file", FILE1, 1, 0, NOTE_REVOKE, NO_EVENT); in run_note_revoke_tests()
1561 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_note_revoke_tests()
1562 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 1, (void*)FILE1); in run_note_revoke_tests()
1571 …init_test(&test, "8.1.1: how much data in file of length LENGTHEN_SIZE?", FILE1, 2, 1, EVFILT_READ… in run_evfilt_read_tests()
1572 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void*)NULL); in run_evfilt_read_tests()
1573 init_action(&(test.t_prep_actions[1]), NOSLEEP, LENGTHEN, 2, (void*)FILE1, (void*)NULL); in run_evfilt_read_tests()
1575 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1578 …init_test(&test, "8.1.2: block, then write to file", FILE1, 2, 1, EVFILT_READ, strlen(TEST_STRING)… in run_evfilt_read_tests()
1579 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1580 init_action(&(test.t_prep_actions[1]), NOSLEEP, TRUNC, 1, (void*)FILE1); in run_evfilt_read_tests()
1581 init_action(&test.t_helpthreadact, SLEEP, WRITE, 1, (void*)FILE1); in run_evfilt_read_tests()
1582 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1585 init_test(&test, "8.1.3: block, then extend", FILE1, 2, 1, EVFILT_READ, LENGTHEN_SIZE); in run_evfilt_read_tests()
1586 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1587 init_action(&(test.t_prep_actions[1]), NOSLEEP, TRUNC, 1, (void*)FILE1); in run_evfilt_read_tests()
1588 init_action(&test.t_helpthreadact, SLEEP, LENGTHEN, 1, (void*)FILE1); in run_evfilt_read_tests()
1589 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1592 …init_test(&test, "8.1.4: block, then seek to beginning", FILE1, 2, 1, EVFILT_READ, strlen(TEST_STR… in run_evfilt_read_tests()
1593 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1594 init_action(&(test.t_prep_actions[1]), NOSLEEP, WRITE, 1, (void*)FILE1); in run_evfilt_read_tests()
1597 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1601 …init_test(&test, "8.1.5: block, then write to fifo", FILE1, 1, 1, EVFILT_READ, strlen(TEST_STRING)… in run_evfilt_read_tests()
1602 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1); in run_evfilt_read_tests()
1604 init_action(&test.t_helpthreadact, SLEEP, WRITE, 1, (void*)FILE1); in run_evfilt_read_tests()
1605 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1609 init_test(&test, "8.2.1: just rename", FILE1, 2, 1, EVFILT_READ, NO_EVENT); in run_evfilt_read_tests()
1610 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1611 init_action(&(test.t_prep_actions[1]), NOSLEEP, TRUNC, 1, (void*)FILE1); in run_evfilt_read_tests()
1612 init_action(&test.t_helpthreadact, SLEEP, RENAME, 2, (void*)FILE1, (void*)FILE2); in run_evfilt_read_tests()
1616 init_test(&test, "8.2.2: delete file", FILE1, 2, 0, EVFILT_READ, NO_EVENT); in run_evfilt_read_tests()
1617 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1618 init_action(&(test.t_prep_actions[1]), NOSLEEP, TRUNC, 1, (void*)FILE1); in run_evfilt_read_tests()
1619 init_action(&test.t_helpthreadact, SLEEP, UNLINK, 1, (void*)FILE1); in run_evfilt_read_tests()
1622 init_test(&test, "8.2.3: write to beginning", FILE1, 2, 1, EVFILT_READ, NO_EVENT); in run_evfilt_read_tests()
1623 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1624 init_action(&(test.t_prep_actions[1]), NOSLEEP, WRITE, 1, (void*)FILE1); in run_evfilt_read_tests()
1626 init_action(&test.t_helpthreadact, SLEEP, WRITE, 1, (void*)FILE1); in run_evfilt_read_tests()
1627 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 1, (void*)FILE1); in run_evfilt_read_tests()
1630 init_test(&test, "8.1.4: block, then seek to current location", FILE1, 2, 1, EVFILT_READ, 0); in run_evfilt_read_tests()
1631 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1); in run_evfilt_read_tests()
1632 init_action(&(test.t_prep_actions[1]), NOSLEEP, WRITE, 1, (void*)FILE1); in run_evfilt_read_tests()
1635 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1638 init_test(&test, "8.2.5: trying to read from empty fifo", FILE1, 1, 1, EVFILT_READ, 0); in run_evfilt_read_tests()
1639 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1); in run_evfilt_read_tests()
1642 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_read_tests()
1673 init_test(&test, "9.1.1: how much space in empty fifo?", FILE1, 1, 1, EVFILT_WRITE, FIFO_SPACE); in run_evfilt_write_tests()
1674 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_evfilt_write_tests()
1677 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_write_tests()
1680 …init_test(&test, "9.1.2: how much space in slightly written fifo?", FILE1, 1, 1, EVFILT_WRITE, FIF… in run_evfilt_write_tests()
1681 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_evfilt_write_tests()
1685 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_write_tests()
1688 init_test(&test, "9.2.1: how much space in a full fifo?", FILE1, 1, 1, EVFILT_WRITE, 0); in run_evfilt_write_tests()
1689 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_evfilt_write_tests()
1693 init_action(&(test.t_helpthreadact), NOSLEEP, FILLFD, 1, (void*)FILE1, (void*)NULL); in run_evfilt_write_tests()
1694 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_evfilt_write_tests()
1702 …init_poll_test(&test, "10.1.1: does poll say I can write a regular file?", FILE1, 1, 1, POLLWRNORM… in run_poll_tests()
1703 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1705 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1708 …init_poll_test(&test, "10.1.2: does poll say I can write an empty FIFO?", FILE1, 1, 1, POLLWRNORM,… in run_poll_tests()
1709 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1712 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1715 …init_poll_test(&test, "10.1.3: does poll say I can read a nonempty FIFO?", FILE1, 1, 1, POLLRDNORM… in run_poll_tests()
1716 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1720 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1723 …init_poll_test(&test, "10.1.4: does poll say I can read a nonempty regular file?", FILE1, 2, 1, PO… in run_poll_tests()
1724 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1725 init_action(&(test.t_prep_actions[1]), NOSLEEP, LENGTHEN, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1727 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1730 …init_poll_test(&test, "10.1.5: does poll say I can read an empty file?", FILE1, 1, 1, POLLRDNORM, … in run_poll_tests()
1731 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1733 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1739 …init_poll_test(&test, "10.2.2: does poll say I can read an empty FIFO?", FILE1, 1, 1, POLLRDNORM, … in run_poll_tests()
1740 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1743 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1746 …init_poll_test(&test, "10.2.3: does poll say I can write a full FIFO?", FILE1, 1, 1, POLLWRNORM, 0… in run_poll_tests()
1747 init_action(&(test.t_prep_actions[0]), NOSLEEP, MKFIFO, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1751 init_action(&(test.t_helpthreadact), NOSLEEP, FILLFD, 1, (void*)FILE1, (void*)NULL); in run_poll_tests()
1752 init_action(&test.t_cleanup_actions[0], NOSLEEP, UNLINK, 2, (void*)FILE1, NULL); in run_poll_tests()
1761 init_test(&test, "11.1.1: unlock file", FILE1, 1, 1, NOTE_FUNLOCK, YES_EVENT); in run_note_funlock_tests()
1763 init_action(&(test.t_prep_actions[0]), NOSLEEP, CREAT, 2, (void*)FILE1, (void *)NULL); in run_note_funlock_tests()
1764 init_action(&test.t_helpthreadact, SLEEP, FUNLOCK, 2, (void*)FILE1, (void *)NULL); in run_note_funlock_tests()
1765 init_action(&(test.t_cleanup_actions[0]), NOSLEEP, UNLINK, 2, (void*)FILE1, (void *)NULL); in run_note_funlock_tests()