/aosp12/bionic/tests/ |
H A D | fcntl_test.cpp | 34 TEST(fcntl, fcntl_smoke) { in TEST() argument 45 flags = fcntl(fd, F_GETFD); in TEST() 52 TEST(fcntl, open_open64) { in TEST() argument 76 TEST(fcntl, creat_creat64) { in TEST() argument 126 TEST(fcntl, fallocate) { in TEST() argument 151 TEST(fcntl, f_getlk) { in TEST() argument 165 TEST(fcntl, f_getlk64) { in TEST() argument 179 TEST(fcntl, splice) { in TEST() argument 199 TEST(fcntl, vmsplice) { in TEST() argument 220 TEST(fcntl, tee) { in TEST() argument [all …]
|
H A D | _FILE_OFFSET_BITS_test.cpp | 35 TEST(fcntl, f_getlk_FOB64) { in TEST() argument 45 ASSERT_EQ(0, fcntl(fd, F_GETLK, &check_lock)); in TEST()
|
/aosp12/bionic/libc/bionic/ |
H A D | lockf.cpp | 46 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()
|
H A D | fcntl.cpp | 38 int fcntl(int fd, int cmd, ...) { in fcntl() function 61 int fcntl(int fd, int cmd, ...) { in fcntl() function
|
/aosp12/frameworks/base/cmds/incidentd/src/ |
H A D | FdBuffer.cpp | 59 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK); in read() 156 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK); in readProcessedDataInStream() 157 fcntl(toFd.get(), F_SETFL, fcntl(toFd.get(), F_GETFL, 0) | O_NONBLOCK); in readProcessedDataInStream() 158 fcntl(fromFd.get(), F_SETFL, fcntl(fromFd.get(), F_GETFL, 0) | O_NONBLOCK); in readProcessedDataInStream()
|
/aosp12/system/bt/vendor_libs/test_vendor_lib/desktop/ |
H A D | test_environment.cc | 88 int flags = fcntl(conn_fd, F_GETFL, NULL); in SetUpHciServer() 90 ret = fcntl(conn_fd, F_SETFL, flags | O_NONBLOCK); in SetUpHciServer() 114 int flags = fcntl(conn_fd, F_GETFL, NULL); in SetUpLinkLayerServer() 115 int ret = fcntl(conn_fd, F_SETFL, flags | O_NONBLOCK); in SetUpLinkLayerServer() 148 int flags = fcntl(socket_fd, F_GETFL, NULL); in ConnectToRemoteServer() 149 int ret = fcntl(socket_fd, F_SETFL, flags | O_NONBLOCK); in ConnectToRemoteServer()
|
/aosp12/system/netd/server/ |
H A D | OffloadUtilsTest.cpp | 112 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F() 119 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F() 126 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F() 133 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F() 140 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F() 147 EXPECT_EQ(FD_CLOEXEC, fcntl(fd, F_GETFD)); in TEST_F()
|
/aosp12/system/extras/alloc-stress/ |
H A D | alloc-stress.cpp | 45 fcntl(m_readFd, F_SETFD, FD_CLOEXEC); 46 fcntl(m_writeFd, F_SETFD, FD_CLOEXEC); 60 fcntl(m_readFd, F_SETFD, 0); in preserveOverFork() 61 fcntl(m_writeFd, F_SETFD, 0); in preserveOverFork() 63 fcntl(m_readFd, F_SETFD, FD_CLOEXEC); in preserveOverFork() 64 fcntl(m_writeFd, F_SETFD, FD_CLOEXEC); in preserveOverFork()
|
/aosp12/system/bt/osi/src/ |
H A D | semaphore.cc | 74 int flags = fcntl(semaphore->fd, F_GETFL); in semaphore_try_wait() 80 if (fcntl(semaphore->fd, F_SETFL, flags | O_NONBLOCK) == -1) { in semaphore_try_wait() 90 if (fcntl(semaphore->fd, F_SETFL, flags) == -1) in semaphore_try_wait()
|
/aosp12/system/update_engine/payload_consumer/ |
H A D | file_descriptor.cc | 112 int flags = fcntl(fd_, F_GETFL, 0); in BlkIoctl() 117 if ((flags & O_DIRECT) == 0 && fcntl(fd_, F_SETFL, flags | O_DIRECT) == -1) { in BlkIoctl() 125 if ((flags & O_DIRECT) == 0 && fcntl(fd_, F_SETFL, flags) == -1) { in BlkIoctl()
|
/aosp12/system/bt/test/rootcanal/ |
H A D | bluetooth_hci.cc | 304 int flags = fcntl(conn_fd, F_GETFL, NULL); in SetUpHciServer() 306 ret = fcntl(conn_fd, F_SETFL, flags | O_NONBLOCK); in SetUpHciServer() 331 int flags = fcntl(conn_fd, F_GETFL, NULL); in SetUpLinkLayerServer() 332 int ret = fcntl(conn_fd, F_SETFL, flags | O_NONBLOCK); in SetUpLinkLayerServer() 367 int flags = fcntl(socket_fd, F_GETFL, NULL); in ConnectToRemoteServer() 368 int ret = fcntl(socket_fd, F_SETFL, flags | O_NONBLOCK); in ConnectToRemoteServer()
|
/aosp12/system/libbase/include/android-base/ |
H A D | unique_fd.h | 201 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) != 0) { 208 if (fcntl(pipefd[0], F_SETFL, O_NONBLOCK) != 0 || fcntl(pipefd[1], F_SETFL, O_NONBLOCK) != 0) {
|
/aosp12/packages/apps/TV/jni/ |
H A D | DvbManager.cpp | 313 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); in openDvbFeFromSystemApi() 319 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); in openDvbDemuxFromSystemApi() 325 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); in openDvbDvrFromSystemApi()
|
/aosp12/system/core/libcutils/ |
H A D | android_get_control_socket_test.cpp | 46 ASSERT_GE(flags = fcntl(fd, F_GETFL), 0); in TEST() 47 ASSERT_GE(fcntl(fd, F_SETFL, flags | O_NONBLOCK), 0); in TEST()
|
H A D | qtaguid.cpp | 100 int res = fcntl(sockfd, F_GETFD); in qtaguid_tagSocket() 111 int res = fcntl(sockfd, F_GETFD); in qtaguid_untagSocket()
|
H A D | socket_network_client_unix.cpp | 33 int flags = fcntl(s, F_GETFL); in toggle_O_NONBLOCK() 34 if (flags == -1 || fcntl(s, F_SETFL, flags ^ O_NONBLOCK) == -1) { in toggle_O_NONBLOCK()
|
/aosp12/packages/modules/Virtualization/compos/src/ |
H A D | pvm_exec.rs | 30 use nix::fcntl::{fcntl, FcntlArg::F_GETFD}; 74 let retval = fcntl(fd, F_GETFD)?; in is_fd_valid()
|
/aosp12/art/libartbase/base/ |
H A D | memfd.cc | 92 int nfd = fcntl(fileno(file), F_DUPFD, /*lowest allowed fd*/ 0); in memfd_create_compat() 110 if (fcntl(fd, F_ADD_SEALS, F_SEAL_FUTURE_WRITE) == -1) { in IsSealFutureWriteSupportedInternal()
|
/aosp12/frameworks/av/media/libaaudio/examples/write_sine/src/ |
H A D | write_sine.cpp | 226 testFd, fcntl(testFd, F_GETFD)); in main() 229 testFd, fcntl(testFd, F_GETFD)); in main() 234 printf("testFd = %d, fcntl after close() returns 0x%08X\n", testFd, fcntl(testFd, F_GETFD)); in main()
|
/aosp12/hardware/interfaces/common/support/ |
H A D | NativeHandle.cpp | 31 to->data[i] = doDup ? fcntl(fd, F_DUPFD_CLOEXEC, 0) : fd; in fromAidl() 50 to.fds.at(i).set(doDup ? fcntl(fd, F_DUPFD_CLOEXEC, 0) : fd); in toAidl()
|
/aosp12/packages/modules/adb/ |
H A D | sysdeps_unix.cpp | 61 const auto oldFlags = fcntl(fd.get(), F_GETFD); in disable_close_on_exec() 64 fcntl(fd.get(), F_SETFD, newFlags); in disable_close_on_exec()
|
/aosp12/system/core/trusty/metrics/ |
H A D | metrics.cpp | 40 int flags = fcntl(fd, F_GETFL, 0); in Open() 45 int rc = fcntl(fd, F_SETFL, flags | O_NONBLOCK); in Open()
|
/aosp12/system/core/debuggerd/tombstoned/ |
H A D | tombstoned_client.cpp | 86 int flags = fcntl(tmp_output_fd.get(), F_GETFL); in tombstoned_connect() 87 if (fcntl(tmp_output_fd.get(), F_SETFL, flags | O_APPEND) != 0) { in tombstoned_connect()
|
/aosp12/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 31 import fcntl 45 fcntl.fcntl(stream, fcntl.F_SETFL, os.O_NONBLOCK)
|
/aosp12/packages/services/BuiltInPrintService/jni/lib/ |
H A D | printer.c | 206 fcntl(psock, F_SETFL, O_NONBLOCK); in wConnect() 228 flags = fcntl(psock, F_GETFL); in wConnect() 229 fcntl(psock, F_SETFL, flags & ~O_NONBLOCK); in wConnect()
|