aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fseek.3
Commit message (Collapse)AuthorAgeFilesLines
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add rewind() to the list of functions which may fail and set errnoAndrey A. Chernov2007-06-181-1/+2
| | | | Notes: svn path=/head/; revision=170908
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Improve documentation for fgetpos() and fsetpos(), and discourageTim J. Robbins2004-03-201-13/+21
| | | | | | | users from assuming that fpos_t is an integral type. Notes: svn path=/head/; revision=127225
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+1
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: formatting nits.Ruslan Ermilov2002-11-291-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107387
* Add restrict type-qualifier.Mike Barcroft2002-10-121-1/+1
| | | | Notes: svn path=/head/; revision=104989
* Describe the restrictions on seeking on wide character streams, and alsoTim J. Robbins2002-10-121-3/+15
| | | | | | | point out that fseek() clears the ungetwc() buffer. Notes: svn path=/head/; revision=104976
* Note that fseeko() and ftello() are standard in 1003.1-2001.Garrett Wollman2002-07-151-1/+1
| | | | | | | (Prefer the more-encompassing POSIX standard to SUSv2.) Notes: svn path=/head/; revision=100135
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* Make fseek(... SEEK_CUR) fails if current file-position is unspecified.Andrey A. Chernov2001-09-011-6/+2
| | | | Notes: svn path=/head/; revision=82740
* Note that prev. commit addition is for ftell/ftelloAndrey A. Chernov2001-09-011-2/+6
| | | | Notes: svn path=/head/; revision=82739
* Describe ESPIPE as result of unspecified file-position indicator value.Andrey A. Chernov2001-09-011-2/+7
| | | | | | | Add more to SEE ALSO section. Notes: svn path=/head/; revision=82738
* Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-311-7/+3
| | | | | | | Submitted by: yar Notes: svn path=/head/; revision=82642
* Add about rewind+errno, describe ESPIPE, minor formatting.Andrey A. Chernov2001-08-191-6/+23
| | | | Notes: svn path=/head/; revision=81912
* Mention ftell & ftello in EOVERFLOW section too.Andrey A. Chernov2001-08-171-1/+5
| | | | Notes: svn path=/head/; revision=81820
* fseek.c:Andrey A. Chernov2001-08-171-1/+5
| | | | | | | | | | | | | | | Resulting fseek() offset must fit in long, required by POSIX (pointed by bde), so add LONG_MAX and final tests for it. rewind.c: 1) add missing __sinit() as in fseek() it pretends to be. 2) use clearerr_unlocked() since we already lock stream before _fseeko() 3) don't zero errno at the end, it explicitely required by POSIX as the only one method to test rewind() error condition. 4) don't clearerr() if error happens in _fseeko() Notes: svn path=/head/; revision=81817
* 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):Andrey A. Chernov2001-08-151-11/+5
| | | | | | | | | | | | | | | "[EINVAL] ... The resulting file-position indicator would be set to a negative value." Moreover, in real life negative seek in stdio cause EOF indicator cleared and not set again forever even if EOF returned. 2) Catch few possible off_t overflows. Reviewed by: arch discussion Notes: svn path=/head/; revision=81666
* Remove whitespace at EOL.Dima Dorfman2001-07-151-6/+6
| | | | Notes: svn path=/head/; revision=79754
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-261-1/+1
| | | | Notes: svn path=/head/; revision=73088
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+1
| | | | Notes: svn path=/head/; revision=69857
* Use `Er' variable to define first column width in ERRORS section.Alexey Zelkin2000-05-061-1/+1
| | | | Notes: svn path=/head/; revision=60078
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* The pseudocode in the synopsis didn't come close to actuallyBruce Evans1999-03-051-4/+6
| | | | | | | | | | | | compiling, since <stdio.h> correctly doesn't declare off_t although the pseudo-prototypes for the new fseeko() and ftello() functions use it. Handle this like the corresponding problem for va_list versus the vprintf() family. Fixed some English errors. Notes: svn path=/head/; revision=44481
* Added functions fseeko() and ftello() (from susv2).Dmitrij Tejblum1999-02-081-5/+45
| | | | | | | | | | Fixed fgetpos() and fsetpos() for offsets > 2GB. PR: 8637 Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little) Notes: svn path=/head/; revision=43782
* Fixed #include and/or prototype bugs in synopsis.Bruce Evans1997-04-131-1/+1
| | | | Notes: svn path=/head/; revision=24879
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+188
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573