Home
last modified time | relevance | path

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

12345678910>>...15

/openbmc/linux/tools/testing/selftests/core/
H A Dclose_range_test.c78 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 Doepydevshell-internal.py12 import fcntl
18 fcntl.fcntl(fd, fcntl.F_SETFL, fcntl.fcntl(fd, fcntl.F_GETFL) | os.O_NONBLOCK)
/openbmc/skeleton/pyipmitest/
H A Dipmi_debug.py8 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 Ddistro_check.py197 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 Dfile.c206 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 Dchar-stdio.c53 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 D0001-compat-Define-off64_t-as-off_t-on-linux.patch23 --- 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 Dlocks.rst34 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 Dinstance-id.c150 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 Dbitbake-worker24 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 Dcross-answers-aarch64.txt31 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 Dcross-answers-mips64el.txt31 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 Dcross-answers-powerpc.txt32 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 Dcross-answers-aarch64_be.txt31 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 Dcross-answers-mips.txt32 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 Dcross-answers-riscv32.txt32 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 Dcross-answers-powerpc64.txt32 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 Dcross-answers-powerpc64le.txt32 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 Dcross-answers-armeb.txt32 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 Dcross-answers-x86_64.txt31 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 Dcross-answers-mipsel.txt32 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 Dcross-answers-i686.txt32 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 Dcross-answers-mips64.txt31 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 Dcross-answers-riscv64.txt31 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 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()

12345678910>>...15