From 24528fc273258b3e6278c9e3fdd4ce80206735ab Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 12 Sep 2023 13:27:51 +0000 Subject: New sysdeps for st.st_atim etc., timespec_cmp Signed-off-by: Laurent Bercot --- src/sysdeps/trystatim.c | 9 +++++++++ src/sysdeps/trystatimespec.c | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/sysdeps/trystatim.c create mode 100644 src/sysdeps/trystatimespec.c (limited to 'src/sysdeps') diff --git a/src/sysdeps/trystatim.c b/src/sysdeps/trystatim.c new file mode 100644 index 0000000..94834cc --- /dev/null +++ b/src/sysdeps/trystatim.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include +#include + +struct stat st ; +struct timespec *tsa = &st.st_atim ; +struct timespec *tsm = &st.st_mtim ; +struct timespec *tsc = &st.st_ctim ; diff --git a/src/sysdeps/trystatimespec.c b/src/sysdeps/trystatimespec.c new file mode 100644 index 0000000..2690d57 --- /dev/null +++ b/src/sysdeps/trystatimespec.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include +#include + +struct stat st ; +struct timespec *tsa = &st.st_atimespec ; +struct timespec *tsm = &st.st_mtimespec ; +struct timespec *tsc = &st.st_ctimespec ; -- cgit v1.2.3