/bionic/libc/include/ |
H A D | alloca.h | 34 #define alloca(size) __builtin_alloca(size)
|
/bionic/tools/versioner/current/ |
H A D | alloca.h | 34 #define alloca(size) __builtin_alloca(size)
|
/bionic/tests/ |
H A D | stack_protector_test_helper.cpp | 24 int size = static_cast<int>(sizeof(buf) + 1); local 25 while ((p - buf) < size) *p++ = '\0';
|
/bionic/libc/bionic/ |
H A D | new.cpp | 26 void* operator new(std::size_t size) { argument 27 void* p = malloc(size); 29 async_safe_fatal("new failed to allocate %zu bytes", size); 34 void* operator new[](std::size_t size) { argument 35 void* p = malloc(size); 37 async_safe_fatal("new[] failed to allocate %zu bytes", size); 50 void* operator new(std::size_t size, const std::nothrow_t&) { argument 51 return malloc(size); 54 void* operator new[](std::size_t size, const std::nothrow_t&) { argument 55 return malloc(size); [all...] |
H A D | getcwd.cpp | 34 extern "C" int __getcwd(char* buf, size_t size); 36 char* getcwd(char* buf, size_t size) { argument 37 // You can't specify size 0 unless you're asking us to allocate for you. 38 if (buf != NULL && size == 0) { 45 size_t allocated_size = size; 47 if (size == 0) { 48 // The Linux kernel won't return more than a page, so translate size 0 to 4KiB. 70 if (size == 0) {
|
H A D | readlink.cpp | 34 ssize_t readlink(const char* path, char* buf, size_t size) { argument 35 return readlinkat(AT_FDCWD, path, buf, size);
|
H A D | android_set_abort_message.cpp | 41 size_t size; member in struct:abort_msg_t 62 size_t size = sizeof(abort_msg_t) + strlen(msg) + 1; local 63 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); 69 new_abort_message->size = size;
|
H A D | jemalloc_wrapper.cpp | 26 size_t size = __BIONIC_ALIGN(bytes, pagesize); local 27 if (size < bytes) { 30 return je_memalign(pagesize, size); 40 void* je_memalign_round_up_boundary(size_t boundary, size_t size) { argument 48 return je_memalign(boundary, size);
|
H A D | mmap.cpp | 44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument 51 size_t rounded = __BIONIC_ALIGN(size, PAGE_SIZE); 52 if (rounded < size || rounded > PTRDIFF_MAX) { 61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); 66 int rc = madvise(result, size, MADV_MERGEABLE); 75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { argument 76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset));
|
H A D | fgetxattr.cpp | 40 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size) { argument 42 ssize_t result = ___fgetxattr(fd, name, value, size); 58 return getxattr(FdPath(fd).c_str(), name, value, size);
|
H A D | flistxattr.cpp | 40 ssize_t flistxattr(int fd, char *list, size_t size) { argument 42 ssize_t result = ___flistxattr(fd, list, size); 57 return listxattr(FdPath(fd).c_str(), list, size);
|
H A D | fsetxattr.cpp | 40 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) { argument 42 int result = ___fsetxattr(fd, name, value, size, flags); 57 return setxattr(FdPath(fd).c_str(), name, value, size, flags);
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | reallocarray.c | 30 reallocarray(void *optr, size_t nmemb, size_t size) argument 32 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 33 nmemb > 0 && SIZE_MAX / nmemb < size) { 37 return realloc(optr, size * nmemb);
|
/bionic/libc/include/bits/fortify/ |
H A D | stdio.h | 41 int vsnprintf(char* const __pass_object_size dest, size_t size, const char* format, va_list ap) 43 return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); 59 int snprintf(char* dest, size_t size, const char* format) 67 int snprintf(char* const __pass_object_size dest, size_t size, const char* format, ...) 71 int result = __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, va); 96 size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) 98 __clang_error_if(__unsafe_check_mul_overflow(size, count), 99 "in call to 'fread', size * count overflows") 100 __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && size * count > __bos(buf), 101 "in call to 'fread', size * coun 161 snprintf(char* dest, size_t size, const char* format, ...) argument 173 fread(void* buf, size_t size, size_t count, FILE* stream) argument 197 fwrite(const void* buf, size_t size, size_t count, FILE* stream) argument 223 fgets(char* dest, int size, FILE* stream) argument [all...] |
/bionic/tools/versioner/current/bits/fortify/ |
H A D | stdio.h | 41 int vsnprintf(char* const __pass_object_size dest, size_t size, const char* format, va_list ap) 43 return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); 59 int snprintf(char* dest, size_t size, const char* format) 67 int snprintf(char* const __pass_object_size dest, size_t size, const char* format, ...) 71 int result = __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, va); 96 size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) 98 __clang_error_if(__unsafe_check_mul_overflow(size, count), 99 "in call to 'fread', size * count overflows") 100 __clang_error_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && size * count > __bos(buf), 101 "in call to 'fread', size * coun 161 snprintf(char* dest, size_t size, const char* format, ...) argument 173 fread(void* buf, size_t size, size_t count, FILE* stream) argument 197 fwrite(const void* buf, size_t size, size_t count, FILE* stream) argument 223 fgets(char* dest, int size, FILE* stream) argument [all...] |
/bionic/libc/kernel/uapi/asm-generic/ |
H A D | ioctl.h | 46 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT)) 49 #define _IOR(type,nr,size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 50 #define _IOW(type,nr,size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 51 #define _IOWR(type,nr,size) _IOC(_IOC_READ | _IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 52 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) [all...] |
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-generic/ |
H A D | ioctl.h | 46 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT)) 49 #define _IOR(type,nr,size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 50 #define _IOW(type,nr,size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 51 #define _IOWR(type,nr,size) _IOC(_IOC_READ | _IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 52 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) [all...] |
/bionic/tools/versioner/dependencies/common/kernel_uapi/asm-generic/ |
H A D | ioctl.h | 46 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT)) 49 #define _IOR(type,nr,size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 50 #define _IOW(type,nr,size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 51 #define _IOWR(type,nr,size) _IOC(_IOC_READ | _IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) 52 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ, (type), (nr), sizeof(size)) [all...] |
/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/upstream-openbsd/lib/libc/stdio/ |
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 | 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);
|
/bionic/linker/ |
H A D | linker_mapped_file_fragment.h | 40 bool Map(int fd, off64_t base_offset, size_t elf_offset, size_t size); 43 size_t size() const { return size_; } function in class:MappedFileFragment
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | reallocarr.c | 57 reallocarr(void *ptr, size_t number, size_t size) 65 if (number == 0 || size == 0) { 79 if (__predict_false((number|size) >= SQRT_SIZE_MAX && 80 number > SIZE_MAX / size)) { 85 nptr = realloc(optr, number * size);
|
/bionic/libc/arch-arm/bionic/ |
H A D | kuser_helper_on.S | 39 .size kuser_helper_on, .-kuser_helper_on
|
/bionic/libc/arch-common/bionic/ |
H A D | crtbrand.S | 39 .size abitag, .-abitag
|