Searched refs:whence (Results 1 - 25 of 89) sorted by relevance

1234

/freebsd-current/lib/libc/tests/stdio/
H A Dopen_wmemstream_test.c156 #define SEEK_FAIL(offset, whence, error) do { \
158 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \
160 __STRING(offset), __STRING(whence), \
164 __STRING(offset), __STRING(whence), errno, \
168 #define SEEK_OK(offset, whence, result) do { \
169 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \
171 __STRING(offset), __STRING(whence), strerror(errno)); \
174 __STRING(offset), __STRING(whence), \
H A Dopen_memstream2_test.c156 #define SEEK_FAIL(offset, whence, error) do { \
158 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \
160 __STRING(offset), __STRING(whence), \
164 __STRING(offset), __STRING(whence), errno, \
168 #define SEEK_OK(offset, whence, result) do { \
169 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \
171 __STRING(offset), __STRING(whence), strerror(errno)); \
174 __STRING(offset), __STRING(whence), \
/freebsd-current/lib/libc/stdio/
H A Dstdio.c65 __sseek(void *cookie, fpos_t offset, int whence) argument
69 return (lseek(fp->_file, (off_t)offset, whence));
128 _sseek(FILE *fp, fpos_t offset, int whence) argument
135 ret = (*fp->_seek)(fp->_cookie, offset, whence);
146 if (offset != 0 || whence != SEEK_CUR) {
H A Dfseek.c50 fseek(FILE *fp, long offset, int whence) argument
60 ret = _fseeko(fp, (off_t)offset, whence, 1);
68 fseeko(FILE *fp, off_t offset, int whence) argument
78 ret = _fseeko(fp, offset, whence, 0);
90 _fseeko(FILE *fp, off_t offset, int whence, int ltest) argument
107 * Change any SEEK_CUR to SEEK_SET, and check `whence' argument.
108 * After this, whence is either SEEK_SET or SEEK_END.
110 switch (whence) {
138 whence = SEEK_SET;
184 if (whence
[all...]
H A Dfopencookie.c114 _fopencookie_seek(void *cookie, fpos_t offset, int whence) argument
120 switch (whence) {
143 res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence);
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) argument
217 switch (whence) {
H A Dopen_memstream.c110 memstream_seek(void *cookie, fpos_t pos, int whence) argument
121 switch (whence) {
159 whence, (intmax_t)old, (intmax_t)ms->offset);
/freebsd-current/lib/libsecureboot/
H A Dvectx.c287 * @param[in] whence
288 * We try to convert whence to ``SEEK_SET``.
294 vectx_lseek(struct vectx *ctx, off_t off, int whence) argument
301 return (lseek(ctx->vec_fd, off, whence));
304 * Convert whence to SEEK_SET
307 ("%s(%s, %ld, %d)\n", __func__, ctx->vec_path, (long)off, whence));
308 if (whence == SEEK_END && off <= 0) {
325 whence = SEEK_SET;
328 } else if (whence == SEEK_CUR) {
329 whence
[all...]
/freebsd-current/contrib/sendmail/libsm/
H A Dsyslogio.c121 ** offset -- the new offset position relative to 'whence'
122 ** whence -- flag indicating start of 'offset'
129 sm_syslogseek(fp, offset, whence)
132 int whence;
H A Dfseek.c68 ** offset -- seek offset based on 'whence'
69 ** whence -- indicates where seek is relative from.
77 sm_io_seek(fp, timeout, offset, whence)
81 int SM_NONVOLATILE whence;
129 ** Change any SM_IO_SEEK_CUR to SM_IO_SEEK_SET, and check `whence'
130 ** argument. After this, whence is either SM_IO_SEEK_SET or
134 switch (whence)
168 whence = SM_IO_SEEK_SET;
215 if (whence == SM_IO_SEEK_SET)
322 (*seekfn)(fp, (off_t) offset, whence)
[all...]
H A Dsmstdio.c193 ** offset -- new location based on 'whence'
194 ** whence -- indicates "base" for 'offset'
201 sm_stdioseek(fp, offset, whence)
204 int whence;
211 return fseek(s, offset, whence);
/freebsd-current/lib/libz/
H A Dzopen.c32 xgzseek(void *cookie, fpos_t offset, int whence) argument
34 return gzseek(cookie, (z_off_t)offset, whence);
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/
H A Dstdio.h51 isc_stdio_seek(FILE *f, long offset, int whence);
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dstore_fd.c56 fd_seek(krb5_storage * sp, off_t offset, int whence) argument
58 return lseek(FD(sp), offset, whence);
H A Dstore_mem.c72 mem_seek(krb5_storage *sp, off_t offset, int whence) argument
75 switch(whence){
/freebsd-current/contrib/ntp/libntp/lib/isc/unix/
H A Dstdio.c53 isc_stdio_seek(FILE *f, long offset, int whence) { argument
56 r = fseek(f, offset, whence);
/freebsd-current/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) argument
73 return host_syscall(SYS_llseek, fd, offset_high, offset_lo, (uintptr_t)result, whence);
76 (int64_t)((uint64_t)offset_high << 32 | (uint32_t)offset_lo), whence);
/freebsd-current/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) argument
187 switch (whence) {
/freebsd-current/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) argument
151 switch (whence) {
H A Darchive_read_open_fd.c178 file_seek(struct archive *a, void *client_data, int64_t request, int whence) argument
185 r = lseek(mine->fd, request, whence);
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dfs.h294 no_llseek(struct file *file, loff_t offset, int whence) argument
301 default_llseek(struct file *file, loff_t offset, int whence) argument
303 return (no_llseek(file, offset, whence));
307 generic_file_llseek(struct file *file, loff_t offset, int whence) argument
309 return (no_llseek(file, offset, whence));
313 noop_llseek(struct linux_file *file, loff_t offset, int whence) argument
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dzfs_file.h53 int zfs_file_seek(zfs_file_t *fp, loff_t *offp, int whence);
/freebsd-current/sys/contrib/zlib/
H A Dgzlib.c341 z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence) { argument
358 if (whence != SEEK_SET && whence != SEEK_CUR)
362 if (whence == SEEK_SET)
414 z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence) { argument
417 ret = gzseek64(file, (z_off64_t)offset, whence);
/freebsd-current/sys/contrib/zstd/zlibWrapper/
H A Dgzlib.c369 z_off64_t ZEXPORT gzseek64(file, offset, whence)
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)
449 int whence;
453 ret = gzseek64(file, (z_off64_t)offset, whence);
/freebsd-current/stand/userboot/
H A Duserboot.h115 int whence);

Completed in 260 milliseconds

1234