/bionic/libc/include/ |
H A D | alloca.h | 31 #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 28 size += 8; 30 while ((p - buf) < size) *p++ = '\0';
|
/bionic/libc/bionic/ |
H A D | __readlink_chk.cpp | 33 extern "C" ssize_t __readlink_chk(const char* path, char* buf, size_t size, size_t buf_size) { argument 34 if (__predict_false(size > buf_size)) { 38 if (__predict_false(size > SSIZE_MAX)) { 39 __fortify_chk_fail("readlink: size > SSIZE_MAX", 0); 42 return readlink(path, buf, size);
|
H A D | __readlinkat_chk.cpp | 33 extern "C" ssize_t __readlinkat_chk(int dirfd, const char* path, char* buf, size_t size, size_t buf_size) { argument 34 if (__predict_false(size > buf_size)) { 38 if (__predict_false(size > SSIZE_MAX)) { 39 __fortify_chk_fail("readlinkat: size > SSIZE_MAX", 0); 42 return readlinkat(dirfd, path, buf, size);
|
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 | __fread_chk.cpp | 34 extern "C" size_t __fread_chk(void * __restrict buf, size_t size, size_t count, argument 37 if (__predict_false(__size_mul_overflow(size, count, &total))) { 39 return fread(buf, size, count, stream); 46 return fread(buf, size, count, stream);
|
H A D | __fwrite_chk.cpp | 34 extern "C" size_t __fwrite_chk(const void * __restrict buf, size_t size, size_t count, argument 37 if (__predict_false(__size_mul_overflow(size, count, &total))) { 39 return fwrite(buf, size, count, stream); 46 return fwrite(buf, size, count, stream);
|
H A D | getcwd.cpp | 35 extern "C" int __getcwd(char* buf, size_t size); 37 char* getcwd(char* buf, size_t size) { argument 38 // You can't specify size 0 unless you're asking us to allocate for you. 39 if (buf != NULL && size == 0) { 46 size_t allocated_size = size; 48 if (size == 0) { 49 // The Linux kernel won't return more than a page, so translate size 0 to 4KiB. 71 if (size == 0) {
|
H A D | readlink.cpp | 36 ssize_t readlink(const char* path, char* buf, size_t size) { argument 37 return readlinkat(AT_FDCWD, path, buf, 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 | flistxattr.cpp | 38 ssize_t flistxattr(int fd, char *list, size_t size) { argument 40 ssize_t result = ___flistxattr(fd, list, size); 58 return listxattr(buf, list, size);
|
/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/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/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);
|
/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/linker/ |
H A D | linker_mapped_file_fragment.h | 28 bool Map(int fd, off64_t base_offset, size_t elf_offset, size_t size); 31 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/malloc_debug/ |
H A D | malloc_debug.h | 54 size_t size; member in struct:Header 56 size_t real_size() const { return size & ~(1U << 31); } 57 void set_zygote() { size |= 1U << 31; }
|
/bionic/libc/arch-common/bionic/ |
H A D | crtbrand.S | 39 .size abitag, .-abitag
|