Home
last modified time | relevance | path

Searched refs:fd_flags (Results 1 – 8 of 8) sorted by relevance

/aosp12/frameworks/base/core/jni/
H A Dfd_utils.cpp181 const int fd_flags; member in FileDescriptorInfo
192 int fd_flags, int fs_flags, off_t offset);
273 const int fd_flags = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFD)); in CreateFromFd() local
274 if (fd_flags == -1) { in CreateFromFd()
310 return new FileDescriptorInfo(f_stat, file_path, fd, open_flags, fd_flags, fs_flags, offset); in CreateFromFd()
345 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) { in ReopenOrDetach()
349 fd_flags, in ReopenOrDetach()
371 int dup_flags = (fd_flags & FD_CLOEXEC) ? O_CLOEXEC : 0; in ReopenOrDetach()
389 fd_flags(0), in FileDescriptorInfo()
396 int fd, int open_flags, int fd_flags, int fs_flags, in FileDescriptorInfo() argument
[all …]
/aosp12/system/core/init/
H A Dservice_utils.cpp158 auto fd_flags = fcntl(fd, F_GETFD); in Publish() local
159 fd_flags &= ~FD_CLOEXEC; in Publish()
160 if (fcntl(fd, F_SETFD, fd_flags) != 0) { in Publish()
/aosp12/bionic/libc/kernel/uapi/linux/
H A Ddma-heap.h28 __u32 fd_flags; member
/aosp12/system/update_engine/common/
H A Dsubprocess.cc195 int fd_flags = fcntl(record->stdout_fd, F_GETFL, 0) | O_NONBLOCK; in ExecFlags() local
196 if (HANDLE_EINTR(fcntl(record->stdout_fd, F_SETFL, fd_flags)) < 0) { in ExecFlags()
/aosp12/system/update_engine/payload_consumer/
H A Dpostinstall_runner_action.cc243 int fd_flags = fcntl(progress_fd_, F_GETFL, 0) | O_NONBLOCK; in PerformPartitionPostinstall() local
244 if (HANDLE_EINTR(fcntl(progress_fd_, F_SETFL, fd_flags)) < 0) { in PerformPartitionPostinstall()
/aosp12/bionic/libc/stdio/
H A Dstdio.cpp277 int fd_flags = fcntl(fd, F_GETFL, 0); in fdopen() local
278 if (fd_flags == -1) return nullptr; in fdopen()
279 int tmp = fd_flags & O_ACCMODE; in fdopen()
287 if ((mode_flags & O_APPEND) && !(fd_flags & O_APPEND)) { in fdopen()
288 if (fcntl(fd, F_SETFL, fd_flags | O_APPEND) == -1) return nullptr; in fdopen()
/aosp12/system/memory/libdmabufheap/tests/
H A Ddmabuf_heap_bench.c97 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc()
/aosp12/system/memory/libdmabufheap/
H A DBufferAllocator.cpp218 .fd_flags = O_RDWR | O_CLOEXEC, // permissions for the memory to be allocated in DmabufAlloc()