diff options
author | 2000-04-20 01:39:31 +0000 | |
---|---|---|
committer | 2000-04-20 01:39:31 +0000 | |
commit | aa86bf2d6802741b82abbadd8b93f15e93018443 (patch) | |
tree | 51ed78b35a0b80645fd9da45de68dca44508f8b8 /lib/libc/stdio/funopen.3 | |
parent | Remove NetBSD ifdefs here too. (diff) | |
download | wireguard-openbsd-aa86bf2d6802741b82abbadd8b93f15e93018443.tar.xz wireguard-openbsd-aa86bf2d6802741b82abbadd8b93f15e93018443.zip |
Flesh out all of the stdio man pages.
Diffstat (limited to 'lib/libc/stdio/funopen.3')
-rw-r--r-- | lib/libc/stdio/funopen.3 | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/lib/libc/stdio/funopen.3 b/lib/libc/stdio/funopen.3 index 8962b347ca2..076ccc90162 100644 --- a/lib/libc/stdio/funopen.3 +++ b/lib/libc/stdio/funopen.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: funopen.3,v 1.8 1999/07/09 13:35:23 aaron Exp $ +.\" $OpenBSD: funopen.3,v 1.9 2000/04/20 01:39:32 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -52,8 +52,7 @@ .Sh DESCRIPTION The .Fn funopen -function -associates a stream with up to four +function associates a stream with up to four .Dq Tn I/O No functions . Either .Fa readfn @@ -65,8 +64,7 @@ the others can be given as an appropriately typed pointer. These .Tn I/O -functions will be used to read, write, seek and -close the new stream. +functions will be used to read, write, seek and close the new stream. .Pp In general, omitting a function means that any attempt to perform the associated operation on the resulting stream will fail. @@ -76,7 +74,7 @@ any buffered output and then succeed. The calling conventions of .Fa readfn , .Fa writefn , -.Fa seekfn +.Fa seekfn , and .Fa closefn must match those, respectively, of @@ -90,7 +88,10 @@ with the exceptions that they are passed the argument specified to .Fn funopen in place of the traditional file descriptor argument and that -the seek function takes an fpos_t argument and not an off_t +the seek function takes an +.Li fpos_t +argument and not an +.Li off_t argument. .Pp Read and write @@ -140,15 +141,12 @@ is set to indicate the error. .It Bq Er EINVAL The .Fn funopen -function -was called without either a read or write function. +function was called without either a read or write function. The .Fn funopen -function -may also fail and set +function may also fail and set .Va errno -for any of the errors -specified for the routine +for any of the errors specified for the routine .Xr malloc 3 . .El .Sh SEE ALSO @@ -166,6 +164,5 @@ functions first appeared in .Sh BUGS The .Fn funopen -function -may not be portable to systems other than +function may not be portable to systems other than .Bx . |