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

12345678910

/bionic/libc/bionic/
H A Depoll_create.cpp32 int epoll_create(int size) { argument
33 if (size <= 0) {
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 Dandroid_set_abort_message.cpp39 size_t size; member in struct:abort_msg_t
59 size_t size = sizeof(abort_msg_t) + strlen(msg) + 1; local
60 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
66 new_abort_message->size = 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 Dflistxattr.cpp38 ssize_t flistxattr(int fd, char *list, size_t size) { argument
40 ssize_t result = ___flistxattr(fd, list, size);
58 return listxattr(buf, list, 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 Djemalloc_wrapper.cpp26 size_t size = BIONIC_ALIGN(bytes, pagesize); local
27 if (size < bytes) {
30 return je_memalign(pagesize, size);
40 void* je_memalign_round_up_boundary(size_t boundary, size_t size) { argument
48 return je_memalign(boundary, size);
H A Dmmap.cpp44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument
51 size_t rounded = BIONIC_ALIGN(size, PAGE_SIZE);
52 if (rounded < size || rounded > PTRDIFF_MAX) {
61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT);
66 int rc = madvise(result, size, MADV_MERGEABLE);
75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { argument
76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset));
H A Dnew.cpp26 void* operator new(std::size_t size) { argument
27 void* p = malloc(size);
29 __libc_fatal("new failed to allocate %zu bytes", size);
34 void* operator new[](std::size_t size) { argument
35 void* p = malloc(size);
37 __libc_fatal("new[] failed to allocate %zu bytes", size);
50 void* operator new(std::size_t size, const std::nothrow_t&) { argument
51 return malloc(size);
54 void* operator new[](std::size_t size, const std::nothrow_t&) { argument
55 return malloc(size);
[all...]
H A Dsys_shm.cpp68 int shmget(key_t key, size_t size, int flags) { argument
70 return syscall(SYS_shmget, key, size, flags);
72 return syscall(SYS_ipc, SHMGET, key, size, flags, 0, 0);
/bionic/tests/
H A Dstack_protector_test_helper.cpp24 int size = static_cast<int>(sizeof(buf) + 1); local
25 while ((p - buf) < size) *p++ = '\0';
/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/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/stdio/
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 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
63 size = wcrtomb(buf, wc, st);
64 if (size == (size_t)-1) {
69 uio.uio_resid = iov.iov_len = size;
/bionic/linker/
H A Dlinker_mapped_file_fragment.h40 bool Map(int fd, off64_t base_offset, size_t elf_offset, size_t size);
43 size_t size() const { return size_; } function in class:MappedFileFragment
H A Dlinker_mapped_file_fragment.cpp48 bool MappedFileFragment::Map(int fd, off64_t base_offset, size_t elf_offset, size_t size) { argument
55 CHECK(safe_add(&end_offset, offset, size));
59 CHECK(map_size >= size);
72 size_ = size;
H A Dlinker_sleb128.h46 static const size_t size = CHAR_BIT * sizeof(value); local
60 if (shift < size && (byte & 64)) {
/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/versioner-dependencies/common/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

Completed in 1110 milliseconds

12345678910