From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r115596: Minor fixes for recent openp changes. Date: Wed, 18 Dec 2013 14:45:31 -0800 Organization: UCLA Computer Science Department Message-ID: <52B2258B.6040201@cs.ucla.edu> References: <52B21CBB.4050506@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1387406755 19070 80.91.229.3 (18 Dec 2013 22:45:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2013 22:45:55 +0000 (UTC) To: Jarek Czekalski , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 18 23:46:00 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VtPsN-0007v8-QC for ged-emacs-devel@m.gmane.org; Wed, 18 Dec 2013 23:45:59 +0100 Original-Received: from localhost ([::1]:41194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtPsN-000645-7N for ged-emacs-devel@m.gmane.org; Wed, 18 Dec 2013 17:45:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtPsD-00063v-RH for emacs-devel@gnu.org; Wed, 18 Dec 2013 17:45:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtPs4-00045B-DV for emacs-devel@gnu.org; Wed, 18 Dec 2013 17:45:49 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:51140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtPs4-00044V-70 for emacs-devel@gnu.org; Wed, 18 Dec 2013 17:45:40 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 24B86A60007; Wed, 18 Dec 2013 14:45:32 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fKxhv1F9XDsV; Wed, 18 Dec 2013 14:45:31 -0800 (PST) Original-Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id BD380A60002; Wed, 18 Dec 2013 14:45:31 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52B21CBB.4050506@poczta.onet.pl> X-Enigmail-Version: 1.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166602 Archived-At: Jarek Czekalski wrote: > maybe you could add a comment Sure, done in trunk bzr 115598. > Could this be initialized to 0 or to invalid_timespec? No, because valid time stamps can be negative, and neither 0 nor invalid_timestamp would compare less than these valid time stamps. Here's a shell transcript to illustrate: $ touch -d 0001-12-25 Christmas-1-AD $ ls -l oldfile -rw-r--r--. 1 eggert eggert 0 Dec 25 0001 Christmas-1-AD $ ls -l --time-style=+%s oldfile -rw-r--r--. 1 eggert eggert 0 -62104665600 Christmas-1-AD For this file, file-attributes returns the time stamp (-947642 512 0 0), and -62104665600 == (-947642 << 16) + 512.