]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sun, 15 Dec 2002 19:21:40 +0000 (19:21 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 15 Dec 2002 19:21:40 +0000 (19:21 +0000)
aclocal.m4
config.hin
lib/Makefile.in
tests/misc/Makefile.in

index af8c7ea42855189f0c69085fb7863223972ca9e1..caa527d607349db4d1633eaafb294ba9b0b4eff5 100644 (file)
@@ -2811,7 +2811,9 @@ AC_DEFUN([jm_FUNC_NANOSLEEP],
  LIBS=$nanosleep_save_libs
 ])
 
-#serial 7 -*- autoconf -*-
+dnl This file is automatically generated from jm-glibc-io.m4n.
+
+#serial 6 -*- autoconf -*-
 
 dnl From Jim Meyering.
 dnl
@@ -2820,11 +2822,30 @@ dnl Use only those *_unlocked macros that are declared.
 dnl
 
 AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],
-  [AC_CHECK_DECLS(
-     [clearerr_unlocked, feof_unlocked, ferror_unlocked,
-      fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
-      fread_unlocked, fwrite_unlocked, getc_unlocked,
-      getchar_unlocked, putc_unlocked, putchar_unlocked])])
+  [
+    # Kludge (not executed) to make autoheader do the right thing.
+    if test a = b; then
+      AC_CHECK_DECLS([clearerr_unlocked,feof_unlocked,ferror_unlocked,fflush_unlocked,fgets_unlocked,fputc_unlocked,fputs_unlocked,fread_unlocked,fwrite_unlocked,getc_unlocked,getchar_unlocked,putc_unlocked,putchar_unlocked])
+      AC_CHECK_FUNCS(clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked)
+    fi
+
+    io_functions='clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
+
+    for jm_io_func in $io_functions; do
+      # Check for the existence of each function only if it is declared.
+      # Otherwise, we'd get the Solaris5.5.1 functions that are not
+      # declared, and that have been removed from Solaris5.6.  The resulting
+      # 5.5.1 binaries would not run on 5.6 due to shared library differences.
+      AC_CHECK_DECLS([$jm_io_func],
+                    jm_declared=yes,
+                    jm_declared=no,
+                    [#include <stdio.h>])
+      if test $jm_declared = yes; then
+        AC_CHECK_FUNCS($jm_io_func)
+      fi
+    done
+  ]
+)
 
 #serial 3
 
index c516e49ed367ed6c2318cabcf0f1f8eb746f2c78..7c585e453c8208d31879c91953bb0c642225b2e5 100644 (file)
 /* Define to 1 if you have the `chsize' function. */
 #undef HAVE_CHSIZE
 
+/* Define to 1 if you have the `clearerr_unlocked' function. */
+#undef HAVE_CLEARERR_UNLOCKED
+
 /* Define to 1 if you have the `clock_gettime' function. */
 #undef HAVE_CLOCK_GETTIME
 
 /* Define to 1 if you have the `fdatasync' function. */
 #undef HAVE_FDATASYNC
 
+/* Define to 1 if you have the `feof_unlocked' function. */
+#undef HAVE_FEOF_UNLOCKED
+
+/* Define to 1 if you have the `ferror_unlocked' function. */
+#undef HAVE_FERROR_UNLOCKED
+
 /* Define to 1 if you have the `fesetround' function. */
 #undef HAVE_FESETROUND
 
+/* Define to 1 if you have the `fflush_unlocked' function. */
+#undef HAVE_FFLUSH_UNLOCKED
+
+/* Define to 1 if you have the `fgets_unlocked' function. */
+#undef HAVE_FGETS_UNLOCKED
+
 /* Define to 1 if you have the <float.h> header file. */
 #undef HAVE_FLOAT_H
 
 /* Define to 1 if you have the `floor' function. */
 #undef HAVE_FLOOR
 
+/* Define to 1 if you have the `fputc_unlocked' function. */
+#undef HAVE_FPUTC_UNLOCKED
+
+/* Define to 1 if you have the `fputs_unlocked' function. */
+#undef HAVE_FPUTS_UNLOCKED
+
+/* Define to 1 if you have the `fread_unlocked' function. */
+#undef HAVE_FREAD_UNLOCKED
+
 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
 #undef HAVE_FSEEKO
 
 /* Define to 1 if you have the `ftruncate' function. */
 #undef HAVE_FTRUNCATE
 
+/* Define to 1 if you have the `fwrite_unlocked' function. */
+#undef HAVE_FWRITE_UNLOCKED
+
 /* Define if struct statfs has the f_fstypename member. */
 #undef HAVE_F_FSTYPENAME_IN_STATFS
 
+/* Define to 1 if you have the `getchar_unlocked' function. */
+#undef HAVE_GETCHAR_UNLOCKED
+
 /* Define to 1 if you have the `getcontext' function. */
 #undef HAVE_GETCONTEXT
 
 /* Define if getcwd (NULL, 0) allocates memory for result. */
 #undef HAVE_GETCWD_NULL
 
+/* Define to 1 if you have the `getc_unlocked' function. */
+#undef HAVE_GETC_UNLOCKED
+
 /* Define to 1 if you have the `getdelim' function. */
 #undef HAVE_GETDELIM
 
 /* Define to 1 if you have the `pstat_getstatic' function. */
 #undef HAVE_PSTAT_GETSTATIC
 
+/* Define to 1 if you have the `putchar_unlocked' function. */
+#undef HAVE_PUTCHAR_UNLOCKED
+
+/* Define to 1 if you have the `putc_unlocked' function. */
+#undef HAVE_PUTC_UNLOCKED
+
 /* Define to 1 if you have the <pwd.h> header file. */
 #undef HAVE_PWD_H
 
index a408b3bc8b23715bc9de923c371d1e5a8058865d..c800d30cac18737ffaf55bd6964df9448d56fc56 100644 (file)
@@ -161,7 +161,7 @@ libfetish_a_SOURCES = \
   getdate.h getdate.y \
   posixtm.c posixtm.h \
   posixver.c posixver.h \
-  strftime.c \
+  strftime.c strftime.h \
   getopt.c getopt.h getopt1.c \
   hash.c hash.h \
   hash-pjw.c hash-pjw.h \
index 3b18263b10de5c5f30ada35415c6bd0a985a20a3..9f30ab9ad012f934338d6a05ef162f6a4f68a01d 100644 (file)
@@ -158,6 +158,7 @@ TESTS_ENVIRONMENT = \
 
 
 TESTS = \
+  cat-tty-eof \
   printf-hex \
   nl split-l printf split-a head-pos sort head-c csplit nice pathchk1