From owner-cvs-src-old@FreeBSD.ORG Fri Apr 15 19:49:08 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 135F91065675 for ; Fri, 15 Apr 2011 19:49:08 +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 F0DB08FC4A for ; Fri, 15 Apr 2011 19:49:07 +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 p3FJn7kQ004526 for ; Fri, 15 Apr 2011 19:49:07 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3FJn7q6004525 for cvs-src-old@freebsd.org; Fri, 15 Apr 2011 19:49:07 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201104151949.p3FJn7q6004525@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 15 Apr 2011 19:46:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 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: Fri, 15 Apr 2011 19:49:08 -0000 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