]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Y2038: add struct __itimerspec64
authorAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Thu, 7 Sep 2017 22:41:45 +0000 (00:41 +0200)
committerAlbert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Wed, 24 Oct 2018 10:53:27 +0000 (12:53 +0200)
include/bits/types/struct_itimerspec64.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sys/timerfd.h
time/bits/types/struct_itimerspec64.h [new file with mode: 0644]
time/time.h

diff --git a/include/bits/types/struct_itimerspec64.h b/include/bits/types/struct_itimerspec64.h
new file mode 100644 (file)
index 0000000..cc503f7
--- /dev/null
@@ -0,0 +1 @@
+#include <time/bits/types/struct_itimerspec64.h>
index 4d75e150a1cdadc2ef9b27363f214971d5649dd7..37490cf4b16f35099f4911bea4821032b194bea6 100644 (file)
@@ -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 (file)
index 0000000..039af1c
--- /dev/null
@@ -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
index 4b55e34402ff3dca43cd7002e60a7b50966c8c3f..35012b95b6191604ff6eef0e4e2b4d77ba3b5009 100644 (file)
@@ -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