-.\" $OpenBSD: fgetln.3,v 1.16 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fgetln.3,v 1.17 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: January 13 2015 $
.Dt FGETLN 3
.Os
.Sh NAME
.Fa stream .
This line is
.Em not
-a C string as it does not end with a terminating
-.Tn NUL
-character.
+a C string as it does not end with a terminating NUL character.
The length of the line, including the final newline,
is stored in the memory location to which
.Fa len
the returned text will not contain a newline.)
.Sh RETURN VALUES
Upon successful completion a pointer is returned;
-this pointer becomes invalid after the next
-.Tn I/O
-operation on
+this pointer becomes invalid after the next I/O operation on
.Fa stream
(whether successful or not)
or as soon as the stream is closed.
-.\" $OpenBSD: fgetwln.3,v 1.1 2015/01/12 20:58:07 millert Exp $
+.\" $OpenBSD: fgetwln.3,v 1.2 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 12 2015 $
+.Dd $Mdocdate: January 13 2015 $
.Dt FGETWLN 3
.Os
.Sh NAME
the returned text will not contain a newline.)
.Sh RETURN VALUES
Upon successful completion a pointer is returned;
-this pointer becomes invalid after the next
-.Tn I/O
-operation on
+this pointer becomes invalid after the next I/O operation on
.Fa stream
(whether successful or not)
or as soon as the stream is closed.
-.\" $OpenBSD: fopen.3,v 1.30 2014/11/15 14:41:02 bentley Exp $
+.\" $OpenBSD: fopen.3,v 1.31 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: January 13 2015 $
.Dt FOPEN 3
.Os
.Sh NAME
.Xr umask 2 ) .
.Pp
Reads and writes cannot be arbitrarily intermixed on read/write streams.
-.Tn ANSI C
-requires that
+ANSI C requires that
a file positioning function intervene between output and input, unless
an input operation encounters end-of-file.
.Pp
-.\" $OpenBSD: fputs.3,v 1.10 2013/07/18 10:14:49 schwarze Exp $
+.\" $OpenBSD: fputs.3,v 1.11 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 18 2013 $
+.Dd $Mdocdate: January 13 2015 $
.Dt FPUTS 3
.Os
.Sh NAME
.Fa str
to the stream pointed to by
.Fa stream .
-.\" The terminating
-.\" .Tn NUL
-.\" character is not written.
.Pp
The function
.Fn puts
-.\" $OpenBSD: funopen.3,v 1.16 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: funopen.3,v 1.17 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: January 13 2015 $
.Dt FUNOPEN 3
.Os
.Sh NAME
.Sh DESCRIPTION
The
.Fn funopen
-function associates a stream with up to four
-.Dq Tn I/O No functions .
+function associates a stream with up to four I/O functions.
Either
.Fa readfn
or
the others may be given as
.Dv NULL
pointers.
-These
-.Tn I/O
-functions will be used to read, write, seek, and close the new stream.
+These I/O 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.
.Li off_t
argument.
.Pp
-Read and write
-.Tn I/O
-functions are allowed to change the underlying buffer
+Read and write I/O functions are allowed to change the underlying buffer
on fully buffered or line buffered streams by calling
.Xr setvbuf 3 .
They are also not required to completely fill or empty the buffer.
They must also be prepared to have read or write calls occur on buffers other
than the one most recently specified.
.Pp
-All user
-.Tn I/O
-functions can report an error by returning \-1.
+All user I/O functions can report an error by returning \-1.
Additionally, all of the functions should set the external variable
.Va errno
appropriately if an error occurs.
-.\" $OpenBSD: printf.3,v 1.70 2014/11/15 14:41:02 bentley Exp $
+.\" $OpenBSD: printf.3,v 1.71 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: January 13 2015 $
.Dt PRINTF 3
.Os
.Sh NAME
argument is expected to be a pointer to an array of character type (pointer
to a string).
Characters from the array are written up to (but not including)
-a terminating
-.Tn NUL
-character;
+a terminating NUL character;
if a precision is specified, no more than the number specified are
written.
-If a precision is given, no NUL character
-need be present; if the precision is not specified, or is greater than
-the size of the array, the array must contain a terminating
-.Tn NUL
-character.
+If a precision is given, no NUL character need be present;
+if the precision is not specified, or is greater than the size
+of the array, the array must contain a terminating NUL character.
.It Cm p
The
.Li void *
-.\" $OpenBSD: tmpnam.3,v 1.19 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: tmpnam.3,v 1.20 2015/01/13 14:02:30 schwarze Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: January 13 2015 $
.Dt TMPFILE 3
.Os
.Sh NAME
.Fn tmpnam
and
.Fn tempnam
-are provided for System V and
-.Tn ANSI
-compatibility only.
+are provided for System V and ANSI compatibility only.
These interfaces are typically not used in safe ways.
The
.Xr mkstemp 3