Minor markup and wording fixes.
This commit is contained in:
parent
e8b93c6953
commit
48efa70d76
|
@ -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
|
.\" Copyright (c) 1990, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
|
@ -47,8 +47,22 @@
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In stdio.h
|
.In stdio.h
|
||||||
.Ft FILE *
|
.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 *)"
|
.Fo funopen
|
||||||
.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 *)"
|
.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 *
|
.Ft FILE *
|
||||||
.Fn fropen "void *cookie" "int (*readfn)(void *, char *, int)"
|
.Fn fropen "void *cookie" "int (*readfn)(void *, char *, int)"
|
||||||
.Ft FILE *
|
.Ft FILE *
|
||||||
|
@ -126,7 +140,7 @@ Additionally, all of the functions should set the external variable
|
||||||
appropriately if an error occurs.
|
appropriately if an error occurs.
|
||||||
.Pp
|
.Pp
|
||||||
An error on
|
An error on
|
||||||
.Fn closefn
|
.Fa closefn
|
||||||
does not keep the stream open.
|
does not keep the stream open.
|
||||||
.Pp
|
.Pp
|
||||||
As a convenience, the include file
|
As a convenience, the include file
|
||||||
|
@ -183,6 +197,6 @@ The
|
||||||
functions first appeared in
|
functions first appeared in
|
||||||
.Nx 7.0 .
|
.Nx 7.0 .
|
||||||
.Sh CAVEATS
|
.Sh CAVEATS
|
||||||
All three functions are specific to
|
All these functions are specific to
|
||||||
.Nx
|
.Nx
|
||||||
and thus unportable.
|
and thus unportable.
|
||||||
|
|
Loading…
Reference in New Issue