Home | History | Annotate | Download | only in stdio
History log of /src/lib/libc/stdio/stdio.c
RevisionDateAuthorComments
 1.22  19-May-2013  christos from kre: Don't fail if we are seeking on a pipe, clear the append bit
since we always append.
 1.21  27-Mar-2012  christos branches: 1.21.2;
- widen the internal read and write calls to match the syscalls
- add funopen2() which provides access to flush() and the wider calls.
- make use of the new flush call in fmemopen()
 1.20  20-Mar-2012  christos ansi prototype
 1.19  15-Mar-2012  christos - ansify, knf.
- no functional changes
 1.18  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.17  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.16  25-Oct-2009  christos branches: 1.16.6;
revert some of dsl's changes to make things build on i386; he can undo what
he wants when he comes back.
 1.15  24-Oct-2009  dsl Remove a load of pointless casts - one that even lint doesn't bleat about.
 1.14  13-Mar-2008  christos Since _file is a short, check that the fd fits in it, otherwise bail with
EMFILE. We treat _file as an unsigned short to double our range, with a
special case for -1 (closed). Make a note of what we should do about stdio
if we ever bump libc. We could change _file in the future compatibly to an
int by putting it in the extension space but for now we don't bother.
 1.13  07-Aug-2003  agc branches: 1.13.22; 1.13.28;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.12  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.11  20-Sep-1999  lukem branches: 1.11.10;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.10  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.9  15-Nov-1998  christos delint
 1.8  14-Oct-1998  kleink Need "namespace.h".
 1.7  03-Feb-1998  perry remove obsolete register declarations
 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  29-Mar-1996  jtc Add explict function return types
 1.4  02-Feb-1995  jtc branches: 1.4.2;
Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
 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.4.2.1  02-Mar-1995  jtc #include "namespace.h"
 1.11.10.1  06-Feb-2002  nathanw #include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.
 1.13.28.1  24-Mar-2008  keiichi sync with head.
 1.13.22.1  23-Mar-2008  matt sync with HEAD
 1.16.6.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16.6.1  17-Apr-2012  yamt sync with head
 1.21.2.1  23-Jun-2013  tls resync from head

RSS XML Feed