Lines Matching refs:F_SETLEASE
9 * Test for feature F_SETLEASE of fcntl(2).
10 * "F_SETLEASE is used to establish a lease which provides a mechanism:
61 "open(O_RDONLY) conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
63 "open(O_WRONLY) conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
65 "open(O_RDWR) conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
67 "truncate() conflicts with fcntl(F_SETLEASE, F_WRLCK)"},
69 "open(O_WRONLY) conflicts with fcntl(F_SETLEASE, F_RDLCK)"},
71 "open(O_RDWR) conflicts with fcntl(F_SETLEASE, F_RDLCK)"},
73 "truncate() conflicts with fcntl(F_SETLEASE, F_RDLCK)"},
105 TEST(fcntl(fd, F_SETLEASE, test_cases[i].lease_type));
109 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected");
133 TEST(fcntl(fd, F_SETLEASE, F_RDLCK));
149 TEST(fcntl(fd, F_SETLEASE, F_UNLCK));