From owner-cvs-all Wed Dec 18 8:53:34 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECE4437B401; Wed, 18 Dec 2002 08:53:32 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6932143ED1; Wed, 18 Dec 2002 08:53:32 -0800 (PST) (envelope-from mike@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gBIGrWmV023540; Wed, 18 Dec 2002 08:53:32 -0800 (PST) (envelope-from mike@repoman.freebsd.org) Received: (from mike@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gBIGrWD8023539; Wed, 18 Dec 2002 08:53:32 -0800 (PST) Message-Id: <200212181653.gBIGrWD8023539@repoman.freebsd.org> From: Mike Barcroft Date: Wed, 18 Dec 2002 08:53:32 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/string strerror.3 strerror.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mike 2002/12/18 08:53:32 PST Modified files: lib/libc/string strerror.3 strerror.c Log: Rearrange strerror() so that its itoa procedure can be used with strerror_r(). Doing this allows us to ensure that strerror_r() always fills the supplied buffer regardless of EINVAL or ERANGE errors. strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. Remove internal regression test for strerror() and strerror_r(). This will be reincarnated in src/tools/regression/lib/libc/string. In strerror(3), add a comment about strerror()'s bogus return type. PR: 44356 Revision Changes Path 1.21 +6 -1 src/lib/libc/string/strerror.3 1.9 +39 -85 src/lib/libc/string/strerror.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message