Home
last modified time | relevance | path

Searched refs:new_fd (Results 1 – 2 of 2) sorted by relevance

/system/logging/liblog/
Dpmsg_writer.cpp41 int new_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC)); in GetPmsgFd() local
45 if (new_fd == 0) { in GetPmsgFd()
46 new_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC)); in GetPmsgFd()
56 if (!pmsg_fd.compare_exchange_strong(uninitialized_value, new_fd)) { in GetPmsgFd()
57 if (new_fd != -1) { in GetPmsgFd()
58 close(new_fd); in GetPmsgFd()
/system/update_engine/payload_generator/
Dblock_mapping.cc151 int new_fd = HANDLE_EINTR(open(new_part.c_str(), O_RDONLY)); in MapPartitionBlocks() local
153 ScopedFdCloser new_fd_closer(&new_fd); in MapPartitionBlocks()
158 new_fd, 0, new_size / block_size, new_block_ids)); in MapPartitionBlocks()