Searched refs:size (Results 26 - 50 of 251) sorted by relevance

1234567891011

/bionic/libc/stdio/
H A Dfread.c44 fread(void *buf, size_t size, size_t count, FILE *fp) argument
49 if ((size >= MUL_NO_OVERFLOW || count >= MUL_NO_OVERFLOW) &&
50 size > 0 && SIZE_MAX / size < count) {
56 const size_t desired_total = count * size;
60 * ANSI and SUSv2 require a return value of 0 if size or count are 0.
138 return ((desired_total - total) / size);
/bionic/libc/include/
H A Dstdio.h79 #define BUFSIZ 1024 /* size of buffer used by setbuf */
231 #define L_ctermid 1024 /* size for ctermid(); PATH_MAX */
288 __errordecl(__fgets_too_big_error, "fgets called with size bigger than buffer");
289 __errordecl(__fgets_too_small_error, "fgets called with size less than zero");
293 __errordecl(__fread_too_big_error, "fread called with size * count bigger than buffer");
294 __errordecl(__fread_overflow, "fread called with overflowing size * count");
298 __errordecl(__fwrite_too_big_error, "fwrite called with size * count bigger than buffer");
299 __errordecl(__fwrite_overflow, "fwrite called with overflowing size * count");
305 int vsnprintf(char *dest, size_t size, const char *format, __va_list ap) argument
307 return __builtin___vsnprintf_chk(dest, size,
325 snprintf(char *dest, size_t size, const char *format, ...) argument
348 fread(void * __restrict buf, size_t size, size_t count, FILE * __restrict stream) argument
374 fwrite(const void * __restrict buf, size_t size, size_t count, FILE * __restrict stream) argument
402 fgets(char* dest, int size, FILE* stream) argument
[all...]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfmemopen.c30 size_t size; /* allocated size */ member in struct:state
54 for (i = 0; i < l && i + st->pos < st->size; i++)
61 if (st->len < st->size)
64 st->string[st->size - 1] = '\0';
87 if (off > st->size - base || off < -base) {
117 fmemopen(void *buf, size_t size, const char *mode) argument
123 if (size == 0) {
147 st->len = (oflags & O_WRONLY) ? 0 : size;
148 st->size
[all...]
H A Dfputwc.c44 size_t size; local
63 size = wcrtomb(buf, wc, st);
64 if (size == (size_t)-1) {
69 uio.uio_resid = iov.iov_len = 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) {
70 fp->_bf._size = size;
H A Dopen_wmemstream.c35 size_t size; /* number of allocated wchar_t */ member in struct:state
49 if (end >= st->size) {
51 size_t sz = st->size * 8 / 5;
58 bzero(p + st->size, (sz - st->size) * sizeof(wchar_t));
60 st->size = sz;
63 nmc = (st->size - st->pos) * sizeof(wchar_t);
142 st->size = BUFSIZ * sizeof(wchar_t);
143 if ((st->string = calloc(1, st->size)) == NULL) {
/bionic/libc/bionic/
H A Dfgetxattr.cpp38 ssize_t fgetxattr(int fd, const char *name, void *value, size_t size) { argument
40 ssize_t result = ___fgetxattr(fd, name, value, size);
58 return getxattr(buf, name, value, size);
H A Dfsetxattr.cpp38 int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) { argument
40 int result = ___fsetxattr(fd, name, value, size, flags);
58 return setxattr(buf, name, value, size, flags);
H A Dstrerror.cpp44 strerror_r(error_number, result, g_strerror_tls_buffer.size());
H A Dstrsignal.cpp45 g_strsignal_tls_buffer.size()));
/bionic/libc/kernel/uapi/drm/
H A Darmada_drm.h29 uint32_t size; member in struct:drm_armada_gem_create
37 uint64_t size; member in struct:drm_armada_gem_mmap
47 uint32_t size; member in struct:drm_armada_gem_pwrite
H A Dsis_drm.h42 unsigned long size; member in struct:__anon177
47 unsigned long offset, size; member in struct:__anon178
51 unsigned long offset, size; member in struct:__anon179
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
H A Dbsearch.c62 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, argument
75 p = base + (lim >> 1) * size;
80 base = (const char *)p + size;
/bionic/tools/relocation_packer/src/
H A Dsleb128.cc50 static const size_t size = CHAR_BIT * sizeof(value); local
61 value |= -(static_cast<uint_t>(1) << (size - 7));
76 for (size_t i = 0; i < values.size(); ++i) {
98 static const size_t size = CHAR_BIT * sizeof(value); local
112 if (shift < size && (byte & 64))
121 while (cursor_ < encoding_.size()) {
/bionic/linker/
H A Dlinker_sleb128.h32 static const size_t size = CHAR_BIT * sizeof(value); local
46 if (shift < size && (byte & 64)) {
H A Dlinker_mapped_file_fragment.cpp36 bool MappedFileFragment::Map(int fd, off64_t base_offset, size_t elf_offset, size_t size) { argument
43 CHECK(safe_add(&end_offset, offset, size));
47 CHECK(map_size >= size);
60 size_ = size;
/bionic/libc/upstream-openbsd/lib/libc/net/
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, socklen_t size) argument
50 return (inet_ntop4(src, dst, (size_t)size));
52 return (inet_ntop6(src, dst, (size_t)size));
61 * inet_ntop4(src, dst, size)
72 inet_ntop4(const u_char *src, char *dst, size_t size) argument
79 if (l <= 0 || l >= size) {
83 strlcpy(dst, tmp, size);
94 inet_ntop6(const u_char *src, char *dst, size_t size) argument
[all...]
/bionic/libc/arch-common/bionic/
H A Dcrtend_so.S38 .size __FRAME_END__, 4
/bionic/libc/kernel/uapi/asm-x86/asm/
H A Dmtrr.h30 unsigned int size; member in struct:mtrr_sentry
37 unsigned int size; member in struct:mtrr_gentry
45 __u32 size; member in struct:mtrr_sentry
51 __u32 size; member in struct:mtrr_gentry
/bionic/libc/kernel/uapi/linux/
H A Dion_test.h27 __u64 size; member in struct:ion_test_rw_data
H A Dstm.h24 __u32 size; member in struct:stp_policy_id
/bionic/libc/kernel/uapi/asm-arm/asm/
H A Dsetup.h26 __u32 size; member in struct:tag_header
40 __u32 size; member in struct:tag_mem32
62 __u32 size; member in struct:tag_ramdisk
71 __u32 size; member in struct:tag_initrd
150 #define tag_member_present(tag,member) ((unsigned long) (& ((struct tag *) 0L)->member + 1) <= (tag)->hdr.size * 4)
151 #define tag_next(t) ((struct tag *) ((__u32 *) (t) + (t)->hdr.size))
154 #define for_each_tag(t,base) for(t = base; t->hdr.size; t = tag_next(t))
/bionic/libc/malloc_debug/
H A DTrackData.cpp54 // Sort by the size of the allocation.
56 if (a->size == b->size) return a < b;
57 return a->size > b->size;
100 error_log("+++ %s leaked block of size %zu at %p (leak %zu of %zu)", getprogname(),
101 header->real_size(), debug.GetPointer(header), ++track_count, list.size());
117 if (headers_.size() == 0 || total_backtrace_allocs_ == 0) {
136 memcpy(data, &header->size, sizeof(size_t));
H A Dmalloc_debug.cpp73 void* debug_malloc(size_t size);
79 int debug_posix_memalign(void** memptr, size_t alignment, size_t size);
80 int debug_iterate(uintptr_t base, size_t size,
81 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg);
87 void* debug_valloc(size_t size);
130 size_t frame_num = backtrace_get(frames.data(), frames.size());
132 backtrace_log(frames.data(), frames.size());
136 static void* InitHeader(Header* header, void* orig_pointer, size_t size) { argument
139 header->size = size;
281 debug_malloc(size_t size) argument
545 size_t size; local
587 debug_posix_memalign(void** memptr, size_t alignment, size_t size) argument
601 debug_iterate(uintptr_t base, size_t size, void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) argument
[all...]
/bionic/tests/
H A Dsched_test.cpp161 size_t size = CPU_ALLOC_SIZE(17); local
163 CPU_ZERO_S(size, set);
164 ASSERT_EQ(0, CPU_COUNT_S(size, set));
165 CPU_SET_S(16, size, set);
166 ASSERT_TRUE(CPU_ISSET_S(16, size, set));
173 size_t size = CPU_ALLOC_SIZE(10 * CPU_SETSIZE); local
175 CPU_ZERO_S(size, set);
176 ASSERT_EQ(0, CPU_COUNT_S(size, set));
177 CPU_SET_S(CPU_SETSIZE, size, set);
178 ASSERT_TRUE(CPU_ISSET_S(CPU_SETSIZE, size, se
185 size_t size = CPU_ALLOC_SIZE(set_size); local
[all...]

Completed in 652 milliseconds

1234567891011