Home
last modified time | relevance | path

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

12

/bionic/tests/
Dfcntl_test.cpp34 TEST(fcntl, fcntl_smoke) { in TEST() argument
38 int flags = fcntl(fd, F_GETFD); in TEST()
42 int rc = fcntl(fd, F_SETFD, FD_CLOEXEC); in TEST()
45 flags = fcntl(fd, F_GETFD); in TEST()
52 TEST(fcntl, open_open64) { in TEST() argument
64 TEST(fcntl, openat_openat64) { in TEST() argument
76 TEST(fcntl, creat_creat64) { in TEST() argument
83 TEST(fcntl, posix_fadvise) { in TEST() argument
103 TEST(fcntl, fallocate_EINVAL) { in TEST() argument
126 TEST(fcntl, fallocate) { in TEST() argument
[all …]
D_FILE_OFFSET_BITS_test.cpp35 TEST(fcntl, f_getlk_FOB64) { in TEST() argument
45 ASSERT_EQ(0, fcntl(fd, F_GETLK, &check_lock)); in TEST()
Dfdtrack_test.cpp218 FDTRACK_TEST_NAME(fcntl_F_DUPFD, "F_DUPFD", fcntl(STDOUT_FILENO, F_DUPFD, 0));
219 FDTRACK_TEST_NAME(fcntl_F_DUPFD_CLOEXEC, "F_DUPFD_CLOEXEC", fcntl(STDOUT_FILENO, F_DUPFD_CLOEXEC, 0…
Dsys_mman_test.cpp281 int f = fcntl(fd, F_GETFD); in TEST()
288 f = fcntl(fd, F_GETFD); in TEST()
Dutils.h194 int flags = fcntl(fd, F_GETFD); in AssertCloseOnExec()
Dclang_fortify_tests.cpp273 FORTIFY_TEST(fcntl) { in FORTIFY_TEST() argument
/bionic/libc/bionic/
Dlockf.cpp46 return fcntl(fd, F_SETLK64, &fl); in lockf64()
51 return fcntl(fd, F_SETLKW64, &fl); in lockf64()
56 return fcntl(fd, F_SETLK64, &fl); in lockf64()
61 if (fcntl(fd, F_GETLK64, &fl) == -1) return -1; in lockf64()
Dfcntl.cpp38 int fcntl(int fd, int cmd, ...) { in fcntl() function
61 int fcntl(int fd, int cmd, ...) { in fcntl() function
Ddup.cpp46 if (fcntl(old_fd, F_GETFD) == -1) { in dup2()
Dflistxattr.cpp50 int fd_flag = fcntl(fd, F_GETFL); in flistxattr()
Dfchmod.cpp55 int fd_flag = fcntl(fd, F_GETFL); in fchmod()
Dfsetxattr.cpp50 int fd_flag = fcntl(fd, F_GETFL); in fsetxattr()
Dfgetxattr.cpp51 int fd_flag = fcntl(fd, F_GETFL); in fgetxattr()
Dlibc_init_common.cpp157 int status = TEMP_FAILURE_RETRY(fcntl(i, F_GETFL)); in __nullify_closed_stdio()
/bionic/libc/include/bits/
Dfcntl.h46 int fcntl(int __fd, int __cmd, ...);
/bionic/libc/
DSECCOMP_ALLOWLIST_APP.TXT34 int fcntl:fcntl(int fd, int cmd, ... /* arg */ ) lp32
/bionic/tests/headers/posix/
Dfcntl_h.c115 FUNCTION(fcntl, int (*f)(int, int, ...)); in fcntl_h()
/bionic/libc/stdio/
Dstdio.cpp280 int fd_flags = fcntl(fd, F_GETFL, 0); in fdopen()
291 if (fcntl(fd, F_SETFL, fd_flags | O_APPEND) == -1) return nullptr; in fdopen()
295 if ((mode_flags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC)) { in fdopen()
296 fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); in fdopen()
1212 int new_fd = fcntl(fds[child], F_DUPFD_CLOEXEC, 0); in popen()
/bionic/benchmarks/tests/
Dinterface_test.cpp81 ASSERT_NE(-1, fcntl(fds[0], F_SETFL, O_NONBLOCK)); in Exec()
/bionic/libc/dns/resolv/
Dres_send.c986 origflags = fcntl(sock, F_GETFL, 0); in connect_with_timeout()
987 fcntl(sock, F_SETFL, origflags | O_NONBLOCK); in connect_with_timeout()
1007 fcntl(sock, F_SETFL, origflags); in connect_with_timeout()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_065.S156 CALL(fcntl)
Dliblinker_reloc_bench_024.S343 CALL(fcntl)
Dliblinker_reloc_bench_076.S304 CALL(fcntl)
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp73 ASSERT_NE(-1, fcntl(fds[0], F_SETFL, O_NONBLOCK)); in Exec()
/bionic/libc/tools/
Dposix-2013.txt234 fcntl

12