Searched refs:new_fd (Results 1 – 2 of 2) sorted by relevance
41 int new_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC)); in GetPmsgFd() local45 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()
151 int new_fd = HANDLE_EINTR(open(new_part.c_str(), O_RDONLY)); in MapPartitionBlocks() local153 ScopedFdCloser new_fd_closer(&new_fd); in MapPartitionBlocks()158 new_fd, 0, new_size / block_size, new_block_ids)); in MapPartitionBlocks()