From a871d84817f307802ae7e65309ec3820901bbab0 Mon Sep 17 00:00:00 2001 From: Kaveh Ghazi Date: Tue, 26 Apr 2005 00:14:35 +0000 Subject: include: * libiberty.h (unlock_std_streams): New. libiberty: * fopen_unlocked.c (unlock_std_streams): New. * functions.texi: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@98746 138bc75d-0d04-0410-961f-82ee72b054a4 --- include/ChangeLog | 4 ++++ include/libiberty.h | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 20f8922a72d..e82f470a062 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-04-25 Kaveh R. Ghazi + + * libiberty.h (unlock_std_streams): New. + 2005-04-19 Kaveh R. Ghazi * hashtab.h, libiberty.h, objalloc.h, splay-tree.h, ternary.h: 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. */ -- cgit v1.2.3