Commit 54953b66 by Ulrich Drepper Committed by Jeff Law

configure.in: Test for availability of putc_unlocked, fputc_unlocked, and fputs_unlocked.

        * configure.in: Test for availability of putc_unlocked, fputc_unlocked,
        and fputs_unlocked.
        * configure: Rebuilt.
        * system.h: If the *_unlocked functions are available use them
        instead of the locked counterparts by defining macros.
        * config.in: Regenerated.

From-SVN: r24175
parent 872936ad
1998-12-08 Ulrich Drepper <drepper@cygnus.com>
* configure.in: Test for availability of putc_unlocked, fputc_unlocked,
and fputs_unlocked.
* configure: Rebuilt.
* system.h: If the *_unlocked functions are available use them
instead of the locked counterparts by defining macros.
* config.in: Regenerated.
Tue Dec 8 00:34:05 1998 Mike Stump <mrs@wrs.com>
* i386/bsd.h (ASM_FILE_START): Don't use dump_base_name, it is
......
......@@ -140,6 +140,12 @@
/* Define if you have the bzero function. */
#undef HAVE_BZERO
/* Define if you have the fputc_unlocked function. */
#undef HAVE_FPUTC_UNLOCKED
/* Define if you have the fputs_unlocked function. */
#undef HAVE_FPUTS_UNLOCKED
/* Define if you have the getrlimit function. */
#undef HAVE_GETRLIMIT
......@@ -158,6 +164,9 @@
/* Define if you have the popen function. */
#undef HAVE_POPEN
/* Define if you have the putc_unlocked function. */
#undef HAVE_PUTC_UNLOCKED
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
......
......@@ -371,7 +371,8 @@ fi
AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii gettimeofday strsignal)
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
fputs_unlocked)
# Make sure wchar_t is available
#AC_CHECK_TYPE(wchar_t, unsigned int)
......
......@@ -21,6 +21,21 @@
#define NULL 0
#endif
/* The compiler is not a multi-threaded application and therefore we
do not have to use the locking functions. */
#ifdef HAVE_PUTC_UNLOCKED
# undef putc
# define putc(C, Stream) putc_unlocked (C, Stream)
#endif
#ifdef HAVE_FPUTC_UNLOCKED
# undef fputc
# define fputc(C, Stream) fputc_unlocked (C, Stream)
#endif
#ifdef HAVE_FPUTS_UNLOCKED
# undef fputs
# define fputs(String, Stream) fputs_unlocked (String, Stream)
#endif
#include <ctype.h>
/* Jim Meyering writes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment