Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/stdio/
Dfmemopen.cpp92 static fpos_t fmemopen_seek(void* cookie, fpos_t offset, int whence) { in fmemopen_seek() argument
95 if (whence == SEEK_SET && (offset >= 0 && static_cast<size_t>(offset) <= ck->capacity)) { in fmemopen_seek()
97 } else if (whence == SEEK_CUR && (ck->offset + offset <= ck->capacity)) { in fmemopen_seek()
99 } else if (whence == SEEK_END && (offset <= 0 && static_cast<size_t>(-offset) <= ck->size)) { in fmemopen_seek()
Dstdio.cpp536 fpos_t __sseek(void* cookie, fpos_t offset, int whence) { in __sseek() argument
538 return TEMP_FAILURE_RETRY(lseek(fp->_file, offset, whence)); in __sseek()
541 off64_t __sseek64(void* cookie, off64_t offset, int whence) { in __sseek64() argument
543 return TEMP_FAILURE_RETRY(lseek64(fp->_file, offset, whence)); in __sseek64()
551 static off64_t __seek_unlocked(FILE* fp, off64_t offset, int whence) { in __seek_unlocked() argument
554 return (*_EXT(fp)->_seek64)(fp->_cookie, offset, whence); in __seek_unlocked()
556 off64_t result = (*fp->_seek)(fp->_cookie, offset, whence); in __seek_unlocked()
592 int __fseeko64(FILE* fp, off64_t offset, int whence, int off_t_bits) { in __fseeko64() argument
597 if (whence == SEEK_CUR) { in __fseeko64()
603 whence = SEEK_SET; in __fseeko64()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c75 memstream_seek(void *v, fpos_t off, int whence) in memstream_seek() argument
80 switch (whence) { in memstream_seek()
Dopen_wmemstream.c79 wmemstream_seek(void *v, fpos_t off, int whence) in wmemstream_seek() argument
84 switch (whence) { in wmemstream_seek()
/bionic/libc/bionic/
Dlegacy_32_bit_support.cpp56 off64_t lseek64(int fd, off64_t off, int whence) { in lseek64() argument
60 if (__llseek(fd, off_hi, off_lo, &result, whence) < 0) { in lseek64()
/bionic/libc/kernel/uapi/linux/
Dfuse.h582 uint32_t whence; member