futimens: new module
authorEric Blake <ebb9@byu.net>
Fri, 9 Oct 2009 22:05:19 +0000 (16:05 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 10 Oct 2009 14:52:11 +0000 (08:52 -0600)
commit959d9cb463d992f9c5cc2fbeb54bf12eee2346f7
tree523c826d69634db868d9f83bdc91f8d0aea276cd
parentaba351689b1b5ce068b76d112c1f4929ac26ab9c
futimens: new module

Provides futimens where it is missing, and rpl_futimens to work
around bugs in older Linux kernels.

* modules/futimens: New file.
* lib/futimens.c (futimens): Likewise.
* m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
* lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
we can work around Linux bugs.
* m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
* modules/sys_stat (Makefile.am): Substitute them.
* lib/sys_stat.in.h (futimens): Declare it.
* MODULES.html.sh (systems lacking POSIX:2008): Mention module.
* doc/posix-functions/futimens.texi (futimens): Likewise.
* modules/futimens-tests: New test.
* tests/test-futimens.c: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
12 files changed:
ChangeLog
MODULES.html.sh
doc/posix-functions/futimens.texi
lib/futimens.c [new file with mode: 0644]
lib/sys_stat.in.h
lib/utimens.c
m4/futimens.m4 [new file with mode: 0644]
m4/sys_stat_h.m4
modules/futimens [new file with mode: 0644]
modules/futimens-tests [new file with mode: 0644]
modules/sys_stat
tests/test-futimens.c [new file with mode: 0644]