Searched refs:mmap (Results 1 - 14 of 14) sorted by relevance

/haiku/src/tests/system/kernel/
H A Dmmap_fixed_test.cpp27 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 Dmmap_cut_tests.cpp22 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 Dmmap_resize_test.cpp19 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 Dmprotect_test.cpp47 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 Drealtime_sem_test1.cpp885 void* address = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
/haiku/headers/posix/sys/
H A Dmman.h13 /* 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 Dcrypto_scrypt.cpp115 if ((V0 = mmap(NULL, 128 * r * N, PROT_READ | PROT_WRITE,
/haiku/src/libs/bsd/
H A Darc4random.c123 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 Dmman.cpp92 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 Delf2aout.c306 v = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, efd, 0);
/haiku/src/system/libroot/posix/glibc/libio/
H A DlibioP.h795 # 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 DImage.cpp274 fMappedFile = (uint8*)mmap(NULL, fFileSize, PROT_READ, MAP_PRIVATE, fFD, 0);
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs.c2094 void mmap() {} function
H A Dlibroot_stubs_legacy.c2064 void mmap() {} function

Completed in 212 milliseconds