merge from gcc

This commit is contained in:
DJ Delorie 2005-04-16 21:49:07 +00:00
parent 68401acd24
commit 73b4949a87
2 changed files with 10 additions and 0 deletions

View File

@ -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> 2005-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked): * libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked):

View File

@ -48,6 +48,12 @@ extern "C" {
#include <stdio.h> #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 /* Open and return a FILE pointer. If the OS supports it, ensure that
the stream is setup to avoid any multi-threaded locking. Otherwise the stream is setup to avoid any multi-threaded locking. Otherwise
return the FILE pointer unchanged. */ return the FILE pointer unchanged. */