Home
last modified time | relevance | path

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

12

/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()
Ddup2.cpp37 if (fcntl(old_fd, F_GETFD) == -1) { in dup2()
Dflistxattr.cpp49 int fd_flag = fcntl(fd, F_GETFL); in flistxattr()
Dfchmod.cpp54 int fd_flag = fcntl(fd, F_GETFL); in fchmod()
Dfgetxattr.cpp49 int fd_flag = fcntl(fd, F_GETFL); in fgetxattr()
Dfsetxattr.cpp49 int fd_flag = fcntl(fd, F_GETFL); in fsetxattr()
Dlegacy_32_bit_support.cpp51 int fcntl(int fd, int cmd, ...) { in fcntl() function
Dlibc_init_common.cpp145 int status = TEMP_FAILURE_RETRY(fcntl(i, F_GETFL)); in __nullify_closed_stdio()
Dgetentropy_linux.c251 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in getentropy_urandom()
Dlibc_logging.cpp467 if (fcntl(log_fd, F_SETFL, O_NONBLOCK) == -1) { in __libc_open_log_socket()
/bionic/tests/
Dfcntl_test.cpp24 TEST(fcntl, fcntl_smoke) { in TEST() argument
28 int flags = fcntl(fd, F_GETFD); in TEST()
32 int rc = fcntl(fd, F_SETFD, FD_CLOEXEC); in TEST()
35 flags = fcntl(fd, F_GETFD); in TEST()
42 TEST(fcntl, open_open64) { in TEST() argument
54 TEST(fcntl, openat_openat64) { in TEST() argument
66 TEST(fcntl, creat_creat64) { in TEST() argument
73 TEST(fcntl, posix_fadvise) { in TEST() argument
93 TEST(fcntl, fallocate_EINVAL) { in TEST() argument
116 TEST(fcntl, fallocate) { in TEST() argument
[all …]
Dstdlib_test.cpp250 int flags = fcntl(tf.fd, F_GETFD); in TEST()
257 int flags = fcntl(tf.fd, F_GETFD); in TEST()
266 ASSERT_EQ(O_LARGEFILE, fcntl(tf.fd, F_GETFL) & O_LARGEFILE); in TEST()
Dsys_socket_test.cpp110 ASSERT_EQ(FD_CLOEXEC, fcntl(fd_acc, F_GETFD) & FD_CLOEXEC); in TestAccept4()
Dstdio_test.cpp883 int flags = fcntl(fd, F_GETFD); in TEST()
891 flags = fcntl(fileno(fp), F_GETFD); in TEST()
904 int flags = fcntl(fileno(fp), F_GETFD); in TEST()
911 flags = fcntl(fileno(fp), F_GETFD); in TEST()
/bionic/libc/arch-arm64/syscalls/
Dfcntl.S5 ENTRY(fcntl)
14 END(fcntl)
/bionic/libc/arch-x86_64/syscalls/
Dfcntl.S5 ENTRY(fcntl)
15 END(fcntl)
/bionic/libc/arch-mips64/syscalls/
Dfcntl.S5 ENTRY(fcntl)
25 END(fcntl)
/bionic/libc/include/
Dfcntl.h66 extern int fcntl(int, int, ...);
Dunistd.h164 extern int fcntl(int __fd, int __cmd, ...);
/bionic/libc/stdio/
Dstdio.cpp233 int fdflags = fcntl(fd, F_GETFL, 0); in fdopen()
248 if ((oflags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC)) { in fdopen()
249 fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); in fdopen()
/bionic/libc/dns/resolv/
Dres_send.c984 origflags = fcntl(sock, F_GETFL, 0); in connect_with_timeout()
985 fcntl(sock, F_SETFL, origflags | O_NONBLOCK); in connect_with_timeout()
1006 fcntl(sock, F_SETFL, origflags); in connect_with_timeout()
/bionic/libc/
Dlibc.arm64.map279 fcntl;
Dlibc.mips64.map279 fcntl;
Dlibc.x86_64.map279 fcntl;
/bionic/libc/tools/
Dposix-2013.txt234 fcntl

12