Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libc/stdio



Module Name:    src
Committed By:   roy
Date:           Thu Sep 24 20:38:53 UTC 2009

Modified Files:
        src/lib/libc/stdio: fgetln.c fgetstr.c fgetwln.c getdelim.c local.h

Log Message:
__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.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/stdio/fgetln.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/stdio/fgetstr.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/stdio/fgetwln.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/stdio/getdelim.c
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/stdio/local.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index