From 64ee50fa0e4357164273c5d8b34ccde10a69d0ef Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 27 Apr 2016 16:47:14 +0000 Subject: Add new sysdeps for futimens() and futimes(), adapt touch() implementation --- src/sysdeps/tryfutimens.c | 12 ++++++++++++ src/sysdeps/tryfutimes.c | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/sysdeps/tryfutimens.c create mode 100644 src/sysdeps/tryfutimes.c (limited to 'src/sysdeps') diff --git a/src/sysdeps/tryfutimens.c b/src/sysdeps/tryfutimens.c new file mode 100644 index 0000000..809aaa5 --- /dev/null +++ b/src/sysdeps/tryfutimens.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include +#include +#include + +int main (void) +{ + struct timespec foo[2] = { { .tv_sec = 0, .tv_nsec = 0 }, { .tv_sec = 0, .tv_nsec = 0 } } ; + futimens(0, foo) ; + return 0 ; +} diff --git a/src/sysdeps/tryfutimes.c b/src/sysdeps/tryfutimes.c new file mode 100644 index 0000000..a65ab5a --- /dev/null +++ b/src/sysdeps/tryfutimes.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include +#include + +int main (void) +{ + struct timeval foo[2] = { { .tv_sec = 0, .tv_usec = 0 }, { .tv_sec = 0, .tv_usec = 0 } } ; + futimes(0, foo) ; + return 0 ; +} -- cgit v1.2.3