Home
last modified time | relevance | path

Searched refs:map_len (Results 1 – 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/munmap/
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 - page_sz; in cleanup()
264 SAFE_MUNMAP(NULL, addr, map_len); in cleanup()
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
137 TEST(munmap(addr, map_len)); in test_einval2()
145 size_t map_len = page_sz; in test_einval3() local
147 TEST(munmap(addr, map_len)); in test_einval3()
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/
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/ffmpeg/libavformat/
Dgxf.c322 int map_len; in gxf_header() local
327 if (!parse_packet_header(pb, &pkt_type, &map_len) || pkt_type != PKT_MAP) { in gxf_header()
331 map_len -= 2; in gxf_header()
336 map_len -= 2; in gxf_header()
338 if (len > map_len) { in gxf_header()
342 map_len -= len; in gxf_header()
345 map_len -= 2; in gxf_header()
347 if (len > map_len) { in gxf_header()
351 map_len -= len; in gxf_header()
394 if (map_len) in gxf_header()
[all …]
/third_party/musl/porting/linux/user/ldso/
Dcfi.c162 if (a - (size_t)pldso->map < pldso->map_len) in is_addr_in_ldso()
322 if (dso->map == 0 || dso->map_len == 0) in unmap_dso_from_cfi_shadow()
329 fill_shadow_value_to_shadow(dso->map, dso->map + dso->map_len, 0, sv_invalid); in unmap_dso_from_cfi_shadow()
362 if (p->map == 0 || p->map_len == 0) { in add_dso_to_cfi_shadow()
364 __FUNCTION__, p->map, p->map_len); in add_dso_to_cfi_shadow()
377 … if (fill_shadow_value_to_shadow(p->map, p->map + p->map_len, 0, sv_uncheck) == CFI_FAILED) { in add_dso_to_cfi_shadow()
384 uintptr_t end = p->map + p->map_len; in add_dso_to_cfi_shadow()
Ddynlink.c1261 } else if (dso->map && dso->map_len) { in unmap_library()
1263 munmap(dso->map, dso->map_len); in unmap_library()
1265 mprotect(dso->map, dso->map_len, PROT_NONE); in unmap_library()
1360 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
1466 map_len = 0; in map_library()
1473 map_len = addr_max - addr_min + off_start; in map_library()
1484 if (map_len > reserved_params->reserved_size) { in map_library()
1498 size_t tmp_map_len = ALIGN(map_len, mapping_align) + mapping_align - PAGE_SIZE; in map_library()
1503 …? mmap((void *)start_addr, map_len, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOU… in map_library()
1504 : mmap((void *)start_addr, map_len, prot, map_flags, fd, off_start); in map_library()
[all …]
/third_party/freetype/src/base/
Dftrfork.c58 FT_Long map_pos, map_len, rdata_len; in FT_Raccess_Get_HeaderInfo() local
92 map_len = ( head[12] << 24 ) | in FT_Raccess_Get_HeaderInfo()
109 if ( map_pos > *rdata_pos - map_len ) in FT_Raccess_Get_HeaderInfo()
115 FT_LONG_MAX - map_len < map_pos || in FT_Raccess_Get_HeaderInfo()
118 FT_LONG_MAX - ( map_pos + map_len ) < rfork_offset || in FT_Raccess_Get_HeaderInfo()
121 (FT_ULong)( rfork_offset + map_pos + map_len ) > stream->size ) in FT_Raccess_Get_HeaderInfo()
/third_party/skia/third_party/externals/freetype/src/base/
Dftrfork.c58 FT_Long map_pos, map_len, rdata_len; in FT_Raccess_Get_HeaderInfo() local
92 map_len = ( head[12] << 24 ) | in FT_Raccess_Get_HeaderInfo()
109 if ( map_pos > *rdata_pos - map_len ) in FT_Raccess_Get_HeaderInfo()
115 FT_LONG_MAX - map_len < map_pos || in FT_Raccess_Get_HeaderInfo()
118 FT_LONG_MAX - ( map_pos + map_len ) < rfork_offset || in FT_Raccess_Get_HeaderInfo()
121 (FT_ULong)( rfork_offset + map_pos + map_len ) > stream->size ) in FT_Raccess_Get_HeaderInfo()
/third_party/flutter/skia/third_party/externals/freetype/src/base/
Dftrfork.c59 FT_Long map_pos, map_len, rdata_len; in FT_Raccess_Get_HeaderInfo() local
93 map_len = ( head[12] << 24 ) | in FT_Raccess_Get_HeaderInfo()
110 if ( map_pos > *rdata_pos - map_len ) in FT_Raccess_Get_HeaderInfo()
116 FT_LONG_MAX - map_len < map_pos || in FT_Raccess_Get_HeaderInfo()
119 FT_LONG_MAX - ( map_pos + map_len ) < rfork_offset || in FT_Raccess_Get_HeaderInfo()
122 (FT_ULong)( rfork_offset + map_pos + map_len ) > stream->size ) in FT_Raccess_Get_HeaderInfo()
/third_party/musl/libc-test/src/functionalext/ldso_cfi/
Dldso_cfi_check.c28 size_t map_len; member
347 test_dso.map_len = 1; in cfi_unmap_dso_from_cfi_shadow_001()
363 test_dso.map_len = 0; in cfi_unmap_dso_from_cfi_shadow_002()
/third_party/musl/porting/liteos_a/user/ldso/
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()
802 if (mprotect(map, map_len, PROT_READ|PROT_WRITE|PROT_EXEC) in map_library()
[all …]
/third_party/musl/porting/liteos_a/user_debug/ldso/
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()
802 if (mprotect(map, map_len, PROT_READ|PROT_WRITE|PROT_EXEC) in map_library()
[all …]
/third_party/musl/ldso/
Ddynlink.c74 size_t map_len; member
618 } else if (dso->map && dso->map_len) { in unmap_library()
619 munmap(dso->map, dso->map_len); in unmap_library()
628 size_t addr_min=SIZE_MAX, addr_max=0, map_len; in map_library() local
730 map_len = 0; in map_library()
737 map_len = addr_max - addr_min + off_start; in map_library()
743 ? mmap((void *)addr_min, map_len, PROT_READ|PROT_WRITE|PROT_EXEC, in map_library()
745 : mmap((void *)addr_min, map_len, prot, in map_library()
749 dso->map_len = map_len; in map_library()
790 if (mprotect(map, map_len, PROT_READ|PROT_WRITE|PROT_EXEC) in map_library()
[all …]
/third_party/musl/porting/linux/user/src/internal/
Ddynlink.h107 size_t map_len; member
/third_party/gstreamer/gstplugins_base/gst-libs/gst/pbutils/
Ddescriptions.c337 pbutils_desc_get_profile_name_from_nick (const gchar * map, gsize map_len, in pbutils_desc_get_profile_name_from_nick() argument
340 const gchar *end = map + map_len; in pbutils_desc_get_profile_name_from_nick()
/third_party/skia/third_party/externals/freetype/docs/oldlogs/
DChangeLog.213748 (IsMacResource): Remove unused variable `map_len'.
/third_party/freetype/docs/oldlogs/
DChangeLog.213748 (IsMacResource): Remove unused variable `map_len'.