public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] time: Introduce glibc's internal struct __itimerspec64 Date: Thu, 05 Dec 2019 23:40:00 -0000 [thread overview] Message-ID: <20191205234054.75308.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4b135425d889cb18b0fb3c3d166e115927042dda commit 4b135425d889cb18b0fb3c3d166e115927042dda Author: Lukasz Majewski <lukma@denx.de> Date: Tue Nov 5 12:44:26 2019 +0100 time: Introduce glibc's internal struct __itimerspec64 This change provides the glibc's internal struct itimerspec representation, which is explicitly supporting 64 bit time (by using struct __timespec64). Such representation is necessary to provide correct time after Y2038 (time_t overflow) on devices with __TIMESIZE == 32. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Diff: --- include/time.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/time.h b/include/time.h index c19c73a..1eb3d82 100644 --- a/include/time.h +++ b/include/time.h @@ -83,6 +83,17 @@ struct __timespec64 #endif #if __TIMESIZE == 64 +# define __itimerspec64 itimerspec +#else +/* The glibc's internal representation of the struct itimerspec. */ +struct __itimerspec64 +{ + struct __timespec64 it_interval; + struct __timespec64 it_value; +}; +#endif + +#if __TIMESIZE == 64 # define __ctime64 ctime #else extern char *__ctime64 (const __time64_t *__timer) __THROW;
reply other threads:[~2019-12-05 23:40 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20191205234054.75308.qmail@sourceware.org \ --to=lukma@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).