zsh-workers
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <stephane@chazelas.org>
To: zsh-workers@zsh.org
Subject: Re: zsh/stat: output file birth time under Linux
Date: Mon, 14 Jun 2021 20:47:59 +0100	[thread overview]
Message-ID: <20210614194759.y55ylfpiuejjundt@chazelas.org> (raw)
In-Reply-To: <20210614121717.txix5m7hlwc3k2ku@chazelas.org>

2021-06-14 13:17:17 +0100, Stephane Chazelas:
[...]
> Other Unices including FreeBSD/macOS have had APIs for that for
> a long time, I don't think there's much standardisation though.
[...]

Looking at revision logs on FreeBSD and NetBSD, looks like it
was added in FreeBSD in 2002 while adding support for UFS2 FS,
and adapted shortly after in 2003 in NetBSD. They just extended
the stat() API there AFAICT.

Note Linux file systems have added support for a birth time a
long while ago, but no API to retrieve it until 2017 oddly
enough.

https://www.freebsd.org/cgi/man.cgi?query=stat&sektion=2&manpath=FreeBSD%2013.0-RELEASE%20and%20Ports

-- 
Stephane


  reply	other threads:[~2021-06-14 19:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-14 12:09 Vincent Lefevre
2021-06-14 12:17 ` Stephane Chazelas
2021-06-14 19:47   ` Stephane Chazelas [this message]
2021-06-14 18:50 ` Phil Pennock
2021-06-14 20:05   ` Stephane Chazelas

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=20210614194759.y55ylfpiuejjundt@chazelas.org \
    --to=stephane@chazelas.org \
    --cc=zsh-workers@zsh.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 public inbox

	https://git.vuxu.org/mirror/zsh/

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).