Lines Matching refs:flock

534 static struct flock flock;
614 flock.l_type = thiscase->c_type;
615 flock.l_whence = thiscase->c_whence;
616 flock.l_start = thiscase->c_start;
617 flock.l_len = thiscase->c_len;
618 flock.l_pid = 0;
627 if ((rc = fcntl(fd, F_GETLK, &flock)) < 0) {
634 if (flock.l_type != F_UNLCK) {
638 flock.l_type, F_UNLCK);
642 if (flock.l_whence != thiscase->c_whence) {
646 flock.l_whence, thiscase->c_whence);
650 if (flock.l_start != thiscase->c_start) {
654 test + 1, (int64_t) flock.l_start,
659 if (flock.l_len != thiscase->c_len) {
663 test + 1, (int64_t) flock.l_len,
668 if (flock.l_pid != 0) {
672 flock.l_pid);
676 if (flock.l_pid != parent) {
680 test + 1, flock.l_pid, parent);
684 if (flock.l_type != thiscase->a_type) {
688 test + 1, flock.l_type,
700 flock.l_type = thiscase->c_type;
701 flock.l_whence = thiscase->c_whence;
702 flock.l_start = thiscase->c_start;
703 flock.l_len = thiscase->c_len;
704 flock.l_pid = 0;
706 if ((rc = fcntl(fd, F_SETLK, &flock)) < 0) {
726 (void)fcntl(fd, F_UNLCK, &flock);
759 if ((rc = fcntl(fd, F_SETLKW, &flock)) < 0) {
792 flock.l_type = thiscase->a_type;
793 flock.l_whence = thiscase->a_whence;
794 flock.l_start = thiscase->a_start;
795 flock.l_len = thiscase->a_len;
798 if ((fcntl(fd, F_SETLK, &flock)) < 0) {
806 flock.l_type = thiscase->b_type;
807 flock.l_whence = thiscase->b_whence;
808 flock.l_start = thiscase->b_start;
809 flock.l_len = thiscase->b_len;
812 if ((fcntl(fd, F_SETLK, &flock)) < 0) {
867 flock.l_type = F_UNLCK;
868 flock.l_whence = 0;
869 flock.l_start = 0L;
870 flock.l_len = 0L;
871 if ((fcntl(fd, F_SETLK, &flock)) < 0) {
1024 flock.l_type = F_WRLCK;
1025 flock.l_whence = -1;
1026 flock.l_start = 0L;
1027 flock.l_len = 0L;
1029 if ((fcntl(fd, F_SETLK, &flock)) < 0) {
1062 flock.l_type = thiscase->a_type;
1063 flock.l_whence = thiscase->a_whence;
1064 flock.l_start = thiscase->a_start;
1065 flock.l_len = thiscase->a_len;
1068 if ((fcntl(fd, F_SETLK, &flock)) < 0) {
1119 flock.l_type = F_UNLCK;
1120 flock.l_whence = 0;
1121 flock.l_start = 0L;
1122 flock.l_len = 0L;
1123 if ((fcntl(fd, F_SETLK, &flock)) < 0) {