Searched defs:size (Results 1 - 25 of 79) sorted by relevance

1234

/bionic/libc/stdio/
H A Dsetbuffer.c37 setbuffer(FILE *fp, char *buf, int size) argument
40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
H A Dfwrite.c39 * 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 Dmakebuf.c46 * 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 Dsetvbuf.c43 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 Dfread.c48 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 Ddl_iterate_phdr_static.c46 dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data), argument
H A Dgetcwd.cpp32 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 Dmalloc_debug_common.h38 /* 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 Dmmu.h26 int size; member in struct:__anon199
H A De820.h34 __u64 size; member in struct:e820entry
H A Ddesc_32.h31 unsigned short size; member in struct:Xgt_desc_struct
H A Ddesc_defs.h71 unsigned short size; member in struct:desc_ptr
/bionic/libc/stdlib/
H A Dbsearch.c49 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 Dmmap.c35 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 Dhidraw.h25 __u32 size; member in struct:hidraw_report_descriptor
H A Dvmalloc.h37 unsigned long size; member in struct:vm_struct
H A Dandroid_pmem.h37 unsigned long size; member in struct:android_pmem_platform_data
/bionic/libc/kernel/common/linux/mtd/
H A Dpartitions.h25 u_int32_t size; member in struct:mtd_partition
H A Dblktrans.h37 unsigned long size; member in struct:mtd_blktrans_dev
/bionic/libstdc++/src/
H A Dnew.cpp6 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 Dinet_ntop.c34 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 Dlibdl.c32 int dl_iterate_phdr(int (*cb)(void *info, void *size, void *data), argument
/bionic/libc/include/
H A Dstring.h91 __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 Dipt_hashlimit.h34 u_int32_t size; member in struct:hashlimit_cfg
/bionic/libc/kernel/arch-mips/asm/
H A Dbootinfo.h61 phys_t size; member in struct:boot_mem_map::boot_mem_map_entry

Completed in 286 milliseconds

1234