From owner-cvs-src-old@FreeBSD.ORG Sun Apr 17 22:27:14 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 F2C78106566B for ; Sun, 17 Apr 2011 22:27:14 +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 E02B38FC13 for ; Sun, 17 Apr 2011 22:27:14 +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 p3HMREWK054320 for ; Sun, 17 Apr 2011 22:27:14 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3HMRE0c054319 for cvs-src-old@freebsd.org; Sun, 17 Apr 2011 22:27:14 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201104172227.p3HMRE0c054319@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 17 Apr 2011 22:26:07 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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: Sun, 17 Apr 2011 22:27:15 -0000 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