summaryrefslogtreecommitdiff
path: root/src/sysdeps/trystatimespec.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-12 13:27:51 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-12 13:27:51 +0000
commit24528fc273258b3e6278c9e3fdd4ce80206735ab (patch)
tree352fbc7a771d68e6e7af5f76bf5b0593e89b88ad /src/sysdeps/trystatimespec.c
parent09c9957582acb207a6c1518c94df6335c3a1d5d8 (diff)
downloadskalibs-24528fc273258b3e6278c9e3fdd4ce80206735ab.tar.xz
New sysdeps for st.st_atim etc., timespec_cmp
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/sysdeps/trystatimespec.c')
-rw-r--r--src/sysdeps/trystatimespec.c9
1 files changed, 9 insertions, 0 deletions
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 <sys/stat.h>
+#include <time.h>
+
+struct stat st ;
+struct timespec *tsa = &st.st_atimespec ;
+struct timespec *tsm = &st.st_mtimespec ;
+struct timespec *tsc = &st.st_ctimespec ;