Searched refs:size (Results 1 - 25 of 121) sorted by relevance

12345

/bionic/libc/kernel/common/asm-generic/bitops/
H A Dfind.h21 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
22 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
/bionic/libc/include/
H A Dalloca.h31 #define alloca(size) __builtin_alloca(size)
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/
H A Dcirc_buf.h27 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1))
29 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size))
30 #define CIRC_CNT_TO_END(head,tail,size) ({int end = (size) - (tail); int n = ((head) + end) & ((size)-1); n < end ? n : end;})
31 #define CIRC_SPACE_TO_END(head,tail,size) ({int end = (size) - 1 - (head); int n = (end + (tail)) & ((size)
[all...]
H A Dxattr.h42 size_t size);
45 size_t size, int flags);
/bionic/libc/bionic/
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_check.cpp95 size_t size; member in struct:hdr_t
104 return reinterpret_cast<ftr_t*>(reinterpret_cast<char*>(hdr + 1) + hdr->size);
210 static inline void add(hdr_t *hdr, size_t size) { argument
213 hdr->size = size;
232 memset(user(hdr), FREE_POISON, hdr->size);
238 for (i = 0; i < hdr->size; i++)
250 user(hdr), hdr->size);
262 user(hdr), hdr->size);
285 user(hdr), hdr->size);
350 chk_malloc(size_t size) argument
407 chk_realloc(void *ptr, size_t size) argument
464 chk_calloc(int nmemb, size_t size) argument
[all...]
H A Dmalloc_debug_leak.cpp105 intptr_t* backtrace, size_t numEntries, size_t size) {
111 * See if the entry matches exactly. We compare the "size" field,
114 if (entry->size == size && entry->numEntries == numEntries &&
125 static HashEntry* record_backtrace(intptr_t* backtrace, size_t numEntries, size_t size) { argument
129 if (size & SIZE_FLAG_MASK) {
130 debug_log("malloc_debug: allocation %zx exceeds bit width\n", size);
135 size |= SIZE_FLAG_ZYGOTE_CHILD;
138 HashEntry* entry = find_entry(&gHashTable, slot, backtrace, numEntries, size);
153 entry->size
104 find_entry(HashTable* table, int slot, intptr_t* backtrace, size_t numEntries, size_t size) argument
237 size_t size = (bytes < old_size)?(bytes):(old_size); local
267 size_t size = bytes + sizeof(AllocationEntry); local
330 size_t size = n_elements * elem_size; local
372 size_t size = (alignment-MALLOC_ALIGNMENT) + bytes; local
[all...]
/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/include/sys/
H A Dxattr.h38 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/arch-mips/asm/
H A Dioctl.h45 #define _IOC(dir, type, nr, size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT))
50 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size)))
51 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size)))
52 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size)))
54 #define _IOR_BAD(type, nr, size) _IOC(_IOC_READ, (type), (nr), sizeof(size))
[all...]
H A Duaccess.h44 #define __ua_size(size) ((__builtin_constant_p(size) && (signed long) (size) > 0) ? 0 : (size))
46 #define __access_ok(addr, size, mask) (((signed long)((mask) & ((addr) | ((addr) + (size)) | __ua_size(size)))) == 0)
47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask))
57 #define __get_user_common(val, size, pt
[all...]
H A Dio.h67 #define ioremap(offset, size) __ioremap_mode((offset), (size), _CACHE_UNCACHED)
69 #define ioremap_nocache(offset, size) __ioremap_mode((offset), (size), _CACHE_UNCACHED)
70 #define ioremap_cachable(offset, size) __ioremap_mode((offset), (size), _page_cachable_default)
71 #define ioremap_cacheable_cow(offset, size) __ioremap_mode((offset), (size), _CACHE_CACHABLE_COW)
72 #define ioremap_uncached_accelerated(offset, size) __ioremap_mode((offset), (size), _CACHE_UNCACHED_ACCELERATE
[all...]
/bionic/libc/kernel/common/asm-generic/
H A Dioctl.h40 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT))
45 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
46 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
47 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
49 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
[all...]
/bionic/libc/netbsd/resolv/
H A Dres_debug.h25 # 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/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/kernel/arch-x86/asm/
H A Dmmu.h26 int size; member in struct:__anon199
/bionic/libc/stdio/
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 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);
/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/arch-x86/bionic/
H A Dcrtend.S13 .size __FRAME_END__, 4
H A Dcrtend_so.S10 .size __FRAME_END__, 4
H A D__stack_chk_fail_local.S48 .size __stack_chk_fail_local, .-__stack_chk_fail_local
/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...]

Completed in 1322 milliseconds

12345