History log of /netbsd-src/lib/libc/stdio/fgets.c (Results 1 – 25 of 28)
Revision Date Author Comments
# 526d9427 15-Mar-2012 christos <christos@NetBSD.org>

- ansify, knf.
- no functional changes


# cfbb35ed 25-Oct-2009 christos <christos@NetBSD.org>

revert some of dsl's changes to make things build on i386; he can undo what
he wants when he comes back.


# 5f1a9bea 25-Oct-2009 dsl <dsl@NetBSD.org>

Lint is differentially far too picky...
Remove some warnings that only appear on i386 (not on amd64) and that
for some reason best known to others are deemed fatal for i386.
Making this code 'pass li

Lint is differentially far too picky...
Remove some warnings that only appear on i386 (not on amd64) and that
for some reason best known to others are deemed fatal for i386.
Making this code 'pass lint' does absolutely nothing for its readability (etc).

show more ...


# 0b807be8 24-Oct-2009 dsl <dsl@NetBSD.org>

Remove a load of pointless casts - one that even lint doesn't bleat about.


# 695bc799 24-Oct-2009 dsl <dsl@NetBSD.org>

Check for EOF before erroring fgets() with length <= 0.
If length is invalid, set errno = EINVAL and __SERR as well returning NULL.
Should let me close PR/41992.


# 01a0f8ea 14-Oct-2009 dsl <dsl@NetBSD.org>

Change a while () {} into a do {} while() so that fgets(buf, 1, file)
detects EOF on an empty file.
Fixes most of PR/41992


# 5e1ba2f2 05-Feb-2009 lukem <lukem@NetBSD.org>

sign-compare fix


# 14183450 03-Jun-2007 christos <christos@NetBSD.org>

Make these work with _FORTIFY_SOURCE, by overriding the fortified definitions


# a8c35a13 14-Dec-2003 lukem <lukem@NetBSD.org>

remove superfluous assignment


# 62887f07 10-Oct-2003 simonb <simonb@NetBSD.org>

Remove another unneeded cast to size_t.

Pointed out by Anil Madhavapeddy in private email.


# 444e6dce 09-Oct-2003 simonb <simonb@NetBSD.org>

No need to cast "len" to a size_t now that "len" is a size_t.


# 1bb83f4a 08-Oct-2003 itojun <itojun@NetBSD.org>

avoid signed->unsigned assignment. openbsd PR 1709


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 3fdac2b8 18-Jan-2003 thorpej <thorpej@NetBSD.org>

Merge the nathanw_sa branch.


# 17f3654a 07-Dec-2001 yamt <yamt@NetBSD.org>

- 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.


# 5e5a72ff 14-Nov-1999 explorer <explorer@NetBSD.org>

missing ;


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* 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 attemp

* 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

show more ...


# 56395b96 15-Nov-1998 christos <christos@NetBSD.org>

change len from size_t to int so that len = fp->_r does not get promoted
to unsigned. cast len appropriately to size_t later.


# caa80a1e 07-Sep-1998 kleink <kleink@NetBSD.org>

Sloppy stdio stream lock tracking.


# c8bafd62 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# da2013ac 19-Jan-1998 jtc <jtc@NetBSD.org>

Use FLOCKFILE() and FUNLOCKFILE() macros from reentrant.h so that stdio
can be made thread-safe.


# 23312f88 13-Jul-1997 christos <christos@NetBSD.org>

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.


# 2ef4abe7 25-Mar-1995 jtc <jtc@NetBSD.org>

change second arg of fgets() from size_t to int


# 255db7b2 02-Feb-1995 jtc <jtc@NetBSD.org>

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


12