From owner-cvs-src-old@FreeBSD.ORG Wed Apr 6 21:22:53 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7635106566B for ; Wed, 6 Apr 2011 21:22:53 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C224D8FC14 for ; Wed, 6 Apr 2011 21:22:53 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p36LMr8B010367 for ; Wed, 6 Apr 2011 21:22:53 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p36LMrW5010366 for cvs-src-old@freebsd.org; Wed, 6 Apr 2011 21:22:53 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201104062122.p36LMrW5010366@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 5 Apr 2011 21:56:05 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2011 21:22:53 -0000 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