Lines Matching refs:memPtr
66 void* memPtr;
68 memPtr = sysCreateAnonShmem(length);
69 if (memPtr == NULL)
72 pMap->addr = pMap->baseAddr = memPtr;
118 void* memPtr;
125 memPtr = malloc(length);
126 if (read(fd, memPtr, length) < 0) {
132 pMap->baseAddr = pMap->addr = memPtr;
155 void* memPtr;
162 memPtr = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE,
164 if (memPtr == MAP_FAILED) {
169 if (mprotect(memPtr, length, PROT_READ) < 0) {
173 memPtr, length, strerror(err));
177 pMap->baseAddr = pMap->addr = memPtr;
200 void* memPtr;
209 memPtr = mmap(NULL, actualLength, PROT_READ, MAP_FILE | MAP_SHARED,
211 if (memPtr == MAP_FAILED) {
217 pMap->baseAddr = memPtr;
219 pMap->addr = (char*)memPtr + adjust;