/kernel/linux/linux-6.6/tools/testing/selftests/core/ |
H A D | close_range_test.c | 5 #include <fcntl.h> 78 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 81 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 94 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 97 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 103 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 105 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 109 EXPECT_EQ(-1, fcntl(open_fds[100], F_GETFL)); in TEST() 144 if (fcntl(open_fds[i], F_GETFL) != -1) in TEST() 148 if (fcntl(open_fd in TEST() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/core/ |
H A D | close_range_test.c | 5 #include <fcntl.h> 61 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 64 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 77 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 80 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 86 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 88 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 92 EXPECT_EQ(-1, fcntl(open_fds[100], F_GETFL)); in TEST() 127 if (fcntl(open_fds[i], F_GETFL) != -1) in TEST() 131 if (fcntl(open_fd in TEST() [all...] |
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
H A D | file.c | 11 #include <fcntl.h> 206 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file() 368 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close() 408 flags = fcntl(fd, F_GETFL); in os_set_fd_async() 413 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async() 420 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async() 421 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async() 423 printk(UM_KERN_ERR "os_set_fd_async : Failed to fcntl F_SETOWN " in os_set_fd_async() 435 flags = fcntl(fd, F_GETFL); in os_clear_fd_async() 440 if (fcntl(f in os_clear_fd_async() [all...] |
/kernel/linux/linux-6.6/arch/um/os-Linux/ |
H A D | file.c | 11 #include <fcntl.h> 206 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file() 368 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close() 408 flags = fcntl(fd, F_GETFL); in os_set_fd_async() 413 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async() 420 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async() 421 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async() 423 printk(UM_KERN_ERR "os_set_fd_async : Failed to fcntl F_SETOWN " in os_set_fd_async() 435 flags = fcntl(fd, F_GETFL); in os_clear_fd_async() 440 if (fcntl(f in os_clear_fd_async() [all...] |
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
H A D | pipe_test_003.cpp | 33 #include "fcntl.h" 49 int flag = fcntl(*readFd, F_GETFL); in TestPipeSingleProcessFcntl() 50 fcntl(*readFd, F_SETFL, flag | O_NONBLOCK); in TestPipeSingleProcessFcntl() 82 fcntl(*readFd, F_SETFL, O_NONBLOCK); in TestPipeSingleProcessFcntl() 83 ret = fcntl(*readFd, F_GETFL, O_NONBLOCK); in TestPipeSingleProcessFcntl()
|
H A D | pipe_test_001.cpp | 33 #include "fcntl.h" 49 int flag = fcntl(*readFd, F_GETFL); in TestPipeSingleProcess() 50 fcntl(*readFd, F_SETFL, flag | O_NONBLOCK); in TestPipeSingleProcess()
|
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/ |
H A D | dnotify_test.c | 3 #include <fcntl.h> /* in glibc 2.2 this has the needed 27 fcntl(fd, F_SETSIG, SIGRTMIN + 1); in main() 28 fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/ |
H A D | dnotify_test.c | 3 #include <fcntl.h> /* in glibc 2.2 this has the needed 27 fcntl(fd, F_SETSIG, SIGRTMIN + 1); in main() 28 fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT); in main()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | bp_signal_overflow.c | 19 #include <fcntl.h> 103 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow() 104 fcntl(fd, F_SETSIG, SIGIO); in test__bp_signal_overflow() 105 fcntl(fd, F_SETOWN, getpid()); in test__bp_signal_overflow()
|
H A D | bp_signal.c | 20 #include <fcntl.h> 131 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in __event() 132 fcntl(fd, F_SETSIG, sig); in __event() 133 fcntl(fd, F_SETOWN, getpid()); in __event()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | bp_signal_overflow.c | 19 #include <fcntl.h> 108 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow() 109 fcntl(fd, F_SETSIG, SIGIO); in test__bp_signal_overflow() 110 fcntl(fd, F_SETOWN, getpid()); in test__bp_signal_overflow()
|
H A D | bp_signal.c | 20 #include <fcntl.h> 131 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in __event() 132 fcntl(fd, F_SETSIG, sig); in __event() 133 fcntl(fd, F_SETOWN, getpid()); in __event()
|
/kernel/liteos_m/testsuites/unittest/xts/sched/ |
H A D | sched_api_test.h | 39 #include <fcntl.h> 41 #include <fcntl.h>
|
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 23 #include <linux/fcntl.h> 68 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals() 95 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals() 108 r = fcntl(fd, F_GET_SEALS); in mfd_busy_add_seals() 114 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
|
/kernel/linux/linux-6.6/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 23 #include <fcntl.h> 68 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals() 95 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals() 108 r = fcntl(fd, F_GET_SEALS); in mfd_busy_add_seals() 114 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
|
/kernel/linux/linux-6.6/tools/crypto/ccp/ |
H A D | test_dbc.py | 7 import fcntl namespace 84 fcntl.ioctl(self.d, INVALID1, self.data, True) 93 fcntl.ioctl(self.d, INVALID2, self.data, True) 102 fcntl.ioctl(self.d, INVALID3, self.data, True) 110 fcntl.ioctl(self.d, INVALID4, self.data, True) 118 fcntl.ioctl(self.d, INVALID5, self.data, True)
|
/kernel/linux/linux-6.6/tools/testing/selftests/filelock/ |
H A D | ofdlocks.c | 4 #include <fcntl.h> 17 ret = fcntl(fd, F_OFD_SETLK, fl); in lock_set() 19 perror("fcntl()"); in lock_set() 29 ret = fcntl(fd, F_OFD_GETLK, fl); in lock_get() 31 perror("fcntl()"); in lock_get()
|
/kernel/linux/linux-5.10/samples/timers/ |
H A D | hpet_example.c | 5 #include <fcntl.h> 251 if ((fcntl(fd, F_SETOWN, getpid()) == 1) || in hpet_fasync() 252 ((value = fcntl(fd, F_GETFL)) == 1) || in hpet_fasync() 253 (fcntl(fd, F_SETFL, value | O_ASYNC) == 1)) { in hpet_fasync() 254 fprintf(stderr, "hpet_fasync: fcntl failed\n"); in hpet_fasync()
|
/kernel/linux/linux-6.6/samples/timers/ |
H A D | hpet_example.c | 5 #include <fcntl.h> 251 if ((fcntl(fd, F_SETOWN, getpid()) == 1) || in hpet_fasync() 252 ((value = fcntl(fd, F_GETFL)) == 1) || in hpet_fasync() 253 (fcntl(fd, F_SETFL, value | O_ASYNC) == 1)) { in hpet_fasync() 254 fprintf(stderr, "hpet_fasync: fcntl failed\n"); in hpet_fasync()
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/dma-buf/ |
H A D | udmabuf.c | 7 #include <linux/fcntl.h> 42 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in main() 44 printf("%s: [skip,fcntl-add-seals]\n", TEST_PREFIX); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/dma-buf/ |
H A D | udmabuf.c | 10 #include <fcntl.h> 46 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in main() 48 printf("%s: [skip,fcntl-add-seals]\n", TEST_PREFIX); in main()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
H A D | pipe_test_002.cpp | 33 #include "fcntl.h" 52 int flag = fcntl(*readFd, F_GETFL); in TestPipeMultiProcess() 53 fcntl(*readFd, F_SETFL, flag | O_NONBLOCK); in TestPipeMultiProcess()
|
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_pid_001.cpp | 32 #include <fcntl.h> 34 #include <fcntl.h>
|
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/ |
H A D | tpm2.py | 9 import fcntl namespace 368 flags = fcntl.fcntl(self.tpm, fcntl.F_GETFL) 370 fcntl.fcntl(self.tpm, fcntl.F_SETFL, flags)
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c | 8 #include <fcntl.h> 39 int flags = fcntl(fd, F_GETFL, 0); in set_filemode() 45 fcntl(fd, F_SETFL, flags); in set_filemode() 214 fcntl(pfd, F_SETOWN, getpid()); in main()
|