From: Troels Nielsen <bn.troels@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: special_mtime
Date: Wed, 4 Jul 2012 21:45:17 +0200 [thread overview]
Message-ID: <CAOdE5WQ1ApYu4z-717WgPtjznBQsMV90E-GW51Sjw+HJey_ryw@mail.gmail.com> (raw)
In-Reply-To: <4FF4796A.3080409@cs.ucla.edu>
On Wed, Jul 4, 2012 at 7:12 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 07/04/2012 08:51 AM, Eli Zaretskii wrote:
>> How about a better name that somehow hints at what the function does,
>
> Thanks for catching that. I changed it to time_error_value.
> If you think of a better name please feel free to change it again.
>
Hi Paul
+/* Return a special mtime value indicating the error number ERRNUM. */
+static EMACS_TIME
+special_mtime (int errnum)
+{
+ EMACS_TIME t;
+ int ns = (errno == ENOENT || errno == EACCES || errno == ENOTDIR
+ ? NONEXISTENT_MODTIME_NSECS
+ : UNKNOWN_MODTIME_NSECS);
+ EMACS_SET_SECS_NSECS (t, 0, ns);
+ return t;
+}
Shouldn't errno be errnum here?
Regards
Troels Nielsen
next prev parent reply other threads:[~2012-07-04 19:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 15:51 special_mtime Eli Zaretskii
2012-07-04 17:12 ` special_mtime Paul Eggert
2012-07-04 19:45 ` Troels Nielsen [this message]
2012-07-05 4:17 ` special_mtime Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOdE5WQ1ApYu4z-717WgPtjznBQsMV90E-GW51Sjw+HJey_ryw@mail.gmail.com \
--to=bn.troels@gmail.com \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.