OpenGrok
Cross Reference: fgetpos.c
xref
: /
src
/
lib
/
libc
/
stdio
/
fgetpos.c
Home
|
History
|
Annotate
|
Download
|
only in
stdio
History log of
/src/lib/libc/stdio/fgetpos.c
Revision
Date
Author
Comments
1.12
22-Jan-2012
christos
From tnozaki@: make fpos_t a complex object that keeps track of the parse
state of the stream. Change argument of the seek function to funopen() from
fpos_t to off_t. Make f{g,s}etpos() use the new fpos_t struct, while providing
backwards compatible entry points. Approved by releng@
1.11
07-Aug-2003
agc
branches: 1.11.56;
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
1.10
08-Jul-2000
kleink
In fgetpos() and fsetpos(), use ftello() and fseeko(), respectively, to avoid
truncating the value stored in the fpos_t object operated on to that of a
long integer; adresses PR lib/6637.
1.9
20-Sep-1999
lukem
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1.8
16-Sep-1999
lukem
* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.
the first two items result in the addition of code similar to the
following in various functions:
_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
1.7
13-Jul-1997
christos
Fix RCSID's
Fix gcc warnings.
Add prototypes for functions that were declared in more than one place
to local.h or extern.h and use that instead.
1.6
02-Feb-1995
jtc
Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1.5
31-Dec-1993
jtc
Add explicit return types to function definitions.
1.4
26-Aug-1993
jtc
Declare rcsid strings so they are stored in text segment.
1.3
07-Aug-1993
cgd
merge in changes from netbsd-0-9-ALPHA2
1.2
01-Aug-1993
mycroft
Add RCS identifiers.
1.1
21-Mar-1993
cgd
branches: 1.1.1;
Initial revision
1.1.1.2
02-Feb-1995
jtc
imported from 44lite
1.1.1.1
21-Mar-1993
cgd
branches: 1.1.1.1.2;
initial import of 386bsd-0.1 sources
1.1.1.1.2.1
06-Aug-1993
jtc
fgetpos returned wrong value.
fseek/fsetpos/fgetpos manual page too specific. The functions are specified
to return nonzero on failure, not -1.
1.11.56.1
17-Apr-2012
yamt
sync with head
Indexes created Fri Sep 26 20:09:58 GMT 2025