Date: Sun, 17 Apr 2011 22:26:07 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen errlst.c src/lib/libc/string strerror.3 strerror.c src/tools/regression/lib/libc/string test-strerror.c Message-ID: <201104172227.p3HMRE0c054319@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-04-17 22:26:07 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
lib/libc/gen errlst.c
lib/libc/string strerror.3 strerror.c
tools/regression/lib/libc/string test-strerror.c
Log:
SVN rev 220759 on 2011-04-17 22:26:07Z by jilles
MFC r220376: Allow strerror(0) and strerror_r(0, ...).
Of course, strerror_r() may still fail with ERANGE.
Although the POSIX specification said this could fail with EINVAL and
doing this likely indicates invalid use of errno, most other
implementations permitted it, various POSIX testsuites require it to
work (matching the older sys_errlist array) and apparently some
applications depend on it.
PR: standards/151316
Revision Changes Path
1.9.2.1 +1 -1 src/lib/libc/gen/errlst.c
1.24.2.1 +4 -1 src/lib/libc/string/strerror.3
1.16.2.1 +1 -1 src/lib/libc/string/strerror.c
1.3.10.1 +13 -8 src/tools/regression/lib/libc/string/test-strerror.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104172227.p3HMRE0c054319>
