summaryrefslogtreecommitdiff
path: root/fixincludes/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-04-19 12:37:08 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-04-19 12:37:08 +0000
commit042630ad4aaa8f3472e94adbe0ca751377798d69 (patch)
treef28c589b61e9abc00adb693ec85b1d582427aa47 /fixincludes/system.h
parent18e479e2131f9931dce25de735d333710ee4814d (diff)
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
Diffstat (limited to 'fixincludes/system.h')
-rw-r--r--fixincludes/system.h5
1 files changed, 5 insertions, 0 deletions
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