Lines Matching refs:fcntl
41 #include <fcntl.h>
158 if (fcntl(fd, F_GETLK, &fl1) < 0)
177 * If a shared or exclusive lock cannot be set, fcntl returns
211 if (fcntl(fd, F_SETLK, &fl) < 0)
227 * fcntl should return -1 with errno set to either EACCES or
231 res = fcntl(fd, F_SETLK, &fl);
282 if (fcntl(fd, F_SETLK, &fl) < 0)
298 * fcntl should wait until the alarm and then return -1 with
305 res = fcntl(fd, F_SETLKW, &fl);
351 if (fcntl(fd, F_SETLK, &fl) < 0)
367 * fcntl should return a lock structure reflecting the lock we
370 if (fcntl(fd, F_GETLK, &fl) < 0)
426 if (fcntl(fd, F_SETLK, &fl) < 0)
439 if (fcntl(fd, F_SETLK, &fl) < 0)
442 if (fcntl(fd, F_SETLKW, &fl) < 0)
454 * fcntl should immediately return -1 with errno set to
462 res = fcntl(fd, F_SETLKW, &fl);
472 if (fcntl(fd, F_SETLK, &fl) < 0)
512 if (fcntl(fd, F_SETLK, &fl) < 0)
525 if (fcntl(fd, F_SETLK, &fl) < 0)
542 if (fcntl(fd, F_SETLK, &fl) < 0)
545 if (fcntl(fd, F_SETLKW, &fl) < 0)
557 * fcntl should immediately return -1 with errno set to
566 res = fcntl(fd, F_SETLKW, &fl);
575 if (fcntl(fd, F_SETLK, &fl) < 0)
592 * If a shared or exclusive lock cannot be set, fcntl returns
626 if (fcntl(fd, F_SETLK, &fl) < 0)
642 * fcntl should wait until the alarm and then return -1 with
648 res = fcntl(fd, F_SETLK, &fl);
698 if (fcntl(fd, F_SETLK, &fl) < 0)
714 * fcntl should wait until the alarm and then return -1 with
720 res = fcntl(fd, F_SETLK, &fl);
730 if (fcntl(fd, F_SETLK, &fl) < 0)
741 * If a shared or exclusive lock cannot be set, fcntl returns
775 if (fcntl(fd, F_SETLK, &fl) < 0)
791 * fcntl should wait until the alarm and then return -1 with
797 res = fcntl(fd, F_SETLK, &fl);
850 if (fcntl(fd, F_SETLK, &fl) < 0)
867 if (fcntl(fd, F_GETLK, &fl) < 0)
908 res = fcntl(fd, F_SETLK_REMOTE, &fl);
912 res = fcntl(fd, F_SETLK_REMOTE, &fl);
916 res = fcntl(fd, F_GETLK, &fl);
925 res = fcntl(fd, F_SETLK_REMOTE, &fl);
934 res = fcntl(fd, F_SETLK_REMOTE, &fl);
938 res = fcntl(fd, F_SETLK_REMOTE, &fl);
943 res = fcntl(fd, F_SETLK_REMOTE, &fl);
947 res = fcntl(fd, F_GETLK, &fl);
954 res = fcntl(fd, F_SETLK_REMOTE, &fl);
1000 if (fcntl(fd, F_SETLK, &fl) < 0)
1017 * fcntl should wait until the alarm and then return -1 with
1024 res = fcntl(fd, F_SETLKW, &fl);
1034 if (fcntl(fd, F_SETLK, &fl) < 0)
1083 if (fcntl(fd, F_SETLK, &fl) < 0)
1103 * fcntl should wait until the alarm and then return -1 with
1112 res = fcntl(fd, F_SETLKW, &fl);
1122 if (fcntl(fd, F_SETLK, &fl) < 0)
1205 if (fcntl(fd, F_SETLKW, &fl) < 0) {
1222 perror("fcntl");
1338 * for flock(2) goes with the file descriptor, we use fcntl to
1364 if (fcntl(fd, F_SETLK, &fl) < 0)
1365 err(1, "fcntl(F_SETLK) (child)");
1402 res = fcntl(fd, F_GETLK, &fl);
1426 error = fcntl(tc->tc_fd, F_SETLKW, &tc->tc_fl);
1472 if (fcntl(fd, F_SETLK, &tc.tc_fl) < 0)
1488 * fcntl should wait until the alarm and then return -1 with