From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 7 16:00:07 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 405C716A4CE for ; Mon, 7 Mar 2005 16:00:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6F1643D4C for ; Mon, 7 Mar 2005 16:00:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j27G062v076906 for ; Mon, 7 Mar 2005 16:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j27G062W076905; Mon, 7 Mar 2005 16:00:06 GMT (envelope-from gnats) Resent-Date: Mon, 7 Mar 2005 16:00:06 GMT Resent-Message-Id: <200503071600.j27G062W076905@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthew Soffen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0407E16A4CE for ; Mon, 7 Mar 2005 15:50:50 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4F2543D5C for ; Mon, 7 Mar 2005 15:50:49 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j27FonqD070928 for ; Mon, 7 Mar 2005 15:50:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j27FoneK070927; Mon, 7 Mar 2005 15:50:49 GMT (envelope-from nobody) Message-Id: <200503071550.j27FoneK070927@www.freebsd.org> Date: Mon, 7 Mar 2005 15:50:49 GMT From: Matthew Soffen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/78538: times(2) not functioning per the Posix spec X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 16:00:07 -0000 >Number: 78538 >Category: misc >Synopsis: times(2) not functioning per the Posix spec >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 07 16:00:06 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Matthew Soffen >Release: FreeBSD 4.7 >Organization: None >Environment: FreeBSD truffle0.soffen.com 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: This is a finding from the Linux-Ha project and Robert Watson agrees that it does appear to be a bug in the behavior. According to the posix spec, the times (2) structure is supposed be unchangable from boot to boot. It is affected by any clock changes and per the spec ( http://www.opengroup.org/onlinepubs/009695399/functions/times.html ) it shouldn't be. >How-To-Repeat: Have something using a times(2) structure to generate unique ID ( for the current run), cange the system time and you would be able to create duplicate time structurs. >Fix: Make times(2) work like the posix spec. It shouldn't be based on Epoch being 0, it should be based on "startup" time being the 0 time. >Release-Note: >Audit-Trail: >Unformatted: