From 2224c90bc01cc197361e465122ecfb5676b8899e Mon Sep 17 00:00:00 2001 From: ghazi Date: Tue, 19 Apr 2005 12:37:08 +0000 Subject: [PATCH] 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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98407 138bc75d-0d04-0410-961f-82ee72b054a4 --- fixincludes/ChangeLog | 5 +++++ fixincludes/system.h | 5 +++++ gcc/ChangeLog | 5 +++++ gcc/system.h | 5 +++++ libcpp/ChangeLog | 5 +++++ libcpp/system.h | 5 +++++ 6 files changed, 30 insertions(+) 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 + + * system.h (fopen, fdopen, freopen): Define these to the unlocked + libiberty functions. + 2005-04-11 Kaveh R. Ghazi * 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 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 844197d44f2..e1b7265e6f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-19 Kaveh R. Ghazi + + * system.h (fopen, fdopen, freopen): Define these to the unlocked + libiberty functions. + 2005-04-19 Kazu Hirata PR tree-optimization/21096 diff --git a/gcc/system.h b/gcc/system.h index dc009d1ae2d..62b8c0488a2 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -46,6 +46,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) + /* The compiler 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 diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 615118634c1..7050d65189e 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +2005-04-19 Kaveh R. Ghazi + + * system.h (fopen, fdopen, freopen): Define these to the unlocked + libiberty functions. + 2005-04-11 Kaveh R. Ghazi * configure.ac (libcpp_UNLOCKED_FUNCS): New. diff --git a/libcpp/system.h b/libcpp/system.h index 560fa18406b..98ac118e351 100644 --- a/libcpp/system.h +++ b/libcpp/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) + /* The compiler 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 -- 2.11.0