diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-16 16:58:35 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-16 16:58:35 +0000 |
commit | bb06f0f58205cd2a40a101e5a154d0c664adcf91 (patch) | |
tree | d156f4f535f6fa53299a5cfac16c2d29a981988e /include | |
parent | f80ab0b501b8771223cd6abc4f5dedfbc466e4bb (diff) | |
download | gcc-bb06f0f58205cd2a40a101e5a154d0c664adcf91.tar.gz |
include:
* libiberty.h (unlock_stream): New.
libiberty:
* fopen_unlocked.c (unlock_stream): New.
Consolidate unlocking code into a helper function.
* functions.texi: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98234 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 20b17e55e0f..9f0188e3957 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (unlock_stream): New. + 2005-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked): diff --git a/include/libiberty.h b/include/libiberty.h index 671a1239c65..8254aafab0f 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -48,6 +48,12 @@ extern "C" { #include <stdio.h> +/* If the OS supports it, ensure that the supplied stream is setup to + avoid any multi-threaded locking. Otherwise leave the FILE pointer + unchanged. If the stream is NULL do nothing. */ + +extern void unlock_stream (FILE *); + /* 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. */ |