Lines Matching refs:flock
533 static struct flock flock; variable
613 flock.l_type = thiscase->c_type; in dochild()
614 flock.l_whence = thiscase->c_whence; in dochild()
615 flock.l_start = thiscase->c_start; in dochild()
616 flock.l_len = thiscase->c_len; in dochild()
617 flock.l_pid = 0; in dochild()
626 if ((rc = fcntl(fd, F_GETLK, &flock)) < 0) { in dochild()
633 if (flock.l_type != F_UNLCK) { in dochild()
637 flock.l_type, F_UNLCK); in dochild()
641 if (flock.l_whence != thiscase->c_whence) { in dochild()
645 flock.l_whence, thiscase->c_whence); in dochild()
649 if (flock.l_start != thiscase->c_start) { in dochild()
653 test + 1, (int64_t) flock.l_start, in dochild()
658 if (flock.l_len != thiscase->c_len) { in dochild()
662 test + 1, (int64_t) flock.l_len, in dochild()
667 if (flock.l_pid != 0) { in dochild()
671 flock.l_pid); in dochild()
675 if (flock.l_pid != parent) { in dochild()
679 test + 1, flock.l_pid, parent); in dochild()
683 if (flock.l_type != thiscase->a_type) { in dochild()
687 test + 1, flock.l_type, in dochild()
699 flock.l_type = thiscase->c_type; in dochild()
700 flock.l_whence = thiscase->c_whence; in dochild()
701 flock.l_start = thiscase->c_start; in dochild()
702 flock.l_len = thiscase->c_len; in dochild()
703 flock.l_pid = 0; in dochild()
705 if ((rc = fcntl(fd, F_SETLK, &flock)) < 0) { in dochild()
725 (void)fcntl(fd, F_UNLCK, &flock); in dochild()
758 if ((rc = fcntl(fd, F_SETLKW, &flock)) < 0) { in dochild()
796 flock.l_type = thiscase->a_type; in run_test()
797 flock.l_whence = thiscase->a_whence; in run_test()
798 flock.l_start = thiscase->a_start; in run_test()
799 flock.l_len = thiscase->a_len; in run_test()
802 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in run_test()
810 flock.l_type = thiscase->b_type; in run_test()
811 flock.l_whence = thiscase->b_whence; in run_test()
812 flock.l_start = thiscase->b_start; in run_test()
813 flock.l_len = thiscase->b_len; in run_test()
816 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in run_test()
871 flock.l_type = F_UNLCK; in run_test()
872 flock.l_whence = 0; in run_test()
873 flock.l_start = 0L; in run_test()
874 flock.l_len = 0L; in run_test()
875 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in run_test()
1029 flock.l_type = F_WRLCK; in main()
1030 flock.l_whence = -1; in main()
1031 flock.l_start = 0L; in main()
1032 flock.l_len = 0L; in main()
1034 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in main()
1068 flock.l_type = thiscase->a_type; in main()
1069 flock.l_whence = thiscase->a_whence; in main()
1070 flock.l_start = thiscase->a_start; in main()
1071 flock.l_len = thiscase->a_len; in main()
1074 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in main()
1125 flock.l_type = F_UNLCK; in main()
1126 flock.l_whence = 0; in main()
1127 flock.l_start = 0L; in main()
1128 flock.l_len = 0L; in main()
1129 if ((fcntl(fd, F_SETLK, &flock)) < 0) { in main()