Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755665AbXKISVQ (ORCPT ); Fri, 9 Nov 2007 13:21:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751990AbXKISVA (ORCPT ); Fri, 9 Nov 2007 13:21:00 -0500 Received: from mx1.redhat.com ([66.187.233.31]:60444 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbXKISU7 (ORCPT ); Fri, 9 Nov 2007 13:20:59 -0500 Message-ID: <4734A4D9.3090907@redhat.com> Date: Fri, 09 Nov 2007 10:20:09 -0800 From: Ulrich Drepper Organization: Red Hat, Inc. User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Chris Friesen CC: Andreas Schwab , David Miller , paulus@samba.org, akpm@linux-foundation.org, lkml@davidb.org, linux-kernel@vger.kernel.org, mtk-manpages@gmx.net Subject: Re: compat_sys_times() bogus until jiffies >= 0. References: <20071107152833.6f302c2a.akpm@linux-foundation.org> <20071107161853.044b6e8f.akpm@linux-foundation.org> <18226.27701.782268.375231@cargo.ozlabs.ibm.com> <20071107.180918.263752219.davem@davemloft.net> <4733206C.8030903@nortel.com> In-Reply-To: <4733206C.8030903@nortel.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1397 Lines: 37 -----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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/