emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r115596: Minor fixes for recent openp changes.


From: Paul Eggert
Subject: Re: [Emacs-diffs] trunk r115596: Minor fixes for recent openp changes.
Date: Wed, 18 Dec 2013 14:45:31 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]