From owner-freebsd-hackers Thu May 25 10:21:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id D7D1D37B705 for ; Thu, 25 May 2000 10:21:02 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (hak.nat.Awfulhak.org [172.31.0.12]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id SAA81941; Thu, 25 May 2000 18:20:58 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id SAA03455; Thu, 25 May 2000 18:20:54 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200005251720.SAA03455@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Don Lewis Cc: Arun Sharma , Peter Jeremy , hackers@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: file creation times ? In-Reply-To: Message from Don Lewis of "Thu, 25 May 2000 02:32:35 PDT." <200005250932.CAA20546@salsa.gv.tsc.tdk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 25 May 2000 18:20:54 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On May 24, 6:58pm, Arun Sharma wrote: > } Subject: Re: file creation times ? > } On Thu, May 25, 2000 at 11:03:38AM +1000, Peter Jeremy wrote: > } > To put it another way, why _should_ FreeBSD store a file creation time? > } > } 0. I'm tired of seeing people putting "Created: mm/dd/yy" in their documents. > > When saving a document to "file", many editors will do the equivalent of > save document to "file.new" > ln "file" "file.bak" > mv "file.new" "file" [.....] Such editors are broken. What if the file is a symlink ? IMHO open() write() write() write() ftruncate() close() is the only way. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message