Searched refs:readonly_fd (Results 1 – 11 of 11) sorted by relevance
/external/libchrome/base/memory/ |
D | platform_shared_memory_region_posix.cc | 64 : 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 …]
|
D | shared_memory_helper.cc | 34 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()
|
D | shared_memory_posix.cc | 106 ScopedFD readonly_fd; in Create() local 110 CreateAnonymousSharedMemory(options, &fd, &readonly_fd, &path); in Create() 161 readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Create() 162 if (!readonly_fd.is_valid()) { in Create() 197 bool result = PrepareMapFile(std::move(fd), std::move(readonly_fd), in Create() 231 ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Open() local 232 if (!readonly_fd.is_valid()) { in Open() 238 bool result = PrepareMapFile(std::move(fd), std::move(readonly_fd), in Open()
|
D | shared_memory_helper.h | 23 ScopedFD* readonly_fd, 29 ScopedFD readonly_fd,
|
D | platform_shared_memory_region.h | 39 int readonly_fd; member 52 ScopedFD readonly_fd; member
|
D | platform_shared_memory_region_unittest.cc | 188 EXPECT_LT(fds.readonly_fd, 0); in TEST_F() 199 EXPECT_LT(fds.readonly_fd, 0); in TEST_F()
|
/external/libchrome/mojo/core/ |
D | platform_handle_utils.cc | 41 *extracted_readonly_handle = PlatformHandle(std::move(handle.readonly_fd)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
|
D | shared_buffer_dispatcher.cc | 259 handle.readonly_fd.reset(); in DuplicateBufferHandle()
|
D | core.cc | 689 writable_region_handle.readonly_fd.reset(); in CreateDataPipe()
|
/external/libchrome/mojo/public/cpp/system/ |
D | platform_handle.cc | 84 static_cast<uint64_t>(handle.readonly_fd.release()); in WrapPlatformSharedMemoryRegion() 155 region_handle.readonly_fd.reset( in UnwrapPlatformSharedMemoryRegion()
|
/external/libchrome/ipc/ |
D | ipc_message_utils.cc | 914 new internal::PlatformFileAttachment(std::move(h.readonly_fd))); in Write() 1021 LogParam(h.readonly_fd, l); in Log()
|