From cd62a92d4a964bfe61d35ba2301b69e65e22a509 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Mon, 2 Mar 2020 05:43:45 +0000 Subject: 7092 Want support for stdio memory streams 12360 fwrite can loop forever on zero byte write 12392 ftello64 doesn't handle ungetc() correctly when unbuffered Reviewed by: John Levon Reviewed by: Yuri Pankov Approved by: Dan McDonald --- usr/src/man/man3c/fflush.3c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'usr/src/man/man3c/fflush.3c') diff --git a/usr/src/man/man3c/fflush.3c b/usr/src/man/man3c/fflush.3c index 7e71eedfd7..ffadc8399e 100644 --- a/usr/src/man/man3c/fflush.3c +++ b/usr/src/man/man3c/fflush.3c @@ -43,11 +43,10 @@ .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. .\" Portions Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. .\" -.TH FFLUSH 3C "Nov 1, 2003" +.TH FFLUSH 3C "March 25, 2020" .SH NAME fflush \- flush a stream .SH SYNOPSIS -.LP .nf #include @@ -55,8 +54,6 @@ fflush \- flush a stream .fi .SH DESCRIPTION -.sp -.LP If \fIstream\fR points to an output stream or an update stream in which the most recent operation was not input, \fBfflush()\fR causes any unwritten data for that stream to be written to the file, and the \fBst_ctime\fR and @@ -78,13 +75,9 @@ on all streams for which the behavior is defined above. An input stream, seekable or non-seekable, can be flushed by explicitly calling \fBfflush()\fR with a non-null argument specifying that stream. .SH RETURN VALUES -.sp -.LP Upon successful completion, \fBfflush()\fR returns \fB0\fR. Otherwise, it returns \fBEOF\fR and sets \fBerrno\fR to indicate the error. .SH ERRORS -.sp -.LP The \fBfflush()\fR function will fail if: .sp .ne 2 @@ -135,6 +128,8 @@ The \fBfflush()\fR function was interrupted by a signal. The process is a member of a background process group attempting to write to its controlling terminal, \fBTOSTOP\fR is set, the process is neither ignoring nor blocking \fBSIGTTOU\fR, and the process group of the process is orphaned. +\fIstream\fR was created by \fBopen_wmemstream\fR(3C) and a wide-character or +byte sequence buffered is invalid in the current locale. .RE .sp @@ -171,8 +166,6 @@ limits of the device. .RE .SH ATTRIBUTES -.sp -.LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -189,6 +182,4 @@ MT-Level MT-Safe .TE .SH SEE ALSO -.sp -.LP \fBgetrlimit\fR(2), \fBulimit\fR(2), \fBattributes\fR(5), \fBstandards\fR(5) -- cgit v1.2.3