aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-04-26 00:14:35 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-04-26 00:14:35 +0000
commit32e82bd8960ae9065a5003edb15665a244b6bf1a (patch)
treef51981e350ce82938172a24c2eac8c527d04158f /include
parentc2cab3e97ae95a873e8c8e8501b4196b653749e5 (diff)
downloadgcc-32e82bd8960ae9065a5003edb15665a244b6bf1a.zip
gcc-32e82bd8960ae9065a5003edb15665a244b6bf1a.tar.gz
gcc-32e82bd8960ae9065a5003edb15665a244b6bf1a.tar.bz2
libiberty.h (unlock_std_streams): New.
include: * libiberty.h (unlock_std_streams): New. libiberty: * fopen_unlocked.c (unlock_std_streams): New. * functions.texi: Regenerate. From-SVN: r98746
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 20f8922..e82f470 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * libiberty.h (unlock_std_streams): New.
+
2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* hashtab.h, libiberty.h, objalloc.h, splay-tree.h, ternary.h:
diff --git a/include/libiberty.h b/include/libiberty.h
index df36cdc..215e832 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. */