History log of /netbsd-src/lib/libc/stdio/getdelim.c (Results 1 – 14 of 14)
Revision Date Author Comments
# 555c7784 08-Jun-2017 uwe <uwe@NetBSD.org>

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.


# 9c6b248a 22-Jul-2011 joerg <joerg@NetBSD.org>

Set error indicator on invalid arguments. From Carsten Hey.


# c9c21f1e 07-Dec-2009 roy <roy@NetBSD.org>

Test against SSIZE_MAX as pointed out by enami tsugutomo.


# 5eba3548 02-Dec-2009 roy <roy@NetBSD.org>

Pass lint.


# 7cfa0468 02-Dec-2009 roy <roy@NetBSD.org>

Reinstate __getdelim which does no locking.
Callers are now required to FLOCKFILE so they can operate on fp as well.


# 3490b83a 01-Dec-2009 roy <roy@NetBSD.org>

Protect getdelim when used internally.


# 755657be 01-Dec-2009 roy <roy@NetBSD.org>

Remove __getdelim and just use getdelim.
fgetstr now works with strings up to SSIZE_MAX as a result, but may
reallocate buffers needlessly just like it used to when the buffer size
exceeds INT_MAX.
f

Remove __getdelim and just use getdelim.
fgetstr now works with strings up to SSIZE_MAX as a result, but may
reallocate buffers needlessly just like it used to when the buffer size
exceeds INT_MAX.
fgetstr converts errno EOVERFLOW to EINVAL on getdelim error.

show more ...


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


# 86eafd3e 24-Sep-2009 roy <roy@NetBSD.org>

__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 tha

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

show more ...


# 6c591656 14-Jul-2009 roy <roy@NetBSD.org>

Allow a buffer of SSIZE_MAX + 1 as the returned bytes do not include the NULL.


# cfef64a1 14-Jul-2009 christos <christos@NetBSD.org>

pass lint


# d4a3cf6a 13-Jul-2009 roy <roy@NetBSD.org>

Add implementations for getdelim(3) and getline(3).