summaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2005-04-26 01:02:02 +0000
committerDJ Delorie <dj@delorie.com>2005-04-26 01:02:02 +0000
commit62cd416ebd7f52fa0187b8b8e7e71a4669490005 (patch)
tree68135ed9cfa6ef803adab7124eb30f495d3d3dcb /include/libiberty.h
parent4c5431707e9def2f5272c6adb580cd6951486775 (diff)
downloadgdb-62cd416ebd7f52fa0187b8b8e7e71a4669490005.tar.gz
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h6
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. */