Date: Mon, 6 Apr 2009 13:50:04 +0000 (UTC) From: David Schultz <das@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/stdio getdelim.c getline.3 src/tools/regression/lib/libc/stdio test-getdelim.c Message-ID: <200904061351.n36Dpnos000799@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
das 2009-04-06 13:50:04 UTC FreeBSD src repository Modified files: lib/libc/stdio getdelim.c getline.3 tools/regression/lib/libc/stdio test-getdelim.c Log: SVN rev 190773 on 2009-04-06 13:50:04Z by das Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advised because it means getdelim() returns -1 for both error and EOF, and never returns 0. However, this is what the original GNU implementation does, and POSIX inherited the bug. Reported by: marcus@ Revision Changes Path 1.2 +4 -2 src/lib/libc/stdio/getdelim.c 1.2 +2 -2 src/lib/libc/stdio/getline.3 1.2 +2 -2 src/tools/regression/lib/libc/stdio/test-getdelim.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904061351.n36Dpnos000799>