Tim J. Robbins
1e709c9cb5
Improve documentation for fgetpos() and fsetpos(), and discourage
...
users from assuming that fpos_t is an integral type.
2004-03-20 08:38:27 +00:00
Ruslan Ermilov
2efeeba554
mdoc(7) police: "The .Fa argument.".
2002-12-19 09:40:28 +00:00
Ruslan Ermilov
1798791d24
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00
Mike Barcroft
54e4e385de
Add restrict type-qualifier.
2002-10-12 16:13:41 +00:00
Tim J. Robbins
419c442678
Describe the restrictions on seeking on wide character streams, and also
...
point out that fseek() clears the ungetwc() buffer.
2002-10-12 09:22:25 +00:00
Garrett Wollman
647e4efd97
Note that fseeko() and ftello() are standard in 1003.1-2001.
...
(Prefer the more-encompassing POSIX standard to SUSv2.)
2002-07-15 19:42:25 +00:00
Ruslan Ermilov
32eef9aeb1
mdoc(7) police: Use the new .In macro for #include statements.
2001-10-01 16:09:29 +00:00
Andrey A. Chernov
45892fd855
Make fseek(... SEEK_CUR) fails if current file-position is unspecified.
2001-09-01 14:40:01 +00:00
Andrey A. Chernov
3c4d9468b0
Note that prev. commit addition is for ftell/ftello
2001-09-01 14:23:30 +00:00
Andrey A. Chernov
2f5eadff6b
Describe ESPIPE as result of unspecified file-position indicator value.
...
Add more to SEE ALSO section.
2001-09-01 14:11:53 +00:00
Ruslan Ermilov
d6002fef6f
Use ``.Rv -std'' wherever possible.
...
Submitted by: yar
2001-08-31 09:57:38 +00:00
Andrey A. Chernov
c5981656ea
Add about rewind+errno, describe ESPIPE, minor formatting.
2001-08-19 08:24:50 +00:00
Andrey A. Chernov
5fdaf178ae
Mention ftell & ftello in EOVERFLOW section too.
2001-08-17 10:29:09 +00:00
Andrey A. Chernov
71b5a4326d
fseek.c:
...
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()
2001-08-17 09:57:11 +00:00
Andrey A. Chernov
d9e3eff33a
1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
...
"[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
2001-08-15 02:07:47 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
588a200ce1
.St -ansiC -> .St -isoC
2001-02-26 13:23:47 +00:00
Ruslan Ermilov
a2fd3702a3
mdoc(7) police: use canonical form of .Dd macro.
2000-12-11 15:15:20 +00:00
Alexey Zelkin
03fc63031e
Use `Er' variable to define first column width in ERRORS section.
2000-05-06 12:07:59 +00:00
Alexey Zelkin
25bb73e063
Introduce ".Lb" macro to libc manpages.
...
More libraries manpages updates following.
2000-04-21 09:42:15 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Bruce Evans
b300c1d8f9
The pseudocode in the synopsis didn't come close to actually
...
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.
1999-03-05 12:56:37 +00:00
Dmitrij Tejblum
7307d07db6
Added functions fseeko() and ftello() (from susv2).
...
Fixed fgetpos() and fsetpos() for offsets > 2GB.
PR: 8637
Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
1999-02-08 21:32:38 +00:00
Bruce Evans
23f0c1fcf6
Fixed #include and/or prototype bugs in synopsis.
1997-04-13 13:35:33 +00:00
Rodney W. Grimes
58f0484fa2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00