Date: Tue, 5 Apr 2011 21:56:05 +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: <201104062122.p36LMrW5010366@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-04-05 21:56:05 UTC FreeBSD src repository Modified files: lib/libc/gen errlst.c lib/libc/string strerror.3 strerror.c tools/regression/lib/libc/string test-strerror.c Log: SVN rev 220376 on 2011-04-05 21:56:05Z by jilles 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 MFC after: 1 week Revision Changes Path 1.12 +1 -1 src/lib/libc/gen/errlst.c 1.25 +4 -1 src/lib/libc/string/strerror.3 1.17 +1 -1 src/lib/libc/string/strerror.c 1.4 +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?201104062122.p36LMrW5010366>