Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Note some restrictions for getdelim arguments...
details: https://anonhg.NetBSD.org/src/rev/7efe877db7d5
branches: trunk
changeset: 746972:7efe877db7d5
user: wiz <wiz%NetBSD.org@localhost>
date: Tue Aug 25 16:28:26 2009 +0000
description:
Note some restrictions for getdelim arguments noted by joerg.
Bump date.
diffstat:
lib/libc/stdio/getdelim.3 | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r cfb87a8df7ff -r 7efe877db7d5 lib/libc/stdio/getdelim.3
--- a/lib/libc/stdio/getdelim.3 Tue Aug 25 14:10:54 2009 +0000
+++ b/lib/libc/stdio/getdelim.3 Tue Aug 25 16:28:26 2009 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getdelim.3,v 1.2 2009/07/13 22:30:52 wiz Exp $
+.\" $NetBSD: getdelim.3,v 1.3 2009/08/25 16:28:26 wiz Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd July 12, 2009
+.Dd August 25, 2009
.Dt GETDELIM 3
.Os
.Sh NAME
@@ -69,6 +69,13 @@
.Fa *n
to reflect the new size.
.Pp
+.Fa delimiter
+must be representable as an unsigned char, and
+.Fa *lineptr
+must be a
+.Xr free(3) Ns No able
+buffer.
+.Pp
.Fa getline
is equivalent to
.Fa getdelim
Home |
Main Index |
Thread Index |
Old Index