diff options
author | Kaveh Ghazi <ghazi@caip.rutgers.edu> | 2005-04-19 12:37:08 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@caip.rutgers.edu> | 2005-04-19 12:37:08 +0000 |
commit | 8772c3817ea1bcfa02c3d0d480892eae34567833 (patch) | |
tree | f28c589b61e9abc00adb693ec85b1d582427aa47 /fixincludes | |
parent | 143ddb32290743ad8ca176c1190ca26a8498ad63 (diff) |
fixincludes:
* system.h (fopen, fdopen, freopen): Define these to the unlocked
libiberty functions.
gcc:
* system.h (fopen, fdopen, freopen): Define these to the unlocked
libiberty functions.
libcpp:
* system.h (fopen, fdopen, freopen): Define these to the unlocked
libiberty functions.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@98407 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes')
-rw-r--r-- | fixincludes/ChangeLog | 5 | ||||
-rw-r--r-- | fixincludes/system.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog index d6129d6a8ec..36300e433df 100644 --- a/fixincludes/ChangeLog +++ b/fixincludes/ChangeLog @@ -1,3 +1,8 @@ +2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * system.h (fopen, fdopen, freopen): Define these to the unlocked + libiberty functions. + 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.ac (fixincludes_UNLOCKED_FUNCS): New. diff --git a/fixincludes/system.h b/fixincludes/system.h index 4873d091cd6..602654e6b30 100644 --- a/fixincludes/system.h +++ b/fixincludes/system.h @@ -38,6 +38,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define NULL 0 #endif +/* Use the unlocked open routines from libiberty. */ +#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE) +#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE) +#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM) + /* fixincludes is not a multi-threaded application and therefore we do not have to use the locking functions. In fact, using the locking functions can cause the compiler to be significantly slower under |