Minor markup and wording fixes.

This commit is contained in:
uwe 2019-03-21 21:13:45 +00:00
parent e8b93c6953
commit 48efa70d76
1 changed files with 19 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: funopen.3,v 1.24 2016/04/06 03:38:31 dholland Exp $
.\" $NetBSD: funopen.3,v 1.25 2019/03/21 21:13:45 uwe Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -47,8 +47,22 @@
.Sh SYNOPSIS
.In stdio.h
.Ft FILE *
.Fn funopen "void *cookie" "int (*readfn)(void *, char *, int)" "int (*writefn)(void *, const char *, int)" "off_t (*seekfn)(void *, off_t, int)" "int (*closefn)(void *)"
.Fn funopen2 "void *cookie" "ssize_t (*readfn)(void *, void *, size_t)" "ssize_t (*writefn)(void *, const void *, size_t)" "off_t (*seekfn)(void *, off_t, int)" "int (*flushfn)(void *)" "int (*closefn)(void *)"
.Fo funopen
.Fa "void *cookie"
.Fa "int (*readfn)(void *, char *, int)"
.Fa "int (*writefn)(void *, const char *, int)"
.Fa "off_t (*seekfn)(void *, off_t, int)"
.Fa "int (*closefn)(void *)"
.Fc
.Ft FILE *
.Fo funopen2
.Fa "void *cookie"
.Fa "ssize_t (*readfn)(void *, void *, size_t)"
.Fa "ssize_t (*writefn)(void *, const void *, size_t)"
.Fa "off_t (*seekfn)(void *, off_t, int)"
.Fa "int (*flushfn)(void *)"
.Fa "int (*closefn)(void *)"
.Fc
.Ft FILE *
.Fn fropen "void *cookie" "int (*readfn)(void *, char *, int)"
.Ft FILE *
@ -126,7 +140,7 @@ Additionally, all of the functions should set the external variable
appropriately if an error occurs.
.Pp
An error on
.Fn closefn
.Fa closefn
does not keep the stream open.
.Pp
As a convenience, the include file
@ -183,6 +197,6 @@ The
functions first appeared in
.Nx 7.0 .
.Sh CAVEATS
All three functions are specific to
All these functions are specific to
.Nx
and thus unportable.