/bionic/libc/bionic/ |
D | preadv_pwritev.cpp | 45 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv() argument 46 return preadv64(fd, ios, count, offset); in preadv() 49 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64() argument 51 return __preadv64(fd, ios, count, offset, 0); in preadv64() 53 return __preadv64(fd, ios, count, offset, offset >> 32); in preadv64() 57 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev() argument 58 return pwritev64(fd, ios, count, offset); in pwritev() 61 ssize_t pwritev64(int fd, const struct iovec* ios, int count, off64_t offset) { in pwritev64() argument 63 return __pwritev64(fd, ios, count, offset, 0); in pwritev64() 65 return __pwritev64(fd, ios, count, offset, offset >> 32); in pwritev64() [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 | legacy_32_bit_support.cpp | 67 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread() argument 68 return pread64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pread() 72 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite() argument 73 return pwrite64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pwrite() 77 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate() argument 78 return fallocate64(fd, mode, static_cast<off64_t>(offset), static_cast<off64_t>(length)); in fallocate() 117 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64() argument 120 if (offset < 0 || (offset & ((1UL << MMAP2_SHIFT) - 1)) != 0) { in mmap64() 133 return __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64() 136 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() argument [all …]
|
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 | 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 | 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()
|
/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/upstream-openbsd/lib/libc/stdlib/ |
D | setenv.c | 47 int offset = 0; in putenv() local 57 if (__findenv(str, (int)(cp - str), &offset) != NULL) { in putenv() 58 environ[offset++] = str; in putenv() 60 while (__findenv(str, (int)(cp - str), &offset)) { in putenv() 61 for (P = &environ[offset];; ++P) in putenv() 96 int l_value, offset = 0; in setenv() local 110 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv() 111 int tmpoff = offset + 1; in setenv() 141 offset = cnt; in setenv() 144 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/linker/ |
D | linker_mapped_file_fragment.cpp | 50 off64_t offset; in Map() local 51 CHECK(safe_add(&offset, base_offset, elf_offset)); in Map() 53 off64_t page_min = page_start(offset); in Map() 56 CHECK(safe_add(&end_offset, offset, size)); in Map() 57 CHECK(safe_add(&end_offset, end_offset, page_offset(offset))); in Map() 72 data_ = map_start + page_offset(offset); in Map()
|
D | linker_note_gnu_property.cpp | 123 ElfW(Word) offset = 0; in Parse() 124 while (offset < note_nhdr->nhdr.n_descsz) { in Parse() 125 DEBUG("\"%s\" .note.gnu.property: processing at offset 0x%x", name, offset); in Parse() 129 if ((note_nhdr->nhdr.n_descsz - offset) < sizeof(ElfW(Prop))) { in Parse() 138 const ElfW(Prop)* property = reinterpret_cast<const ElfW(Prop)*>(¬e_nhdr->n_desc[offset]); in Parse() 141 if ((note_nhdr->nhdr.n_descsz - offset) < property_size) { in Parse() 145 name, property_size, note_nhdr->nhdr.n_descsz - offset); in Parse() 176 offset += property_size; in Parse()
|
/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 | struct_layout_test.cpp | 30 #define CHECK_OFFSET(name, field, offset) \ in tests() argument 31 check_offset(#name, #field, offsetof(name, field), offset); in tests() 132 auto check_offset = [&](const char* name, const char* field, size_t offset, in TEST() 134 EXPECT_EQ(expected_offset, offset) << "offsetof(" << name << ", " << field << ")"; in TEST() 135 if (offset != expected_offset) { in TEST() 150 auto print_offset = [&](const char* name, const char* field, size_t offset, in TEST() argument 153 printf(" CHECK_OFFSET(%s, %s, %zu);\n", name, field, offset); in TEST()
|
/bionic/libc/private/ |
D | bionic_asm_dwarf_exprs.h | 84 .macro m_cfi_def_cfa_deref base_reg, offset 87 m_cfi_uleb128 (1 + SLEB128_14BIT_SIZE(\offset) + 1) // size of DWARF expression in bytes 89 m_cfi_sleb128 (\offset) // expr: 1 or 2 bytes 94 .macro m_cfi_breg_offset dest_reg, base_reg, offset 98 m_cfi_uleb128 (1 + SLEB128_14BIT_SIZE(\offset)) // size of DWARF expression in bytes 100 m_cfi_sleb128 (\offset) // expr: 1 or 2 bytes
|
/bionic/libc/include/bits/fortify/ |
D | unistd.h | 88 ssize_t pread(int fd, void* const _Nonnull __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 _Nonnull __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 …ze_t pwrite(int fd, const void* const _Nonnull __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 … pwrite64(int fd, const void* const _Nonnull __pass_object_size0 buf, size_t count, off64_t offset) in pwrite64() argument [all …]
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 49 uintptr_t offset; in parse_line() local 54 permissions, &offset, &name_pos) < 2) { in parse_line() 72 MapEntry* entry = new MapEntry(start, end, offset, name, name_len, flags); in parse_line() 188 if (prev_entry->flags() == PROT_READ && prev_entry->offset() < entry->offset() && in find() 193 entry->set_elf_start_offset(prev_entry->offset()); in find() 194 *rel_pc = pc - entry->start() + entry->offset() + prev_entry->GetLoadBias(); in find() 199 *rel_pc = pc - entry->start() + entry->offset() + entry->GetLoadBias(); in find()
|
D | MapData.h | 42 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len, in MapEntry() argument 44 : start_(start), end_(end), offset_(offset), name_(name, name_len), flags_(flags) {} in MapEntry() 61 uintptr_t offset() const { return offset_; } in offset() function
|
D | backtrace.cpp | 128 uintptr_t offset = 0; in backtrace_string() local 133 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string() 139 uintptr_t rel_pc = offset; in backtrace_string() 167 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/asm-x86/asm/ |
D | sgx.h | 28 __u64 offset; member 41 __u64 offset; member 48 __u64 offset; member 55 __u64 offset; member
|
/bionic/libc/arch-x86_64/bionic/ |
D | setjmp.S | 115 .macro m_mangle_register reg, offset argument 116 movq \reg, (\offset * 8)(%rdi) 117 xorq %rax, (\offset * 8)(%rdi) // %rax contains the cookie. 166 .macro m_unmangle_register reg, offset argument 167 movq (\offset * 8)(%r12), %rdx // Clobbers rdx.
|
/bionic/libc/kernel/uapi/drm/ |
D | v3d_drm.h | 101 __u32 offset; member 106 __u64 offset; member 130 __u32 offset; member 167 __u32 offset; member 181 __u32 offset; member 190 __u32 offset; member 209 __u32 offset; member
|
/bionic/libc/kernel/uapi/linux/ |
D | udmabuf.h | 15 __u64 offset; member 21 __u64 offset; member
|
D | virtio_pci.h | 44 __le32 offset; member 141 __u8 offset; member 146 __u8 offset; member 156 __le64 offset; member
|
D | user_events.h | 14 #define DYN_LOC(offset,size) ((size) << 16 | (offset)) argument
|