summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-06-28 21:40:12 +0000
committerJim Meyering <jim@meyering.net>1998-06-28 21:40:12 +0000
commit8f3524de4a6dc2fa6e01b35976b42fbb595beeeb (patch)
treeb5d52e5dfa1d987a67abf2449cef87eb24646527 /m4
parent439fdff851b3a064ccd3961e70495629ddba6702 (diff)
downloadcoreutils-8f3524de4a6dc2fa6e01b35976b42fbb595beeeb.tar.xz
.
Diffstat (limited to 'm4')
-rw-r--r--m4/jm-glibc-io.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/m4/jm-glibc-io.m4 b/m4/jm-glibc-io.m4
new file mode 100644
index 000000000..e6ff4daa2
--- /dev/null
+++ b/m4/jm-glibc-io.m4
@@ -0,0 +1,24 @@
+#serial 1
+
+dnl From Jim Meyering.
+dnl
+dnl See if the glibc *_unlocked I/O macros are available.
+dnl
+
+AC_DEFUN(jm_FUNC_GLIBC_UNLOCKED_IO,
+ [AC_CHECK_FUNCS( \
+ clearerr_unlocked \
+ fclose_unlocked \
+ feof_unlocked \
+ ferror_unlocked \
+ fflush_unlocked \
+ fputc_unlocked \
+ fread_unlocked \
+ fwrite_unlocked \
+ getc_unlocked \
+ getchar_unlocked \
+ putc_unlocked \
+ putchar_unlocked \
+ )
+ ]
+)