diff options
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/ferror.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdio/fgets.3 | 6 | ||||
-rw-r--r-- | lib/libc/stdio/fseek.3 | 18 | ||||
-rw-r--r-- | lib/libc/stdio/funopen.3 | 12 | ||||
-rw-r--r-- | lib/libc/stdio/remove.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdio/setbuf.3 | 8 | ||||
-rw-r--r-- | lib/libc/stdio/stdio.3 | 6 | ||||
-rw-r--r-- | lib/libc/stdio/tmpnam.3 | 6 |
8 files changed, 32 insertions, 32 deletions
diff --git a/lib/libc/stdio/ferror.3 b/lib/libc/stdio/ferror.3 index ddd828f3ba7..351aee534fb 100644 --- a/lib/libc/stdio/ferror.3 +++ b/lib/libc/stdio/ferror.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ferror.3,v 1.3 1998/02/04 21:29:55 deraadt Exp $ +.\" $OpenBSD: ferror.3,v 1.4 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -100,5 +100,5 @@ conform to .St -ansiC . The function .Fn fileno -conforms to +conforms to .St -p1003.1-90 . diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3 index 37472c9f104..5a64ff70208 100644 --- a/lib/libc/stdio/fgets.3 +++ b/lib/libc/stdio/fgets.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fgets.3,v 1.5 1999/05/25 13:06:46 aaron Exp $ +.\" $OpenBSD: fgets.3,v 1.6 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -82,11 +82,11 @@ if any, is sufficiently short to fit in the string. .Sh RETURN VALUES Upon successful completion, .Fn fgets -and +and .Fn gets return a pointer to the string. -If end-of-file or an error occurs before any characters are read, +If end-of-file or an error occurs before any characters are read, they return .Dv NULL . The diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3 index cd695ec9e1d..ec46cdbdbd2 100644 --- a/lib/libc/stdio/fseek.3 +++ b/lib/libc/stdio/fseek.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fseek.3,v 1.3 1999/05/27 14:08:39 aaron Exp $ +.\" $OpenBSD: fseek.3,v 1.4 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -67,7 +67,7 @@ The new position, measured in bytes, is obtained by adding .Fa offset bytes to the position specified by .Fa whence . -If +If .Fa whence is set to .Dv SEEK_SET , @@ -117,7 +117,7 @@ and (with whence set to .Dv SEEK_SET ), setting and storing the current value of -the file offset into or from the object referenced by +the file offset into or from the object referenced by .Fa pos . On some .Pq non- Ns Tn UNIX @@ -138,11 +138,11 @@ return 0, and .Fn ftell returns the current offset. -Otherwise, +Otherwise, .Fn fseek -returns \-1 and +returns \-1 and the others -return a nonzero value and the global variable +return a nonzero value and the global variable .Va errno is set to indicate the error. .Sh ERRORS @@ -155,7 +155,7 @@ is not a seekable stream. .It Bq Er EINVAL The .Fa whence -argument to +argument to .Fn fseek was not .Dv SEEK_SET , @@ -168,7 +168,7 @@ The function .Fn fgetpos , .Fn fseek , .Fn fsetpos , -and +and .Fn ftell may also fail and set .Va errno @@ -176,7 +176,7 @@ for any of the errors specified for the routines .Xr fflush 3 , .Xr fstat 2 , .Xr lseek 2 , -and +and .Xr malloc 3 . .Sh SEE ALSO .Xr lseek 2 diff --git a/lib/libc/stdio/funopen.3 b/lib/libc/stdio/funopen.3 index 268f415e939..8962b347ca2 100644 --- a/lib/libc/stdio/funopen.3 +++ b/lib/libc/stdio/funopen.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: funopen.3,v 1.7 1999/05/12 13:26:47 aaron Exp $ +.\" $OpenBSD: funopen.3,v 1.8 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -55,7 +55,7 @@ The function associates a stream with up to four .Dq Tn I/O No functions . -Either +Either .Fa readfn or .Fa writefn @@ -70,7 +70,7 @@ 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. -If the close function is omitted, closing the stream will flush +If the close function is omitted, closing the stream will flush any buffered output and then succeed. .Pp The calling conventions of @@ -87,7 +87,7 @@ and .Xr close 2 with the exceptions that they are passed the .Fa cookie -argument specified to +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 @@ -111,7 +111,7 @@ Additionally, all of the functions should set the external variable .Va errno appropriately if an error occurs. .Pp -An error on +An error on .Fn closefn does not keep the stream open. .Pp @@ -125,7 +125,7 @@ as calls to .Fn funopen with only a read or write function specified. .Sh RETURN VALUES -Upon successful completion, +Upon successful completion, .Fn funopen returns a .Dv FILE diff --git a/lib/libc/stdio/remove.3 b/lib/libc/stdio/remove.3 index d4e08a93842..79bf9b8ba61 100644 --- a/lib/libc/stdio/remove.3 +++ b/lib/libc/stdio/remove.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: remove.3,v 1.6 1999/07/07 14:22:25 aaron Exp $ +.\" $OpenBSD: remove.3,v 1.7 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -62,7 +62,7 @@ is the equivalent of Otherwise, it is the equivalent of .Fn unlink "path" . .Sh RETURN VALUES -Upon successful completion, +Upon successful completion, .Fn remove returns 0. Otherwise, \-1 is returned and the global variable diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3 index 77b59bc1dab..2f9c7c99ec3 100644 --- a/lib/libc/stdio/setbuf.3 +++ b/lib/libc/stdio/setbuf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setbuf.3,v 1.7 1999/05/23 14:11:02 aaron Exp $ +.\" $OpenBSD: setbuf.3,v 1.8 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -66,7 +66,7 @@ output or input is read from any stream attached to a terminal device The function .Xr fflush 3 may be used to force the block out early. -(See +(See .Xr fclose 3 . ) .Pp Normally all files are block buffered. @@ -105,7 +105,7 @@ The parameter may be given as zero to obtain deferred optimal-size buffer allocation as usual. If it is not zero, -then except for unbuffered files, the +then except for unbuffered files, the .Fa buf argument should point to a buffer at least .Fa size @@ -132,7 +132,7 @@ but may have peculiar side effects (such as discarding input or flushing output) if the stream is ``active''. Portable applications should call it only once on any given stream, -and before any +and before any .Tn I/O is performed. .Pp diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3 index c9d1b2093ae..93886ed4b2e 100644 --- a/lib/libc/stdio/stdio.3 +++ b/lib/libc/stdio/stdio.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stdio.3,v 1.9 1999/05/23 14:11:02 aaron Exp $ +.\" $OpenBSD: stdio.3,v 1.10 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -111,10 +111,10 @@ At program startup, three streams are predefined and need not be opened explicitly: .Bl -bullet -compact -offset indent .It -.Em standard input +.Em standard input (for reading conventional input), .It -.Em standard output +.Em standard output (for writing conventional output), and .It .Em standard error diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3 index c2a71d55933..05307cf9b99 100644 --- a/lib/libc/stdio/tmpnam.3 +++ b/lib/libc/stdio/tmpnam.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmpnam.3,v 1.5 1999/02/27 21:55:50 deraadt Exp $ +.\" $OpenBSD: tmpnam.3,v 1.6 1999/07/09 13:35:23 aaron Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -95,7 +95,7 @@ In either case, .Fn tmpnam returns a pointer to the file name. .Pp -The buffer referenced by +The buffer referenced by .Fa s is expected to be at least .Dv L_tmpnam @@ -242,7 +242,7 @@ cannot depend on that. For these reasons, .Xr ld 8 will output a warning message whenever it links code that uses the -functions +functions .Fn tmpnam or .Fn tempnam . |