History log of /src/lib/libc/stdio/fgetln.c |
Revision | | Date | Author | Comments |
1.17 |
| 08-Jun-2017 |
uwe | Don't use "NULL" to talk about null-terminated strings.
The C standard seems to be inconsistent about dash vs. space. Old text uses dash, Annex K uses space. I'll let wizd(8) to sort that out.
|
1.16 |
| 02-Dec-2009 |
roy | Reinstate __getdelim which does no locking. Callers are now required to FLOCKFILE so they can operate on fp as well.
|
1.15 |
| 24-Sep-2009 |
roy | __getdelim works on strings up to SIZE_MAX - 2 and returns 0 on EOF. getdelim works on strings up to SSIZE_MAX and returns -1 on EOF. __fgetstr is now just a wrapper around __getdelim and ensures that the buffer doesn't overflow the one provided by FILE. __slbexpand is now static in fgetwln as it is the only consumer of that func.
|
1.14 |
| 10-May-2004 |
drochner | After discussion with christos, turn fgetstr() into an internal function. Its API in inherently non-threadsafe (and it depends on certain properties of the underlying stdio implementation), so it shouldn't be a first-class function for general use, polluting the application namespace. Also remove the FLOCKFILE() code from it - this is under control of the calling function now. (XXX I'm not sure whether the FLOCKFILE() should be kept in fgetln(), this function cannot be used in multiple threads anyway. It doesn't hurt much, and it might prevent corruption of internal FILE structures.)
|
1.13 |
| 21-Apr-2004 |
christos | Add a generalized version of fgetln that can stop at an arbitrary delimiter, and implement fgetln on top of that.
|
1.12 |
| 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.11 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.10 |
| 22-Jan-2000 |
mycroft | branches: 1.10.6; Delint. Remove trailing ; from uses of __weak_alias(). The macro inserts this if needed.
|
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 |
| 15-Nov-1998 |
christos | delint
|
1.6 |
| 16-Oct-1998 |
kleink | Need an internal name for fgetln().
|
1.5 |
| 03-Feb-1998 |
perry | remove obsolete register declarations
|
1.4 |
| 19-Jan-1998 |
jtc | Use FLOCKFILE() and FUNLOCKFILE() macros from reentrant.h so that stdio can be made thread-safe.
|
1.3 |
| 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.2 |
| 02-Feb-1995 |
jtc | branches: 1.2.6; Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
1.1 |
| 04-Jan-1994 |
cgd | branches: 1.1.1; rename fgetline() and sharpen axe for bostic...
|
1.1.1.1 |
| 02-Feb-1995 |
jtc | imported from 44lite
|
1.2.6.1 |
| 20-Sep-1996 |
jtc | snapshot namespace cleanup: net, etc.
|
1.10.6.1 |
| 06-Feb-2002 |
nathanw | #include "reentrant.h" before "local.h" so that the thread types used in fileext.h are avaliable.
|