/external/chromium_org/base/memory/ |
shared_memory_android.cc | 20 DCHECK_EQ(-1, mapped_file_ ); 26 mapped_file_ = ashmem_create_region( 29 if (-1 == mapped_file_) { 34 int err = ashmem_set_prot_region(mapped_file_, 43 readonly_mapped_file_ = dup(mapped_file_);
|
shared_memory_nacl.cc | 20 : mapped_file_(-1), 29 : mapped_file_(handle.fd), 39 : mapped_file_(handle.fd), 88 if (mapped_file_ == -1) 95 MAP_SHARED, mapped_file_, offset); 121 return FileDescriptor(mapped_file_, false); 126 if (mapped_file_ > 0) { 127 if (close(mapped_file_) < 0) 129 mapped_file_ = -1; 150 const int new_fd = dup(mapped_file_); [all...] |
shared_memory_win.cc | 26 : mapped_file_(NULL), 35 : mapped_file_(NULL), 45 : mapped_file_(handle), 55 : mapped_file_(NULL), 62 GetCurrentProcess(), &mapped_file_, 106 DCHECK(!mapped_file_); 117 mapped_file_ = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, 120 if (!mapped_file_) 145 DCHECK(!mapped_file_); 149 mapped_file_ = OpenFileMapping [all...] |
shared_memory_posix.cc | 45 : mapped_file_(-1), 55 : mapped_file_(handle.fd), 72 : mapped_file_(handle.fd), 122 DCHECK_EQ(-1, mapped_file_); 280 if (mapped_file_ == -1) 291 int ashmem_bytes = ashmem_get_size_region(mapped_file_); 299 MAP_SHARED, mapped_file_, offset); 324 return FileDescriptor(mapped_file_, false); 330 if (mapped_file_ > 0) { 331 if (close(mapped_file_) < 0 [all...] |
shared_memory.h | 282 HANDLE mapped_file_; member in class:base::SharedMemory 284 int mapped_file_; member in class:base::SharedMemory
|
/external/chromium/base/ |
shared_memory_win.cc | 13 : mapped_file_(NULL), 21 : mapped_file_(NULL), 30 : mapped_file_(handle), 39 : mapped_file_(NULL), 45 GetCurrentProcess(), &mapped_file_, 83 DCHECK(!mapped_file_); 94 mapped_file_ = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, 97 if (!mapped_file_) 122 DCHECK(!mapped_file_); 126 mapped_file_ = OpenFileMapping [all...] |
shared_memory_posix.cc | 29 : mapped_file_(-1), 38 : mapped_file_(handle.fd), 54 : mapped_file_(handle.fd), 102 DCHECK_EQ(-1, mapped_file_); 201 if (mapped_file_ == -1) 205 MAP_SHARED, mapped_file_, 0); 226 return FileDescriptor(mapped_file_, false); 232 if (mapped_file_ > 0) { 233 if (HANDLE_EINTR(close(mapped_file_)) < 0) 235 mapped_file_ = -1 [all...] |
shared_memory.h | 199 HANDLE mapped_file_; member in class:base::SharedMemory 201 int mapped_file_; member in class:base::SharedMemory
|
/art/runtime/base/unix_file/ |
mapped_file.cc | 50 mapped_file_ = mmap(NULL, file_size_, PROT_READ, MAP_PRIVATE, Fd(), 0); 51 } while (mapped_file_ == MAP_FAILED && errno == EINTR); 52 if (mapped_file_ == MAP_FAILED) { 72 mapped_file_ = 74 } while (mapped_file_ == MAP_FAILED && errno == EINTR); 75 if (mapped_file_ == MAP_FAILED) { 86 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_)); 92 mapped_file_ = NULL; 128 int rc = IsMapped() ? TEMP_FAILURE_RETRY(msync(mapped_file_, file_size_, 0)) : FdFile::Flush(); 154 return mapped_file_ != NULL && mapped_file_ != MAP_FAILED [all...] |
mapped_file.h | 39 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL) { 43 explicit MappedFile(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) { 89 void* mapped_file_; member in class:unix_file::MappedFile
|
/external/chromium_org/tools/ipc_fuzzer/message_lib/ |
message_file_reader.cc | 52 base::MemoryMappedFile mapped_file_; member in class:ipc_fuzzer::__anon17384::Reader 98 if (!mapped_file_.Initialize(path_)) { 102 const char* data = reinterpret_cast<const char*>(mapped_file_.data()); 103 file_data_.set(data, mapped_file_.length());
|