diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-26 00:14:35 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-26 00:14:35 +0000 |
commit | 243fbe73b1f88e114de5ca74d31bf3f2e49b5ec0 (patch) | |
tree | f51981e350ce82938172a24c2eac8c527d04158f /include/libiberty.h | |
parent | 8ae59a6f0b0d122ee6e70d47c090b012cc9bd6e8 (diff) | |
download | gcc-243fbe73b1f88e114de5ca74d31bf3f2e49b5ec0.tar.gz |
include:
* libiberty.h (unlock_std_streams): New.
libiberty:
* fopen_unlocked.c (unlock_std_streams): New.
* functions.texi: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98746 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index df36cdc8ab3..215e832bb57 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -54,6 +54,12 @@ extern "C" { extern void unlock_stream (FILE *); +/* If the OS supports it, ensure that the standard I/O streams, stdin, + stdout and stderr are setup to avoid any multi-threaded locking. + Otherwise do nothing. */ + +extern void unlock_std_streams (void); + /* Open and return a FILE pointer. If the OS supports it, ensure that the stream is setup to avoid any multi-threaded locking. Otherwise return the FILE pointer unchanged. */ |