Mercurial > hg > octave-jordi > gnulib-hg
view modules/openat-safer-tests @ 11937:ded3ad24a7f4
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>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Wed, 02 Sep 2009 06:07:54 -0600 |
parents | |
children | 618282a72d9b |
line wrap: on
line source
Files: tests/test-openat-safer.c Depends-on: configure.ac: Makefile.am: TESTS += test-openat-safer check_PROGRAMS += test-openat-safer test_openat_safer_LDADD = $(LDADD) @LIBINTL@