Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 – 83 of 83) sorted by relevance

/linux-4.4.14/arch/um/os-Linux/
Dfile.c200 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file()
343 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close()
383 flags = fcntl(fd, F_GETFL); in os_set_fd_async()
388 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async()
395 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async()
396 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async()
410 flags = fcntl(fd, F_GETFL); in os_clear_fd_async()
415 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async()
424 flags = fcntl(fd, F_GETFL); in os_set_fd_block()
433 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block()
[all …]
Dsigio.c415 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()
/linux-4.4.14/tools/perf/tests/
Dbp_signal_overflow.c102 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow()
103 fcntl(fd, F_SETSIG, SIGIO); in test__bp_signal_overflow()
104 fcntl(fd, F_SETOWN, getpid()); in test__bp_signal_overflow()
Dbp_signal.c90 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in bp_event()
91 fcntl(fd, F_SETSIG, SIGIO); in bp_event()
92 fcntl(fd, F_SETOWN, getpid()); in bp_event()
/linux-4.4.14/tools/testing/selftests/memfd/
Dfuse_test.c68 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()
Dmemfd_test.c67 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals()
93 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals()
105 r = fcntl(fd, F_GET_SEALS); in mfd_fail_add_seals()
111 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_fail_add_seals()
/linux-4.4.14/Documentation/filesystems/
Ddnotify_test.c26 fcntl(fd, F_SETSIG, SIGRTMIN + 1); in main()
27 fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT); in main()
Dlocks.txt30 installations use fcntl() instead of flock(). This is true of Slackware 3.0
33 file with fcntl() at the same time as the GDBM routines tried to lock this
42 is to make flock() and fcntl() locks oblivious to each other. Both can
49 cooperative flock()/fcntl() are those that emulate flock() using
50 fcntl(), with all the problems that implies.
Ddnotify.txt9 on a directory using a fcntl(2) call and the notifications themselves
28 information. However, if the F_SETSIG fcntl(2) call is used to let the
61 disabled, fcntl(fd, F_NOTIFY, ...) will return -EINVAL.
Dmandatory-locking.txt32 processes. File locks are applied using the flock() and fcntl() system calls
33 (and the lockf() library routine which is a wrapper around fcntl().) It is
53 as candidates for mandatory locking, and using the existing fcntl()/lockf()
57 the whole truth. System V locking is based on fcntl(). The granularity of
58 fcntl() is such that it allows the locking of byte ranges in files, in addition
63 borrowing the fcntl() locking scheme from System V. The mandatory locking
118 1. Mandatory locks can only be applied via the fcntl()/lockf() locking
D00-INDEX91 - info on file locking implementations, flock() vs. fcntl(), etc.
Dvfs.txt881 fasync: called by the fcntl(2) system call when asynchronous
884 lock: called by the fcntl(2) system call for F_GETLK, F_SETLK, and F_SETLKW
889 check_flags: called by the fcntl(2) system call for F_SETFL command
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmcdi_port.c311 u32 speed, u32 flags, u32 fcntl) in efx_mcdi_phy_decode_link() argument
313 switch (fcntl) { in efx_mcdi_phy_decode_link()
840 u32 flags, fcntl, speed, lpa; in efx_mcdi_process_link_change() local
847 fcntl = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_FCNTL); in efx_mcdi_process_link_change()
854 efx_mcdi_phy_decode_link(efx, &efx->link_state, speed, flags, fcntl); in efx_mcdi_process_link_change()
863 u32 fcntl; in efx_mcdi_set_mac() local
882 fcntl = MC_CMD_FCNTL_BIDIR; in efx_mcdi_set_mac()
885 fcntl = MC_CMD_FCNTL_RESPOND; in efx_mcdi_set_mac()
888 fcntl = MC_CMD_FCNTL_OFF; in efx_mcdi_set_mac()
892 fcntl = MC_CMD_FCNTL_AUTO; in efx_mcdi_set_mac()
[all …]
/linux-4.4.14/Documentation/timers/
Dhpet_example.c250 if ((fcntl(fd, F_SETOWN, getpid()) == 1) || in hpet_fasync()
251 ((value = fcntl(fd, F_GETFL)) == 1) || in hpet_fasync()
252 (fcntl(fd, F_SETFL, value | O_ASYNC) == 1)) { in hpet_fasync()
/linux-4.4.14/arch/blackfin/include/uapi/asm/
DKbuild7 header-y += fcntl.h
/linux-4.4.14/arch/arm/include/uapi/asm/
DKbuild6 header-y += fcntl.h
/linux-4.4.14/arch/arm64/include/uapi/asm/
DKbuild9 header-y += fcntl.h
/linux-4.4.14/scripts/basic/
D.fixdep.cmd44 /usr/include/fcntl.h \
45 /usr/include/i386-linux-gnu/bits/fcntl.h \
46 /usr/include/i386-linux-gnu/bits/fcntl-linux.h \
/linux-4.4.14/scripts/kconfig/
D.zconf.tab.o.cmd94 /usr/include/fcntl.h \
95 /usr/include/i386-linux-gnu/bits/fcntl.h \
96 /usr/include/i386-linux-gnu/bits/fcntl-linux.h \
/linux-4.4.14/arch/h8300/include/uapi/asm/
DKbuild7 header-y += fcntl.h
/linux-4.4.14/arch/parisc/include/uapi/asm/
DKbuild9 header-y += fcntl.h
/linux-4.4.14/arch/mn10300/include/uapi/asm/
DKbuild8 header-y += fcntl.h
/linux-4.4.14/arch/score/include/uapi/asm/
DKbuild8 header-y += fcntl.h
/linux-4.4.14/arch/m32r/include/uapi/asm/
DKbuild8 header-y += fcntl.h
/linux-4.4.14/arch/xtensa/include/asm/
DKbuild9 generic-y += fcntl.h
/linux-4.4.14/tools/testing/selftests/vm/
Duserfaultfd.c445 uffd_flags = fcntl(uffd, F_GETFD, NULL); in userfaultfd_stress()
519 fcntl(uffd, F_SETFL, uffd_flags | O_NONBLOCK); in userfaultfd_stress()
521 fcntl(uffd, F_SETFL, uffd_flags & ~O_NONBLOCK); in userfaultfd_stress()
/linux-4.4.14/arch/m68k/include/uapi/asm/
DKbuild24 header-y += fcntl.h
/linux-4.4.14/arch/microblaze/include/uapi/asm/
DKbuild11 header-y += fcntl.h
/linux-4.4.14/arch/avr32/include/uapi/asm/
DKbuild26 generic-y += fcntl.h
/linux-4.4.14/arch/frv/include/uapi/asm/
DKbuild8 header-y += fcntl.h
/linux-4.4.14/include/uapi/asm-generic/
DKbuild6 header-y += fcntl.h
DKbuild.asm15 header-y += fcntl.h
/linux-4.4.14/arch/mips/include/uapi/asm/
DKbuild13 header-y += fcntl.h
/linux-4.4.14/arch/tile/include/asm/
DKbuild13 generic-y += fcntl.h
/linux-4.4.14/arch/sh/include/asm/
DKbuild10 generic-y += fcntl.h
/linux-4.4.14/arch/cris/include/uapi/asm/
DKbuild15 header-y += fcntl.h
/linux-4.4.14/arch/alpha/include/uapi/asm/
DKbuild11 header-y += fcntl.h
/linux-4.4.14/arch/powerpc/include/uapi/asm/
DKbuild13 header-y += fcntl.h
/linux-4.4.14/tools/virtio/virtio-trace/
Dtrace-agent-rw.c78 if (fcntl(*data_pipe, F_SETPIPE_SZ, pipe_size) < 0) { in rw_thread_init()
/linux-4.4.14/arch/cris/include/asm/
DKbuild13 generic-y += fcntl.h
/linux-4.4.14/arch/sparc/include/uapi/asm/
DKbuild15 header-y += fcntl.h
/linux-4.4.14/arch/ia64/include/uapi/asm/
DKbuild12 header-y += fcntl.h
/linux-4.4.14/arch/arc/include/asm/
DKbuild11 generic-y += fcntl.h
/linux-4.4.14/arch/s390/include/uapi/asm/
DKbuild13 header-y += fcntl.h
/linux-4.4.14/arch/hexagon/include/asm/
DKbuild16 generic-y += fcntl.h
/linux-4.4.14/arch/metag/include/asm/
DKbuild13 generic-y += fcntl.h
/linux-4.4.14/arch/c6x/include/asm/
DKbuild16 generic-y += fcntl.h
/linux-4.4.14/arch/x86/include/uapi/asm/
DKbuild16 header-y += fcntl.h
/linux-4.4.14/arch/unicore32/include/asm/
DKbuild15 generic-y += fcntl.h
/linux-4.4.14/arch/nios2/include/asm/
DKbuild18 generic-y += fcntl.h
/linux-4.4.14/arch/openrisc/include/asm/
DKbuild24 generic-y += fcntl.h
/linux-4.4.14/arch/h8300/include/asm/
DKbuild18 generic-y += fcntl.h
/linux-4.4.14/tools/usb/usbip/
Dconfigure.ac31 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h dnl
/linux-4.4.14/fs/
DMakefile9 char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
Dfcntl.c356 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
Dcompat.c489 COMPAT_SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
/linux-4.4.14/Documentation/DocBook/
Dfilesystems.xml.db88 API-fcntl-getlease
90 API-fcntl-setlease
/linux-4.4.14/Documentation/
Dadding-syscalls.txt36 an additional fcntl(2) command option may be more appropriate. However,
37 fcntl(2) is a multiplexing system call that hides a lot of complexity, so
39 existing fcntl(2) functionality, or the new functionality is very simple
43 fcntl(2), this system call is a complicated multiplexor so is best reserved
110 window between xyzzy() and calling fcntl(fd, F_SETFD, FD_CLOEXEC), where an
Ddma-buf-sharing.txt437 The problem with doing this via a separate fcntl() call, versus doing it
/linux-4.4.14/Documentation/x86/
Dmtrr.txt169 #include <fcntl.h>
266 #include <fcntl.h>
/linux-4.4.14/arch/parisc/kernel/
Dsyscall_table.S126 ENTRY_COMP(fcntl) /* 55 */
/linux-4.4.14/tools/perf/util/
Devlist.c504 fcntl(fd, F_SETFL, O_NONBLOCK); in __perf_evlist__add_pollfd()
1534 fcntl(go_pipe[0], F_SETFD, FD_CLOEXEC); in perf_evlist__prepare_workload()
1601 fcntl(go_pipe[1], F_SETFD, FD_CLOEXEC); in perf_evlist__prepare_workload()
/linux-4.4.14/arch/powerpc/include/asm/
Dsystbl.h61 COMPAT_SYS_SPU(fcntl)
/linux-4.4.14/Documentation/hid/
Dhidraw.txt46 fcntl().
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c126 if (fcntl(kvp_file_info[pool].fd, F_SETLKW, &fl) == -1) { in kvp_acquire_lock()
138 if (fcntl(kvp_file_info[pool].fd, F_SETLK, &fl) == -1) { in kvp_release_lock()
/linux-4.4.14/tools/perf/
Ddesign.txt29 VFS system calls: read() can be used to read the counter, fcntl()
399 fcntl() managing signals.
Dbuiltin-kvm.c876 arg = fcntl(fd, F_GETFL); in fd_set_nonblock()
882 if (fcntl(fd, F_SETFL, arg | O_NONBLOCK) < 0) { in fd_set_nonblock()
/linux-4.4.14/arch/x86/entry/syscalls/
Dsyscall_64.tbl81 72 common fcntl sys_fcntl
Dsyscall_32.tbl64 55 i386 fcntl sys_fcntl compat_sys_fcntl64
/linux-4.4.14/Documentation/spi/
Dspidev5 #include <fcntl.h>
/linux-4.4.14/Documentation/sound/oss/
DOpti180 #include <fcntl.h>
/linux-4.4.14/Documentation/usb/
Dgadget_printer.txt148 #include <fcntl.h>
Dgadget_hid.txt129 #include <fcntl.h>
/linux-4.4.14/Documentation/networking/
Dcdc_mbim.txt130 #include <fcntl.h>
/linux-4.4.14/Documentation/sysctl/
Dfs.txt178 limit total memory usage, and trying to increase them using fcntl() will be
/linux-4.4.14/include/uapi/linux/
DKbuild122 header-y += fcntl.h
/linux-4.4.14/Documentation/cdrom/
Dide-cd362 #include <fcntl.h>
/linux-4.4.14/Documentation/ia64/
Derr_inject.txt90 #include <fcntl.h>
/linux-4.4.14/Documentation/security/
Dcredentials.txt80 given to it by a task that called fcntl(F_SETOWN) upon it. In this case,
/linux-4.4.14/Documentation/filesystems/cifs/
DCHANGES95 handling fcntl(F_SETLEASE). Convert cifs to using blocking tcp
1039 2) Fixed GETLK (i.e. the fcntl call to test a range of bytes in a file to see if locked) to correct…
DREADME566 could grant fcntl leases if no other local processes are using
/linux-4.4.14/Documentation/trace/
Dftrace.txt1776 #include <fcntl.h>
/linux-4.4.14/
DMAINTAINERS4324 FILE LOCKING (flock() and fcntl()/lockf())
4329 F: include/linux/fcntl.h
4331 F: include/uapi/linux/fcntl.h
4333 F: fs/fcntl.c