FCLOSEALL(3) Linux Programmer's Manual FCLOSEALL(3)NAME
fcloseall - close all open streams
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <stdio.h>
int fcloseall(void);
DESCRIPTION
The fcloseall() function closes all of the calling process's open streams. Buffered output for each stream is written before it is closed
(as for fflush(3)); buffered input is discarded.
The standard streams, stdin, stdout, and stderr are also closed.
RETURN VALUE
This function returns 0 if all files were successfully closed; on error, EOF is returned.
ATTRIBUTES
Multithreading (see pthreads(7))
The fcloseall() function does not lock the streams, so it is not thread-safe.
CONFORMING TO
This function is a GNU extension.
SEE ALSO close(2), fclose(3), fflush(3), fopen(3), setbuf(3)COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2013-06-21 FCLOSEALL(3)
Check Out this Related Man Page
FCLOSEALL(3) Linux Programmer's Manual FCLOSEALL(3)NAME
fcloseall - close all open streams
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <stdio.h>
int fcloseall(void);
DESCRIPTION
The fcloseall() function closes all of the calling process's open streams. Buffered output for each stream is written before it is closed
(as for fflush(3)); buffered input is discarded.
The standard streams, stdin, stdout, and stderr are also closed.
RETURN VALUE
This function returns 0 if all files were successfully closed; on error, EOF is returned.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+------------+---------------+------------------------+
|Interface | Attribute | Value |
+------------+---------------+------------------------+
|fcloseall() | Thread safety | MT-Unsafe race:streams |
+------------+---------------+------------------------+
The fcloseall() function does not lock the streams, so it is not thread-safe.
CONFORMING TO
This function is a GNU extension.
SEE ALSO close(2), fclose(3), fflush(3), fopen(3), setbuf(3)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2017-09-15 FCLOSEALL(3)
Man Page
3 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Please send an email to the administrator(s) of the board with thead ID and forum for any thread that is closed that you want open (or open that you want closed). All requested considered. Our apologies if sometimes threads are closed early. If this happens, please email :)
Nobody is perfect... (0 Replies)
Discussion started by: Neo
0 Replies
2. Post Here to Contact Site Administrators and Moderators
I had a thread open and now it says it's closed. I had a question still on the forum and about 15mins after I posted my most recent question on it the thread said "closed". Why did this happen? I didn't violate any forum rules. Is there a limit on how many postings you can have in a single thread?... (1 Reply)
Discussion started by: hpicracing
1 Replies
3. Post Here to Contact Site Administrators and Moderators
I'm not so sure that this thread should have been closed. Though it was clearly homework the student was asking a specific question related to the assignment, but not the answer to the whole assignment.
/www.unix.com/unix-dummies-questions-answers/107494-how-get-rid.html .
IMHO The solution is... (1 Reply)