Home
last modified time | relevance | path

Searched refs:child_fd (Results 1 – 4 of 4) sorted by relevance

/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp68 unique_fd parent_fd, child_fd; member in fd_sharer
74 fd_sharer::fd_sharer() : parent_fd{}, child_fd{}, child_pid{-1} { in fd_sharer()
75 bool sp_ok = android::base::Socketpair(SOCK_STREAM, &parent_fd, &child_fd);
113 ssize_t s = TEMP_FAILURE_RETRY(recvmsg(child_fd, &msg, 0)); in run()
116 s = TEMP_FAILURE_RETRY(write(child_fd, &unused, sizeof(unused))); in run()
/system/core/init/
Dsubcontext.cpp208 int child_fd = dup(subcontext_socket); // NOLINT(android-cloexec-dup) in Fork() local
209 if (child_fd < 0) { in Fork()
222 auto child_fd_string = std::to_string(child_fd); in Fork()
/system/update_engine/common/
Dsubprocess_unittest.cc105 int child_fd, in ExpectedDataOnPipe() argument
113 int fd = subprocess->GetPipeFd(*pid, child_fd); in ExpectedDataOnPipe()
/system/core/adb/daemon/
Dshell_service.cpp510 int child_fd = adb_open(pts_name, O_RDWR | O_CLOEXEC); in OpenPtyChildFd() local
511 if (child_fd == -1) { in OpenPtyChildFd()
524 if (tcgetattr(child_fd, &tattr) == -1) { in OpenPtyChildFd()
532 if (tcsetattr(child_fd, TCSADRAIN, &tattr) == -1) { in OpenPtyChildFd()
540 return child_fd; in OpenPtyChildFd()