/haiku/src/tests/system/kernel/ |
H A D | mmap_fixed_test.cpp | 27 void* addr = mmap(NULL, 4096, PROT_NONE, MAP_SHARED, fd, 0); 28 void* addr1 = mmap(addr, 4096, PROT_NONE, MAP_SHARED | MAP_FIXED, fd, 0); 31 printf("mmap failed.\n");
|
H A D | mmap_cut_tests.cpp | 22 void* ptr = mmap(NULL, B_PAGE_SIZE, PROT_READ, MAP_PRIVATE, gTestFd, -4096); 34 uint8* ptr1 = (uint8*)mmap(NULL, 16 * B_PAGE_SIZE, PROT_READ, MAP_PRIVATE, gTestFd, 0); 39 uint8* ptr2 = (uint8*)mmap(&ptr1[B_PAGE_SIZE], B_PAGE_SIZE, 55 uint8* ptr = (uint8*)mmap(NULL, B_PAGE_SIZE * 4, PROT_NONE, 65 mmap(ptr + B_PAGE_SIZE, B_PAGE_SIZE, PROT_READ | PROT_WRITE, 81 sprintf(name, "/shm-mmap-cut-fork-test-%d", getpid()); 94 uint8* ptr = (uint8*)mmap(NULL, B_PAGE_SIZE * 4, PROT_NONE, MAP_PRIVATE, 105 mmap(ptr + B_PAGE_SIZE, B_PAGE_SIZE, PROT_NONE,
|
H A D | mmap_resize_test.cpp | 19 const char* fileName = "/tmp/mmap-resize-test-file"; 41 void* address = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | mprotect_test.cpp | 47 void* mappedAddress = mmap(sMappedBase + sMappedSize, kMapChunkSize, 50 fprintf(stderr, "SIGSEGV: mmap() failed: %s\n", strerror(errno)); 78 // chunk again, so no other memory gets into the way, when we mmap() the 80 sMappedBase = (uint8_t*)mmap(NULL, kTestSize + kMapChunkSize, 83 fprintf(stderr, "mmap() failed: %s\n", strerror(errno));
|
H A D | realtime_sem_test1.cpp | 885 void* address = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
|
/haiku/headers/posix/sys/ |
H A D | mman.h | 13 /* memory protection for mmap() and others; assignment compatible with 20 /* mmap() flags */ 28 /* mmap() error return code */ 54 void* mmap(void* address, size_t length, int protection, int flags,
|
/haiku/src/system/libroot/posix/crypt/ |
H A D | crypto_scrypt.cpp | 115 if ((V0 = mmap(NULL, 128 * r * N, PROT_READ | PROT_WRITE,
|
/haiku/src/libs/bsd/ |
H A D | arc4random.c | 123 if ((*rsp = mmap(NULL, sizeof(**rsp), PROT_READ|PROT_WRITE, 127 if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE,
|
/haiku/src/system/libroot/posix/sys/ |
H A D | mman.cpp | 92 mmap(void* address, size_t length, int protection, int flags, int fd, function 145 snprintf(areaName, sizeof(areaName), "%s mmap area", imageName); 147 strlcpy(areaName, "mmap area", sizeof(areaName));
|
/haiku/src/tools/ |
H A D | elf2aout.c | 306 v = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, efd, 0);
|
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | libioP.h | 795 # define mmap __mmap macro 807 (_B) = (char *) mmap (0, ROUND_TO_PAGE (_S), \ 815 (_B) = (wchar_t *) mmap (0, ROUND_TO_PAGE (_S), \
|
/haiku/src/kits/debug/ |
H A D | Image.cpp | 274 fMappedFile = (uint8*)mmap(NULL, fFileSize, PROT_READ, MAP_PRIVATE, fFD, 0);
|
/haiku/src/system/libroot/stubbed/ |
H A D | libroot_stubs.c | 2094 void mmap() {} function
|
H A D | libroot_stubs_legacy.c | 2064 void mmap() {} function
|