/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 | mmap.cpp | 35 // mmap2(2) is like mmap(2), but the offset is in 4096-byte blocks, not bytes. 42 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { argument 43 if (offset < 0 || (offset & ((1UL << MMAP2_SHIFT)-1)) != 0) { 49 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); 62 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { argument 63 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset));
|
H A D | legacy_32_bit_support.cpp | 83 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { argument 84 return pread64(fd, buf, byte_count, static_cast<off64_t>(offset)); 88 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { argument 89 return pwrite64(fd, buf, byte_count, static_cast<off64_t>(offset)); 93 int fallocate(int fd, int mode, off_t offset, off_t length) { argument 94 return fallocate64(fd, mode, static_cast<off64_t>(offset), static_cast<off64_t>(length));
|
H A D | debug_stacktrace.cpp | 149 uintptr_t offset = 0; local 154 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); 158 uintptr_t rel_pc = offset; 171 i, rel_pc, soname, best_name, frames[i] - 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 | 35 char *__findenv(const char *name, int len, int *offset); 50 int offset = 0; local 59 if (__findenv(str, (int)(cp - str), &offset) != NULL) { 60 environ[offset++] = str; 62 while (__findenv(str, (int)(cp - str), &offset)) { 63 for (P = &environ[offset];; ++P) 95 int l_value, offset = 0; local 109 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { 110 int tmpoff = offset + 1; 138 offset 160 int offset = 0; local [all...] |
/bionic/libc/include/sys/ |
H A D | sendfile.h | 37 extern ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count); 38 extern ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count);
|
/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 | 41 unsigned long offset; member in struct:__anon155 47 unsigned long offset, size; member in struct:__anon156 51 unsigned long offset, size; member in struct:__anon157
|
H A D | armada_drm.h | 36 uint64_t offset; member in struct:drm_armada_gem_mmap 46 uint32_t offset; member in struct:drm_armada_gem_pwrite
|
H A D | tegra_drm.h | 34 __u32 offset; member in struct:drm_tegra_gem_mmap 85 __u32 offset; member in struct:drm_tegra_cmdbuf 94 __u32 offset; member in struct:drm_tegra_reloc::__anon158 99 __u32 offset; member in struct:drm_tegra_reloc::__anon159 107 __u32 offset; member in struct:drm_tegra_waitchk
|
H A D | nouveau_drm.h | 39 uint64_t offset; member in struct:drm_nouveau_gem_info 56 uint64_t offset; member in struct:drm_nouveau_gem_pushbuf_bo_presumed 90 uint64_t offset; member in struct:drm_nouveau_gem_pushbuf_push
|
H A D | via_drm.h | 97 __u32 offset; member in struct:__anon160 102 __u32 offset; member in struct:__anon161 112 unsigned long offset; member in struct:__anon162 146 unsigned long offset; member in struct:_drm_via_dma_init
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | ftell.c | 40 * ftello: return current offset. 54 * Find offset of underlying I/O object, then 58 __sflush(fp); /* may adjust seek offset on append stream */ 90 off_t offset = ftello(fp); local 91 if (offset > LONG_MAX) { 95 return ((long)offset);
|
H A D | fseek.c | 45 * Seek the given file to the given offset. 49 fseeko(FILE *fp, off_t offset, int whence) argument 78 * In order to seek relative to the current stream offset, 79 * we have to first find the current stream offset a la 82 __sflush(fp); /* may adjust seek offset on append stream */ 99 offset += curoff; 144 target = offset; 148 target = st.st_size + offset; 167 * offset backwards by this count so that it represents the 168 * file offset fo 248 fseek(FILE *fp, long offset, int whence) argument [all...] |
H A D | stdio.c | 41 * These maintain the `known seek offset' for seek optimisation. 50 /* if the read succeeded, update the current offset */ 70 __sseek(void *cookie, fpos_t offset, int whence) argument 75 ret = lseek(fp->_file, (off_t)offset, whence);
|
/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) { return (k->field >> offset) & ~(~0ULL << size); } static inline void SET_##name(type *k, __u64 v) { k->field &= ~(~(~0ULL << size) << offset); k->field |= (v & ~(~0ULL << size)) << offset; } 30 #define KEY_FIELD(name, field, offset, size) BITMASK(name, struct bkey, field, offset, size) 31 #define PTR_FIELD(name, offset, size) static inline __u64 name(const struct bkey *k, unsigned i) { return (k->ptr[i] >> offset) & ~(~0ULL << size); } static inline void SET_##name(struct bkey *k, unsigned i, __u64 v) { k->ptr[i] &= ~(~(~0ULL << size) << offset); k->ptr[i] |= (v & ~(~0ULL << size)) << offset; } 67 __u64 offset; member in struct:cache_sb [all...] |
H A D | ashmem.h | 31 __u32 offset; member in struct:ashmem_pin
|
H A D | atm_zatm.h | 32 int offset,next_off; member in struct:zatm_pool_info
|
H A D | bfs_fs.h | 75 #define BFS_OFF2INO(offset) ((((offset) - BFS_BSIZE) / sizeof(struct bfs_inode)) + BFS_ROOT_INO)
|
H A D | cramfs_fs.h | 37 __u32 namelen:CRAMFS_NAMELEN_WIDTH, offset:CRAMFS_OFFSET_WIDTH; member in struct:cramfs_inode
|
/bionic/libc/kernel/uapi/linux/usb/ |
H A D | f_mtp.h | 26 loff_t offset; member in struct:mtp_file_range
|
/bionic/libc/arch-arm/cortex-a15/bionic/ |
H A D | memset.S | 106 .irp offset, #0, #8, #16, #24, #32, #40, #48, #56 107 strd r0, r1, [r3, \offset] 120 .irp offset, #0, #8, #16, #24 121 strd r0, r1, [r3, \offset] 128 .irp offset, #0, #8 129 strd r0, r1, [r3, \offset]
|
H A D | memcpy_base.S | 226 .irp offset, #0, #8, #16, #24, #32 227 ldrd r4, r5, [r1, \offset] 228 strd r4, r5, [r0, \offset] 257 .irp offset, #0, #8, #16, #24 258 ldrd r4, r5, [r1, \offset] 259 strd r4, r5, [r0, \offset] 269 .irp offset, #0, #8 270 ldrd r4, r5, [r1, \offset] 271 strd r4, r5, [r0, \offset]
|