summaryrefslogtreecommitdiff
path: root/modules/openat-safer
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-02 06:07:54 -0600
committerEric Blake <ebb9@byu.net>2009-09-02 20:27:56 -0600
commit02fd4eb4561842dee666b709fbbb1632c4357d2d (patch)
tree7dc9c63b6ec8821af0d5c9c9b4c5a1d405c31941 /modules/openat-safer
parent4f1227bdeac3e4e18c9b3efb27623875e02d681d (diff)
downloadgnulib-02fd4eb4561842dee666b709fbbb1632c4357d2d.tar.gz
openat-safer: new module
* modules/openat-safer: New file. * lib/openat-safer.c: Likewise. * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro. * lib/fcntl-safer.h (openat_safer): Declare. * lib/fcntl--.h (openat): Override. * MODULES.html.sh (File descriptor based I/O): Mention it. * lib/openat.h: Add double-inclusion guards. * lib/openat.c (includes): Only include "fcntl-safer.h", not "fcntl--.h", so we can implement openat. * modules/openat-safer-tests: New test. * tests/test-openat-safer.c: New file. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/openat-safer')
-rw-r--r--modules/openat-safer28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/openat-safer b/modules/openat-safer
new file mode 100644
index 0000000000..d59588396b
--- /dev/null
+++ b/modules/openat-safer
@@ -0,0 +1,28 @@
+Description:
+openat function that avoids clobbering std{in,out,err}.
+
+Files:
+lib/fcntl--.h
+lib/fcntl-safer.h
+lib/openat-safer.c
+m4/fcntl-safer.m4
+
+Depends-on:
+fcntl-safer
+openat
+unistd-safer
+
+configure.ac:
+gl_OPENAT_SAFER
+gl_MODULE_INDICATOR([openat-safer])
+
+Makefile.am:
+
+Include:
+"fcntl-safer.h"
+
+License:
+GPL
+
+Maintainer:
+Eric Blake