aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2017-09-08 00:41:45 +0200
committerAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>2018-10-24 12:53:27 +0200
commit395890236462f1e59128b794152e99a0e2330a08 (patch)
tree6a49b57578aa6d32a08af3653b85f1baa378e572
parentd39ea685b1b1261540db08269259c623ac1f0dd9 (diff)
downloadglibc-395890236462f1e59128b794152e99a0e2330a08.zip
glibc-395890236462f1e59128b794152e99a0e2330a08.tar.gz
glibc-395890236462f1e59128b794152e99a0e2330a08.tar.bz2
Y2038: add struct __itimerspec64
-rw-r--r--include/bits/types/struct_itimerspec64.h1
-rw-r--r--sysdeps/unix/sysv/linux/sys/timerfd.h1
-rw-r--r--time/bits/types/struct_itimerspec64.h15
-rw-r--r--time/time.h1
4 files changed, 18 insertions, 0 deletions
diff --git a/include/bits/types/struct_itimerspec64.h b/include/bits/types/struct_itimerspec64.h
new file mode 100644
index 0000000..cc503f7
--- /dev/null
+++ b/include/bits/types/struct_itimerspec64.h
@@ -0,0 +1 @@
+#include <time/bits/types/struct_itimerspec64.h>
diff --git a/sysdeps/unix/sysv/linux/sys/timerfd.h b/sysdeps/unix/sysv/linux/sys/timerfd.h
index 4d75e15..37490cf 100644
--- a/sysdeps/unix/sysv/linux/sys/timerfd.h
+++ b/sysdeps/unix/sysv/linux/sys/timerfd.h
@@ -20,6 +20,7 @@
#include <time.h>
#include <bits/types/struct_itimerspec.h>
+#include <bits/types/struct_itimerspec64.h>
/* Get the platform-dependent flags. */
#include <bits/timerfd.h>
diff --git a/time/bits/types/struct_itimerspec64.h b/time/bits/types/struct_itimerspec64.h
new file mode 100644
index 0000000..039af1c
--- /dev/null
+++ b/time/bits/types/struct_itimerspec64.h
@@ -0,0 +1,15 @@
+#ifndef __itimerspec64_defined
+#define __itimerspec64_defined 1
+
+#include <bits/types.h>
+#include <bits/types/struct_timespec.h>
+#include <bits/types/struct_timespec64.h>
+
+/* POSIX.1b structure for timer start values and intervals. */
+struct __itimerspec64
+{
+ struct __timespec64 it_interval;
+ struct __timespec64 it_value;
+};
+
+#endif
diff --git a/time/time.h b/time/time.h
index 4b55e34..35012b9 100644
--- a/time/time.h
+++ b/time/time.h
@@ -46,6 +46,7 @@
# include <bits/types/clockid_t.h>
# include <bits/types/timer_t.h>
# include <bits/types/struct_itimerspec.h>
+# include <bits/types/struct_itimerspec64.h>
struct sigevent;
#endif