/kernel/linux/linux-5.10/tools/testing/selftests/core/ |
D | close_range_test.c | 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_fds[i], F_GETFL) == -1) in TEST() 148 if (fcntl(open_fds[i], F_GETFL) != -1) in TEST() [all …]
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
D | pipe_test_003.cpp | 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()
|
D | pipe_test_001.cpp | 49 int flag = fcntl(*readFd, F_GETFL); in TestPipeSingleProcess() 50 fcntl(*readFd, F_SETFL, flag | O_NONBLOCK); in TestPipeSingleProcess()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
D | file.c | 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() 435 flags = fcntl(fd, F_GETFL); in os_clear_fd_async() 440 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async() 449 flags = fcntl(fd, F_GETFL); in os_set_fd_block() 458 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block() [all …]
|
D | sigio.c | 415 flags = fcntl(master, F_GETFL); in async_pty() 419 if ((fcntl(master, F_SETFL, flags | O_NONBLOCK | O_ASYNC) < 0) || in async_pty() 420 (fcntl(master, F_SETOWN, os_getpid()) < 0)) in async_pty() 423 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) in async_pty()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | bp_signal_overflow.c | 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()
|
D | bp_signal.c | 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-5.10/tools/testing/selftests/memfd/ |
D | fuse_test.c | 67 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals() 94 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals() 107 r = fcntl(fd, F_GET_SEALS); in mfd_busy_add_seals() 113 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
|
/kernel/linux/linux-5.10/Documentation/filesystems/ |
D | locks.rst | 34 installations use fcntl() instead of flock(). This is true of Slackware 3.0 37 file with fcntl() at the same time as the GDBM routines tried to lock this 46 is to make flock() and fcntl() locks oblivious to each other. Both can 53 cooperative flock()/fcntl() are those that emulate flock() using 54 fcntl(), with all the problems that implies.
|
D | mandatory-locking.rst | 37 processes. File locks are applied using the flock() and fcntl() system calls 38 (and the lockf() library routine which is a wrapper around fcntl().) It is 58 as candidates for mandatory locking, and using the existing fcntl()/lockf() 64 the whole truth. System V locking is based on fcntl(). The granularity of 65 fcntl() is such that it allows the locking of byte ranges in files, in 70 borrowing the fcntl() locking scheme from System V. The mandatory locking 125 1. Mandatory locks can only be applied via the fcntl()/lockf() locking
|
D | dnotify.rst | 12 on a directory using a fcntl(2) call and the notifications themselves 33 information. However, if the F_SETSIG fcntl(2) call is used to let the 66 disabled, fcntl(fd, F_NOTIFY, ...) will return -EINVAL.
|
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/ |
D | dnotify_test.c | 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/samples/timers/ |
D | hpet_example.c | 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()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
D | pipe_test_002.cpp | 52 int flag = fcntl(*readFd, F_GETFL); in TestPipeMultiProcess() 53 fcntl(*readFd, F_SETFL, flag | O_NONBLOCK); in TestPipeMultiProcess()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | mcdi_port_common.c | 285 u32 speed, u32 flags, u32 fcntl) in efx_mcdi_phy_decode_link() argument 287 switch (fcntl) { in efx_mcdi_phy_decode_link() 1097 u32 fcntl; in efx_mcdi_set_mac() local 1119 fcntl = MC_CMD_FCNTL_BIDIR; in efx_mcdi_set_mac() 1122 fcntl = MC_CMD_FCNTL_RESPOND; in efx_mcdi_set_mac() 1125 fcntl = MC_CMD_FCNTL_OFF; in efx_mcdi_set_mac() 1129 fcntl = MC_CMD_FCNTL_AUTO; in efx_mcdi_set_mac() 1131 fcntl = MC_CMD_FCNTL_OFF; in efx_mcdi_set_mac() 1133 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_FCNTL, fcntl); in efx_mcdi_set_mac() 1284 u32 flags, fcntl, speed, lpa; in efx_mcdi_process_link_change() local [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/ |
D | tpm2.py | 9 import fcntl 368 flags = fcntl.fcntl(self.tpm, fcntl.F_GETFL) 370 fcntl.fcntl(self.tpm, fcntl.F_SETFL, flags)
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/ |
D | frontend_f_open.rst | 20 #include <fcntl.h> 63 versa) using the F_SETFL command of the fcntl system call. This is a 64 standard system call, documented in the Linux manual page for fcntl.
|
D | ca-fopen.rst | 57 using the ``F_SETFL`` command of the ``fcntl`` system call. This is a 58 standard system call, documented in the Linux manual page for fcntl.
|
D | audio-fopen.rst | 71 of the fcntl system call. This is a standard system call, documented in 72 the Linux manual page for fcntl. Only one user can open the Audio Device
|
D | video-fopen.rst | 72 using the F_SETFL command of the fcntl system call. This is a standard 73 system call, documented in the Linux manual page for fcntl. Only one
|
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/ |
D | fcntl.h | 34 #include_next <sys/fcntl.h>
|
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_010.cpp | 166 ret = fcntl(sfd, F_GETFL, 0); in IoctlTestInternal() 169 ret = fcntl(sfd, F_SETFL, ret | O_NONBLOCK); in IoctlTestInternal()
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
D | Build | 2 perf-y += fcntl.o
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | trace_printk.c | 40 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in test_trace_printk()
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 188 flags = fcntl(pidfd, F_GETFL, 0); in TEST() 208 ASSERT_EQ(fcntl(pidfd, F_SETFL, (flags & ~O_NONBLOCK)), 0); in TEST()
|