This is the mail archive of the
mailing list for the glibc project.
Re: extending wait4(2) or waitid(2) linux syscall
On November 15, 2018 11:14:21 PM PST, Arnd Bergmann <email@example.com> wrote:
>On Thu, Nov 15, 2018 at 7:38 AM <firstname.lastname@example.org> wrote:
>> On November 15, 2018 7:30:11 AM PST, "Dmitry V. Levin"
>> >On Thu, Nov 15, 2018 at 06:39:03AM -0800, Arnd Bergmann wrote:
>> >> On Thu, Nov 15, 2018 at 6:05 AM Dmitry V. Levin wrote:
>> >> > On Thu, Apr 20, 2017 at 03:20:51PM +0200, Albert ARIBAUD wrote:
>> >2. The time precision provided by struct rusage returned by wait4(2)
>> >and waitid(2) is too low for syscall time counting (strace -c)
>> >this can be observing by running in a row a simple command like
>> >The fix is to return a more appropriate structure than struct rusage
>> >by the new pwait6(2)/pwaitid(2) syscall mentioned above, where
>> >struct timeval is replaced with struct timespec or even struct
>> Arnd: w.r.t. our previous discussion, this would seem to justify
>going to timespec(64) for these kind of cases.
>Ok, and I assume we want the same layout for getrusage(2) then, right?
Note that now we have to add one system calls for 64-but platforms. Thus, the right way to do that is to add those new system calls (e.g. waitidns()), and *only* provide those for 32-bit Y2038.
Sent from my Android device with K-9 Mail. Please excuse my brevity.