/linux/tools/testing/selftests/core/ |
A D | close_range_test.c | 419 flags = fcntl(fd1, F_GETFD); in TEST() 423 flags = fcntl(fd2, F_GETFD); in TEST() 434 flags = fcntl(fd3, F_GETFD); in TEST() 449 flags = fcntl(fd1, F_GETFD); in TEST() 453 flags = fcntl(fd2, F_GETFD); in TEST() 460 flags = fcntl(fd3, F_GETFD); in TEST() 514 flags = fcntl(fd1, F_GETFD); in TEST() 518 flags = fcntl(fd2, F_GETFD); in TEST() 550 flags = fcntl(fd1, F_GETFD); in TEST() 554 flags = fcntl(fd2, F_GETFD); in TEST() [all …]
|
/linux/arch/um/os-Linux/ |
A D | file.c | 206 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file() 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() 586 err = fcntl(fd, F_SETLK, &lock); in os_lock_file() [all …]
|
A D | sigio.c | 433 flags = fcntl(master, F_GETFL); in async_pty() 437 if ((fcntl(master, F_SETFL, flags | O_NONBLOCK | O_ASYNC) < 0) || in async_pty() 438 (fcntl(master, F_SETOWN, os_getpid()) < 0)) in async_pty() 441 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) in async_pty()
|
/linux/Documentation/filesystems/ |
A 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.
|
A 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.
|
/linux/tools/testing/selftests/memfd/ |
A 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()
|
A D | memfd_test.c | 90 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals() 116 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals() 128 r = fcntl(fd, F_GET_SEALS); in mfd_fail_add_seals() 134 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_fail_add_seals()
|
/linux/tools/perf/tests/ |
A D | bp_signal_overflow.c | 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()
|
A 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()
|
/linux/tools/testing/selftests/filesystems/ |
A 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()
|
/linux/drivers/net/ethernet/sfc/ |
A 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 …]
|
/linux/tools/testing/selftests/tpm2/ |
A D | tpm2.py | 9 import fcntl 368 flags = fcntl.fcntl(self.tpm, fcntl.F_GETFL) 370 fcntl.fcntl(self.tpm, fcntl.F_SETFL, flags)
|
/linux/samples/timers/ |
A 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()
|
/linux/Documentation/userspace-api/media/dvb/ |
A 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.
|
A 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.
|
/linux/tools/testing/selftests/net/af_unix/ |
A D | test_unix_oob.c | 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()
|
/linux/drivers/staging/media/av7110/ |
A 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
|
A 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
|
/linux/tools/testing/selftests/kvm/ |
A D | kvm_binary_stats_test.c | 176 TEST_ASSERT(fcntl(stats_fd, F_GETFD) == -1, "Stats fd not freed"); in vm_stats_test() 189 TEST_ASSERT(fcntl(stats_fd, F_GETFD) == -1, "Stats fd not freed"); in vcpu_stats_test()
|
/linux/fs/ |
A D | .fcntl.o.cmd | 1 …fcntl.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aa… 3 source_fs/fcntl.o := fs/fcntl.c 5 deps_fs/fcntl.o := \ 765 include/linux/fcntl.h \ 767 include/uapi/linux/fcntl.h \ 768 arch/arm64/include/uapi/asm/fcntl.h \ 769 include/uapi/asm-generic/fcntl.h \ 1215 fs/fcntl.o: $(deps_fs/fcntl.o) 1217 $(deps_fs/fcntl.o):
|
/linux/tools/testing/selftests/pidfd/ |
A 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()
|
/linux/tools/perf/trace/beauty/ |
A D | Build | 2 perf-y += fcntl.o
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | trace_vprintk.c | 35 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in serial_test_trace_vprintk()
|
A D | trace_printk.c | 42 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in serial_test_trace_printk()
|
/linux/tools/testing/selftests/openat2/ |
A D | openat2_test.c | 270 fdflags = fcntl(fd, F_GETFL); in test_openat2_flags() 271 otherflags = fcntl(fd, F_GETFD); in test_openat2_flags()
|