/bionic/libc/bionic/ |
H A D | posix_fallocate.cpp | 33 int posix_fallocate(int fd, off_t offset, off_t length) { argument 35 return (fallocate(fd, 0, offset, length) == 0) ? 0 : errno; 38 int posix_fallocate64(int fd, off64_t offset, off64_t length) { argument 40 return (fallocate64(fd, 0, offset, length) == 0) ? 0 : errno;
|
H A D | posix_fadvise.cpp | 37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { argument 38 return posix_fadvise64(fd, offset, length, advice); 42 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { argument 44 return (__arm_fadvise64_64(fd, advice, offset, length) == 0) ? 0 : errno; 47 int posix_fadvise64(int fd, off64_t offset, off64_t length, int advice) { argument 49 return (__fadvise64(fd, offset, length, advice) == 0) ? 0 : errno;
|
H A D | sync_file_range.cpp | 34 int sync_file_range(int fd, off64_t offset, off64_t length, unsigned int flags) { argument 36 return __sync_file_range2(fd, flags, offset, length); 38 return __sync_file_range(fd, offset, length, flags);
|
H A D | legacy_32_bit_support.cpp | 74 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { argument 75 return pread64(fd, buf, byte_count, static_cast<off64_t>(offset)); 79 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { argument 80 return pwrite64(fd, buf, byte_count, static_cast<off64_t>(offset)); 87 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { argument 88 return preadv64(fd, ios, count, offset); 90 ssize_t preadv64(int fd, const struct iovec* ios, int count, off64_t offset) { argument 91 return __preadv64(fd, ios, count, offset, offset >> 32); 93 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { argument 96 pwritev64(int fd, const struct iovec* ios, int count, off64_t offset) argument 101 fallocate(int fd, int mode, off_t offset, off_t length) argument [all...] |
H A D | mmap.cpp | 37 // mmap2(2) is like mmap(2), but the offset is in 4096-byte blocks, not bytes. 44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument 45 if (offset < 0 || (offset & ((1UL << MMAP2_SHIFT)-1)) != 0) { 61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); 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));
|
/bionic/libc/stdio/ |
H A D | fmemopen.cpp | 44 size_t offset; member in struct:fmemopen_cookie 51 if (static_cast<size_t>(n) > ck->size - ck->offset) n = ck->size - ck->offset; 54 memmove(buf, ck->buf + ck->offset, n); 55 ck->offset += n; 68 if (ck->append) ck->offset = ck->size; 71 if (static_cast<size_t>(n) + space_for_null > ck->capacity - ck->offset) { 72 n = ck->capacity - ck->offset - space_for_null; 81 memmove(ck->buf + ck->offset, buf, n); 82 ck->offset 92 fmemopen_seek(void* cookie, fpos_t offset, int whence) argument [all...] |
/bionic/linker/ |
H A D | linker_debug.h | 89 #define MARK(offset) \ 91 if ((((offset) >> 12) >> 5) < 4096) \ 92 bitmask[((offset) >> 12) >> 5] |= (1 << (((offset) >> 12) & 31)); \ 95 #define MARK(offset) \ 97 bitmask[((offset) >> 12) >> 3] |= (1 << (((offset) >> 12) & 7)); \
|
H A D | linker_mapped_file_fragment.cpp | 49 off64_t offset; local 50 CHECK(safe_add(&offset, base_offset, elf_offset)); 52 off64_t page_min = page_start(offset); 55 CHECK(safe_add(&end_offset, offset, size)); 56 CHECK(safe_add(&end_offset, end_offset, page_offset(offset))); 71 data_ = map_start + page_offset(offset);
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | getenv.c | 34 char *__findenv(const char *name, int len, int *offset); 39 * Starts searching within the environmental array at offset. 40 * Sets offset to be the offset of the name/value combination in the 47 __findenv(const char *name, int len, int *offset) argument 56 for (p = environ + *offset; (cp = *p) != NULL; ++p) { 61 *offset = p - environ; 75 int offset = 0; local 80 return (__findenv(name, (int)(np - name), &offset));
|
H A D | setenv.c | 48 int offset = 0; local 57 if (__findenv(str, (int)(cp - str), &offset) != NULL) { 58 environ[offset++] = str; 60 while (__findenv(str, (int)(cp - str), &offset)) { 61 for (P = &environ[offset];; ++P) 94 int l_value, offset = 0; local 108 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { 109 int tmpoff = offset + 1; 137 offset = cnt; 140 if (!(environ[offset] 160 int offset = 0; local [all...] |
/bionic/tests/ |
H A D | sys_sendfile_test.cpp | 32 off_t offset = 2; local 34 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); 36 ASSERT_EQ(4, offset); 51 off64_t offset = 2; local 53 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); 55 ASSERT_EQ(4, offset);
|
/bionic/libc/kernel/uapi/drm/ |
H A D | sis_drm.h | 40 unsigned long offset; member in struct:__anon225 45 unsigned long offset, size; member in struct:__anon226 48 unsigned long offset, size; member in struct:__anon227
|
H A D | armada_drm.h | 36 __u64 offset; member in struct:drm_armada_gem_mmap 44 __u32 offset; member in struct:drm_armada_gem_pwrite
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/drm/ |
H A D | sis_drm.h | 40 unsigned long offset; member in struct:__anon1372 45 unsigned long offset, size; member in struct:__anon1373 48 unsigned long offset, size; member in struct:__anon1374
|
H A D | armada_drm.h | 36 __u64 offset; member in struct:drm_armada_gem_mmap 44 __u32 offset; member in struct:drm_armada_gem_pwrite
|
/bionic/tools/versioner/dependencies/common/kernel_uapi/drm/ |
H A D | sis_drm.h | 40 unsigned long offset; member in struct:__anon2642 45 unsigned long offset, size; member in struct:__anon2643 48 unsigned long offset, size; member in struct:__anon2644
|
H A D | armada_drm.h | 36 __u64 offset; member in struct:drm_armada_gem_mmap 44 __u32 offset; member in struct:drm_armada_gem_pwrite
|
/bionic/libc/malloc_debug/ |
H A D | MapData.h | 40 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len) argument 41 : start(start), end(end), offset(offset), name(name, name_len) {} 47 uintptr_t offset; member in struct:MapEntry
|
/bionic/libc/include/bits/fortify/ |
H A D | unistd.h | 87 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, off_t offset) 94 return __PREAD_PREFIX(real)(fd, buf, count, offset); 97 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); 101 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, off64_t offset) 108 return __pread64_real(fd, buf, count, offset); 111 return __pread64_chk(fd, buf, count, offset, bos); 117 ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, off_t offset) 124 return __PWRITE_PREFIX(real)(fd, buf, count, offset); 127 return __PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); 131 ssize_t pwrite64(int fd, const void* const __pass_object_size0 buf, size_t count, off64_t offset) 259 pread(int fd, void* buf, size_t count, off_t offset) argument 282 pread64(int fd, void* buf, size_t count, off64_t offset) argument 307 pwrite(int fd, const void* buf, size_t count, off_t offset) argument 330 pwrite64(int fd, const void* buf, size_t count, off64_t offset) argument [all...] |
/bionic/tools/versioner/current/bits/fortify/ |
H A D | unistd.h | 87 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, off_t offset) 94 return __PREAD_PREFIX(real)(fd, buf, count, offset); 97 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); 101 ssize_t pread64(int fd, void* const __pass_object_size0 buf, size_t count, off64_t offset) 108 return __pread64_real(fd, buf, count, offset); 111 return __pread64_chk(fd, buf, count, offset, bos); 117 ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, off_t offset) 124 return __PWRITE_PREFIX(real)(fd, buf, count, offset); 127 return __PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); 131 ssize_t pwrite64(int fd, const void* const __pass_object_size0 buf, size_t count, off64_t offset) 259 pread(int fd, void* buf, size_t count, off_t offset) argument 282 pread64(int fd, void* buf, size_t count, off64_t offset) argument 307 pwrite(int fd, const void* buf, size_t count, off_t offset) argument 330 pwrite64(int fd, const void* buf, size_t count, off64_t offset) argument [all...] |
/bionic/libc/kernel/uapi/linux/ |
H A D | bcache.h | 22 #define BITMASK(name,type,field,offset,size) static inline __u64 name(const type * k) \ 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) 32 #define PTR_FIELD(name,offset,size) static inline __u64 name(const struct bkey * k, unsigned i) \ 33 { return(k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(struct bkey * k, unsigned i, __u64 v) \ 34 { k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ 66 __u64 offset; member in struct:cache_sb [all...] |
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | bcache.h | 22 #define BITMASK(name,type,field,offset,size) static inline __u64 name(const type * k) \ 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) 32 #define PTR_FIELD(name,offset,size) static inline __u64 name(const struct bkey * k, unsigned i) \ 33 { return(k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(struct bkey * k, unsigned i, __u64 v) \ 34 { k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ 66 __u64 offset; member in struct:cache_sb [all...] |
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/ |
H A D | bcache.h | 22 #define BITMASK(name,type,field,offset,size) static inline __u64 name(const type * k) \ 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) 32 #define PTR_FIELD(name,offset,size) static inline __u64 name(const struct bkey * k, unsigned i) \ 33 { return(k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_ ##name(struct bkey * k, unsigned i, __u64 v) \ 34 { k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ 66 __u64 offset; member in struct:cache_sb [all...] |
/bionic/libc/system_properties/include/system_properties/ |
H A D | prop_info.h | 51 // must be room left over after the error message for the offset to the new longer property value 52 // and future expansion fields if needed. Note that this value cannot ever increase. The offset 65 uint32_t offset; member in struct:prop_info::__anon1218::__anon1219 77 // `this` is data_ + some offset and long_value is data_ + some other offset, we calculate the 78 // offset from `this` to long_value and store it as long_property.offset. 79 return reinterpret_cast<const char*>(this) + long_property.offset;
|
/bionic/libc/kernel/android/uapi/linux/usb/ |
H A D | f_mtp.h | 26 loff_t offset; member in struct:mtp_file_range
|