Home | History | Annotate | Download | only in memory

Lines Matching defs:Open

63   // It doesn't make sense to have a open-existing private piece of shmem
91 // Also open as readonly so that we can ShareReadOnlyToProcess.
92 readonly_fd->reset(HANDLE_EINTR(open(path->value().c_str(), O_RDONLY)));
94 DPLOG(ERROR) << "open(\"" << path->value() << "\", O_RDONLY) failed";
233 open(path.value().c_str(), O_RDWR | O_CREAT | O_EXCL, kOwnerOnly));
235 // If this doesn't work, try and open an existing file in append mode.
241 // is opened, so O_NOFOLLOW is passed to open().
243 open(path.value().c_str(), O_RDWR | O_APPEND | O_NOFOLLOW));
265 // Also open as readonly so that we can ShareReadOnlyToProcess.
266 readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY)));
268 DPLOG(ERROR) << "open(\"" << path.value() << "\", O_RDONLY) failed";
322 bool SharedMemory::Open(const std::string& name, bool read_only) {
331 ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY)));
333 DPLOG(ERROR) << "open(\"" << path.value() << "\", O_RDONLY) failed";