Home
last modified time | relevance | path

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

12345

/bionic/libc/bionic/
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()
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_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()
D__pwrite64_chk.cpp33 extern "C" ssize_t __pwrite64_chk(int fd, const void* buf, size_t count, off64_t offset, in __pwrite64_chk() argument
43 return pwrite64(fd, buf, count, offset); in __pwrite64_chk()
D__pread64_chk.cpp33 extern "C" ssize_t __pread64_chk(int fd, void* buf, size_t count, off64_t offset, size_t buf_size) { in __pread64_chk() argument
42 return pread64(fd, buf, count, offset); in __pread64_chk()
D__pwrite_chk.cpp33 extern "C" ssize_t __pwrite_chk(int fd, const void* buf, size_t count, off_t offset, in __pwrite_chk() argument
43 return pwrite(fd, buf, count, offset); in __pwrite_chk()
D__pread_chk.cpp33 extern "C" ssize_t __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) { in __pread_chk() argument
42 return pread(fd, buf, count, offset); in __pread_chk()
/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.h96 #define MARK(offset) \ argument
98 if ((((offset) >> 12) >> 5) < 4096) \
99 bitmask[((offset) >> 12) >> 5] |= (1 << (((offset) >> 12) & 31)); \
102 #define MARK(offset) \ argument
104 bitmask[((offset) >> 12) >> 3] |= (1 << (((offset) >> 12) & 7)); \
Dlinker_mapped_file_fragment.cpp37 off64_t offset; in Map() local
38 CHECK(safe_add(&offset, base_offset, elf_offset)); in Map()
40 off64_t page_min = page_start(offset); in Map()
43 CHECK(safe_add(&end_offset, offset, size)); in Map()
44 CHECK(safe_add(&end_offset, end_offset, page_offset(offset))); in Map()
59 data_ = map_start + page_offset(offset); in Map()
Dlinker_utils.h28 off64_t page_start(off64_t offset);
29 size_t page_offset(off64_t offset);
Dlinker_utils.cpp119 off64_t page_start(off64_t offset) { in page_start() argument
120 return offset & kPageMask; in page_start()
133 size_t page_offset(off64_t offset) { in page_offset() argument
134 return static_cast<size_t>(offset & (PAGE_SIZE-1)); in page_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()
/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; \
33 #define KEY_FIELD(name,field,offset,size) BITMASK(name, struct bkey, field, offset, size) argument
34 #define PTR_FIELD(name,offset,size) static inline __u64 name(const struct bkey * k, unsigned i) \ argument
35 { return(k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(struct bkey * k,…
36 { k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \
41 #define KEY(inode,offset,size) \ argument
42 ((struct bkey) {.high = (1ULL << 63) | ((__u64) (size) << 20) | (inode),.low = (offset) \
54 #define PTR(gen,offset,dev) ((((__u64) dev) << 51) | ((__u64) offset) << 8 | gen) argument
[all …]
/bionic/libc/include/sys/
Dsendfile.h38 extern ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) __RENAME(sendfile64);
40 extern ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count);
42 extern ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count);
/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.cpp44 BacktraceData::BacktraceData(const Config& config, size_t* offset) { in BacktraceData() argument
46 alloc_offset_ = *offset; in BacktraceData()
47 *offset += BIONIC_ALIGN(hdr_len, MINIMUM_ALIGNMENT_BYTES); in BacktraceData()
/bionic/libc/kernel/uapi/drm/
Dsis_drm.h41 unsigned long offset; member
47 unsigned long offset, size; member
51 unsigned long offset, size; member
Darmada_drm.h36 uint64_t offset; member
46 uint32_t offset; member
Dtegra_drm.h35 __u64 offset; member
86 __u32 offset; member
95 __u32 offset; member
100 __u32 offset; member
109 __u32 offset; member
/bionic/libc/arch-arm/cortex-a15/bionic/
Dmemset.S104 .irp offset, #0, #8, #16, #24, #32, #40, #48, #56
105 strd r0, r1, [r3, \offset]
118 .irp offset, #0, #8, #16, #24
119 strd r0, r1, [r3, \offset]
126 .irp offset, #0, #8
127 strd r0, r1, [r3, \offset]
Dmemcpy_base.S211 .irp offset, #0, #8, #16, #24, #32
212 ldrd r4, r5, [r1, \offset]
213 strd r4, r5, [r0, \offset]
242 .irp offset, #0, #8, #16, #24
243 ldrd r4, r5, [r1, \offset]
244 strd r4, r5, [r0, \offset]
254 .irp offset, #0, #8
255 ldrd r4, r5, [r1, \offset]
256 strd r4, r5, [r0, \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; \

12345