openat-safer: new module
authorEric Blake <ebb9@byu.net>
Wed, 2 Sep 2009 12:07:54 +0000 (06:07 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 3 Sep 2009 02:27:56 +0000 (20:27 -0600)
commit02fd4eb4561842dee666b709fbbb1632c4357d2d
tree7dc9c63b6ec8821af0d5c9c9b4c5a1d405c31941
parent4f1227bdeac3e4e18c9b3efb27623875e02d681d
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>
ChangeLog
MODULES.html.sh
lib/fcntl--.h
lib/fcntl-safer.h
lib/openat-safer.c [new file with mode: 0644]
lib/openat.c
lib/openat.h
m4/fcntl-safer.m4
modules/openat-safer [new file with mode: 0644]
modules/openat-safer-tests [new file with mode: 0644]
tests/test-openat-safer.c [new file with mode: 0644]