This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 3/6] time: Add a __itimerval64 struct
- From: Alistair Francis <alistair dot francis at wdc dot com>
- To: libc-alpha at sourceware dot org
- Cc: alistair23 at gmail dot com, lukma at denx dot de, Alistair Francis <alistair dot francis at wdc dot com>
- Date: Mon, 3 Feb 2020 10:31:50 -0800
- Subject: [PATCH 3/6] time: Add a __itimerval64 struct
- Ironport-sdr: A+ruuLjGNCjvnlo/I8lPjD55ollANHh52VEW6OYcHhnraSl5ZdWvHwLz2AA3FwoYFFirefl4bG +KubSNFqVpZjpj/sCj0sN31NuWENBLP43qtM9nSn0HIN9ExNDwIwgZCwHihLFU7YRvlkWoUnhd IvAxcHnzVlOM4hKmQ9lKySlfmlZNgWnPznF8f44atgPYoyC3aVzalw95kEgriNDl2lrMW8e9OY ZvpRamPmuZ9ThEztbrtnDxerehcaP3ygEV1kO0Jb3qmRdv2XKL26VIv05ZESTpGvoHaCr1OC63 9t0=
- Ironport-sdr: I+SZ0EylQ5QVJ3NktvNvFD0rQl6XzV65h9zrMRB0ne8RNOi61IQH6vKT25Z1Fp23ptmRRSlMA0 /7PhnGtq2ZckBZq39tjoDyGk+6zWXt2g7ijLii6kdKMcAJvzlPJ1f5yQSMZxQA5pnHKayh+Q7x T0Ea4qW46nR2NKJPpurI6nLZfZLQhBbTSxAvfEzBYb1DUN6E1BxsAjfrwS7d8EO/EyPpFepAuZ UFrq4HiQp1EC9ABI1I07vs2FmoWZUaXAenvM7DzkG9gQINAn6R6jJ6b9U6L7ldw3ldsbCN0IUp z11UyTze8RGUi9v7tsq3TMsM
- Ironport-sdr: 6TAcmR/00zchABLsH4zDqEVlE4nTSZcKceKsbiiz03RFUfdZe5kfdTT4Cbxu0s7II3Yumdz5ID BQuLIsXznwGj33IrOn3d2fXbvIMBGqnRMhjppPC8D5bIGDVHXsvVB1ac2o6tRIYx1doJcIIV2h 0S5gZUenB1+mivc1mS5lelFu+tj4zumidhWTpoAtJNj70T2LP4yYdwgsZiqpaytJcCVP+R/AfQ LjiXeuABX3HH3Eft3M78JccrInF4XtmOMbqQK/aHieGszdTr1Ww6J1gm7tPlYUF+q/mM5G2A9A YLM=
- References: <20200203183153.11635-1-alistair.francis@wdc.com>
- Wdcironportexception: Internal
Add a __itimerval64 which always uses a 64-bit time_t.
---
include/time.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/time.h b/include/time.h
index c2c05bb671..898ff0fb2d 100644
--- a/include/time.h
+++ b/include/time.h
@@ -107,6 +107,17 @@ struct __timeval64
};
#endif
+#if __TIMESIZE == 64
+# define __itimerval64 itimerval
+#else
+/* The glibc's internal representation of the struct itimerval. */
+struct __itimerval64
+{
+ struct __timeval64 it_interval;
+ struct __timeval64 it_value;
+};
+#endif
+
#if __TIMESIZE == 64
# define __ctime64 ctime
#else
--
2.25.0