summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2013-01-03 08:05:41 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2013-01-03 08:05:41 +0000
commite9e95372387806ebe5c64f13c590dd2c3424e71d (patch)
tree54083e3401b0e18eac67f92bf6b303495e69363d /lib
parent6d00f52c079e18a44fd78e9076228d6aad2e2d0a (diff)
some small cleanup;
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/fmemopen.310
-rw-r--r--lib/libc/stdio/open_memstream.317
2 files changed, 14 insertions, 13 deletions
diff --git a/lib/libc/stdio/fmemopen.3 b/lib/libc/stdio/fmemopen.3
index 2a996d66797..d273e0ecb4c 100644
--- a/lib/libc/stdio/fmemopen.3
+++ b/lib/libc/stdio/fmemopen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fmemopen.3,v 1.1 2013/01/01 17:41:13 mpi Exp $
+.\" $OpenBSD: fmemopen.3,v 1.2 2013/01/03 08:05:40 jmc Exp $
.\" $NetBSD: fmemopen.3,v 1.5 2010/10/07 00:14:14 enami Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 1 2013 $
+.Dd $Mdocdate: January 3 2013 $
.Dt FMEMOPEN 3
.Os
.Sh NAME
@@ -81,7 +81,7 @@ The stream treats the buffer as it would treat a file tracking the current
position to perform I/O operations.
For example, in the beginning the stream points to the beginning of the buffer,
unless
-.Dv a
+.Sq a
was specified in the
.Fa mode
argument, and then it points to the first
@@ -100,7 +100,7 @@ of the
The
.Fa size
is initialized depending on the mode:
-.Bl -tag -width r/w+
+.Bl -tag -width "r/w+XXX" -offset indent
.It Dv r/r+
Set to the
.Fa size
@@ -168,7 +168,7 @@ argument is
and the
.Fa mode
argument does not specify a
-.Dv + .
+.Sq + .
.El
.Pp
The
diff --git a/lib/libc/stdio/open_memstream.3 b/lib/libc/stdio/open_memstream.3
index f081fd8849b..c5c4683875f 100644
--- a/lib/libc/stdio/open_memstream.3
+++ b/lib/libc/stdio/open_memstream.3
@@ -1,6 +1,6 @@
-.\" $OpenBSD: open_memstream.3,v 1.1 2013/01/01 17:41:13 mpi Exp $
+.\" $OpenBSD: open_memstream.3,v 1.2 2013/01/03 08:05:40 jmc Exp $
.\"
-.\" Copyright (c) 2011 Martin Pieuchot <mpi@openbsd.org>
+.\" Copyright (c) 2011 Martin Pieuchot <mpi@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 1 2013 $
+.Dd $Mdocdate: January 3 2013 $
.Dt OPEN_MEMSTREAM 3
.Os
.Sh NAME
@@ -33,7 +33,7 @@ The
.Fn open_memstream
and
.Fn open_wmemstream
-functions create a seekable byte-oriented, or respectively wide-oriented,
+functions create, respectively, a seekable byte-oriented or wide-oriented
stream for writing.
A dynamically allocated buffer, using
.Xr malloc 3 ,
@@ -47,10 +47,11 @@ stored in the pointer referenced by
At the same time the smaller of the current position and the buffer length is
written in the variable pointed to by
.Fa psize .
-This value represents the number of bytes, or respectively wide characters,
-contained in the buffer not including the terminating null character.
+This value represents, respectively,
+the number of bytes or wide characters contained in the buffer,
+not including the terminating null character.
.Pp
-The buffer memory should be release after the stream is closed.
+The buffer memory should be released after the stream is closed.
.Sh RETURN VALUES
Upon successful completion,
.Fn open_memstream
@@ -87,8 +88,8 @@ specified for the routine
.Xr malloc 3 .
.Sh SEE ALSO
.Xr fmemopen 3 ,
-.Xr funopen 3 ,
.Xr fopen 3 ,
+.Xr funopen 3 ,
.Xr malloc 3
.Sh STANDARDS
The functions