Home
last modified time | relevance | path

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

123456789

/aosp12/bionic/tests/
H A Dfcntl_test.cpp34 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.cpp35 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 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()
H A Dfcntl.cpp38 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 DFdBuffer.cpp59 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 Dtest_environment.cc88 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 DOffloadUtilsTest.cpp112 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 Dalloc-stress.cpp45 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 Dsemaphore.cc74 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 Dfile_descriptor.cc112 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 Dbluetooth_hci.cc304 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 Dunique_fd.h201 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 DDvbManager.cpp313 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 Dandroid_get_control_socket_test.cpp46 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 Dqtaguid.cpp100 int res = fcntl(sockfd, F_GETFD); in qtaguid_tagSocket()
111 int res = fcntl(sockfd, F_GETFD); in qtaguid_untagSocket()
H A Dsocket_network_client_unix.cpp33 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 Dpvm_exec.rs30 use nix::fcntl::{fcntl, FcntlArg::F_GETFD};
74 let retval = fcntl(fd, F_GETFD)?; in is_fd_valid()
/aosp12/art/libartbase/base/
H A Dmemfd.cc92 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 Dwrite_sine.cpp226 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 DNativeHandle.cpp31 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 Dsysdeps_unix.cpp61 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 Dmetrics.cpp40 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 Dtombstoned_client.cpp86 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 Dvelocityplot.py31 import fcntl
45 fcntl.fcntl(stream, fcntl.F_SETFL, os.O_NONBLOCK)
/aosp12/packages/services/BuiltInPrintService/jni/lib/
H A Dprinter.c206 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()

123456789