/bionic/libc/stdio/ |
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 | fwrite.c | 39 * Write `count' objects (each size `size') from memory to the given file. 43 fwrite(const void *buf, size_t size, size_t count, FILE *fp) argument 51 uio.uio_resid = iov.iov_len = n = count * size; 58 * generally slow and since this occurs whenever size==0. 65 return ((n - uio.uio_resid) / size);
|
H A D | makebuf.c | 46 * optimisation) right after the fstat() that finds the buffer size. 53 size_t size; local 61 flags = __swhatbuf(fp, &size, &couldbetty); 62 if ((p = malloc(size)) == NULL) { 71 fp->_bf._size = size;
|
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 | fread.c | 48 fread(void *buf, size_t size, size_t count, FILE *fp) argument 57 * or a size of 0. Peculiarily, it imposes no such requirements 60 if ((resid = count * size) == 0) 145 return ((total - resid) / size); 165 return ((total - resid) / size);
|
/bionic/libc/bionic/ |
H A D | dl_iterate_phdr_static.c | 46 dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data), argument
|
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) { 44 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. 48 size = getpagesize(); 58 int rc = __getcwd(buf, size); 67 if (size [all...] |
H A D | malloc_debug_common.h | 38 /* flag definitions, currently sharing storage with "size" */ 53 // fields above "size" are NOT sent to the host 54 size_t size; member in struct:HashEntry
|
/bionic/libc/kernel/arch-x86/asm/ |
H A D | mmu.h | 26 int size; member in struct:__anon199
|
H A D | e820.h | 34 __u64 size; member in struct:e820entry
|
H A D | desc_32.h | 31 unsigned short size; member in struct:Xgt_desc_struct
|
H A D | desc_defs.h | 71 unsigned short size; member in struct:desc_ptr
|
/bionic/libc/stdlib/ |
H A D | bsearch.c | 49 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, argument 57 p = base + (lim >> 1) * size; 60 base = (char *)p + size;
|
/bionic/libc/unistd/ |
H A D | mmap.c | 35 void* mmap(void *addr, size_t size, int prot, int flags, int fd, long offset) argument 44 ret = __mmap2(addr, size, prot, flags, fd, (size_t)offset >> MMAP2_SHIFT); 47 madvise(ret, size, MADV_MERGEABLE);
|
/bionic/libc/kernel/common/linux/ |
H A D | hidraw.h | 25 __u32 size; member in struct:hidraw_report_descriptor
|
H A D | vmalloc.h | 37 unsigned long size; member in struct:vm_struct
|
H A D | android_pmem.h | 37 unsigned long size; member in struct:android_pmem_platform_data
|
/bionic/libc/kernel/common/linux/mtd/ |
H A D | partitions.h | 25 u_int32_t size; member in struct:mtd_partition
|
H A D | blktrans.h | 37 unsigned long size; member in struct:mtd_blktrans_dev
|
/bionic/libstdc++/src/ |
H A D | new.cpp | 6 void* operator new(std::size_t size) argument 8 void* p = malloc(size); 15 void* operator new[](std::size_t size) argument 17 void* p = malloc(size); 34 void* operator new(std::size_t size, const std::nothrow_t&) argument 36 return malloc(size); 39 void* operator new[](std::size_t size, const std::nothrow_t&) argument 41 return malloc(size);
|
/bionic/libc/inet/ |
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, size_t size) argument 50 return (inet_ntop4(src, dst, size)); 52 return (inet_ntop6(src, dst, size)); 61 * inet_ntop4(src, dst, size) 72 inet_ntop4(const u_char *src, char *dst, size_t size) argument 80 if (l <= 0 || (size_t)l >= size || (size_t)l >= sizeof(tmp)) { 82 l = snprintf(tmp, size, fm 99 inet_ntop6(const u_char *src, char *dst, size_t size) argument [all...] |
/bionic/libdl/ |
H A D | libdl.c | 32 int dl_iterate_phdr(int (*cb)(void *info, void *size, void *data), argument
|
/bionic/libc/include/ |
H A D | string.h | 91 __attribute__((__error__("memcpy called with size bigger than destination"))); 93 __attribute__((__error__("memcpy called with size bigger than source"))); 153 __attribute__((__error__("strlcpy called with size bigger than buffer"))); 157 size_t strlcpy(char *dest, const char *src, size_t size) { argument 160 // Compiler doesn't know destination size. Don't call __strlcpy_chk 162 return __strlcpy_real(dest, src, size); 165 // Compiler can prove, at compile time, that the passed in size 166 // is always <= the actual object size. Don't call __strlcpy_chk 167 if (__builtin_constant_p(size) && (size < 188 strlcat(char *dest, const char *src, size_t size) argument [all...] |
/bionic/libc/kernel/common/linux/netfilter_ipv4/ |
H A D | ipt_hashlimit.h | 34 u_int32_t size; member in struct:hashlimit_cfg
|
/bionic/libc/kernel/arch-mips/asm/ |
H A D | bootinfo.h | 61 phys_t size; member in struct:boot_mem_map::boot_mem_map_entry
|