Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/bionic/libc/private/
Dbionic_elf_tls.h37 __LIBC_HIDDEN__ extern _Atomic(size_t) __libc_tls_generation_copy;
40 size_t size = 0;
41 size_t alignment = 1;
43 size_t init_size = 0;
46 __LIBC_HIDDEN__ bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count,
49 __LIBC_HIDDEN__ bool __bionic_check_tls_alignment(size_t* alignment);
55 size_t offset_ = 0;
56 size_t alignment_ = 1;
60 size_t offset_bionic_tcb_ = SIZE_MAX;
61 size_t offset_bionic_tls_ = SIZE_MAX;
[all …]
Dbionic_malloc_dispatch.h38 typedef void* (*MallocCalloc)(size_t, size_t);
41 typedef void* (*MallocMalloc)(size_t);
43 typedef size_t (*MallocMallocUsableSize)(const void*);
44 typedef void* (*MallocMemalign)(size_t, size_t);
45 typedef int (*MallocPosixMemalign)(void**, size_t, size_t);
46 typedef void* (*MallocRealloc)(void*, size_t);
47 typedef int (*MallocIterate)(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
51 typedef void* (*MallocAlignedAlloc)(size_t, size_t);
54 typedef void* (*MallocPvalloc)(size_t);
55 typedef void* (*MallocValloc)(size_t);
Dbionic_allocator.h52 size_t allocated_size;
60 size_t free_blocks_cnt;
79 size_t free_blocks_cnt;
84 BionicSmallObjectAllocator(uint32_t type, size_t block_size);
88 size_t get_block_size() const { return block_size_; } in get_block_size()
96 const size_t block_size_;
97 const size_t blocks_per_page_;
99 size_t free_pages_cnt_;
107 void* alloc(size_t size);
108 void* memalign(size_t align, size_t size);
[all …]
/bionic/tests/
Dbuffer_tests.h24 size_t max_test_size, void (*test_func)(uint8_t*, size_t),
25 size_t (*set_incr)(size_t) = nullptr);
28 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t),
29 size_t (*set_incr)(size_t) = nullptr);
32 size_t max_test_size, void (*test_cmp_func)(uint8_t*, uint8_t*, size_t),
33 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t),
34 size_t (*set_incr)(size_t) = nullptr);
36 void RunSingleBufferOverreadTest(void (*test_func)(uint8_t*, size_t));
38 void RunSrcDstBufferOverreadTest(void (*test_func)(uint8_t*, uint8_t*, size_t));
41 void (*test_cmp_func)(uint8_t*, uint8_t*, size_t),
[all …]
Dbuffer_tests.cpp62 static const size_t g_single_aligns_len = sizeof(g_single_aligns)/sizeof(int[2]);
184 static const size_t g_double_aligns_len = sizeof(g_double_aligns)/sizeof(int[4]);
186 static size_t SetIncrement(size_t len) { in SetIncrement()
234 static int MprotectHeap(void* addr, size_t len, int prot) { in MprotectHeap()
239 size_t max_test_size, void (*test_func)(uint8_t*, size_t), in RunSingleBufferAlignTest() argument
240 size_t (*set_incr)(size_t)) { in RunSingleBufferAlignTest() argument
250 for (size_t i = 0; i < g_single_aligns_len; i++) { in RunSingleBufferAlignTest()
251 size_t incr = 1; in RunSingleBufferAlignTest()
252 for (size_t len = 0; len <= max_test_size; len += incr) { in RunSingleBufferAlignTest()
271 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), in RunSrcDstBufferAlignTest() argument
[all …]
/bionic/libc/bionic/
Dscudo.h39 void* scudo_aligned_alloc(size_t, size_t);
40 void* scudo_calloc(size_t, size_t);
43 void* scudo_malloc(size_t);
45 size_t scudo_malloc_usable_size(const void*);
47 void* scudo_memalign(size_t, size_t);
48 void* scudo_realloc(void*, size_t);
49 int scudo_posix_memalign(void**, size_t, size_t);
51 void* scudo_pvalloc(size_t);
52 void* scudo_valloc(size_t);
55 int scudo_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
Dfortify.cpp81 int __FD_ISSET_chk(int fd, const fd_set* set, size_t set_size) { in __FD_ISSET_chk()
86 void __FD_CLR_chk(int fd, fd_set* set, size_t set_size) { in __FD_CLR_chk()
91 void __FD_SET_chk(int fd, fd_set* set, size_t set_size) { in __FD_SET_chk()
96 char* __fgets_chk(char* dst, int supplied_size, FILE* stream, size_t dst_len_from_compiler) { in __fgets_chk()
104 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fread_chk()
105 size_t total; in __fread_chk()
114 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { in __fwrite_chk()
115 size_t total; in __fwrite_chk()
124 extern char* __getcwd_chk(char* buf, size_t len, size_t actual_size) { in __getcwd_chk()
129 void* __memchr_chk(const void* s, int c, size_t n, size_t actual_size) { in __memchr_chk()
[all …]
Djemalloc.h31 void* je_aligned_alloc_wrapper(size_t, size_t);
32 int je_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
33 int je_mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
39 void* je_memalign_round_up_boundary(size_t, size_t);
40 void* je_pvalloc(size_t);
/bionic/libc/seccomp/
Dseccomp_bpfs.h23 extern const size_t arm_app_filter_size;
25 extern const size_t arm_app_zygote_filter_size;
27 extern const size_t arm_system_filter_size;
29 extern const size_t arm_global_filter_size;
32 extern const size_t arm64_app_filter_size;
34 extern const size_t arm64_app_zygote_filter_size;
36 extern const size_t arm64_system_filter_size;
38 extern const size_t arm64_global_filter_size;
41 extern const size_t x86_app_filter_size;
43 extern const size_t x86_app_zygote_filter_size;
[all …]
/bionic/libc/include/
Dmalloc.h43 void* malloc(size_t __byte_count) __mallocfunc __BIONIC_ALLOC_SIZE(1) __wur;
52 void* calloc(size_t __item_count, size_t __item_size) __mallocfunc __BIONIC_ALLOC_SIZE(1,2) __wur;
61 void* realloc(void* __ptr, size_t __byte_count) __BIONIC_ALLOC_SIZE(2) __wur;
73 void* reallocarray(void* __ptr, size_t __item_count, size_t __item_size) __BIONIC_ALLOC_SIZE(2, 3) …
90 void* memalign(size_t __alignment, size_t __byte_count) __mallocfunc __BIONIC_ALLOC_SIZE(2) __wur;
98 size_t malloc_usable_size(const void* __ptr) __INTRODUCED_IN(17);
104 size_t arena;
106 size_t ordblks;
108 size_t smblks;
110 size_t hblks;
[all …]
Dstring.h44 void* memccpy(void* __dst, const void* __src, int __stop_char, size_t __n);
45 void* memchr(const void* __s, int __ch, size_t __n) __attribute_pure__;
47 extern "C++" void* memrchr(void* __s, int __ch, size_t __n) __RENAME(memrchr) __attribute_pure__;
48 extern "C++" const void* memrchr(const void* __s, int __ch, size_t __n) __RENAME(memrchr) __attribu…
50 void* memrchr(const void* __s, int __ch, size_t __n) __attribute_pure__;
52 int memcmp(const void* __lhs, const void* __rhs, size_t __n) __attribute_pure__;
53 void* memcpy(void*, const void*, size_t);
55 void* mempcpy(void* __dst, const void* __src, size_t __n) __INTRODUCED_IN(23);
57 void* memmove(void* __dst, const void* __src, size_t __n);
58 void* memset(void* __dst, int __ch, size_t __n);
[all …]
Dwchar.h57 size_t mbrlen(const char* __s, size_t __n, mbstate_t* __ps);
58 size_t mbrtowc(wchar_t* __buf, const char* __s, size_t __n, mbstate_t* __ps);
59 size_t mbsrtowcs(wchar_t* __dst, const char** __src, size_t __dst_n, mbstate_t* __ps);
60 size_t mbsnrtowcs(wchar_t* __dst, const char** __src, size_t __src_n, size_t __dst_n, mbstate_t* __…
63 int swprintf(wchar_t* __buf, size_t __n, const wchar_t* __fmt, ...);
68 int vswprintf(wchar_t* __buf, size_t __n, const wchar_t* __fmt, va_list __args);
73 wchar_t* wcpncpy(wchar_t* __dst, const wchar_t* __src, size_t __n);
74 size_t wcrtomb(char* __buf, wchar_t __wc, mbstate_t* __ps);
82 size_t wcscspn(const wchar_t* __s, const wchar_t* __accept);
83 size_t wcsftime(wchar_t* __buf, size_t __n, const wchar_t* __fmt, const struct tm* __tm);
[all …]
/bionic/tests/headers/posix/
Dstring_h.c35 TYPE(size_t); in string_h()
38 FUNCTION(memccpy, void* (*f)(void*, const void*, int, size_t)); in string_h()
39 FUNCTION(memchr, void* (*f)(const void*, int, size_t)); in string_h()
40 FUNCTION(memcmp, int (*f)(const void*, const void*, size_t)); in string_h()
41 FUNCTION(memcpy, void* (*f)(void*, const void*, size_t)); in string_h()
42 FUNCTION(memmove, void* (*f)(void*, const void*, size_t)); in string_h()
43 FUNCTION(memset, void* (*f)(void*, int, size_t)); in string_h()
45 FUNCTION(stpncpy, char* (*f)(char*, const char*, size_t)); in string_h()
52 FUNCTION(strcspn, size_t (*f)(const char*, const char*)); in string_h()
56 FUNCTION(strerror_r, int (*f)(int, char*, size_t)); in string_h()
[all …]
Dwchar_h.c37 TYPE(size_t); in wchar_h()
58 FUNCTION(mbrlen, size_t (*f)(const char*, size_t, mbstate_t*)); in wchar_h()
59 FUNCTION(mbrtowc, size_t (*f)(wchar_t*, const char*, size_t, mbstate_t*)); in wchar_h()
61 FUNCTION(mbsnrtowcs, size_t (*f)(wchar_t*, const char**, size_t, size_t, mbstate_t*)); in wchar_h()
62 FUNCTION(mbsrtowcs, size_t (*f)(wchar_t*, const char**, size_t, mbstate_t*)); in wchar_h()
63 FUNCTION(open_wmemstream, FILE* (*f)(wchar_t**, size_t*)); in wchar_h()
66 FUNCTION(swprintf, int (*f)(wchar_t*, size_t, const wchar_t*, ...)); in wchar_h()
71 FUNCTION(vswprintf, int (*f)(wchar_t*, size_t, const wchar_t*, va_list)); in wchar_h()
76 FUNCTION(wcpncpy, wchar_t* (*f)(wchar_t*, const wchar_t*, size_t)); in wchar_h()
77 FUNCTION(wcrtomb, size_t (*f)(char*, wchar_t, mbstate_t*)); in wchar_h()
[all …]
/bionic/linker/
Dlinker_tls.h44 const TlsModule& get_tls_module(size_t module_id);
46 typedef size_t TlsDescResolverFunc(size_t);
50 size_t arg;
54 size_t arg;
59 size_t generation;
63 __LIBC_HIDDEN__ extern "C" size_t tlsdesc_resolver_static(size_t);
64 __LIBC_HIDDEN__ extern "C" size_t tlsdesc_resolver_dynamic(size_t);
65 __LIBC_HIDDEN__ extern "C" size_t tlsdesc_resolver_unresolved_weak(size_t);
Dlinker_phdr.h49 size_t phdr_count() const { return phdr_num_; } in phdr_count()
51 size_t load_size() const { return load_size_; } in load_size()
69 bool CheckFileRange(ElfW(Addr) offset, size_t size, size_t alignment);
79 size_t phdr_num_;
86 size_t shdr_num_;
93 size_t strtab_size_;
98 size_t load_size_;
109 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,
113 size_t phdr_count, ElfW(Addr) load_bias);
115 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
[all …]
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp55 uint8_t** info, size_t* overall_size, size_t* info_size, size_t* total_memory,
56 size_t* backtrace_size);
57 ssize_t hooks_malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count);
59 size_t hooks_malloc_usable_size(void* pointer);
60 void* hooks_malloc(size_t size);
63 void* hooks_memalign(size_t alignment, size_t bytes);
64 void* hooks_aligned_alloc(size_t alignment, size_t bytes);
65 void* hooks_realloc(void* pointer, size_t bytes);
66 void* hooks_calloc(size_t nmemb, size_t bytes);
69 int hooks_posix_memalign(void** memptr, size_t alignment, size_t size);
[all …]
/bionic/libc/malloc_debug/
DPointerData.h53 size_t num_frames;
58 for (size_t i = 0; i < num_frames; i++) {
70 std::size_t operator()(const FrameKeyType& key) const {
71 std::size_t cur_hash = key.frames[0];
73 size_t max_frames = (key.num_frames > 5) ? 5 : key.num_frames;
74 for (size_t i = 1; i < max_frames; i++) {
83 size_t references = 0;
88 size_t size;
89 size_t hash_index;
90 size_t RealSize() const { return size & ~(1U << 31); }
[all …]
DConfig.h53 constexpr size_t MINIMUM_ALIGNMENT_BYTES = 16;
55 constexpr size_t MINIMUM_ALIGNMENT_BYTES = 8;
71 size_t backtrace_frames() const { return backtrace_frames_; } in backtrace_frames()
72 size_t backtrace_enabled() const { return backtrace_enabled_; } in backtrace_enabled()
73 size_t backtrace_enable_on_signal() const { return backtrace_enable_on_signal_; } in backtrace_enable_on_signal()
77 size_t front_guard_bytes() const { return front_guard_bytes_; } in front_guard_bytes()
78 size_t rear_guard_bytes() const { return rear_guard_bytes_; } in rear_guard_bytes()
82 size_t expand_alloc_bytes() const { return expand_alloc_bytes_; } in expand_alloc_bytes()
84 size_t free_track_allocations() const { return free_track_allocations_; } in free_track_allocations()
85 size_t free_track_backtrace_num_frames() const { return free_track_backtrace_num_frames_; } in free_track_backtrace_num_frames()
[all …]
/bionic/libc/include/bits/fortify/
Dstring.h33 void* __memchr_chk(const void*, int, size_t, size_t) __INTRODUCED_IN(23);
34 void* __memrchr_chk(const void*, int, size_t, size_t) __INTRODUCED_IN(23);
35 char* __stpncpy_chk2(char*, const char*, size_t, size_t, size_t) __INTRODUCED_IN(21);
36 char* __strncpy_chk2(char*, const char*, size_t, size_t, size_t) __INTRODUCED_IN(21);
37 size_t __strlcpy_chk(char*, const char*, size_t, size_t) __INTRODUCED_IN(17);
38 size_t __strlcat_chk(char*, const char*, size_t, size_t) __INTRODUCED_IN(17);
41 extern void* __memrchr_real(const void*, int, size_t) __RENAME(memrchr);
45 void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) in memcpy()
53 void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) in memmove()
88 char* strncat(char* const dst __pass_object_size, const char* src, size_t n) __overloadable { in strncat()
[all …]
Dunistd.h32 char* __getcwd_chk(char*, size_t, size_t) __INTRODUCED_IN(24);
34 ssize_t __pread_chk(int, void*, size_t, off_t, size_t) __INTRODUCED_IN(23);
35 ssize_t __pread_real(int, void*, size_t, off_t) __RENAME(pread);
37 ssize_t __pread64_chk(int, void*, size_t, off64_t, size_t) __INTRODUCED_IN(23);
38 ssize_t __pread64_real(int, void*, size_t, off64_t) __RENAME(pread64) __INTRODUCED_IN(12);
40 ssize_t __pwrite_chk(int, const void*, size_t, off_t, size_t) __INTRODUCED_IN(24);
41 ssize_t __pwrite_real(int, const void*, size_t, off_t) __RENAME(pwrite);
43 ssize_t __pwrite64_chk(int, const void*, size_t, off64_t, size_t) __INTRODUCED_IN(24);
44 ssize_t __pwrite64_real(int, const void*, size_t, off64_t) __RENAME(pwrite64)
47 ssize_t __read_chk(int, void*, size_t, size_t) __INTRODUCED_IN(21);
[all …]
/bionic/libc/bionic/scudo/
Dscudo.cpp46 static inline bool AllocTooBig(size_t bytes) {
57 void* scudo_aligned_alloc(size_t alignment, size_t size) {
70 void* scudo_calloc(size_t item_count, size_t item_size) {
71 size_t total;
83 extern "C" size_t __sanitizer_get_current_allocated_bytes();
84 extern "C" size_t __sanitizer_get_heap_size();
94 void* scudo_malloc(size_t byte_count) {
102 size_t scudo_malloc_usable_size(const void* ptr) {
106 void* scudo_memalign(size_t alignment, size_t byte_count) {
121 void* scudo_realloc(void* ptr, size_t byte_count) {
[all …]
/bionic/libc/include/sys/
Dmman.h59 void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset) __RENAME…
61 void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset);
65 void* mmap64(void* __addr, size_t __size, int __prot, int __flags, int __fd, off64_t __offset) __IN…
68 int munmap(void* __addr, size_t __size);
69 int msync(void* __addr, size_t __size, int __flags);
70 int mprotect(void* __addr, size_t __size, int __prot);
71 void* mremap(void* __old_addr, size_t __old_size, size_t __new_size, int __flags, ...);
76 int mlock(const void* __addr, size_t __size);
77 int munlock(const void* __addr, size_t __size);
79 int mincore(void* __addr, size_t __size, unsigned char* __vector);
[all …]
/bionic/libc/arch-arm/bionic/
D__aeabi.c62 void __attribute__((weak)) __aeabi_memcpy8_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl()
66 void __attribute__((weak)) __aeabi_memcpy4_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl()
70 void __attribute__((weak)) __aeabi_memcpy_impl(void *dest, const void *src, size_t n) { in __aeabi_memcpy_impl()
74 void __attribute__((weak)) __aeabi_memcpy8_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy8_impl2()
78 void __attribute__((weak)) __aeabi_memcpy4_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy4_impl2()
82 void __attribute__((weak)) __aeabi_memcpy_impl2(void *dest, const void *src, size_t n) { in __aeabi_memcpy_impl2()
87 void __attribute__((weak)) __aeabi_memmove8_impl(void *dest, const void *src, size_t n) { in __aeabi_memmove8_impl()
91 void __attribute__((weak)) __aeabi_memmove4_impl(void *dest, const void *src, size_t n) { in __aeabi_memmove4_impl()
95 void __attribute__((weak)) __aeabi_memmove_impl(void *dest, const void *src, size_t n) { in __aeabi_memmove_impl()
99 void __attribute__((weak)) __aeabi_memmove8_impl2(void *dest, const void *src, size_t n) { in __aeabi_memmove8_impl2()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Dmemcluster.h41 int meminit(size_t, size_t);
42 void * __memget(size_t);
43 void __memput(void *, size_t);
44 void * __memget_debug(size_t, const char *, int);
45 void __memput_debug(void *, size_t, const char *, int);
46 void * __memget_record(size_t, const char *, int);
47 void __memput_record(void *, size_t, const char *, int);

12345678910>>...20