From 042630ad4aaa8f3472e94adbe0ca751377798d69 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Tue, 19 Apr 2005 12:37:08 +0000 Subject: system.h (fopen, [...]): Define these to the unlocked libiberty functions. 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. From-SVN: r98407 --- libcpp/ChangeLog | 5 +++++ libcpp/system.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'libcpp') diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 6151186..7050d65 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 560fa18..98ac118 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 -- cgit v1.1