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

12345

/bionic/libc/bionic/
H A Dreadlink.cpp33 ssize_t readlink(const char* path, char* buf, size_t size) { argument
34 return readlinkat(AT_FDCWD, path, buf, size);
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) {
43 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.
68 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 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...]
H A Dscandir.cpp38 size_t size() { function in class:ScandirResult
82 size_t size = ((original->d_reclen + 3) & ~3); local
83 dirent* copy = (dirent*) malloc(size);
111 size_t size = names.size(); local
113 return size;
/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 Dfread.c43 fread(void *buf, size_t size, size_t count, FILE *fp) argument
53 if ((size >= MUL_NO_OVERFLOW || count >= MUL_NO_OVERFLOW) &&
54 size > 0 && SIZE_MAX / size < count) {
61 * ANSI and SUSv2 require a return value of 0 if size or count are 0.
63 if ((resid = count * size) == 0)
80 return ((total - resid) / size);
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) {
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 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-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/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.c35 int dl_iterate_phdr(int (*cb)(struct dl_phdr_info* info, size_t size, void* data) __unused, void* data __unused) { return 0; } argument
/bionic/libc/kernel/uapi/asm-arm64/asm/
H A Dsigcontext.h35 __u32 size; member in struct:_aarch64_ctx
/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
/bionic/libc/kernel/uapi/linux/
H A Dhidraw.h25 __u32 size; member in struct:hidraw_report_descriptor
H A Di2c-dev.h39 __u32 size; member in struct:i2c_smbus_ioctl_data
/bionic/libc/private/
H A Dlibc_logging.h68 size_t size; member in struct:abort_msg_t
/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/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...]
/bionic/libc/kernel/uapi/asm-x86/asm/
H A De820.h39 __u64 size; member in struct:e820entry

Completed in 659 milliseconds

12345