Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 117) sorted by relevance

12345

/bionic/libc/bionic/
Dlegacy_32_bit_support.cpp74 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread() argument
75 return pread64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pread()
79 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite() argument
80 return pwrite64(fd, buf, byte_count, static_cast<off64_t>(offset)); in pwrite()
87 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv() argument
88 return __preadv64(fd, ios, count, offset, 0); in preadv()
90 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { in preadv64() argument
91 return __preadv64(fd, ios, count, offset, offset >> 32); in preadv64()
93 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev() argument
94 return __pwritev64(fd, ios, count, offset, 0); in pwritev()
[all …]
Dposix_fadvise.cpp37 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()
Dposix_fallocate.cpp33 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()
Dmmap.cpp44 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()
Dsync_file_range.cpp34 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()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dsetenv.c48 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()
94 int l_value, offset = 0; in setenv() local
108 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv()
109 int tmpoff = offset + 1; in setenv()
137 offset = cnt; in setenv()
140 if (!(environ[offset] = /* name + `=' + value */ in setenv()
[all …]
Dgetenv.c34 char *__findenv(const char *name, int len, int *offset);
47 __findenv(const char *name, int len, int *offset) in __findenv() argument
56 for (p = environ + *offset; (cp = *p) != NULL; ++p) { in __findenv()
61 *offset = p - environ; in __findenv()
75 int offset = 0; in getenv() local
80 return (__findenv(name, (int)(np - name), &offset)); in getenv()
/bionic/linker/
Dlinker_debug.h90 #define MARK(offset) \ argument
92 if ((((offset) >> 12) >> 5) < 4096) \
93 bitmask[((offset) >> 12) >> 5] |= (1 << (((offset) >> 12) & 31)); \
96 #define MARK(offset) \ argument
98 bitmask[((offset) >> 12) >> 3] |= (1 << (((offset) >> 12) & 7)); \
Dlinker_mapped_file_fragment.cpp49 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()
Dlinker_utils.h56 off64_t page_start(off64_t offset);
57 size_t page_offset(off64_t offset);
/bionic/tests/
Dsys_sendfile_test.cpp32 off_t offset = 2; in TEST() local
34 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); in TEST()
36 ASSERT_EQ(4, offset); in TEST()
51 off64_t offset = 2; in TEST() local
53 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); in TEST()
55 ASSERT_EQ(4, offset); in TEST()
Dlink_test.cpp72 int32_t offset = *entry; in read_exidx_func() local
74 if ((offset & 0x40000000) != 0) { in read_exidx_func()
75 offset += -0x7fffffff - 1; in read_exidx_func()
77 return reinterpret_cast<uintptr_t>(entry) + offset; in read_exidx_func()
Dstack_unwinding_test.cpp44 int offset = 0; in FrameCounter() local
51offset = 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/kernel/uapi/linux/
Dbcache.h22 #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 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 PTR(gen,offset,dev) ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen) argument
[all …]
/bionic/libc/include/sys/
Dsendfile.h38 ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) __RENAME(sendfile64) __INTRODU…
40 ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count);
42 ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) __INTRODUCED_IN(21);
/bionic/libc/malloc_debug/
DMapData.h41 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len) in MapEntry()
42 : start(start), end(end), offset(offset), name(name, name_len) {} in MapEntry()
48 uintptr_t offset; member
DBacktraceData.cpp52 BacktraceData::BacktraceData(DebugData* debug_data, const Config& config, size_t* offset) in BacktraceData() argument
55 alloc_offset_ = *offset; in BacktraceData()
56 *offset += BIONIC_ALIGN(hdr_len, MINIMUM_ALIGNMENT_BYTES); in BacktraceData()
Dbacktrace.cpp140 uintptr_t offset = 0; in backtrace_string() local
145 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string()
151 uintptr_t rel_pc = offset; in backtrace_string()
160 if (entry != nullptr && entry->offset != 0) { in backtrace_string()
161 snprintf(offset_buf, sizeof(offset_buf), " (offset 0x%" PRIxPTR ")", entry->offset); in backtrace_string()
170 rel_pc, soname, offset_buf, demangle(symbol).c_str(), frames[frame_num] - offset); in backtrace_string()
/bionic/libc/kernel/uapi/drm/
Dsis_drm.h40 unsigned long offset; member
45 unsigned long offset, size; member
48 unsigned long offset, size; member
Darmada_drm.h36 uint64_t offset; member
44 uint32_t offset; member
Dtegra_drm.h34 __u64 offset; member
75 __u32 offset; member
82 __u32 offset; member
86 __u32 offset; member
93 __u32 offset; member
/bionic/libc/include/
Dunistd.h316 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable
320 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable
326 off_t offset) __overloadable { in pread() argument
330 return __PREAD_PREFIX(real)(fd, buf, count, offset); in pread()
333 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in pread()
337 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) __overloadable
341 ssize_t pread64(int fd, void* buf, size_t count, off64_t offset) __overloadable
347 off64_t offset) __overloadable { in pread64() argument
351 return __pread64_real(fd, buf, count, offset); in pread64()
354 return __pread64_chk(fd, buf, count, offset, bos); in pread64()
[all …]
/bionic/libc/arch-arm/cortex-a15/bionic/
Dmemset.S91 .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/arch-x86/bionic/
D__restore.S84 #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.S102 #define cfi_def_cfa(offset) \ argument
106 .sleb128 offset; \
110 #define cfi_offset(reg_number,offset) \ argument
115 .sleb128 offset; \

12345