Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Fix Xref. Split line, Ox doesn't take word a...
details: https://anonhg.NetBSD.org/src/rev/77943b6baf1a
branches: trunk
changeset: 336215:77943b6baf1a
user: wiz <wiz%NetBSD.org@localhost>
date: Wed Feb 18 08:46:43 2015 +0000
description:
Fix Xref. Split line, Ox doesn't take word arguments.
diffstat:
lib/libc/stdlib/reallocarr.3 | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 20a8c4eb9c6e -r 77943b6baf1a lib/libc/stdlib/reallocarr.3
--- a/lib/libc/stdlib/reallocarr.3 Wed Feb 18 03:08:38 2015 +0000
+++ b/lib/libc/stdlib/reallocarr.3 Wed Feb 18 08:46:43 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: reallocarr.3,v 1.1 2015/02/17 20:29:21 joerg Exp $
+.\" $NetBSD: reallocarr.3,v 1.2 2015/02/18 08:46:43 wiz Exp $
.\"
.\" Copyright (c) 2015 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -51,7 +51,7 @@
returns 0 and updates
.Fa *ptr .
Otherwise, an error code (see
-.Xr errno 7 )
+.Xr errno 2 )
is returned and
.Fa *ptr
and the referenced memory is unmodified.
@@ -61,7 +61,8 @@
.Nm
first appeared in
.Nx 7.0 .
-.Ox introduced the
+.Ox
+introduced the
.Xr reallocarray 3
function for the same purpose, but the interface makes it difficult
to correctly handle zero-sized allocations.
Home |
Main Index |
Thread Index |
Old Index