summaryrefslogtreecommitdiff
path: root/m4/fd-reopen.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 06:52:13 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 06:52:13 +0000
commit5eab57423ec751ece796feb45379d77cfa2d365f (patch)
tree3d7b6843d5246f767d0b1c692acf3d40b755e7de /m4/fd-reopen.m4
parent8b0a2afe9f57016e0d740aab36ff1a283832c703 (diff)
downloadcoreutils-5eab57423ec751ece796feb45379d77cfa2d365f.tar.xz
Initial revision.
Diffstat (limited to 'm4/fd-reopen.m4')
-rw-r--r--m4/fd-reopen.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/fd-reopen.m4 b/m4/fd-reopen.m4
new file mode 100644
index 000000000..2d299bdee
--- /dev/null
+++ b/m4/fd-reopen.m4
@@ -0,0 +1,15 @@
+# Invoke open, but return either a desired file descriptor or -1.
+
+dnl Copyright (C) 2005 Free Software Foundation, Inc.
+
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Written by Paul Eggert.
+
+AC_DEFUN([gl_FD_REOPEN],
+[
+ AC_LIBSOURCES([fd-reopen.c, fd-reopen.h])
+ AC_LIBOBJ([fd-reopen])
+])