OpenGrok
Cross Reference: fclose.c
xref
: /
src
/
lib
/
libc
/
stdio
/
fclose.c
Home
|
History
|
Annotate
|
Download
|
only in
stdio
History log of
/src/lib/libc/stdio/fclose.c
Revision
Date
Author
Comments
1.18
15-Mar-2012
christos
- ansify, knf.
- no functional changes
1.17
11-Jan-2010
joerg
branches: 1.17.6;
Use a proper char */size_t pair in __sfileext to keep track of the line
buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX
related logic. Drop conditionals around FREELB, free(NULL) is valid.
1.16
07-Aug-2003
agc
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
1.15
18-Jan-2003
thorpej
Merge the nathanw_sa branch.
1.14
07-Dec-2001
yamt
- make FILE structure extensible without breaking binary-compatibility.
- add fputwc, fgetwc, fwide and related functions.
- add hooks needed to maintain the orientation of file stream.
1.13
21-Jan-2000
mycroft
branches: 1.13.6;
Do the lock *after* checking that the fp is valid.
1.12
20-Sep-1999
lukem
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1.11
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.10
18-Oct-1998
dbj
Backed out previous fclose(NULL) change.
1.9
18-Oct-1998
dbj
Fix pr lib/6322
fclose(NULL) used to segfault. Now it returns EOF and sets errno to EBADF.
1.8
03-Feb-1998
perry
remove obsolete register declarations
1.7
19-Jan-1998
jtc
Use FLOCKFILE() and FUNLOCKFILE() macros from reentrant.h so that stdio
can be made thread-safe.
1.6
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.5
02-Feb-1995
jtc
Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1.4
31-Dec-1993
jtc
Add explicit return types to function definitions.
1.3
26-Aug-1993
jtc
Declare rcsid strings so they are stored in text segment.
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
initial import of 386bsd-0.1 sources
1.13.6.2
06-Feb-2002
nathanw
#include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.
1.13.6.1
28-Jan-2002
nathanw
Catch up to -current.
1.17.6.1
17-Apr-2012
yamt
sync with head
Indexes created Wed Sep 24 02:09:48 GMT 2025