Home
last modified time | relevance | path

Searched refs:F_SETLEASE (Results 1 - 25 of 33) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl23.c26 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_RDLCK argument.
132 #ifdef F_SETLEASE in main()
134 * Call fcntl(2) with F_SETLEASE & F_RDLCK argument on fname in main()
136 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
141 "fcntl(%s, F_SETLEASE, F_RDLCK) Failed, errno=%d : %s", in main()
151 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
154 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
158 "fcntl(%s, F_SETLEASE, F_RDLCK)", in main()
169 tst_resm(TINFO, "F_SETLEASE not defined, skipping test"); in main()
H A Dfcntl25.c27 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
139 #ifdef F_SETLEASE in main()
141 * Call fcntl(2) with F_SETLEASE & F_WRLCK argument on fname in main()
143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
149 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in main()
152 "fcntl(%s, F_SETLEASE, F_WRLCK) Failed, errno=%d : %s", in main()
162 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
165 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
169 "fcntl(%s, F_SETLEASE, F_WRLCK)", in main()
174 tst_resm(TINFO, "F_SETLEASE no in main()
[all...]
H A Dfcntl26.c27 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
139 #ifdef F_SETLEASE in main()
141 * Call fcntl(2) with F_SETLEASE & F_WRLCK argument on fname in main()
143 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
149 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in main()
152 "fcntl(%s, F_SETLEASE, F_WRLCK) Failed, errno=%d : %s", in main()
162 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
165 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
169 "fcntl(%s, F_SETLEASE, F_WRLCK)", in main()
174 tst_resm(TINFO, "F_SETLEASE no in main()
[all...]
H A Dfcntl24.c26 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
138 #ifdef F_SETLEASE in main()
140 * Call fcntl(2) with F_SETLEASE & F_WRLCK argument on fname in main()
142 TEST(fcntl(fd, F_SETLEASE, F_WRLCK)); in main()
148 "fcntl(F_SETLEASE, F_WRLCK) failed on overlayfs as expected"); in main()
151 "fcntl(%s, F_SETLEASE, F_WRLCK) Failed, errno=%d : %s", in main()
161 TEST(fcntl(fd, F_SETLEASE, F_UNLCK)); in main()
164 "fcntl(%s, F_SETLEASE, F_UNLCK) did not return 0, returned %ld", in main()
168 "fcntl(%s, F_SETLEASE, F_WRLCK)", in main()
173 tst_resm(TINFO, "F_SETLEASE no in main()
[all...]
H A Dfcntl33.c9 * 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_case in do_test()
[all...]
H A Dfcntl27.c27 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_RDLCK argument.
129 #ifdef F_SETLEASE in main()
131 * Call fcntl(2) with F_SETLEASE & F_RDLCK argument on fname in main()
133 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
138 "fcntl(fd, F_SETLEASE, F_RDLCK) succeeded"); in main()
140 tst_resm(TFAIL, "fcntl(%s, F_SETLEASE, F_RDLCK)" in main()
145 tst_resm(TINFO, "F_SETLEASE not defined, skipping test"); in main()
H A Dfcntl28.c24 * TEST TITLE : Basic test for fcntl(2) using F_SETLEASE & F_RDLCK argument.
126 #ifdef F_SETLEASE in main()
128 * Call fcntl(2) with F_SETLEASE & F_RDLCK argument on fname in main()
130 TEST(fcntl(fd, F_SETLEASE, F_RDLCK)); in main()
135 "fcntl(fd, F_SETLEASE, F_RDLCK) succeeded"); in main()
137 tst_resm(TFAIL, "fcntl(%s, F_SETLEASE, F_RDLCK)" in main()
143 tst_resm(TINFO, "F_SETLEASE not defined, skipping test"); in main()
H A Dfcntl32.c19 * Basic test for fcntl(2) using F_SETLEASE & F_WRLCK argument.
89 "Cannot do fcntl(F_SETLEASE, F_WRLCK) " in setup()
104 TEST(fcntl(fd1, F_SETLEASE, F_WRLCK)); in verify_fcntl()
107 tst_resm(TFAIL, "fcntl(F_SETLEASE, F_WRLCK) " in verify_fcntl()
112 "fcntl(F_SETLEASE, F_WRLCK) " in verify_fcntl()
116 "fcntl(F_SETLEASE, F_WRLCK) " in verify_fcntl()
/third_party/libbpf/include/uapi/linux/
H A Dfcntl.h8 #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0) macro
/third_party/musl/porting/linux/user/include/
H A Dfcntl.h125 #define F_SETLEASE 1024 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dfcntl.h124 #define F_SETLEASE 1024 macro
/third_party/musl/porting/liteos_m/kernel/include/
H A Dfcntl.h124 #define F_SETLEASE 1024 macro
/third_party/musl/porting/uniproton/kernel/include/
H A Dfcntl.h124 #define F_SETLEASE 1024 macro
/third_party/musl/porting/liteos_a/kernel/include/
H A Dfcntl.h127 #define F_SETLEASE 1024 macro
/third_party/musl/porting/liteos_m/user/include/
H A Dfcntl.h124 #define F_SETLEASE 1024 macro
/third_party/musl/include/
H A Dfcntl.h127 #define F_SETLEASE 1024 macro
/third_party/python/Modules/
H A Dfcntlmodule.c551 #ifdef F_SETLEASE in all_ins()
552 if (PyModule_AddIntMacro(m, F_SETLEASE)) return -1; in all_ins()
/third_party/rust/crates/libc/src/unix/linux_like/
H A Dmod.rs469 pub const F_SETLEASE: ::c_int = 1024; consts
/third_party/rust/crates/linux-raw-sys/src/aarch64/
H A Dgeneral.rs242 pub const F_SETLEASE: u32 = 1024; consts
/third_party/rust/crates/libc/src/fuchsia/
H A Dmod.rs1417 pub const F_SETLEASE: ::c_int = 1024; consts
/third_party/rust/crates/linux-raw-sys/src/riscv64/
H A Dgeneral.rs247 pub const F_SETLEASE: u32 = 1024; consts
/third_party/rust/crates/linux-raw-sys/src/riscv32/
H A Dgeneral.rs247 pub const F_SETLEASE: u32 = 1024; consts
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
H A Dgeneral.rs254 pub const F_SETLEASE: u32 = 1024; consts
/third_party/rust/crates/linux-raw-sys/src/mips64/
H A Dgeneral.rs251 pub const F_SETLEASE: u32 = 1024; consts
/third_party/rust/crates/linux-raw-sys/src/powerpc/
H A Dgeneral.rs254 pub const F_SETLEASE: u32 = 1024; consts

Completed in 97 milliseconds

12