/openbsd/lib/libc/stdio/ |
H A D | fseek.c | 49 fseeko(FILE *fp, off_t offset, int whence) in fseeko() argument 74 switch (whence) { in fseeko() 100 whence = SEEK_SET; in fseeko() 143 if (whence == SEEK_SET) in fseeko() 232 (*seekfn)(fp->_cookie, (fpos_t)offset, whence) == POS_ERR) { in fseeko() 249 fseek(FILE *fp, long offset, int whence) in fseek() argument 251 return (fseeko(fp, offset, whence)); in fseek()
|
H A D | stdio.c | 69 __sseek(void *cookie, fpos_t offset, int whence) in __sseek() argument 74 ret = lseek(fp->_file, offset, whence); in __sseek()
|
H A D | open_memstream.c | 75 memstream_seek(void *v, fpos_t off, int whence) in memstream_seek() argument 80 switch (whence) { in memstream_seek()
|
H A D | open_wmemstream.c | 79 wmemstream_seek(void *v, fpos_t off, int whence) in wmemstream_seek() argument 84 switch (whence) { in wmemstream_seek()
|
H A D | fmemopen.c | 75 fmemopen_seek(void *v, fpos_t off, int whence) in fmemopen_seek() argument 80 switch (whence) { in fmemopen_seek()
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test/Builder/IO/ |
H A D | Scalar.pm | 455 my ($self, $pos, $whence) = @_; 459 if ($whence == 0) { *$self->{Pos} = $pos } ### SEEK_SET 460 elsif ($whence == 1) { *$self->{Pos} += $pos } ### SEEK_CUR 461 elsif ($whence == 2) { *$self->{Pos} = $eofpos + $pos} ### SEEK_END 462 else { croak "bad seek whence ($whence)" }
|
/openbsd/gnu/usr.bin/binutils-2.17/bfd/ |
H A D | bfdio.c | 55 real_fseek (FILE *file, file_ptr offset, int whence) in real_fseek() argument 58 return fseeko64 (file, offset, whence); in real_fseek() 60 return fseeko (file, offset, whence); in real_fseek() 62 return fseek (file, offset, whence); in real_fseek()
|
H A D | sysdep.h | 155 extern int fseeko (FILE *stream, off_t offset, int whence); 161 extern int fseeko64 (FILE *stream, off64_t offset, int whence);
|
H A D | cache.c | 252 cache_bseek (struct bfd *abfd, file_ptr offset, int whence) in cache_bseek() argument 254 FILE *f = bfd_cache_lookup (abfd, whence != SEEK_CUR ? CACHE_NO_SEEK : 0); in cache_bseek() 257 return real_fseek (f, offset, whence); in cache_bseek()
|
/openbsd/lib/libz/ |
H A D | gzlib.c | 342 z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence) { in gzseek64() argument 359 if (whence != SEEK_SET && whence != SEEK_CUR) in gzseek64() 363 if (whence == SEEK_SET) in gzseek64() 415 z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence) { in gzseek() argument 418 ret = gzseek64(file, (z_off64_t)offset, whence); in gzseek()
|
/openbsd/sys/arch/loongson/stand/boot/ |
H A D | rd.c | 112 rdfs_seek(struct open_file *f, off_t offset, int whence) in rdfs_seek() argument 114 switch (whence) { in rdfs_seek()
|
/openbsd/gnu/usr.bin/binutils/bfd/ |
H A D | bfdio.c | 54 real_fseek (FILE *file, file_ptr offset, int whence) in real_fseek() argument 57 return fseeko64 (file, offset, whence); in real_fseek() 59 return fseeko (file, offset, whence); in real_fseek() 61 return fseek (file, offset, whence); in real_fseek()
|
/openbsd/regress/sys/fileops/ |
H A D | fileops.c | 115 c_lseek(off_t offset, int whence) in c_lseek() argument 117 off_t ret = lseek(fd, offset, whence); in c_lseek() 118 switch (whence) { in c_lseek()
|
/openbsd/gnu/usr.bin/perl/cpan/Win32API-File/ |
H A D | File.pm | 760 my ($self, $pos, $whence) = @_; 762 $whence = 0 if not defined $whence; 767 my $from_where = $file_consts[$whence];
|
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Compress/ |
H A D | Base.pm | 908 my $whence = shift ; 916 if ($whence == IO::Handle::SEEK_SET) { 919 elsif ($whence == IO::Handle::SEEK_CUR || $whence == IO::Handle::SEEK_END) { 923 … $self->croakError(*$self->{ClassName} . "::seek: unknown value, $whence, for whence parameter");
|
/openbsd/gnu/usr.bin/perl/ |
H A D | perliol.h | 36 IV (*Seek) (pTHX_ PerlIO *f, Off_t offset, int whence); 203 PERL_CALLCONV IV PerlIOBuf_seek(pTHX_ PerlIO *f, Off_t offset, int whence); 224 PERL_CALLCONV IV PerlIOPending_seek(pTHX_ PerlIO *f, Off_t offset, int whence); 255 PERL_CALLCONV IV PerlIOStdio_seek(pTHX_ PerlIO *f, Off_t offset, int whence); 272 PERL_CALLCONV IV PerlIOUnix_seek(pTHX_ PerlIO *f, Off_t offset, int whence);
|
/openbsd/gnu/llvm/lldb/examples/python/ |
H A D | file_extract.py | 37 def seek(self, offset, whence=0): argument 39 return self.file.seek(offset, whence)
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_solaris.cpp | 189 DECLARE__REAL_AND_INTERNAL64(uptr, lseek, fd_t fd, OFF_T offset, int whence) { in DECLARE__REAL_AND_INTERNAL64() argument 190 return _REAL64(lseek)(fd, offset, whence); in DECLARE__REAL_AND_INTERNAL64()
|
H A D | sanitizer_netbsd.cpp | 286 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek() argument 288 return __lseek(fd, 0, offset, whence); in internal_lseek()
|
H A D | sanitizer_posix.h | 57 uptr internal_lseek(fd_t fd, OFF_T offset, int whence);
|
/openbsd/gnu/llvm/compiler-rt/lib/hwasan/ |
H A D | hwasan_report.cpp | 315 const char *whence; in ShowHeapOrGlobalCandidate() local 318 whence = "inside"; in ShowHeapOrGlobalCandidate() 321 whence = "after"; in ShowHeapOrGlobalCandidate() 324 whence = "before"; in ShowHeapOrGlobalCandidate() 331 untagged_addr, offset, whence, chunk.UsedSize(), chunk.Beg(), in ShowHeapOrGlobalCandidate()
|
/openbsd/sys/dev/pci/drm/display/ |
H A D | drm_dp_aux_dev.c | 141 static loff_t auxdev_llseek(struct file *file, loff_t offset, int whence) in auxdev_llseek() argument 143 return fixed_size_llseek(file, offset, whence, AUX_MAX_OFFSET); in auxdev_llseek()
|
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/ |
H A D | Base.pm | 1403 my $whence = shift ; 1409 if ($whence == SEEK_SET) { 1412 elsif ($whence == SEEK_CUR) { 1415 elsif ($whence == SEEK_END) { 1420 … $self->croakError(*$self->{ClassName} ."::seek: unknown value, $whence, for whence parameter");
|
/openbsd/regress/bin/ksh/ |
H A D | obsd-regress.t | 450 name: whence-preserve-tradition 452 POSIX 'command' and ksh88/pdksh-specific 'whence' are handled by the 455 not affect traditional 'whence' behaviour. 461 whence "$word" 462 whence -p "$word" 463 whence -v "$word" 464 whence -pv "$word"
|
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/lib/Compress/ |
H A D | Zlib.pm | 223 my $whence = shift ; 227 eval { local $SIG{__DIE__}; $status = $gz->seek($offset, $whence) ; };
|