diff options
| author | Robert Mustacchi <rm@fingolfin.org> | 2020-03-02 05:43:45 +0000 |
|---|---|---|
| committer | Robert Mustacchi <rm@fingolfin.org> | 2020-03-26 07:42:53 +0000 |
| commit | cd62a92d4a964bfe61d35ba2301b69e65e22a509 (patch) | |
| tree | 8e346d9037f7c654ffe58ed0d5e27f34025dd672 /usr/src/man/man3c/fclose.3c | |
| parent | 1470234269f4edea4cbf270cb2475e4988b788d5 (diff) | |
| download | illumos-joyent-cd62a92d4a964bfe61d35ba2301b69e65e22a509.tar.gz | |
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 <john.levon@joyent.com>
Reviewed by: Yuri Pankov <ypankov@fastmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/man/man3c/fclose.3c')
| -rw-r--r-- | usr/src/man/man3c/fclose.3c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr/src/man/man3c/fclose.3c b/usr/src/man/man3c/fclose.3c index 6d30cb6afe..3b48527eb9 100644 --- a/usr/src/man/man3c/fclose.3c +++ b/usr/src/man/man3c/fclose.3c @@ -44,11 +44,10 @@ .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. .\" -.TH FCLOSE 3C "Nov 1, 2003" +.TH FCLOSE 3C "March 25, 2020" .SH NAME fclose \- close a stream .SH SYNOPSIS -.LP .nf #include <stdio.h> @@ -56,7 +55,6 @@ fclose \- close a stream .fi .SH DESCRIPTION -.LP The \fBfclose()\fR function causes the stream pointed to by \fIstream\fR to be flushed and the associated file to be closed. Any unwritten buffered data for the stream is written to the file; any unread buffered data is discarded. The @@ -78,11 +76,9 @@ behavior. The \fBfclose()\fR function is performed automatically for all open files upon calling \fBexit\fR(2). .SH RETURN VALUES -.LP Upon successful completion, \fBfclose()\fR returns \fB0\fR. Otherwise, it returns \fBEOF\fR and sets \fBerrno\fR to indicate the error. .SH ERRORS -.LP The \fBfclose()\fR function will fail if: .sp .ne 2 @@ -133,6 +129,8 @@ The \fBfclose()\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 @@ -169,7 +167,6 @@ limits of the device. .RE .SH ATTRIBUTES -.LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -186,7 +183,6 @@ MT-Level MT-Safe .TE .SH SEE ALSO -.LP \fBclose\fR(2), \fBexit\fR(2), \fBgetrlimit\fR(2), \fBulimit\fR(2), \fBfcloseall\fR(3C), \fBfopen\fR(3C), \fBstdio\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) |
