Home
last modified time | relevance | path

Searched refs:readonly_fd (Results 1 – 11 of 11) sorted by relevance

/external/libchrome/base/memory/
Dplatform_shared_memory_region_posix.cc64 : fd(std::move(in_fd)), readonly_fd(std::move(in_readonly_fd)) {} in ScopedFDPair()
67 return {fd.get(), readonly_fd.get()}; in get()
91 if (handle.readonly_fd.is_valid()) { in Take()
92 handle.readonly_fd.reset(); in Take()
98 if (!handle.readonly_fd.is_valid()) { in Take()
118 (mode_ == Mode::kWritable ? handle_.readonly_fd.is_valid() : true); in IsValid()
145 handle_.fd.reset(handle_.readonly_fd.release()); in ConvertToReadOnly()
157 handle_.readonly_fd.reset(); in ConvertToUnsafe()
239 ScopedFD readonly_fd; in Create()
242 readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Create()
[all …]
Dshared_memory_helper.cc34 ScopedFD* readonly_fd, in CreateAnonymousSharedMemory() argument
59 readonly_fd->reset(HANDLE_EINTR(open(path->value().c_str(), O_RDONLY))); in CreateAnonymousSharedMemory()
60 if (!readonly_fd->is_valid()) { in CreateAnonymousSharedMemory()
70 ScopedFD readonly_fd, in PrepareMapFile() argument
83 if (readonly_fd.is_valid()) { in PrepareMapFile()
89 if (fstat(readonly_fd.get(), &readonly_st)) in PrepareMapFile()
151 *readonly_mapped_file = readonly_fd.release(); in PrepareMapFile()
Dshared_memory_posix.cc108 ScopedFD readonly_fd; in Create() local
112 CreateAnonymousSharedMemory(options, &fd, &readonly_fd, &path); in Create()
163 readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Create()
164 if (!readonly_fd.is_valid()) { in Create()
199 bool result = PrepareMapFile(std::move(fd), std::move(readonly_fd), in Create()
233 ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Open() local
234 if (!readonly_fd.is_valid()) { in Open()
240 bool result = PrepareMapFile(std::move(fd), std::move(readonly_fd), in Open()
Dshared_memory_helper.h23 ScopedFD* readonly_fd,
29 ScopedFD readonly_fd,
Dplatform_shared_memory_region.h39 int readonly_fd; member
52 ScopedFD readonly_fd; member
Dplatform_shared_memory_region_unittest.cc188 EXPECT_LT(fds.readonly_fd, 0); in TEST_F()
199 EXPECT_LT(fds.readonly_fd, 0); in TEST_F()
/external/libchrome/mojo/core/
Dplatform_handle_utils.cc41 *extracted_readonly_handle = PlatformHandle(std::move(handle.readonly_fd)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
Dshared_buffer_dispatcher.cc259 handle.readonly_fd.reset(); in DuplicateBufferHandle()
Dcore.cc689 writable_region_handle.readonly_fd.reset(); in CreateDataPipe()
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.cc84 static_cast<uint64_t>(handle.readonly_fd.release()); in WrapPlatformSharedMemoryRegion()
155 region_handle.readonly_fd.reset( in UnwrapPlatformSharedMemoryRegion()
/external/libchrome/ipc/
Dipc_message_utils.cc914 new internal::PlatformFileAttachment(std::move(h.readonly_fd))); in Write()
1021 LogParam(h.readonly_fd, l); in Log()