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

123456

/bionic/libc/bionic/
H A Dreadlink.cpp36 ssize_t readlink(const char* path, char* buf, size_t size) { argument
37 return readlinkat(AT_FDCWD, path, buf, size);
H A D__readlink_chk.cpp33 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.cpp33 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 Dgetcwd.cpp34 extern "C" int __getcwd(char* buf, size_t size);
36 char* getcwd(char* buf, size_t size) { argument
37 // You can't specify size 0 unless you're asking us to allocate for you.
38 if (buf != NULL && size == 0) {
45 size_t allocated_size = size;
47 if (size == 0) {
48 // The Linux kernel won't return more than a page, so translate size 0 to 4KiB.
70 if (size == 0) {
H A Djemalloc_wrapper.cpp25 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 Ddl_iterate_phdr_static.cpp38 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data), void* data) { argument
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 Dmmap.cpp42 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument
49 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT);
53 int rc = madvise(result, size, MADV_MERGEABLE);
62 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { argument
63 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset));
H A Dnew.cpp25 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...]
/bionic/libc/upstream-openbsd/lib/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 Dfgetwc.c43 size_t size; local
70 size = mbrtowc(&wc, &c, 1, st);
71 if (size == (size_t)-1) {
75 } while (size == (size_t)-2);
H A Dfwrite.c44 * 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 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 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 Dfputwc.c44 size_t size; local
64 size = wcrtomb(buf, wc, st);
65 if (size == (size_t)-1) {
70 uio.uio_resid = iov.iov_len = size;
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dreallocarray.c30 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/private/
H A DThreadLocalBuffer.h55 size_t size() { return Size; } function in class:ThreadLocalBuffer
/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/libc/kernel/uapi/linux/
H A Dion_test.h27 __u64 size; member in struct:ion_test_rw_data
/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/upstream-openbsd/lib/libc/locale/
H A D_wcstod.h45 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/libdl/
H A Dlibdl.c36 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data) __unused, void* data __unused) { return 0; } argument
/bionic/linker/
H A Dlinker_sleb128.h32 static const size_t size = CHAR_BIT * sizeof(value); local
46 if (shift < size && (byte & 64)) {
/bionic/libc/kernel/uapi/asm-arm64/asm/
H A Dsigcontext.h35 __u32 size; member in struct:_aarch64_ctx

Completed in 439 milliseconds

123456