From owner-cvs-all@FreeBSD.ORG Tue Mar 14 17:25:59 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.ORG 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 4B4DD16A423; Tue, 14 Mar 2006 17:25:59 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6344B43D49; Tue, 14 Mar 2006 17:25:58 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.4/8.13.4) with ESMTP id k2EHPuZb063204; Tue, 14 Mar 2006 20:25:56 +0300 (MSK) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.4/8.13.4/Submit) id k2EHPuLn063203; Tue, 14 Mar 2006 20:25:56 +0300 (MSK) (envelope-from ache) Date: Tue, 14 Mar 2006 20:25:56 +0300 From: Andrey Chernov To: Andre Oppermann Message-ID: <20060314172556.GA63170@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Andre Oppermann , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200603141657.k2EGvU0p071401@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200603141657.k2EGvU0p071401@repoman.freebsd.org> User-Agent: Mutt/1.5.11 Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdlib Makefile.inc Symbol.map strtonum.3 strtonum.c src/include stdlib.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 17:25:59 -0000 On Tue, Mar 14, 2006 at 04:57:30PM +0000, Andre Oppermann wrote: > andre 2006-03-14 16:57:30 UTC > > FreeBSD src repository > > Modified files: > lib/libc/stdlib Makefile.inc Symbol.map > include stdlib.h > Added files: > lib/libc/stdlib strtonum.3 strtonum.c > Log: > Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3) > providing proper error checking and other improvements. Error checking isn't so proper as said. if (numstr == ep || *ep != '\0') must be if (numstr == ep || *ep != '\0' || errno == EINVAL) I'll commit this, if no objections. -- http://ache.pp.ru/