fpos_t
fpos_t (* _Nullable _seek)(void *, fpos_t, int);
fpos_t _offset; /* current lseek offset */
int fgetpos(FILE * __restrict, fpos_t * __restrict);
int fsetpos(FILE *, const fpos_t *);
fpos_t (* _Nullable)(void *, fpos_t, int),
fgetpos(FILE * __restrict fp, fpos_t * __restrict pos)
if ((*pos = ftello(fp)) == (fpos_t)-1)
static fpos_t
fmemopen_seek(void *cookie, fpos_t offset, int whence)
static fpos_t fmemopen_seek(void *cookie, fpos_t offset, int whence);
(void)_sseek(fp, (fpos_t)0, SEEK_END);
static fpos_t
_fopencookie_seek(void *cookie, fpos_t offset, int whence)
return ((fpos_t)off64);
static fpos_t _fopencookie_seek(void *, fpos_t, int);
(void) _sseek(fp, (fpos_t)0, SEEK_SET);
(void) _sseek(fp, (fpos_t)0, SEEK_END);
(ret = _sseek(fp, (fpos_t)offset, whence)) == POS_ERR)
#define POS_ERR (-(fpos_t)1)
fpos_t (*seekfn)(void *, fpos_t, int);
fpos_t target, curoff, ret;
fsetpos(FILE *iop, const fpos_t *pos)
pos = _sseek(fp, (fpos_t)0, SEEK_CUR);
fpos_t rv;
_ftello(FILE *fp, fpos_t *offset)
fpos_t pos;
pos = _sseek(fp, (fpos_t)0, SEEK_END);
fpos_t (*seekfn)(void *, fpos_t, int),
extern fpos_t _sseek(FILE *, fpos_t, int);
extern int _ftello(FILE *, fpos_t *);
extern fpos_t __sseek(void *, fpos_t, int);
static fpos_t
memstream_seek(void *cookie, fpos_t pos, int whence)
fpos_t old;
fpos_t offset;
memstream_grow(struct memstream *ms, fpos_t newoff)
static fpos_t
wmemstream_seek(void *cookie, fpos_t pos, int whence)
fpos_t old;
fpos_t offset;
wmemstream_grow(struct wmemstream *ms, fpos_t newoff)
if (_sseek(fp, (fpos_t)0, SEEK_END) == -1 &&
fpos_t
_sseek(FILE *fp, fpos_t offset, int whence)
fpos_t ret;
fpos_t
__sseek(void *cookie, fpos_t offset, int whence)
static fpos_t ftp_seekfn(void *, fpos_t, int);
static fpos_t
ftp_seekfn(void *v, fpos_t pos __unused, int whence __unused)
static fpos_t
xgzseek(void *cookie, fpos_t offset, int whence)