| /freebsd-13.1/lib/libc/stdio/ |
| H A D | fseek.c | 56 fseek(FILE *fp, long offset, int whence) in fseek() argument 66 ret = _fseeko(fp, (off_t)offset, whence, 1); in fseek() 74 fseeko(FILE *fp, off_t offset, int whence) in fseeko() argument 84 ret = _fseeko(fp, offset, whence, 0); in fseeko() 96 _fseeko(FILE *fp, off_t offset, int whence, int ltest) in _fseeko() argument 116 switch (whence) { in _fseeko() 144 whence = SEEK_SET; in _fseeko() 190 if (whence == SEEK_SET) in _fseeko() 287 (ret = _sseek(fp, (fpos_t)offset, whence)) == POS_ERR) in _fseeko()
|
| H A D | stdio.c | 71 __sseek(void *cookie, fpos_t offset, int whence) in __sseek() argument 75 return (lseek(fp->_file, (off_t)offset, whence)); in __sseek() 134 _sseek(FILE *fp, fpos_t offset, int whence) in _sseek() argument 141 ret = (*fp->_seek)(fp->_cookie, offset, whence); in _sseek() 152 if (offset != 0 || whence != SEEK_CUR) { in _sseek()
|
| H A D | fopencookie.c | 117 _fopencookie_seek(void *cookie, fpos_t offset, int whence) in _fopencookie_seek() argument 123 switch (whence) { in _fopencookie_seek() 146 res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence); in _fopencookie_seek()
|
| H A D | open_memstream.c | 113 memstream_seek(void *cookie, fpos_t pos, int whence) in memstream_seek() argument 124 switch (whence) { in memstream_seek() 162 whence, (intmax_t)old, (intmax_t)ms->offset); in memstream_seek()
|
| H A D | fmemopen.c | 51 static fpos_t fmemopen_seek(void *cookie, fpos_t offset, int whence); 215 fmemopen_seek(void *cookie, fpos_t offset, int whence) in fmemopen_seek() argument 220 switch (whence) { in fmemopen_seek()
|
| H A D | open_wmemstream.c | 175 wmemstream_seek(void *cookie, fpos_t pos, int whence) in wmemstream_seek() argument 182 switch (whence) { in wmemstream_seek() 223 (intmax_t)pos, whence, (intmax_t)old, (intmax_t)ms->offset); in wmemstream_seek()
|
| /freebsd-13.1/lib/libc/tests/stdio/ |
| H A D | open_wmemstream_test.c | 159 #define SEEK_FAIL(offset, whence, error) do { \ in ATF_TC_BODY() argument 161 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \ in ATF_TC_BODY() 163 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY() 167 __STRING(offset), __STRING(whence), errno, \ in ATF_TC_BODY() 171 #define SEEK_OK(offset, whence, result) do { \ in ATF_TC_BODY() argument 172 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \ in ATF_TC_BODY() 174 __STRING(offset), __STRING(whence), strerror(errno)); \ in ATF_TC_BODY() 177 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY()
|
| H A D | open_memstream2_test.c | 159 #define SEEK_FAIL(offset, whence, error) do { \ in ATF_TC_BODY() argument 161 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \ in ATF_TC_BODY() 163 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY() 167 __STRING(offset), __STRING(whence), errno, \ in ATF_TC_BODY() 171 #define SEEK_OK(offset, whence, result) do { \ in ATF_TC_BODY() argument 172 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \ in ATF_TC_BODY() 174 __STRING(offset), __STRING(whence), strerror(errno)); \ in ATF_TC_BODY() 177 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY()
|
| /freebsd-13.1/lib/libsecureboot/ |
| H A D | vectx.c | 277 vectx_lseek(struct vectx *ctx, off_t off, int whence) in vectx_lseek() argument 284 return (lseek(ctx->vec_fd, off, whence)); in vectx_lseek() 289 if (whence == SEEK_END && off <= 0) { in vectx_lseek() 290 whence = SEEK_SET; in vectx_lseek() 292 } else if (whence == SEEK_CUR) { in vectx_lseek() 293 whence = SEEK_SET; in vectx_lseek() 296 if (whence != SEEK_SET || in vectx_lseek() 299 __func__, whence, (long long)ctx->vec_off, (long long)off); in vectx_lseek() 304 ctx->vec_off = lseek(ctx->vec_fd, off, whence); in vectx_lseek()
|
| /freebsd-13.1/contrib/sendmail/libsm/ |
| H A D | fseek.c | 77 sm_io_seek(fp, timeout, offset, whence) in sm_io_seek() argument 81 int SM_NONVOLATILE whence; 134 switch (whence) 168 whence = SM_IO_SEEK_SET; 215 if (whence == SM_IO_SEEK_SET) 322 (*seekfn)(fp, (off_t) offset, whence) == POS_ERR)
|
| H A D | smstdio.c | 201 sm_stdioseek(fp, offset, whence) in sm_stdioseek() argument 204 int whence; 211 return fseek(s, offset, whence);
|
| H A D | syslogio.c | 129 sm_syslogseek(fp, offset, whence) in sm_syslogseek() argument 132 int whence;
|
| H A D | stdio.c | 179 sm_stdseek(fp, offset, whence) in sm_stdseek() argument 182 int whence; 186 ret = lseek(fp->f_file, (off_t) offset, whence);
|
| H A D | strio.c | 164 sm_strseek(fp, offset, whence) in sm_strseek() argument 167 int whence; 173 switch (whence)
|
| /freebsd-13.1/sys/compat/cloudabi/ |
| H A D | cloudabi_fd.c | 172 int whence; in cloudabi_sys_fd_seek() local 174 switch (uap->whence) { in cloudabi_sys_fd_seek() 176 whence = SEEK_CUR; in cloudabi_sys_fd_seek() 179 whence = SEEK_END; in cloudabi_sys_fd_seek() 182 whence = SEEK_SET; in cloudabi_sys_fd_seek() 188 return (kern_lseek(td, uap->fd, uap->offset, whence)); in cloudabi_sys_fd_seek()
|
| /freebsd-13.1/sys/contrib/zlib/ |
| H A D | gzlib.c | 372 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument 375 int whence; 393 if (whence != SEEK_SET && whence != SEEK_CUR) 397 if (whence == SEEK_SET) 449 z_off_t ZEXPORT gzseek(file, offset, whence) in gzseek() argument 452 int whence; 456 ret = gzseek64(file, (z_off64_t)offset, whence);
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_read_open_memory.c | 52 static int64_t memory_read_seek(struct archive *, void *, int64_t offset, int whence); 147 memory_read_seek(struct archive *a, void *client_data, int64_t offset, int whence) in memory_read_seek() argument 152 switch (whence) { in memory_read_seek()
|
| /freebsd-13.1/sys/contrib/zstd/zlibWrapper/ |
| H A D | gzlib.c | 369 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument 372 int whence; 390 if (whence != SEEK_SET && whence != SEEK_CUR) 394 if (whence == SEEK_SET) 446 z_off_t ZEXPORT gzseek(file, offset, whence) in gzseek() argument 449 int whence; 453 ret = gzseek64(file, (z_off64_t)offset, whence);
|
| /freebsd-13.1/stand/powerpc/kboot/ |
| H A D | host_syscall.h | 35 ssize_t host_seek(int fd, int64_t offset, int whence); 37 ssize_t host_llseek(int fd, int32_t offset_high, int32_t offset_lo, uint64_t *result, int whence);
|
| /freebsd-13.1/lib/libz/ |
| H A D | zopen.c | 34 xgzseek(void *cookie, fpos_t offset, int whence) in xgzseek() argument 36 return gzseek(cookie, (z_off_t)offset, whence); in xgzseek()
|
| /freebsd-13.1/tests/sys/fs/fusefs/ |
| H A D | lseek.cc | 217 in.body.lseek.whence == SEEK_DATA); in TEST_F() 250 in.body.lseek.whence == SEEK_DATA); in TEST_F() 285 in.body.lseek.whence == SEEK_HOLE); in TEST_F() 318 in.body.lseek.whence == SEEK_HOLE); in TEST_F() 353 in.body.lseek.whence == SEEK_HOLE); in TEST_F()
|
| /freebsd-13.1/contrib/libarchive/libarchive/test/ |
| H A D | read_open_memory.c | 53 static int64_t memory_read_seek(struct archive *, void *, int64_t request, int whence); 183 memory_read_seek(struct archive *a, void *client_data, int64_t offset, int whence) in memory_read_seek() argument 188 switch (whence) { in memory_read_seek()
|
| /freebsd-13.1/crypto/heimdal/lib/krb5/ |
| H A D | store_fd.c | 56 fd_seek(krb5_storage * sp, off_t offset, int whence) in fd_seek() argument 58 return lseek(FD(sp), offset, whence); in fd_seek()
|
| /freebsd-13.1/contrib/ntp/lib/isc/win32/ |
| H A D | stdio.c | 52 isc_stdio_seek(FILE *f, long offset, int whence) { in isc_stdio_seek() argument 55 r = fseek(f, offset, whence); in isc_stdio_seek()
|
| /freebsd-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | stdio.c | 53 isc_stdio_seek(FILE *f, long offset, int whence) { in isc_stdio_seek() argument 56 r = fseek(f, offset, whence); in isc_stdio_seek()
|