Home | History | Annotate | Download | only in stdio
History log of /src/lib/libc/stdio/fflush.c
RevisionDateAuthorComments
 1.24  22-Jul-2021  christos revert changes to fflush.c (1.18) and fvwrite.c (1.25) until we investigate
collateral damage. Breaks h_intr.c test. Requested by RVP.
 1.23  09-Jul-2021  christos Don't adjust the buffers when write returns 0. This happens with fmemopen
and other synthetic write functions. This fixes the unit-tests for fmemopen,
but adjusting should be the right behavior for all cases?
 1.22  08-Jul-2021  christos Include the 0 return from write. Although the real write system call does
not return 0, the synthetic writes from funopen/fmemopen could. This avoids
infinite loops in >= test19 in fmemopen, but the tests still fail, perhaps
because they assume the previous behavior, where flush does not adjust the
stdio pointers on error.
 1.21  08-Jul-2021  christos Obey EINTR and return immediately adjusting for unwritten. From RVP
 1.20  06-Jul-2021  christos Handle EINTR, from RVP.
 1.19  05-Jul-2021  christos Account for partial writes when interrupted (from FreeBSD).
 1.18  27-Mar-2012  christos - 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.17  15-Mar-2012  christos - ansify, knf.
- no functional changes
 1.16  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.15  07-Aug-2003  agc branches: 1.15.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.14  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.13  20-Sep-1999  lukem branches: 1.13.10;
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.12  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.11  03-Feb-1998  perry remove obsolete register declarations
 1.10  22-Jan-1998  jtc Use rwlocks as appropriate.
 1.9  19-Jan-1998  jtc Use FLOCKFILE() and FUNLOCKFILE() macros from reentrant.h so that stdio
can be made thread-safe.
 1.8  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.7  02-Feb-1995  jtc Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
 1.6  31-Dec-1993  jtc Add explicit return types to function definitions.
 1.5  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.4  02-Aug-1993  mycroft Nuke remaining patchkit headers.
 1.3  01-Aug-1993  mycroft Add RCS identifiers.
 1.2  21-Mar-1993  cgd after 0.2.2 "stable" patches applied
 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.10.2  06-Feb-2002  nathanw #include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.
 1.13.10.1  08-Aug-2001  nathanw _REENT -> _REENTRANT
 1.15.56.1  17-Apr-2012  yamt sync with head

RSS XML Feed