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 13:17:17 +0100	[thread overview]
Message-ID: <20210614121717.txix5m7hlwc3k2ku@chazelas.org> (raw)
In-Reply-To: <20210614120903.GA3136251@cventin.lip.ens-lyon.fr>

2021-06-14 14:09:03 +0200, Vincent Lefevre:
> Could zsh/stat output birth time under Linux, like what stat from
> the GNU coreutils does?
[...]

+1

Adding corresponding glob qualifiers (filter and sort), and
to whereever mtime/atime/ctime are also used would also make
sense.

On Linux, you need the statx() API which has been relatively
recently added to the kernel (and even more recently to glibc,
not sure about other libcs). See
https://unix.stackexchange.com/questions/304779/is-there-still-no-linux-kernel-interface-to-get-file-creation-date/452058#452058

Other Unices including FreeBSD/macOS have had APIs for that for
a long time, I don't think there's much standardisation though.

-- 
Stephane


  reply	other threads:[~2021-06-14 12:17 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 [this message]
2021-06-14 19:47   ` Stephane Chazelas
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=20210614121717.txix5m7hlwc3k2ku@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).