/openbmc/linux/tools/testing/selftests/core/ |
H A D | close_range_test.c | 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_fds[i], F_GETFL) == -1) in TEST() 165 if (fcntl(open_fds[i], F_GETFL) != -1) in TEST() [all …]
|
/openbmc/openbmc/poky/scripts/ |
H A D | oepydevshell-internal.py | 12 import fcntl 18 fcntl.fcntl(fd, fcntl.F_SETFL, fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK)
|
/openbmc/skeleton/pyipmitest/ |
H A D | ipmi_debug.py | 8 import fcntl 67 flags = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL) 69 fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, flags)
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | distro_check.py | 197 import fcntl 203 fcntl.lockf(f, fcntl.LOCK_EX) 215 fcntl.lockf(f, fcntl.LOCK_UN) 309 import fcntl 310 fcntl.lockf(f, fcntl.LOCK_EX) 313 fcntl.lockf(f, fcntl.LOCK_UN)
|
/openbmc/linux/arch/um/os-Linux/ |
H A 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 …]
|
/openbmc/qemu/chardev/ |
H A D | char-stdio.c | 53 fcntl(0, F_SETFL, old_fd0_flags); in term_exit() 54 fcntl(1, F_SETFL, old_fd1_flags); in term_exit() 107 old_fd0_flags = fcntl(0, F_GETFL); in qemu_chr_open_stdio() 108 old_fd1_flags = fcntl(1, F_GETFL); in qemu_chr_open_stdio()
|
/openbmc/openbmc/poky/meta/recipes-kernel/lttng/lttng-tools/ |
H A D | 0001-compat-Define-off64_t-as-off_t-on-linux.patch | 23 --- a/src/common/compat/compat-fcntl.c 24 +++ b/src/common/compat/compat-fcntl.c 27 #include <common/compat/fcntl.h> 44 --- a/src/common/compat/fcntl.h 45 +++ b/src/common/compat/fcntl.h
|
/openbmc/linux/Documentation/filesystems/ |
H 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.
|
/openbmc/libpldm/src/requester/ |
H A D | instance-id.c | 150 rc = fcntl(ctx->lock_db_fd, F_OFD_SETLK, &flop); in pldm_instance_id_alloc() 172 rc = fcntl(ctx->lock_db_fd, F_OFD_GETLK, &flop); in pldm_instance_id_alloc() 198 if (fcntl(ctx->lock_db_fd, F_OFD_SETLK, &flop) < 0) { in pldm_instance_id_alloc() 229 rc = fcntl(ctx->lock_db_fd, F_OFD_SETLK, &flop); in pldm_instance_id_free()
|
/openbmc/openbmc/poky/bitbake/bin/ |
H A D | bitbake-worker | 24 import fcntl 29 if not hasattr(fcntl, 'F_SETPIPE_SZ'): 30 fcntl.F_SETPIPE_SZ = 1031 52 fl = fcntl.fcntl(sys.stdout.fileno(), fcntl.F_GETFL) 54 fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, fl) 66 fcntl.fcntl(worker_pipe, fcntl.F_SETPIPE_SZ, 512 * 1024)
|
/openbmc/openbmc/meta-openembedded/meta-networking/files/waf-cross-answers/ |
H A D | cross-answers-aarch64.txt | 31 Checking whether fcntl locking is available: OK 39 Checking whether fcntl lock supports open file description locks: OK 44 Checking whether fcntl supports flags to send direct I/O availability signals: NO 45 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-mips64el.txt | 31 Checking whether fcntl locking is available: OK 39 Checking whether fcntl lock supports open file description locks: OK 44 Checking whether fcntl supports flags to send direct I/O availability signals: NO 45 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-powerpc.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-aarch64_be.txt | 31 Checking whether fcntl locking is available: OK 39 Checking whether fcntl lock supports open file description locks: OK 44 Checking whether fcntl supports flags to send direct I/O availability signals: NO 45 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-mips.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-riscv32.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-powerpc64.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-powerpc64le.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-armeb.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-x86_64.txt | 31 Checking whether fcntl locking is available: OK 39 Checking whether fcntl lock supports open file description locks: OK 44 Checking whether fcntl supports flags to send direct I/O availability signals: NO 45 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-mipsel.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-i686.txt | 32 Checking whether fcntl locking is available: OK 40 Checking whether fcntl lock supports open file description locks: OK 45 Checking whether fcntl supports flags to send direct I/O availability signals: NO 46 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-mips64.txt | 31 Checking whether fcntl locking is available: OK 39 Checking whether fcntl lock supports open file description locks: OK 44 Checking whether fcntl supports flags to send direct I/O availability signals: NO 45 Checking whether fcntl supports setting/getting hints: NO
|
H A D | cross-answers-riscv64.txt | 31 Checking whether fcntl locking is available: OK 39 Checking whether fcntl lock supports open file description locks: OK 44 Checking whether fcntl supports flags to send direct I/O availability signals: NO 45 Checking whether fcntl supports setting/getting hints: NO
|
/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 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()
|