Home
last modified time | relevance | path

Searched refs:map_len (Results 1 - 16 of 16) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/munmap/
H A Dmunmap02.c89 unsigned int map_len; /* length of the region to be mapped */ variable
114 TEST(munmap(addr, map_len)); in main()
175 map_len = 3 * page_sz; in setup()
189 SAFE_LSEEK(cleanup, fildes, map_len, SEEK_SET); in setup()
204 addr = mmap(0, map_len, PROT_READ | PROT_WRITE, in setup()
207 addr = mmap(0, map_len, PROT_READ | PROT_WRITE, in setup()
224 map_len = map_len - page_sz; in setup()
261 map_len = map_len in cleanup()
[all...]
H A Dmunmap03.c113 size_t map_len; in test_einval1() local
118 map_len = page_sz * 2; in test_einval1()
120 TEST(munmap(addr, map_len)); in test_einval1()
128 size_t map_len = 0; in test_einval2() local
130 TEST(munmap(addr, map_len)); in test_einval2()
138 size_t map_len = page_sz; in test_einval3() local
140 TEST(munmap(addr, map_len)); in test_einval3()
H A Dmunmap01.c87 unsigned int map_len; /* length of the region to be mapped */ variable
109 TEST(munmap(addr, map_len)); in main()
171 map_len = 3 * page_sz; in setup()
185 SAFE_LSEEK(cleanup, fildes, map_len, SEEK_SET); in setup()
200 addr = mmap(0, map_len, PROT_READ | PROT_WRITE, in setup()
203 addr = mmap(0, map_len, PROT_READ | PROT_WRITE, in setup()
/third_party/toybox/toys/other/
H A Ddevmem.c23 unsigned long long addr = atolx(toys.optargs[0]), data = 0, map_off, map_len; in devmem_main() local
41 map_len = (addr+bytes-map_off); in devmem_main()
42 map = xmmap(NULL, map_len, writing ? PROT_WRITE : PROT_READ, MAP_SHARED, fd, in devmem_main()
61 munmap(map, map_len); in devmem_main()
/third_party/musl/ldso/linux/
H A Dcfi.c349 if (dso->map == 0 || dso->map_len == 0) in unmap_dso_from_cfi_shadow()
359 dso->name, LIBRARY_ALIGNMENT, dso->map, dso->map + dso->map_len, 0, sv_invalid); in unmap_dso_from_cfi_shadow()
364 fill_shadow_value_to_shadow(dso->map, dso->map + dso->map_len, 0, sv_invalid); in unmap_dso_from_cfi_shadow()
397 if (p->map == 0 || p->map_len == 0) { in add_dso_to_cfi_shadow()
398 LD_LOGW("[CFI] [%{public}s] the dso has no data! map[%{public}p] map_len[0x%{public}x]\n", in add_dso_to_cfi_shadow()
399 __FUNCTION__, p->map, p->map_len); in add_dso_to_cfi_shadow()
417 dso->name, LIBRARY_ALIGNMENT, dso->map, dso->map + dso->map_len, 0, sv_uncheck); in add_dso_to_cfi_shadow()
421 if (fill_shadow_value_to_shadow(p->map, p->map + p->map_len, 0, sv_uncheck) == CFI_FAILED) { in add_dso_to_cfi_shadow()
428 uintptr_t end = p->map + p->map_len; in add_dso_to_cfi_shadow()
453 dso->name, LIBRARY_ALIGNMENT, dso->map, dso->map + dso->map_len, cfi_chec in add_dso_to_cfi_shadow()
[all...]
H A Ddynlink.c1361 } else if (dso->map && dso->map_len) { in unmap_library()
1363 munmap(dso->map, dso->map_len); in unmap_library()
1365 mprotect(dso->map, dso->map_len, PROT_NONE); in unmap_library()
1574 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
1683 map_len = 0; in map_library()
1690 map_len = addr_max - addr_min + off_start; in map_library()
1701 if (map_len > reserved_params->reserved_size) { in map_library()
1712 * so we need a tmp_map_len as map_len + mapping_align to make sure in map_library()
1715 size_t tmp_map_len = ALIGN(map_len, mapping_align) + mapping_align - PAGE_SIZE; in map_library()
1723 ? mmap((void *)start_addr, map_len, PROT_REA in map_library()
5214 size_t addr_min = SIZE_MAX, addr_max = 0, map_len; task_map_library() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dgxf.c321 int map_len; in gxf_header() local
326 if (!parse_packet_header(pb, &pkt_type, &map_len) || pkt_type != PKT_MAP) { in gxf_header()
330 map_len -= 2; in gxf_header()
335 map_len -= 2; in gxf_header()
337 if (len > map_len) { in gxf_header()
341 map_len -= len; in gxf_header()
344 map_len -= 2; in gxf_header()
346 if (len > map_len) { in gxf_header()
350 map_len -= len; in gxf_header()
393 if (map_len) in gxf_header()
[all...]
/third_party/musl/porting/linux/user/ldso/
H A Dcfi.c162 if (a - (size_t)pldso->map < pldso->map_len) in is_addr_in_ldso()
328 if (dso->map == 0 || dso->map_len == 0) in unmap_dso_from_cfi_shadow()
335 fill_shadow_value_to_shadow(dso->map, dso->map + dso->map_len, 0, sv_invalid); in unmap_dso_from_cfi_shadow()
368 if (p->map == 0 || p->map_len == 0) { in add_dso_to_cfi_shadow()
369 LD_LOGW("[CFI] [%{public}s] the dso has no data! map[%{public}p] map_len[0x%{public}x]\n", in add_dso_to_cfi_shadow()
370 __FUNCTION__, p->map, p->map_len); in add_dso_to_cfi_shadow()
383 if (fill_shadow_value_to_shadow(p->map, p->map + p->map_len, 0, sv_uncheck) == CFI_FAILED) { in add_dso_to_cfi_shadow()
390 uintptr_t end = p->map + p->map_len; in add_dso_to_cfi_shadow()
H A Ddynlink.c1326 } else if (dso->map && dso->map_len) { in unmap_library()
1328 munmap(dso->map, dso->map_len); in unmap_library()
1330 mprotect(dso->map, dso->map_len, PROT_NONE); in unmap_library()
1425 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
1531 map_len = 0; in map_library()
1538 map_len = addr_max - addr_min + off_start; in map_library()
1549 if (map_len > reserved_params->reserved_size) { in map_library()
1560 * so we need a tmp_map_len as map_len + mapping_align to make sure in map_library()
1563 size_t tmp_map_len = ALIGN(map_len, mapping_align) + mapping_align - PAGE_SIZE; in map_library()
1568 ? mmap((void *)start_addr, map_len, PROT_REA in map_library()
4844 size_t addr_min = SIZE_MAX, addr_max = 0, map_len; task_map_library() local
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftrfork.c58 FT_Long map_pos, map_len, rdata_len; in FT_BASE_DEF() local
92 map_len = ( head[12] << 24 ) | in FT_BASE_DEF()
109 if ( map_pos > *rdata_pos - map_len ) in FT_BASE_DEF()
115 FT_LONG_MAX - map_len < map_pos || in FT_BASE_DEF()
118 FT_LONG_MAX - ( map_pos + map_len ) < rfork_offset || in FT_BASE_DEF()
121 (FT_ULong)( rfork_offset + map_pos + map_len ) > stream->size ) in FT_BASE_DEF()
/third_party/musl/libc-test/src/functionalext/ldso_cfi/
H A Dldso_cfi_check.c28 size_t map_len; member
347 test_dso.map_len = 1; in cfi_unmap_dso_from_cfi_shadow_001()
354 * @tc.desc : If dso map_len is NULL while unmapping from the CFI shadow, do nothing.
363 test_dso.map_len = 0; in cfi_unmap_dso_from_cfi_shadow_002()
/third_party/musl/porting/liteos_a/user/ldso/
H A Ddynlink.c74 size_t map_len; member
616 } else if (dso->map && dso->map_len) { in unmap_library()
617 munmap(dso->map, dso->map_len); in unmap_library()
626 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
728 map_len = 0; in map_library()
735 map_len = addr_max - addr_min + off_start; in map_library()
741 ? mmap((void *)addr_min, map_len, PROT_READ|PROT_WRITE|PROT_EXEC, in map_library()
743 : mmap((void *)addr_min, map_len, prot, in map_library()
747 dso->map_len = map_len; in map_library()
[all...]
/third_party/musl/porting/liteos_a/user_debug/ldso/
H A Ddynlink.c74 size_t map_len; member
616 } else if (dso->map && dso->map_len) { in unmap_library()
617 munmap(dso->map, dso->map_len); in unmap_library()
626 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
728 map_len = 0; in map_library()
735 map_len = addr_max - addr_min + off_start; in map_library()
741 ? mmap((void *)addr_min, map_len, PROT_READ|PROT_WRITE|PROT_EXEC, in map_library()
743 : mmap((void *)addr_min, map_len, prot, in map_library()
747 dso->map_len = map_len; in map_library()
[all...]
/third_party/musl/ldso/
H A Ddynlink.c82 size_t map_len; member
683 } else if (dso->map && dso->map_len) { in unmap_library()
684 munmap(dso->map, dso->map_len); in unmap_library()
693 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
795 map_len = 0; in map_library()
802 map_len = addr_max - addr_min + off_start; in map_library()
808 ? mmap((void *)addr_min, map_len, PROT_READ|PROT_WRITE|PROT_EXEC, in map_library()
810 : mmap((void *)addr_min, map_len, prot, in map_library()
814 dso->map_len = map_len; in map_library()
[all...]
/third_party/musl/porting/linux/user/src/internal/
H A Ddynlink.h107 size_t map_len; member
/third_party/musl/src/internal/
H A Ddynlink.h117 size_t map_len; member

Completed in 24 milliseconds