summaryrefslogtreecommitdiff
path: root/src/sysdeps/tryfutimens.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/tryfutimens.c')
-rw-r--r--src/sysdeps/tryfutimens.c12
1 files changed, 12 insertions, 0 deletions
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 <sys/types.h>
+#include <sys/stat.h>
+#include <time.h>
+
+int main (void)
+{
+ struct timespec foo[2] = { { .tv_sec = 0, .tv_nsec = 0 }, { .tv_sec = 0, .tv_nsec = 0 } } ;
+ futimens(0, foo) ;
+ return 0 ;
+}