/freebsd/lib/libc/stdio/ |
H A D | fseek.c | 50 fseek(FILE *fp, long offset, int whence) in fseek() argument 60 ret = _fseeko(fp, (off_t)offset, whence, 1); in fseek() 68 fseeko(FILE *fp, off_t offset, int whence) in fseeko() argument 78 ret = _fseeko(fp, offset, whence, 0); in fseeko() 90 _fseeko(FILE *fp, off_t offset, int whence, int ltest) in _fseeko() argument 110 switch (whence) { in _fseeko() 138 whence = SEEK_SET; in _fseeko() 184 if (whence == SEEK_SET) in _fseeko() 281 (ret = _sseek(fp, (fpos_t)offset, whence)) == POS_ERR) in _fseeko()
|
H A D | stdio.c | 65 __sseek(void *cookie, fpos_t offset, int whence) in __sseek() argument 69 return (lseek(fp->_file, (off_t)offset, whence)); in __sseek() 128 _sseek(FILE *fp, fpos_t offset, int whence) in _sseek() argument 135 ret = (*fp->_seek)(fp->_cookie, offset, whence); in _sseek() 146 if (offset != 0 || whence != SEEK_CUR) { in _sseek()
|
H A D | fopencookie.c | 114 _fopencookie_seek(void *cookie, fpos_t offset, int whence) in _fopencookie_seek() argument 120 switch (whence) { in _fopencookie_seek() 143 res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence); in _fopencookie_seek()
|
H A D | open_memstream.c | 110 memstream_seek(void *cookie, fpos_t pos, int whence) in memstream_seek() argument 121 switch (whence) { in memstream_seek() 159 whence, (intmax_t)old, (intmax_t)ms->offset); in memstream_seek()
|
H A D | fmemopen.c | 48 static fpos_t fmemopen_seek(void *cookie, fpos_t offset, int whence); 212 fmemopen_seek(void *cookie, fpos_t offset, int whence) in fmemopen_seek() argument 217 switch (whence) { in fmemopen_seek()
|
H A D | open_wmemstream.c | 172 wmemstream_seek(void *cookie, fpos_t pos, int whence) in wmemstream_seek() argument 179 switch (whence) { in wmemstream_seek() 220 (intmax_t)pos, whence, (intmax_t)old, (intmax_t)ms->offset); in wmemstream_seek()
|
/freebsd/lib/libc/tests/stdio/ |
H A D | open_memstream2_test.c | 156 #define SEEK_FAIL(offset, whence, error) do { \ in ATF_TC_BODY() argument 158 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \ in ATF_TC_BODY() 160 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY() 164 __STRING(offset), __STRING(whence), errno, \ in ATF_TC_BODY() 168 #define SEEK_OK(offset, whence, result) do { \ in ATF_TC_BODY() argument 169 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \ in ATF_TC_BODY() 171 __STRING(offset), __STRING(whence), strerror(errno)); \ in ATF_TC_BODY() 174 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY()
|
H A D | open_wmemstream_test.c | 156 #define SEEK_FAIL(offset, whence, error) do { \ in ATF_TC_BODY() argument 158 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \ in ATF_TC_BODY() 160 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY() 164 __STRING(offset), __STRING(whence), errno, \ in ATF_TC_BODY() 168 #define SEEK_OK(offset, whence, result) do { \ in ATF_TC_BODY() argument 169 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \ in ATF_TC_BODY() 171 __STRING(offset), __STRING(whence), strerror(errno)); \ in ATF_TC_BODY() 174 __STRING(offset), __STRING(whence), \ in ATF_TC_BODY()
|
/freebsd/lib/libsecureboot/ |
H A D | vectx.c | 294 vectx_lseek(struct vectx *ctx, off_t off, int whence) in vectx_lseek() argument 301 return (lseek(ctx->vec_fd, off, whence)); in vectx_lseek() 307 ("%s(%s, %ld, %d)\n", __func__, ctx->vec_path, (long)off, whence)); in vectx_lseek() 308 if (whence == SEEK_END && off <= 0) { in vectx_lseek() 325 whence = SEEK_SET; in vectx_lseek() 328 } else if (whence == SEEK_CUR) { in vectx_lseek() 329 whence = SEEK_SET; in vectx_lseek() 332 if (whence != SEEK_SET || in vectx_lseek() 335 __func__, whence, (long)ctx->vec_off, (long)off); in vectx_lseek() 350 ctx->vec_off = lseek(ctx->vec_fd, off, whence); in vectx_lseek()
|
/freebsd/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/sys/compat/linuxkpi/common/include/linux/ |
H A D | fs.h | 300 no_llseek(struct file *file, loff_t offset, int whence) in no_llseek() argument 307 default_llseek(struct file *file, loff_t offset, int whence) in default_llseek() argument 309 return (no_llseek(file, offset, whence)); in default_llseek() 313 generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument 315 return (no_llseek(file, offset, whence)); in generic_file_llseek() 319 noop_llseek(struct linux_file *file, loff_t offset, int whence) in noop_llseek() argument
|
/freebsd/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/contrib/libarchive/libarchive/ |
H A D | archive_read_open_memory.c | 51 static int64_t memory_read_seek(struct archive *, void *, int64_t offset, int whence); 146 memory_read_seek(struct archive *a, void *client_data, int64_t offset, int whence) in memory_read_seek() argument 151 switch (whence) { in memory_read_seek()
|
/freebsd/stand/kboot/libkboot/ |
H A D | host_syscalls.c | 70 host_llseek(int fd, int32_t offset_high, int32_t offset_lo, uint64_t *result, int whence) in host_llseek() argument 73 return host_syscall(SYS_llseek, fd, offset_high, offset_lo, (uintptr_t)result, whence); in host_llseek() 76 (int64_t)((uint64_t)offset_high << 32 | (uint32_t)offset_lo), whence); in host_llseek()
|
/freebsd/sys/contrib/zlib/ |
H A D | gzlib.c | 341 z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence) { in gzseek64() argument 358 if (whence != SEEK_SET && whence != SEEK_CUR) in gzseek64() 362 if (whence == SEEK_SET) in gzseek64() 414 z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence) { in gzseek() argument 417 ret = gzseek64(file, (z_off64_t)offset, whence); in gzseek()
|
/freebsd/lib/libz/ |
H A D | zopen.c | 32 xgzseek(void *cookie, fpos_t offset, int whence) in xgzseek() argument 34 return gzseek(cookie, (z_off_t)offset, whence); in xgzseek()
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | read_open_memory.c | 52 static int64_t memory_read_seek(struct archive *, void *, int64_t request, int whence); 182 memory_read_seek(struct archive *a, void *client_data, int64_t offset, int whence) 187 switch (whence) { in memory_read_seek() 183 memory_read_seek(struct archive * a,void * client_data,int64_t offset,int whence) memory_read_seek() argument
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | lseek.cc | 301 in.body.lseek.whence == SEEK_DATA); in TEST_F() 361 in.body.lseek.whence == SEEK_DATA); in TEST_F() 396 in.body.lseek.whence == SEEK_DATA); in TEST_F() 434 in.body.lseek.whence == SEEK_HOLE); in TEST_F() 470 in.body.lseek.whence == SEEK_HOLE); in TEST_F() 508 in.body.lseek.whence == SEEK_HOLE); in TEST_F()
|
/freebsd/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/contrib/ntp/libntp/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()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_report.cpp | 250 const char *whence; in PrintStackAllocations() local 261 whence = "inside"; in PrintStackAllocations() 271 whence = "after"; in PrintStackAllocations() 279 whence = "before"; in PrintStackAllocations() 309 untagged_addr, offset, whence, local.size, local.name, best_beg, in PrintStackAllocations() 723 const char *whence; in PrintHeapOrGlobalCandidate() local 727 whence = "inside"; in PrintHeapOrGlobalCandidate() 730 whence = "after"; in PrintHeapOrGlobalCandidate() 733 whence = "before"; in PrintHeapOrGlobalCandidate() 740 untagged_addr, offset, whence, in PrintHeapOrGlobalCandidate()
|