Searched defs:offset (Results 1 - 25 of 65) sorted by relevance

123

/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/bionic/
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 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 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));
H A Ddebug_stacktrace.cpp149 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/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);
/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/kernel/uapi/linux/usb/
H A Df_mtp.h26 loff_t offset; member in struct:mtp_file_range
/bionic/libc/kernel/uapi/drm/
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 Dsis_drm.h41 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 Domap_drm.h79 uint64_t offset; member in struct:drm_omap_gem_info
H A Dqxl_drm.h42 uint64_t offset; member in struct:drm_qxl_map
H A Dmsm_drm.h60 uint64_t offset; member in struct:drm_msm_gem_info
/bionic/libc/kernel/uapi/linux/
H A Dsuspend_ioctls.h24 __kernel_loff_t offset; member in struct:resume_swap_area
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 Dcramfs_fs.h37 __u32 namelen:CRAMFS_NAMELEN_WIDTH, offset:CRAMFS_OFFSET_WIDTH; member in struct:cramfs_inode
H A Duvcvideo.h55 __u8 offset; member in struct:uvc_xu_control_mapping
H A Dif_arcnet.h80 offset[2]; member in struct:arc_hardware
/bionic/libc/kernel/uapi/xen/
H A Dgntdev.h46 uint64_t offset; member in struct:ioctl_gntdev_get_offset_for_vaddr
/bionic/linker/
H A Dlinker_allocator.cpp71 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; local
73 if (offset % block_size_ != 0) {

Completed in 356 milliseconds

123