Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Remove the (incorrect) note about inconsiste...
details: https://anonhg.NetBSD.org/src/rev/c2ec812ff2a4
branches: trunk
changeset: 754462:c2ec812ff2a4
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sat May 01 08:30:00 2010 +0000
description:
Remove the (incorrect) note about inconsistent return values. Name the exit
code as EXIT_FAILURE instead of integer 1.
diffstat:
lib/libc/stdlib/strsuftoll.3 | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r fca0fd90f471 -r c2ec812ff2a4 lib/libc/stdlib/strsuftoll.3
--- a/lib/libc/stdlib/strsuftoll.3 Sat May 01 08:12:30 2010 +0000
+++ b/lib/libc/stdlib/strsuftoll.3 Sat May 01 08:30:00 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: strsuftoll.3,v 1.8 2010/05/01 08:12:30 jruoho Exp $
+.\" $NetBSD: strsuftoll.3,v 1.9 2010/05/01 08:30:00 jruoho Exp $
.\"
.\" Copyright (c) 2002,2007 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -106,7 +106,8 @@
unless the value overflows or is not a number;
in the latter case,
.Fn strsuftoll
-displays an error message and terminates the process with exit code 1,
+displays an error message and terminates the process with exit code
+.Dv EXIT_FAILURE ,
and
.Fn strsuftollx
returns with 0 and
@@ -134,8 +135,6 @@
.Dv NULL ,
pointers.
.It
-The return values are inconsistent.
-.It
The
.Fn strsuftollx
function is prone to buffer overflows if used incorrectly.
Home |
Main Index |
Thread Index |
Old Index