/third_party/rust/crates/rustix/tests/mm/ |
H A D | mmap.rs | 9 use rustix::mm::{mmap, munmap, MapFlags, ProtFlags}; in test_mmap() 40 munmap(addr, 8192).unwrap(); in test_mmap() 63 use rustix::mm::{mmap_anonymous, munmap, MapFlags, ProtFlags}; in test_mmap_anonymous() 72 munmap(addr, 8192).unwrap(); in test_mmap_anonymous() 78 use rustix::mm::{mmap_anonymous, mprotect, munmap, MapFlags, MprotectFlags, ProtFlags}; in test_mprotect() 91 munmap(addr, 8192).unwrap(); in test_mprotect() 97 use rustix::mm::{mlock, mmap_anonymous, munlock, munmap, MapFlags, ProtFlags}; in test_mlock() 127 munmap(addr, 8192).unwrap(); in test_mlock() 134 use rustix::mm::{madvise, mmap_anonymous, munmap, Advice, MapFlags, ProtFlags}; in test_madvise() 146 munmap(add in test_madvise() [all...] |
/third_party/musl/porting/linux/user/src/hook/ |
H A D | musl_preinit_common.c | 22 .munmap = MuslMalloc(munmap), 34 .munmap = MuslMalloc(munmap),
|
H A D | malloc_common.c | 113 int munmap(void* addr, size_t length) in munmap() function 117 return dispatch_table->munmap(addr, length); in munmap() 119 return MuslMalloc(munmap)(addr, length); in munmap()
|
/third_party/musl/src/hook/linux/ |
H A D | musl_preinit_common.c | 37 .munmap = MuslMalloc(munmap), 49 .munmap = MuslMalloc(munmap),
|
/third_party/ltp/testcases/kernel/syscalls/munmap/ |
H A D | munmap03.c | 23 * 1. munmap() fails with -1 return value and sets errno to EINVAL 26 * 2. munmap() fails with -1 return value and sets errno to EINVAL 28 * 3. munmap() fails with -1 return value and sets errno to EINVAL 105 tst_resm(TFAIL, "munmap succeeded unexpectedly"); in check_and_print() 120 TEST(munmap(addr, map_len)); in test_einval1() 130 TEST(munmap(addr, map_len)); in test_einval2() 140 TEST(munmap(addr, map_len)); in test_einval3() 147 if (munmap(global_addr, global_maplen) == -1) in cleanup() 148 tst_resm(TWARN | TERRNO, "munmap failed"); in cleanup()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_mman.cpp | 135 munmap(mem, length); in Bm_function_Mmap_anonymous() 152 munmap(mem, length); in Bm_function_Munmap_anonymous() 171 munmap(mem, length); in Bm_function_Mmap_fd() 193 munmap(mem, length); in Bm_function_Munmap_fd() 209 munmap(addr, length); in Bm_function_Madvise() 230 munmap(newAddr, newLength); in Bm_function_Mremap() 252 munmap(mem, length); in Bm_function_Msync() 296 munmap(addr, length); in Bm_function_Mlock_Munlock()
|
/third_party/libunwind/libunwind/src/mi/ |
H A D | flush_cache.c | 40 munmap (w->index, w->index_size); in unw_flush_cache() 42 munmap (w->debug_frame, w->debug_frame_size); in unw_flush_cache() 43 munmap (w, sizeof (*w)); in unw_flush_cache()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap10.c | 25 * mmap/munmap /dev/zero: a common way of malloc()/free() anonymous 32 * option to mmap/munmap anonymous pages. 48 * 16M in size is also multi-threaded the subsequent munmap() of 148 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero() 149 tst_brkm(TFAIL | TERRNO, cleanup, "munmap"); in mmapzero() 159 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero() 161 "subsequent munmap #1"); in mmapzero() 168 if (munmap(x + SIZE + ps, SIZE - ps - ps) == -1) in mmapzero() 170 "subsequent munmap #2"); in mmapzero() 178 if (munmap( in mmapzero() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/ |
H A D | ldso_dlopen_ext_test.cpp | 81 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F() 101 munmap(addr, SIZE_128); in HWTEST_F() 131 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F() 171 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F() 192 munmap(addr, SIZE_128); in HWTEST_F() 312 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F() 348 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F() 383 munmap(addr, SIZE_1024_SQUARE); in HWTEST_F() 412 munmap(addr, SIZE_128); in HWTEST_F()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 7-1.c | 22 * 4. munmap() this mapping. 79 munmap(pa, size); in main() 93 munmap(pa, size); in main() 99 munmap(pa, size); in main()
|
H A D | 9-1.c | 76 munmap(pa, size); in main() 84 munmap(pa, size); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | remap_file_pages.c | 144 munmap(start, LEN); in remap_file_pages_0100() 151 munmap(start, LEN); in remap_file_pages_0100() 171 munmap(start, LEN); in remap_file_pages_0100()
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitProtExecAllocator.c | 212 munmap((void *)retval, size); in alloc_chunk() 238 munmap((void *)retval, size); in alloc_chunk() 243 munmap(retval->executable, size); in alloc_chunk() 244 munmap((void *)retval, size); in alloc_chunk() 256 munmap(header->executable, size); in free_chunk() 257 munmap((void *)header, size); in free_chunk()
|
/third_party/musl/libc-test/src/functionalext/relro/ |
H A D | dlopen_ext_relro_test.c | 434 munmap(map, map_size); in dlopen_ext_relro_1600() 471 munmap(map, map_size); in dlopen_ext_relro_1700() 508 munmap(map, map_size); in dlopen_ext_relro_1800() 543 munmap(map, map_size); in dlopen_ext_relro_1900() 580 munmap(map, map_size); in dlopen_ext_relro_2000() 617 munmap(map, map_size); in dlopen_ext_relro_2100() 656 munmap(map, map_size); in dlopen_ext_relro_2200() 695 munmap(map, map_size); in dlopen_ext_relro_2300() 733 munmap(map, map_size); in dlopen_ext_relro_2400()
|
/third_party/mesa3d/src/gallium/auxiliary/os/ |
H A D | os_mman.h | 59 munmap(addr, length) 75 return munmap(addr, length); in os_munmap()
|
/third_party/musl/libc-test/src/functionalext/supplement/hook/hook_gtest/ |
H A D | hook_munmap_test.cpp | 15 * @tc.desc: Verify the use of the munmap function to release memory, and expect a return value of 0 to indicate 23 EXPECT_TRUE(munmap(ptr, MMAP_SIZE) == 0); in HWTEST_F() 28 * @tc.desc: Verify the use of the munmap function to release memory, and expect a return value of 0 to indicate 36 EXPECT_TRUE(munmap(ptr, MMAP_SIZE) == 0); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmapstress05.c | 62 if (munmap(mmapaddr+pagesize, pagesize) == -1) { \ 63 ERROR("munmap failed"); \ 65 if (munmap(mmapaddr, pagesize) == -1) { \ 66 ERROR("munmap failed"); \ 68 if (munmap(mmapaddr+2*pagesize, pagesize) == -1) { \ 69 ERROR("munmap failed"); \
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap02.c | 105 if (munmap(addrlist[i], 256 * 1024 * 1024) == -1) in test_hugemmap() 107 "munmap of addrlist[%d] failed", i); in test_hugemmap() 110 if (munmap(addr2, map_sz) == -1) in test_hugemmap() 111 tst_res(TFAIL | TERRNO, "huge munmap failed"); in test_hugemmap() 112 if (munmap(addr, page_sz) == -1) in test_hugemmap() 113 tst_res(TFAIL | TERRNO, "munmap failed"); in test_hugemmap()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
H A D | cpuset_memory_test.c | 55 static int opt_check; /* check node when munmap memory (only for mmap_anon()) */ 169 if (munmap(p, memsize) == -1) in mmap_anon() 170 err(1, "munmap(anonymous) failed"); in mmap_anon() 199 if (munmap(p, memsize) == -1) in mmap_file() 200 err(1, "munmap(file) failed"); in mmap_file() 220 if (munmap(p, memsize) == -1) in mmap_lock1() 221 err(1, "munmap(lock) failed"); in mmap_lock1() 239 if (munmap(p, memsize) == -1) in mmap_lock2() 240 err(1, "munmap failed"); in mmap_lock2()
|
/third_party/ltp/testcases/kernel/controllers/memcg/functional/ |
H A D | memcg_process.c | 126 if (munmap(p, memsize) == -1) in mmap_anon() 127 err(1, "munmap(anonymous) failed"); in mmap_anon() 156 if (munmap(p, memsize) == -1) in mmap_file() 157 err(1, "munmap(file) failed"); in mmap_file() 177 if (munmap(p, memsize) == -1) in mmap_lock1() 178 err(1, "munmap(lock) failed"); in mmap_lock1() 199 if (munmap(p, memsize) == -1) in mmap_lock2() 200 err(1, "munmap failed"); in mmap_lock2()
|
/third_party/libdrm/ |
H A D | libdrm_macros.h | 64 munmap(addr, length) 83 return munmap(addr, length); in drm_munmap()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
H A D | 2-1.c | 7 * If there are no mappings in the specified address range, then munmap() has 8 * no effect. To get a valid address range which is safe to call munmap() on 10 * then unmap it. We then call munmap() on the same address again to perform 28 #define TNAME "munmap/2-1.c" 55 rc = munmap(map_addr, map_size); in main() 64 rc = munmap(map_addr, map_size); in main() 66 printf("Test FAILED " TNAME " Error at munmap(): %s (%d)\n", in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | madvise.c | 58 munmap(ptr, length); in madvise_0100() 84 munmap(ptr, length); in madvise_0200()
|
H A D | mremap.c | 50 int rev = munmap(map_new, TEST_M_NEW_SIZE); in mremap_0100() 83 int rev = munmap(map, TEST_M_SIZE); in mremap_0200()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
H A D | sem_open.c | 132 munmap(map, sizeof(sem_t)); in sem_open() 146 munmap(map, sizeof(sem_t)); in sem_open() 179 munmap(sem, sizeof *sem); in sem_close()
|