Searched refs:offset (Results 1 - 25 of 76) sorted by relevance

1234

/bionic/libc/bionic/
H A Dposix_fallocate.cpp33 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 Dposix_fadvise.cpp37 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 Dmmap.cpp35 // 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 Dlegacy_32_bit_support.cpp83 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));
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dgetenv.c34 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 Dsetenv.c35 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 Dsendfile.h37 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 Dsys_sendfile_test.cpp32 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);
H A Dstack_unwinding_test.cpp44 int offset = 0; local
51 offset = static_cast<int>(reinterpret_cast<char*>(ip) - reinterpret_cast<char*>(info.dli_saddr));
55 fprintf(stderr, " #%02d %p %s%+d (%s)\n", *count_ptr, ip, symbol, offset, info.dli_fname ? info.dli_fname : "??");
/bionic/libc/kernel/uapi/drm/
H A Dsis_drm.h41 unsigned long offset; member in struct:__anon154
47 unsigned long offset, size; member in struct:__anon155
51 unsigned long offset, size; member in struct:__anon156
H A Darmada_drm.h36 uint64_t offset; member in struct:drm_armada_gem_mmap
46 uint32_t offset; member in struct:drm_armada_gem_pwrite
H A Dtegra_drm.h34 __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::__anon157
99 __u32 offset; member in struct:drm_tegra_reloc::__anon158
107 __u32 offset; member in struct:drm_tegra_waitchk
H A Dnouveau_drm.h39 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
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dftell.c40 * 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 Dfseek.c45 * 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 Dstdio.c41 * 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 Dbcache.h22 #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 Dashmem.h31 __u32 offset; member in struct:ashmem_pin
H A Datm_zatm.h32 int offset,next_off; member in struct:zatm_pool_info
H A Dbfs_fs.h75 #define BFS_OFF2INO(offset) ((((offset) - BFS_BSIZE) / sizeof(struct bfs_inode)) + BFS_ROOT_INO)
/bionic/libc/kernel/uapi/linux/usb/
H A Df_mtp.h26 loff_t offset; member in struct:mtp_file_range
/bionic/libc/arch-arm/cortex-a15/bionic/
H A 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]
H A Dmemcpy_base.S221 .irp offset, #0, #8, #16, #24, #32
222 ldrd r4, r5, [r1, \offset]
223 strd r4, r5, [r0, \offset]
252 .irp offset, #0, #8, #16, #24
253 ldrd r4, r5, [r1, \offset]
254 strd r4, r5, [r0, \offset]
264 .irp offset, #0, #8
265 ldrd r4, r5, [r1, \offset]
266 strd r4, r5, [r0, \offset]
/bionic/libc/arch-x86/bionic/
H A D__restore.S84 #define cfi_def_cfa(offset) \
88 .sleb128 offset; \
92 #define cfi_offset(reg_number,offset) \
97 .sleb128 offset; \
/bionic/libc/arch-x86_64/bionic/
H A D__restore_rt.S102 #define cfi_def_cfa(offset) \
106 .sleb128 offset; \
110 #define cfi_offset(reg_number,offset) \
115 .sleb128 offset; \

Completed in 430 milliseconds

1234