Home
last modified time | relevance | path

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

1234

/freebsd/lib/libc/stdio/
H A Dfseek.c50 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 Dstdio.c65 __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 Dfopencookie.c114 _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 Dopen_memstream.c110 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 Dfmemopen.c48 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 Dopen_wmemstream.c172 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 Dopen_memstream2_test.c156 #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 Dopen_wmemstream_test.c156 #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 Dvectx.c294 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 Dfseek.c77 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 Dsmstdio.c201 sm_stdioseek(fp, offset, whence) in sm_stdioseek() argument
204 int whence;
211 return fseek(s, offset, whence);
H A Dsyslogio.c129 sm_syslogseek(fp, offset, whence) in sm_syslogseek() argument
132 int whence;
H A Dstdio.c179 sm_stdseek(fp, offset, whence) in sm_stdseek() argument
182 int whence;
186 ret = lseek(fp->f_file, (off_t) offset, whence);
H A Dstrio.c164 sm_strseek(fp, offset, whence) in sm_strseek() argument
167 int whence;
173 switch (whence)
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dfs.h294 no_llseek(struct file *file, loff_t offset, int whence) in no_llseek() argument
301 default_llseek(struct file *file, loff_t offset, int whence) in default_llseek() argument
303 return (no_llseek(file, offset, whence)); in default_llseek()
307 generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek() argument
309 return (no_llseek(file, offset, whence)); in generic_file_llseek()
313 noop_llseek(struct linux_file *file, loff_t offset, int whence) in noop_llseek() argument
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_open_memory.c51 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/sys/contrib/zstd/zlibWrapper/
H A Dgzlib.c369 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/stand/kboot/libkboot/
H A Dhost_syscalls.c70 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/lib/libz/
H A Dzopen.c32 xgzseek(void *cookie, fpos_t offset, int whence) in xgzseek() argument
34 return gzseek(cookie, (z_off_t)offset, whence); in xgzseek()
/freebsd/sys/contrib/zlib/
H A Dgzlib.c341 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/tests/sys/fs/fusefs/
H A Dlseek.cc225 in.body.lseek.whence == SEEK_DATA); in TEST_F()
260 in.body.lseek.whence == SEEK_DATA); in TEST_F()
297 in.body.lseek.whence == SEEK_HOLE); in TEST_F()
332 in.body.lseek.whence == SEEK_HOLE); in TEST_F()
369 in.body.lseek.whence == SEEK_HOLE); in TEST_F()
/freebsd/contrib/libarchive/libarchive/test/
H A Dread_open_memory.c52 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) in memory_read_seek() argument
187 switch (whence) { in memory_read_seek()
/freebsd/crypto/heimdal/lib/krb5/
H A Dstore_fd.c56 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 Dstdio.c53 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 Dhwasan_report.cpp243 const char *whence; in PrintStackAllocations() local
247 whence = "inside"; in PrintStackAllocations()
251 whence = "after"; in PrintStackAllocations()
255 whence = "before"; in PrintStackAllocations()
270 untagged_addr, offset, whence, local_end - local_beg, local.name, in PrintStackAllocations()
685 const char *whence; in PrintHeapOrGlobalCandidate() local
689 whence = "inside"; in PrintHeapOrGlobalCandidate()
692 whence = "after"; in PrintHeapOrGlobalCandidate()
695 whence = "before"; in PrintHeapOrGlobalCandidate()
702 untagged_addr, offset, whence, in PrintHeapOrGlobalCandidate()

1234