Lines Matching +full:wait +full:- +full:free +full:- +full:us

1 /*-
35 #include <sys/wait.h>
100 free(filename); in make_file()
132 return -1; \
140 * Test 1 - F_GETLK on unlocked region
159 printf("1 - F_GETLK on unlocked region: "); in test1()
173 * Test 2 - F_SETLK on locked region
207 * parent will kill us when its done. in test2()
218 * Wait until the child has set its lock and then perform the in test2()
225 * fcntl should return -1 with errno set to either EACCES or in test2()
228 printf("2 - F_SETLK on locked region: "); in test2()
241 * Test 3 - F_SETLKW on locked region
278 * parent will kill us when its done. in test3()
289 * Wait until the child has set its lock and then perform the in test3()
296 * fcntl should wait until the alarm and then return -1 with in test3()
299 printf("3 - F_SETLKW on locked region: "); in test3()
315 * Test 4 - F_GETLK on locked region
347 * parent will kill us when its done. in test4()
358 * Wait until the child has set its lock and then perform the in test4()
371 printf("4 - F_GETLK on locked region: "); in test4()
389 * Test 5 - F_SETLKW simple deadlock
446 * Wait until the child has set its lock and then perform the in test5()
452 * fcntl should immediately return -1 with errno set to in test5()
457 printf("5 - F_SETLKW simple deadlock: "); in test5()
482 * Test 6 - F_SETLKW complex deadlock.
549 * Wait until the children have set their locks and then in test6()
555 * fcntl should immediately return -1 with errno set to in test6()
560 printf("6 - F_SETLKW complex deadlock: "); in test6()
588 * Test 7 - F_SETLK shared lock on exclusive locked region
622 * parent will kill us when its done. in test7()
633 * Wait until the child has set its lock and then perform the in test7()
640 * fcntl should wait until the alarm and then return -1 with in test7()
643 printf("7 - F_SETLK shared lock on exclusive locked region: "); in test7()
659 * Test 8 - F_SETLK shared lock on share locked region
694 * parent will kill us when its done. in test8()
705 * Wait until the child has set its lock and then perform the in test8()
712 * fcntl should wait until the alarm and then return -1 with in test8()
715 printf("8 - F_SETLK shared lock on share locked region: "); in test8()
737 * Test 9 - F_SETLK exclusive lock on share locked region
771 * parent will kill us when its done. in test9()
782 * Wait until the child has set its lock and then perform the in test9()
789 * fcntl should wait until the alarm and then return -1 with in test9()
792 printf("9 - F_SETLK exclusive lock on share locked region: "); in test9()
808 * Test 10 - trying to set bogus pid or sysid values
846 * parent will kill us when its done. in test10()
857 * Wait until the child has set its lock and then perform the in test10()
863 printf("10 - trying to set bogus pid or sysid values: "); in test10()
882 * Test 11 - remote locks
904 printf("11 - remote locks: "); in test11()
962 * Test 12 - F_SETLKW on locked region which is then unlocked
996 * parent will kill us when its done. in test12()
1008 * Wait until the child has set its lock and then perform the in test12()
1015 * fcntl should wait until the alarm and then return -1 with in test12()
1018 printf("12 - F_SETLKW on locked region which is then unlocked: "); in test12()
1039 * Test 13 - F_SETLKW on locked region, race with owner
1059 printf("13 - F_SETLKW on locked region, race with owner: "); in test13()
1079 * parent will kill us when its done. in test13()
1091 * Wait until the child has set its lock and then perform the in test13()
1101 * fcntl should wait until the alarm and then return -1 with in test13()
1115 FAIL(!(res == 0 || (res == -1 && errno == EINTR))); in test13()
1127 * Test 14 - soak test
1151 printf("14 - soak test: "); in test14()
1164 * Parent - record the pid and continue. in test14()
1171 * Child - do some work and exit. in test14()
1188 len = end - start; in test14()
1242 * We got a write lock - write in test14()
1256 * We got a read lock - read in test14()
1314 * Test 15 - flock(2) semantcs
1324 * the other shared lock - there should be no active locks at this
1356 * parent will kill us when its done. in test15()
1371 * Wait until the child has set its lock and then perform the in test15()
1382 * flock should wait until the alarm and then return -1 with in test15()
1385 printf("15 - flock(2) semantics: "); in test15()
1424 error = fcntl(tc->tc_fd, F_SETLKW, &tc->tc_fl); in test16_func()
1432 * Test 16 - F_SETLKW from two threads
1468 * parent will kill us when its done. in test16()
1479 * Wait until the child has set its lock and then perform the in test16()
1486 * fcntl should wait until the alarm and then return -1 with in test16()
1489 printf("16 - F_SETLKW on locked region by two threads: "); in test16()
1522 int intr; /* non-zero if the test interrupts a lock */
1562 test_argc = argc - 2; in main()