[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4734A4D9.3090907@redhat.com>
Date: Fri, 09 Nov 2007 10:20:09 -0800
From: Ulrich Drepper <drepper@...hat.com>
To: Chris Friesen <cfriesen@...tel.com>
CC: Andreas Schwab <schwab@...e.de>,
David Miller <davem@...emloft.net>, paulus@...ba.org,
akpm@...ux-foundation.org, lkml@...idb.org,
linux-kernel@...r.kernel.org, mtk-manpages@....net
Subject: Re: compat_sys_times() bogus until jiffies >= 0.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chris Friesen wrote:
>> A possible remedy is to return the ticks since process start time, which
>> delays the wrap around much further. POSIX only demands consistency
>> within the same process.
>
> This would be an interesting solution.
>
> The man page for linux states that the return code is time since system
> boot, so that could realistically be expected to correlate between
> different processes.
The Linux man page is documenting existing functionality on top of what
the standard requires. Programmers should ever only require what the
standard guarantees.
I am perfectly willing to support a solution where the time is measured
from process startup time. The only code using times() I found is
cross-platform and most likely does not depend on the value returned is
usable in isolation (only in a difference).
- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFHNKTZ2ijCOnn/RHQRAv2wAJsHOnWRrbE2N2Z4R35bsU1+BIZEGQCguaxL
zY9f4XEhJnAoNF5jFxm76qI=
=0nsU
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists