Lines Matching full:memptr
87 void* memPtr;
94 memPtr = sysCreateAnonShmem(length);
95 if (memPtr == NULL)
98 pMap->baseAddr = pMap->addr = memPtr;
101 actual = TEMP_FAILURE_RETRY(read(fd, memPtr, length));
122 void* memPtr;
129 memPtr = mmap(NULL, length, PROT_READ, MAP_FILE | MAP_SHARED, fd, start);
130 if (memPtr == MAP_FAILED) {
136 pMap->baseAddr = pMap->addr = memPtr;
156 void* memPtr;
174 memPtr = mmap(NULL, actualLength, PROT_READ, MAP_FILE | MAP_SHARED,
176 if (memPtr == MAP_FAILED) {
182 pMap->baseAddr = memPtr;
184 pMap->addr = (char*)memPtr + adjust;