From owner-svn-src-stable@FreeBSD.ORG Wed Jan 19 15:43:23 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8381B106564A; Wed, 19 Jan 2011 15:43:23 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 721DF8FC19; Wed, 19 Jan 2011 15:43:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0JFhNSi080704; Wed, 19 Jan 2011 15:43:23 GMT (envelope-from keramida@svn.freebsd.org) Received: (from keramida@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0JFhNeC080702; Wed, 19 Jan 2011 15:43:23 GMT (envelope-from keramida@svn.freebsd.org) Message-Id: <201101191543.p0JFhNeC080702@svn.freebsd.org> From: Giorgos Keramidas Date: Wed, 19 Jan 2011 15:43:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217580 - stable/7/lib/libc/stdlib X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 15:43:23 -0000 Author: keramida (doc committer) Date: Wed Jan 19 15:43:23 2011 New Revision: 217580 URL: http://svn.freebsd.org/changeset/base/217580 Log: MFC -r188305 and r189207 from /head : r188305 --> : Fix language on atol(3) manpage. Add a COMPATIBILITY section : stating that in FreeBSD the atol() and atoll() functions affect : errno in the same way as strtol() and stroll(). : : PR: docs/126487 : Submitted by: edwin : Reviewed by: trhodes, gabor : MFC after: 1 week : r189207 --> : "-isoC-99" should be spelled without 'c'. Modified: stable/7/lib/libc/stdlib/atol.3 Directory Properties: stable/7/lib/libc/ (props changed) stable/7/lib/libc/stdtime/ (props changed) Modified: stable/7/lib/libc/stdlib/atol.3 ============================================================================== --- stable/7/lib/libc/stdlib/atol.3 Wed Jan 19 15:12:38 2011 (r217579) +++ stable/7/lib/libc/stdlib/atol.3 Wed Jan 19 15:43:23 2011 (r217580) @@ -32,7 +32,7 @@ .\" @(#)atol.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd November 28, 2001 +.Dd February 1, 2009 .Dt ATOL 3 .Os .Sh NAME @@ -78,13 +78,42 @@ representation. It is equivalent to: .Pp .Dl "strtoll(nptr, (char **)NULL, 10);" +.Sh COMPATIBILITY +The +.Fx +implementations of the +.Fn atol +and +.Fn atoll +functions are thin wrappers around +.Fn strtol +and +.Fn stroll +respectively, so these functions will affect the value of +.Va errno +in the same way that the +.Fn strtol +and +.Fn stroll +functions are able to. +This behavior of +.Fn atol +and +.Fn atoll +is not required by +.St -isoC +or +.St -isoC-99 , +but it is allowed by all of +.St -isoC , St -isoC-99 +and +.St -p1003.1-2001 . .Sh ERRORS The functions .Fn atol and .Fn atoll -need not -affect the value of +may affect the value of .Va errno on an error. .Sh SEE ALSO