From owner-svn-src-all@FreeBSD.ORG Fri Oct 22 04:24:27 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8068B106564A; Fri, 22 Oct 2010 04:24:27 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by mx1.freebsd.org (Postfix) with ESMTP id 388AB8FC12; Fri, 22 Oct 2010 04:24:26 +0000 (UTC) Received: from a91-153-123-205.elisa-laajakaista.fi (a91-153-123-205.elisa-laajakaista.fi [91.153.123.205]) by gw01.mail.saunalahti.fi (Postfix) with SMTP id 299C015150C; Fri, 22 Oct 2010 07:24:20 +0300 (EEST) Date: Fri, 22 Oct 2010 07:24:20 +0300 From: Jaakko Heinonen To: Benedict Reuschling Message-ID: <20101022042420.GA1389@a91-153-123-205.elisa-laajakaista.fi> References: <201010211830.o9LIUnYA099338@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010211830.o9LIUnYA099338@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r214148 - head/lib/libc/stdlib X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 04:24:27 -0000 On 2010-10-21, Benedict Reuschling wrote: > Document strtonum()s behavior of setting errno to 0 when no error is found. strtonum(3) doesn't behave like this. Anyway setting errno to 0 in a library function would violate the C99 standard. %%% #include #include #include #include int main() { errno = EDOOFUS; if (strtonum("1", 1, 10, NULL) == 0) err(1, "failed"); printf("%d\n", errno); return (0); } %%% $ cc test.c $ ./a.out 88 -- Jaakko