Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Remove trailing whitespace, merge error secti...
details: https://anonhg.NetBSD.org/src/rev/55504645023a
branches: trunk
changeset: 757821:55504645023a
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Sep 25 09:44:08 2010 +0000
description:
Remove trailing whitespace, merge error sections for same error, nits.
diffstat:
lib/libc/stdio/fmemopen.3 | 26 ++++++++++++--------------
1 files changed, 12 insertions(+), 14 deletions(-)
diffs (80 lines):
diff -r c98a012882d4 -r 55504645023a lib/libc/stdio/fmemopen.3
--- a/lib/libc/stdio/fmemopen.3 Sat Sep 25 01:42:38 2010 +0000
+++ b/lib/libc/stdio/fmemopen.3 Sat Sep 25 09:44:08 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: fmemopen.3,v 1.2 2010/09/25 01:19:39 uwe Exp $
+.\" $NetBSD: fmemopen.3,v 1.3 2010/09/25 09:44:08 wiz Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -38,7 +38,7 @@
.Dt FMEMOPEN 3
.Os
.Sh NAME
-.Nm fmemopen ,
+.Nm fmemopen
.Nd open a stream that points to the given buffer
.Sh LIBRARY
.Lb libc
@@ -54,12 +54,12 @@
.Fa buffer
and
.Fa size .
-The
+The
.Fa buffer
can be either
.Dv NULL ,
or must be of the given
-.Fa size.
+.Fa size .
If the
.Fa buffer
is
@@ -69,7 +69,7 @@
of the given
.Fa size
will be dynamically allocated using
-.Xr malloc 3
+.Xr malloc 3
and freed when
.Xr fclose 3
is called.
@@ -98,8 +98,8 @@
The stream also keeps track of the
.Fa size
of the
-.Fa buffer
-The
+.Fa buffer
+The
.Fa size
is initialized depending on the mode:
.Bl -tag -width r/w+
@@ -158,13 +158,11 @@
.It Bq Er EINVAL
The
.Fa size was
-.Dv 0 .
-.It Bq Er EINVAL
-The
+.Dv 0 ;
+or the
.Fa mode
-argument is invalid.
-.It Bq Er EINVAL
-The
+argument is invalid;
+or the
.Fa buffer
argument is
.Dv NULL
@@ -186,7 +184,7 @@
.Xr fclose 3 ,
.Xr fflush 3 ,
.Xr fopen 3 ,
-.Xr malloc 3
+.Xr malloc 3
.Sh HISTORY
The
.Fn fmemopen
Home |
Main Index |
Thread Index |
Old Index