9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "rob pike, esq." <r@geekmail.cc>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] create() and mtime
Date: Wed, 22 Oct 2003 11:06:35 -0700	[thread overview]
Message-ID: <9f2ff8a7c20beeea97858128bc424469@google.com> (raw)
In-Reply-To: <d52464528fe3d79530be5aebea838cce@plan9.escet.urjc.es>

> It looks like a create of an existing file is not updating mtime. As a result
> news prints old news because the mtime of $home/lib/newstime gets fixed to
> the actual creation (not truncation) time.

i just noticed this myself.  you need to write to a file to get its mtime updated.
i believe this is a mistake; the manual says mtime is time of change of content,
not time of write.

i would change your news program to create and write a byte.

-rob



  reply	other threads:[~2003-10-22 18:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22 17:46 Fco.J.Ballesteros
2003-10-22 18:06 ` rob pike, esq. [this message]
2003-10-22 18:56   ` jmk
2003-10-23 10:38     ` Fco.J.Ballesteros

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=9f2ff8a7c20beeea97858128bc424469@google.com \
    --to=r@geekmail.cc \
    --cc=9fans@cse.psu.edu \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).