/bionic/libc/stdio/ |
D | fmemopen.cpp | 44 size_t offset; member 51 if (static_cast<size_t>(n) > ck->size - ck->offset) n = ck->size - ck->offset; in fmemopen_read() 54 memmove(buf, ck->buf + ck->offset, n); in fmemopen_read() 55 ck->offset += n; in fmemopen_read() 68 if (ck->append) ck->offset = ck->size; in fmemopen_write() 71 if (static_cast<size_t>(n) + space_for_null > ck->capacity - ck->offset) { in fmemopen_write() 72 n = ck->capacity - ck->offset - space_for_null; in fmemopen_write() 81 memmove(ck->buf + ck->offset, buf, n); in fmemopen_write() 82 ck->offset += n; in fmemopen_write() 84 if (ck->offset >= ck->size) { in fmemopen_write() [all …]
|
/bionic/libc/bionic/ |
D | legacy_32_bit_support.cpp | 64 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread() argument 65 return pread64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pread() 69 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite() argument 70 return pwrite64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pwrite() 77 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv() argument 78 return preadv64(fd, ios, count, offset); in preadv() 80 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64() argument 81 return __preadv64(fd, ios, count, offset, offset >> 32); in preadv64() 83 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev() argument 84 return pwritev64(fd, ios, count, offset); in pwritev() [all …]
|
D | posix_fadvise.cpp | 37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { in posix_fadvise() argument 38 return posix_fadvise64(fd, offset, length, advice); in posix_fadvise() 42 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { in posix_fadvise64() argument 44 return (__arm_fadvise64_64(fd, advice, offset, length) == 0) ? 0 : errno; in posix_fadvise64() 47 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { in posix_fadvise64() argument 49 return (__fadvise64(fd, offset, length, advice) == 0) ? 0 : errno; in posix_fadvise64()
|
D | mmap.cpp | 44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64() argument 45 if (offset < 0 || (offset & ((1UL << MMAP2_SHIFT)-1)) != 0) { in mmap64() 61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64() 75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() argument 76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset)); in mmap()
|
D | posix_fallocate.cpp | 33 int posix_fallocate(int fd, off_t offset, off_t length) { in posix_fallocate() argument 35 return (fallocate(fd, 0, offset, length) == 0) ? 0 : errno; in posix_fallocate() 38 int posix_fallocate64(int fd, off64_t offset, off64_t length) { in posix_fallocate64() argument 40 return (fallocate64(fd, 0, offset, length) == 0) ? 0 : errno; in posix_fallocate64()
|
D | recvmsg.cpp | 60 for (size_t offset = 0; offset < data_length; offset += sizeof(int)) { in track_fds() local 62 memcpy(&fd, CMSG_DATA(cmsg) + offset, sizeof(int)); in track_fds()
|
D | sync_file_range.cpp | 34 int sync_file_range(int fd, off64_t offset, off64_t length, unsigned int flags) { in sync_file_range() argument 36 return __sync_file_range2(fd, flags, offset, length); in sync_file_range() 38 return __sync_file_range(fd, offset, length, flags); in sync_file_range()
|
D | libc_init_static.cpp | 86 ElfW(Addr)* offset = reinterpret_cast<ElfW(Addr)*>(r->r_offset); in call_ifunc_resolvers() 88 *offset = __bionic_call_ifunc_resolver(resolver); in call_ifunc_resolvers() 107 ElfW(Addr)* offset = reinterpret_cast<ElfW(Addr)*>(r->r_offset); in call_ifunc_resolvers() 108 ElfW(Addr) resolver = *offset; in call_ifunc_resolvers() 109 *offset = __bionic_call_ifunc_resolver(resolver); in call_ifunc_resolvers()
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | setenv.c | 47 int offset = 0; in putenv() local 56 if (__findenv(str, (int)(cp - str), &offset) != NULL) { in putenv() 57 environ[offset++] = str; in putenv() 59 while (__findenv(str, (int)(cp - str), &offset)) { in putenv() 60 for (P = &environ[offset];; ++P) in putenv() 95 int l_value, offset = 0; in setenv() local 109 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv() 110 int tmpoff = offset + 1; in setenv() 140 offset = cnt; in setenv() 143 if (!(environ[offset] = /* name + `=' + value */ in setenv() [all …]
|
D | getenv.c | 46 __findenv(const char *name, int len, int *offset) in __findenv() argument 54 for (p = environ + *offset; (cp = *p) != NULL; ++p) { in __findenv() 59 *offset = p - environ; in __findenv() 73 int offset = 0; in getenv() local 78 return (__findenv(name, (int)(np - name), &offset)); in getenv()
|
/bionic/libc/kernel/uapi/linux/ |
D | bcache.h | 22 #define BITMASK(name,type,field,offset,size) static inline __u64 name(const type * k) \ argument 23 { return(k->field >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(type * k, __u64 v… 24 { k->field &= ~(~(~0ULL << size) << offset); k->field |= (v & ~(~0ULL << size)) << offset; \ 31 #define KEY_FIELD(name,field,offset,size) BITMASK(name, struct bkey, field, offset, size) argument 32 #define PTR_FIELD(name,offset,size) static inline __u64 name(const struct bkey * k, unsigned int i)… argument 33 { return(k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(struct bkey * k,… 34 { k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ 38 #define KEY(inode,offset,size) \ argument 39 ((struct bkey) {.high = (1ULL << 63) | ((__u64) (size) << 20) | (inode),.low = (offset) \ 49 #define MAKE_PTR(gen,offset,dev) ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen) argument [all …]
|
D | fuse.h | 286 uint64_t offset; member 296 uint64_t offset; member 425 uint64_t offset; member 479 uint64_t offset; member 486 uint64_t offset; member 492 uint64_t offset; member 501 uint64_t offset; member 506 uint64_t offset; member
|
D | btrfs_tree.h | 114 __le64 offset; member 119 __u64 offset; member 139 __le64 offset; member 157 __le64 offset; member 194 __le64 offset; member 202 __le64 offset; member 343 __le64 offset; member
|
/bionic/linker/ |
D | linker_mapped_file_fragment.cpp | 49 off64_t offset; in Map() local 50 CHECK(safe_add(&offset, base_offset, elf_offset)); in Map() 52 off64_t page_min = page_start(offset); in Map() 55 CHECK(safe_add(&end_offset, offset, size)); in Map() 56 CHECK(safe_add(&end_offset, end_offset, page_offset(offset))); in Map() 71 data_ = map_start + page_offset(offset); in Map()
|
/bionic/tests/ |
D | sys_sendfile_test.cpp | 33 off_t offset = 2; in TEST() local 35 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); in TEST() 37 ASSERT_EQ(4, offset); in TEST() 52 off64_t offset = 2; in TEST() local 54 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); in TEST() 56 ASSERT_EQ(4, offset); in TEST()
|
D | stack_unwinding_test.cpp | 44 int offset = 0; in FrameCounter() local 51 … offset = static_cast<int>(reinterpret_cast<char*>(ip) - reinterpret_cast<char*>(info.dli_saddr)); in FrameCounter() 55 …fprintf(stderr, " #%02d %p %s%+d (%s)\n", *count_ptr, ip, symbol, offset, info.dli_fname ? info.dl… in FrameCounter()
|
/bionic/libc/include/bits/fortify/ |
D | unistd.h | 88 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, off_t offset) in pread() argument 96 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in pread() 99 return __PREAD_PREFIX(real)(fd, buf, count, offset); in pread() 104 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, off64_t offset) in pread64() argument 112 return __pread64_chk(fd, buf, count, offset, bos); in pread64() 115 return __pread64_real(fd, buf, count, offset); in pread64() 120 ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, off_t offset) in pwrite() argument 128 return __PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); in pwrite() 131 return __PWRITE_PREFIX(real)(fd, buf, count, offset); in pwrite() 136 ssize_t pwrite64(int fd, const void* const __pass_object_size0 buf, size_t count, off64_t offset) in pwrite64() argument [all …]
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 47 uintptr_t offset; in parse_line() local 52 permissions, &offset, &name_pos) < 2) { in parse_line() 70 MapEntry* entry = new MapEntry(start, end, offset, name, name_len, flags); in parse_line() 122 if (phdr.p_type == PT_LOAD && phdr.p_offset == entry->offset) { in read_loadbias() 199 if (prev_entry->flags == PROT_READ && prev_entry->offset < entry->offset && in find() 204 entry->elf_start_offset = prev_entry->offset; in find() 205 *rel_pc = pc - entry->start + entry->offset + prev_entry->load_bias; in find()
|
D | MapData.h | 40 …MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len, int … in MapEntry() 41 : start(start), end(end), offset(offset), name(name, name_len), flags(flags) {} in MapEntry() 47 uintptr_t offset; member
|
D | backtrace.cpp | 137 uintptr_t offset = 0; in backtrace_string() local 142 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string() 148 uintptr_t rel_pc = offset; in backtrace_string() 175 frames[frame_num] - offset); in backtrace_string()
|
/bionic/libc/arch-arm/cortex-a15/bionic/ |
D | memset.S | 91 .irp offset, #0, #8, #16, #24, #32, #40, #48, #56 92 strd r0, r1, [r3, \offset] 105 .irp offset, #0, #8, #16, #24 106 strd r0, r1, [r3, \offset] 113 .irp offset, #0, #8 114 strd r0, r1, [r3, \offset]
|
/bionic/libc/kernel/uapi/drm/ |
D | tegra_drm.h | 35 __u64 offset; member 76 __u32 offset; member 83 __u32 offset; member 87 __u32 offset; member 94 __u32 offset; member
|
D | sis_drm.h | 41 unsigned long offset; member 46 unsigned long offset, size; member 49 unsigned long offset, size; member
|
/bionic/libc/arch-x86/bionic/ |
D | __restore.S | 84 #define cfi_def_cfa(offset) \ argument 88 .sleb128 offset; \ 92 #define cfi_offset(reg_number,offset) \ argument 97 .sleb128 offset; \
|
/bionic/libc/arch-x86_64/bionic/ |
D | __restore_rt.S | 102 #define cfi_def_cfa(offset) \ argument 106 .sleb128 offset; \ 110 #define cfi_offset(reg_number,offset) \ argument 115 .sleb128 offset; \
|