From owner-cvs-all Mon Dec 24 20:10:54 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 887FD37B405; Mon, 24 Dec 2001 20:10:50 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBP4Aon93041; Mon, 24 Dec 2001 20:10:50 -0800 (PST) (envelope-from ache) Message-Id: <200112250410.fBP4Aon93041@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Mon, 24 Dec 2001 20:10:50 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib atof.c atoi.c atol.3 atol.c atoll.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 ache 2001/12/24 20:10:50 PST Modified files: lib/libc/stdlib atof.c atoi.c atol.3 atol.c atoll.c Log: Preserve errno. According to C99: "The functions atof, atoi, atol, and atoll need not affect the value of the integer expression errno on an error. If the value of the result cannot be represented, the behavior is undefined." Revision Changes Path 1.2 +10 -2 src/lib/libc/stdlib/atof.c 1.3 +9 -2 src/lib/libc/stdlib/atoi.c 1.10 +7 -1 src/lib/libc/stdlib/atol.3 1.2 +10 -2 src/lib/libc/stdlib/atol.c 1.2 +8 -2 src/lib/libc/stdlib/atoll.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message