[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <34369a6e-e0ce-fe7b-65e3-9c4a33e4789a@cs.ucla.edu>
Date: Mon, 27 Nov 2017 09:52:06 -0800
From: Paul Eggert <eggert@...ucla.edu>
To: Arnd Bergmann <arnd@...db.de>,
John Stultz <john.stultz@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>
Cc: y2038@...ts.linaro.org, libc-alpha@...rceware.org,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
linux-api@...r.kernel.org,
Albert ARIBAUD <albert.aribaud@...ev.fr>,
Richard Henderson <rth@...ddle.net>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
Matt Turner <mattst88@...il.com>,
Al Viro <viro@...iv.linux.org.uk>,
Ingo Molnar <mingo@...nel.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Deepa Dinamani <deepa.kernel@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Oleg Nesterov <oleg@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Kirill Tkhai <ktkhai@...tuozzo.com>,
linux-alpha@...r.kernel.org
Subject: Re: [PATCH 3/3] y2038: rusage: use __kernel_old_timeval for process
times
On 11/27/2017 09:00 AM, Arnd Bergmann wrote:
> b) Extend the approach taken by the x32 ABI, and use the 64-bit
> native structure layout for rusage on all architectures with new
> system calls that is otherwise compatible. A possible problem here
> is that we end up with incompatible definitions of rusage between
> /usr/include/linux/resource.h and /usr/include/bits/resource.h
>
> c) Change the definition of struct rusage to be independent of
> time_t. This is the easiest change, as it does not involve new system
> call entry points, but it has the risk of introducing compile-time
> incompatibilities with user space sources that rely on the type
> of ru_utime and ru_stime.
>
> I'm picking approch c) for its simplicity, but I'd like to hear from
> others whether they would prefer a different approach.
(c) would break programs like GNU Emacs, which copy ru_utime and
ru_stime members into struct timeval variables.
All in all, (b) sounds like it would be better for programs using glibc,
as it's more compatible with what POSIX apps expect. Though I'm not sure
what problems are meant by "possible ... incompatible definitions";
perhaps you could elaborate.
Powered by blists - more mailing lists