Date: Fri, 15 Apr 2011 19:46:25 +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: <201104151949.p3FJn7q6004525@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-04-15 19:46:25 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libc/gen errlst.c lib/libc/string strerror.3 strerror.c tools/regression/lib/libc/string test-strerror.c Log: SVN rev 220664 on 2011-04-15 19:46:25Z 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.10.3 +1 -1 src/lib/libc/gen/errlst.c 1.24.10.2 +4 -1 src/lib/libc/string/strerror.3 1.16.10.2 +1 -1 src/lib/libc/string/strerror.c 1.3.22.2 +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?201104151949.p3FJn7q6004525>