Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 25 of 72) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/relro/
Ddlopen_ext_relro_test.c87 const char *lib, const int relro_fd, const int flag, void *addr, const size_t map_size) in test_write_relro_file_ext() argument
95 .reserved_size = map_size, in test_write_relro_file_ext()
417 size_t map_size = RESERVED_ADDRESS_SIZE; in dlopen_ext_relro_1600() local
418 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_1600()
428 .reserved_size = map_size, in dlopen_ext_relro_1600()
434 munmap(map, map_size); in dlopen_ext_relro_1600()
454 size_t map_size = RESERVED_ADDRESS_SIZE; in dlopen_ext_relro_1700() local
455 void *map = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in dlopen_ext_relro_1700()
465 .reserved_size = map_size, in dlopen_ext_relro_1700()
471 munmap(map, map_size); in dlopen_ext_relro_1700()
[all …]
/third_party/musl/porting/linux/user/src/locale/
Dlocale_map.c26 if (lm) trans = __mo_lookup(lm->map, lm->map_size, msg); in __lctrans_impl()
106 size_t map_size; in __get_locale() local
107 const void *map = __map_file(buf, &map_size); in __get_locale()
111 __munmap((void *)map, map_size); in __get_locale()
115 new->map_size = map_size; in __get_locale()
131 new->map_size = __c_dot_utf8.map_size; in __get_locale()
Ddcngettext.c133 size_t map_size; member
197 size_t map_size; in dcngettext() local
228 if (map = __map_file(name, &map_size)) { in dcngettext()
248 __munmap((void *)map, map_size); in dcngettext()
255 p->map_size = map_size; in dcngettext()
259 const char *r = __mo_lookup(p->map, p->map_size, ""); in dcngettext()
296 const char *trans = __mo_lookup(p->map, p->map_size, msgid1); in dcngettext()
310 size_t rem = p->map_size - (trans - (char *)p->map); in dcngettext()
/third_party/musl/src/locale/
Dlocale_map.c11 if (lm) trans = __mo_lookup(lm->map, lm->map_size, msg); in __lctrans_impl()
76 size_t map_size; in __get_locale() local
77 const void *map = __map_file(buf, &map_size); in __get_locale()
81 __munmap((void *)map, map_size); in __get_locale()
85 new->map_size = map_size; in __get_locale()
100 new->map_size = __c_dot_utf8.map_size; in __get_locale()
Ddcngettext.c102 size_t map_size; member
154 size_t map_size; in dcngettext() local
181 if (map = __map_file(name, &map_size)) break; in dcngettext()
197 __munmap((void *)map, map_size); in dcngettext()
204 p->map_size = map_size; in dcngettext()
208 const char *r = __mo_lookup(p->map, p->map_size, ""); in dcngettext()
238 const char *trans = __mo_lookup(p->map, p->map_size, msgid1); in dcngettext()
248 size_t rem = p->map_size - (trans - (char *)p->map); in dcngettext()
Dc_locale.c8 .map_size = sizeof empty_mo,
/third_party/ltp/testcases/kernel/mem/mtest07/
Dshm_test.c90 int map_size; member
195 shmget(args->shmkey, args->map_size, IPC_CREAT | 0666)) in shmat_rd_wr()
225 while (index < args->map_size) { in shmat_rd_wr()
236 while (index < args->map_size) { in shmat_rd_wr()
282 int map_size; /* size of the file mapped. */ in main() local
320 map_size = (1 + (int)(1000.0 * rand() / (RAND_MAX + 1.0))) * 4096; in main()
323 i, map_address, map_size); in main()
326 chld_args[i].map_size = map_size; in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D2-1.c32 int rc, fd, map_size; in main() local
35 map_size = sysconf(_SC_PAGESIZE); in main()
44 map_addr = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE, fd, 0); in main()
55 rc = munmap(map_addr, map_size); in main()
64 rc = munmap(map_addr, map_size); in main()
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_clone.c10 unsigned int map_size; member
26 param.map_size = thread->map_size; in __thread_clone()
/third_party/musl/src/time/
D__tz.c26 static size_t map_size; variable
135 if (zi) __munmap((void *)zi, map_size); in do_tzset()
157 map = __map_file(s, &map_size); in do_tzset()
166 map = __map_file(pathname-l, &map_size); in do_tzset()
172 if (map && (map_size < 44 || memcmp(map, "TZif", 4))) { in do_tzset()
173 __munmap((void *)map, map_size); in do_tzset()
192 if (zi[map_size-1] == '\n') { in do_tzset()
193 for (s = (const char *)zi+map_size-2; *s!='\n'; s--); in do_tzset()
/third_party/musl/porting/linux/user/src/time/
D__tz.c48 static size_t map_size; variable
187 __munmap((void *)zi, map_size); in do_tzset()
213 map = __map_file(s, &map_size); in do_tzset()
227 map = __map_file(pathname-l, &map_size); in do_tzset()
232 if (map && (map_size < 44 || memcmp(map, "TZif", 4))) { in do_tzset()
233 __munmap((void *)map, map_size); in do_tzset()
279 if (zi[map_size-1] == '\n') { in do_tzset()
280 for (s = (const char *)zi+map_size-2; *s!='\n'; s--); in do_tzset()
/third_party/ffmpeg/libavcodec/
Davs.c125 int map_size = ((318 / vect_w + 7) / 8) * (198 / vect_h); in avs_decode_frame() local
126 if (buf_end - table < map_size) in avs_decode_frame()
128 init_get_bits(&change_map, table, map_size * 8); in avs_decode_frame()
129 table += map_size; in avs_decode_frame()
/third_party/python/Modules/
Dmmapmodule.c1143 Py_ssize_t map_size; in new_mmap_object() local
1153 &fd, &map_size, &flags, &prot, in new_mmap_object()
1156 if (map_size < 0) { in new_mmap_object()
1202 fd, map_size, access, offset) < 0) { in new_mmap_object()
1220 if (map_size == 0) { in new_mmap_object()
1236 map_size = (Py_ssize_t) (status.st_size - offset); in new_mmap_object()
1237 } else if (offset > status.st_size || status.st_size - offset < map_size) { in new_mmap_object()
1246 m_obj->size = map_size; in new_mmap_object()
1284 m_obj->data = mmap(NULL, map_size, in new_mmap_object()
1314 Py_ssize_t map_size; in new_mmap_object() local
[all …]
/third_party/protobuf/src/google/protobuf/
Ddynamic_message.h159 static std::vector<const Message*> Sort(const Message& message, int map_size, in Sort() argument
163 result.reserve(map_size); in Sort()
173 for (size_t j = 1; j < static_cast<size_t>(map_size); j++) { in Sort()
Dmap_field.cc536 size_t map_size = map_.size(); in SpaceUsedExcludingSelfNoLock() local
537 if (map_size) { in SpaceUsedExcludingSelfNoLock()
539 size += sizeof(it->first) * map_size; in SpaceUsedExcludingSelfNoLock()
540 size += sizeof(it->second) * map_size; in SpaceUsedExcludingSelfNoLock()
543 size += sizeof(std::string) * map_size; in SpaceUsedExcludingSelfNoLock()
549 size += sizeof(TYPE) * map_size; \ in SpaceUsedExcludingSelfNoLock()
/third_party/e2fsprogs/lib/ext2fs/
Dtdb.c233 tdb_len_t map_size; /* how much space has been mapped */ member
848 if (len <= tdb->map_size) in tdb_oob()
855 (int)len, (int)tdb->map_size)); in tdb_oob()
877 tdb->map_size = st.st_size; in tdb_oob()
938 (int)tdb->map_size)); in tdb_read()
999 tdb->map_ptr = mmap(NULL, tdb->map_size, in tdb_mmap()
1011 tdb->map_size, strerror(errno))); in tdb_mmap()
1013 tdb->real_map_size = tdb->map_size; in tdb_mmap()
1074 tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_expand()
1078 size = TDB_ALIGN(tdb->map_size + size*10, tdb->page_size) - tdb->map_size; in tdb_expand()
[all …]
/third_party/libdrm/tests/amdgpu/
Dvm_tests.c176 const uint64_t map_size = (4ULL << 30) - (2 << 12); in amdgpu_vm_unaligned_map() local
202 r = amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map()
208 amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map()
/third_party/gstreamer/gstplugins_good/gst/effectv/
Dgstedge.c79 guint map_size; in gst_edgetv_set_info() local
89 map_size = edgetv->map_width * edgetv->map_height * sizeof (guint32) * 2; in gst_edgetv_set_info()
92 edgetv->map = (guint32 *) g_malloc0 (map_size); in gst_edgetv_set_info()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_bo.c191 bo->map_size = 0; in v3dv_bo_init()
296 bo->map_size = size; in v3dv_bo_map_unsynchronized()
335 assert(bo && bo->map && bo->map_size > 0); in v3dv_bo_unmap()
337 munmap(bo->map, bo->map_size); in v3dv_bo_unmap()
340 bo->map_size = 0; in v3dv_bo_unmap()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_program_cache.c129 if (existing->map_size != assembly_size) in find_existing_assembly()
210 shader->map_size = existing->map_size; in crocus_upload_shader()
213 shader->map_size = asm_size; in crocus_upload_shader()
/third_party/openssl/crypto/
Dmem_sec.c283 size_t map_size; member
447 sh.map_size = pgsize + sh.arena_size + pgsize; in sh_init()
450 sh.map_result = mmap(NULL, sh.map_size, in sh_init()
458 sh.map_result = mmap(NULL, sh.map_size, in sh_init()
511 if (sh.map_result != MAP_FAILED && sh.map_size) in sh_done()
512 munmap(sh.map_result, sh.map_size); in sh_done()
/third_party/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c642 unsigned map_size; in domapread() local
670 map_size = pg_offset + size; in domapread()
672 if ((p = mmap(0, map_size, PROT_READ, MAP_FILE | MAP_SHARED, fd, in domapread()
692 if (munmap(p, map_size) != 0) { in domapread()
779 unsigned map_size; in domapwrite() local
829 map_size = pg_offset + size; in domapwrite()
832 mmap(0, map_size, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, in domapwrite()
852 if (msync(p, map_size, 0) != 0) { in domapwrite()
863 if (munmap(p, map_size) != 0) { in domapwrite()
/third_party/musl/porting/liteos_a/kernel/src/locale/
Dc_locale.c8 .map_size = sizeof empty_mo,
/third_party/musl/porting/liteos_m/kernel/src/locale/
Dc_locale.c8 .map_size = sizeof empty_mo,
/third_party/musl/porting/uniproton/kernel/src/locale/
Dc_locale.c8 .map_size = sizeof empty_mo,

123