/bionic/libc/include/ |
H A D | alloca.h | 31 #define alloca(size) __builtin_alloca(size)
|
H A D | stdio.h | 174 #define BUFSIZ 1024 /* size of buffer used by setbuf */ 306 #define L_ctermid 1024 /* size for ctermid(); PATH_MAX */ 372 int vsnprintf(char *dest, size_t size, const char *format, __va_list ap) argument 374 return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); 386 #define __wrap_snprintf(dest, size, ...) __builtin___snprintf_chk(dest, size, 0, __bos(dest), __VA_ARGS__) 392 int snprintf(char *dest, size_t size, const char *format, ...) argument 394 return __builtin___snprintf_chk(dest, size, 0, 416 __errordecl(__fgets_too_big_error, "fgets called with size bigger than buffer"); 417 __errordecl(__fgets_too_small_error, "fgets called with size les 422 fgets(char* dest, int size, FILE* stream) argument [all...] |
/bionic/libc/bionic/ |
H A D | new.cpp | 25 void* operator new(std::size_t size) { argument 26 void* p = malloc(size); 28 __libc_fatal("new failed to allocate %zu bytes", size); 33 void* operator new[](std::size_t size) { argument 34 void* p = malloc(size); 36 __libc_fatal("new[] failed to allocate %zu bytes", size); 49 void* operator new(std::size_t size, const std::nothrow_t&) { argument 50 return malloc(size); 53 void* operator new[](std::size_t size, const std::nothrow_t&) { argument 54 return malloc(size); [all...] |
H A D | jemalloc_wrapper.cpp | 25 size_t size = BIONIC_ALIGN(bytes, pagesize); local 26 if (size < bytes) { 29 return je_memalign(pagesize, size); 39 void* je_memalign_round_up_boundary(size_t boundary, size_t size) { argument 47 return je_memalign(boundary, size);
|
H A D | getcwd.cpp | 32 extern "C" int __getcwd(char* buf, size_t size); 34 char* getcwd(char* buf, size_t size) { argument 35 // You can't specify size 0 unless you're asking us to allocate for you. 36 if (buf != NULL && size == 0) { 43 size_t allocated_size = size; 45 if (size == 0) { 46 // The Linux kernel won't return more than a page, so translate size 0 to 4KiB. 68 if (size == 0) {
|
H A D | readlink.cpp | 33 ssize_t readlink(const char* path, char* buf, size_t size) { argument 34 return readlinkat(AT_FDCWD, path, buf, size);
|
H A D | mmap.cpp | 42 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument 49 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); 53 int rc = madvise(result, size, MADV_MERGEABLE); 62 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { argument 63 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset));
|
H A D | malloc_debug_leak.cpp | 110 uintptr_t* backtrace, size_t numEntries, size_t size) { 116 * See if the entry matches exactly. We compare the "size" field, 119 if (entry->size == size && entry->numEntries == numEntries && 130 static HashEntry* record_backtrace(uintptr_t* backtrace, size_t numEntries, size_t size) { argument 134 if (size & SIZE_FLAG_MASK) { 135 debug_log("malloc_debug: allocation %zx exceeds bit width\n", size); 140 size |= SIZE_FLAG_ZYGOTE_CHILD; 143 HashEntry* entry = find_entry(g_hash_table, slot, backtrace, numEntries, size); 158 entry->size 109 find_entry(HashTable* table, int slot, uintptr_t* backtrace, size_t numEntries, size_t size) argument 262 fill_posix_memalign(void** memptr, size_t alignment, size_t size) argument 275 size_t size = BIONIC_ALIGN(bytes, pagesize); local 282 fill_valloc(size_t size) argument 304 size_t size = bytes + sizeof(AllocationEntry); local 380 size_t size = n_elements * elem_size; local 468 size_t size = (alignment-MALLOC_ALIGNMENT) + bytes; local 499 leak_posix_memalign(void** memptr, size_t alignment, size_t size) argument 520 size_t size = BIONIC_ALIGN(bytes, pagesize); local 527 leak_valloc(size_t size) argument [all...] |
H A D | scandir.cpp | 38 size_t size() { function in class:ScandirResult 82 size_t size = ((original->d_reclen + 3) & ~3); local 83 dirent* copy = (dirent*) malloc(size); 111 size_t size = names.size(); local 113 return size;
|
H A D | malloc_debug_check.cpp | 86 size_t size; member in struct:hdr_t 95 return reinterpret_cast<ftr_t*>(reinterpret_cast<char*>(hdr + 1) + hdr->size); 124 // It determines the size of the backlog we use to detect multiple frees. 197 static inline void add(hdr_t* hdr, size_t size) { argument 200 hdr->size = size; 219 memset(user(hdr), FREE_POISON, hdr->size); 224 for (size_t i = 0; i < hdr->size; i++) { 238 user(hdr), hdr->size); 250 user(hdr), hdr->size); 344 size_t size = sizeof(hdr_t) + bytes + sizeof(ftr_t); local 376 size_t size = (alignment-MALLOC_ALIGNMENT) + bytes; local 497 size_t size = sizeof(hdr_t) + bytes + sizeof(ftr_t); local 531 size_t size = sizeof(hdr_t) + total_bytes + sizeof(ftr_t); local 566 chk_posix_memalign(void** memptr, size_t alignment, size_t size) argument 587 size_t size = BIONIC_ALIGN(bytes, pagesize); local 594 chk_valloc(size_t size) argument [all...] |
/bionic/libc/include/sys/ |
H A D | xattr.h | 38 extern int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); 39 extern int setxattr(const char *path, const char *name, const void *value, size_t size, int flags); 40 extern int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); 42 extern ssize_t fgetxattr(int fd, const char *name, void *value, size_t size); 43 extern ssize_t getxattr(const char *path, const char *name, void *value, size_t size); 44 extern ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size); 46 extern ssize_t listxattr(const char *path, char *list, size_t size); 47 extern ssize_t llistxattr(const char *path, char *list, size_t size); 48 extern ssize_t flistxattr(int fd, char *list, size_t size);
|
/bionic/libc/kernel/uapi/asm-generic/ |
H A D | ioctl.h | 52 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT)) 56 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) 57 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) 59 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) 60 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) [all...] |
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
H A D | _wcstod.h | 45 size_t size; local 73 size = 1; 74 while (src[size] != L'\0' && src[size] != L')') 75 size++; 76 if (src[size] == L')') 77 src += size + 1; 81 size = wcsspn(src, L"0123456789"); 82 src += size; 85 size [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | fwrite.c | 44 * Write `count' objects (each size `size') from memory to the given file. 48 fwrite(const void *buf, size_t size, size_t count, FILE *fp) argument 58 if ((size >= MUL_NO_OVERFLOW || count >= MUL_NO_OVERFLOW) && 59 size > 0 && SIZE_MAX / size < count) { 66 * ANSI and SUSv2 require a return value of 0 if size or count are 0. 68 if ((n = count * size) == 0) 79 * generally slow and since this occurs whenever size==0. 87 return ((n - uio.uio_resid) / size); [all...] |
H A D | setvbuf.c | 43 setvbuf(FILE *fp, char *buf, int mode, size_t size) argument 50 * Verify arguments. The `int' limit on `size' is due to this 51 * particular implementation. Note, buf and size are ignored 55 if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0) 81 * Find optimal I/O size for seek optimization. This also returns 86 if (size == 0) { 88 size = iosize; 93 if ((buf = malloc(size)) == NULL) { 96 * failure, but try again with file system size. 99 if (size ! [all...] |
H A D | setbuffer.c | 37 setbuffer(FILE *fp, char *buf, int size) argument 40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
|
H A D | fgetwc.c | 43 size_t size; local 70 size = mbrtowc(&wc, &c, 1, st); 71 if (size == (size_t)-1) { 75 } while (size == (size_t)-2);
|
H A D | fread.c | 43 fread(void *buf, size_t size, size_t count, FILE *fp) argument 53 if ((size >= MUL_NO_OVERFLOW || count >= MUL_NO_OVERFLOW) && 54 size > 0 && SIZE_MAX / size < count) { 61 * ANSI and SUSv2 require a return value of 0 if size or count are 0. 63 if ((resid = count * size) == 0) 80 return ((total - resid) / size);
|
/bionic/libc/dns/resolv/ |
H A D | res_debug.h | 25 # define DprintQ(cond, args, query, size) /*empty*/ 30 # define DprintQ(cond, args, query, size) if (cond) {\ 32 res_pquery(statp, query, size, stdout);\
|
/bionic/libc/kernel/uapi/drm/ |
H A D | armada_drm.h | 29 uint32_t size; member in struct:drm_armada_gem_create 37 uint64_t size; member in struct:drm_armada_gem_mmap 47 uint32_t size; member in struct:drm_armada_gem_pwrite
|
H A D | sis_drm.h | 42 unsigned long size; member in struct:__anon155 47 unsigned long offset, size; member in struct:__anon156 51 unsigned long offset, size; member in struct:__anon157
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | bsearch.c | 62 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, argument 75 p = base + (lim >> 1) * size; 80 base = (const char *)p + size;
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A D | inet_ntop.c | 34 static const char *inet_ntop4(const u_char *src, char *dst, size_t size); 35 static const char *inet_ntop6(const u_char *src, char *dst, size_t size); 38 * inet_ntop(af, src, dst, size) 46 inet_ntop(int af, const void *src, char *dst, socklen_t size) argument 50 return (inet_ntop4(src, dst, (size_t)size)); 52 return (inet_ntop6(src, dst, (size_t)size)); 61 * inet_ntop4(src, dst, size) 72 inet_ntop4(const u_char *src, char *dst, size_t size) argument 79 if (l <= 0 || l >= size) { 83 strlcpy(dst, tmp, size); 94 inet_ntop6(const u_char *src, char *dst, size_t size) argument [all...] |
/bionic/libc/arch-common/bionic/ |
H A D | crtend.S | 47 .size __FRAME_END__, 4
|
H A D | crtend_so.S | 46 .size __FRAME_END__, 4
|