From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7260 invoked from network); 14 Jun 2021 19:48:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2021 19:48:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623700097; b=R4lDzJvI+Mev7+bRI0qfHr6uNOBFavGRQMl/FvvlO0q/6Arhc75/ftR5XwneQzGSpkGijQc8G8 mndgJlxPOanbKISqrNwJc7NiydwHPHAG5cEjrfAAmT3Ne7OpZeB8RLDLroa1TR8PIx8Sl8X/41 iZw40UPGN9W2dKk1AcBNAWGV873+FUxvZBsYGtKFqYwMV1s2xY7iVyAdKGWRe9wVT8kgonehX2 0CF4/w+t6eCpiaQZ3/v4bnkSNwfVtp2owBHSl0JLsfOP6GuiCFU7fksSsgMWfvBQBLMIWUsIXz N+N7TWFtGdgS/LfkejE9gLDgLJwOfZT+d4fatzQ9Tr0FHQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay6-d.mail.gandi.net) smtp.remote-ip=217.70.183.198; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623700097; bh=c4gsovPPBt1fvmOaXlfRbkK955yobokqs5GtKGciKF8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature; b=Y8qV+cwcZWSxm0E3yBRc7Zk+AZzMnHvMVMccFayok/zjDD49ebHbLkQ1DjnJoalp0axWcc6zj5 0NGLinEF0XwC6+exb+V4qysFaFFiC8E1V2oJGhZuCaM94wF0uDOYHQsQsUSKwcGbvX8ZPCI1Vd jIHvuIFsBjcmmXosUpQfayQR39oFDEMm0KcUfpo81kxstWvW6MBJV6j4i4pe9HMXjS8M4zW+bj cwvvCs1L1lbXw8UxjHTOVC9N0vYWx2CF78V+/eoOFUgCpbmxW6u5WQOIFpJBJEBu8QYNfik3ig 8D8r99Y1/ftAAUorBDAuM9J0gkPGCiMfL/AR52BiPTK5IA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/stmYgFBNe6+oJ06Dxk3ynMNhss3PJ3obaWQJWR1aMQ=; b=Ukjfo7xCXQq6xDOfl3FszIjI9f q6ZGq2O8SdOGliqnhS05qtBduZhY/hwuyGDTt9TVljYEnWO3HC8VJVPPuC9gpoHLPoI1ULEalafiw G6g2y82i/m8dbxsM8KnD5jI4kkKq8mMhL/hlbW+hK5/2x3Zqv5MlKD1n8YKb2xR8lACcqP9agwM5d 0pM9VhRidd1q+pWMAZgJ3n/b0hUjRYukGCCHo9Mmo+4lDVk0XIC9zj6PYMK7UK1zSMkJGucA7ISsk A9HC5vUPc12zMCv2hvtV/xgsifQMHtwwGGP+Jmq3+8iDpPJFNab2yqpA4xUK17YwNEOlty8b4VxNT BHrEdilA==; Received: from authenticated user by zero.zsh.org with local id 1lssZF-000IBs-Ks; Mon, 14 Jun 2021 19:48:17 +0000 Authentication-Results: zsh.org; iprev=pass (relay6-d.mail.gandi.net) smtp.remote-ip=217.70.183.198; dmarc=none header.from=chazelas.org; arc=none Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57955) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lssYy-000Hvz-Ta; Mon, 14 Jun 2021 19:48:01 +0000 Received: (Authenticated sender: stephane@chazelas.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E7D6EC0005 for ; Mon, 14 Jun 2021 19:47:59 +0000 (UTC) Date: Mon, 14 Jun 2021 20:47:59 +0100 From: Stephane Chazelas To: zsh-workers@zsh.org Subject: Re: zsh/stat: output file birth time under Linux Message-ID: <20210614194759.y55ylfpiuejjundt@chazelas.org> Mail-Followup-To: zsh-workers@zsh.org References: <20210614120903.GA3136251@cventin.lip.ens-lyon.fr> <20210614121717.txix5m7hlwc3k2ku@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614121717.txix5m7hlwc3k2ku@chazelas.org> X-Seq: 49080 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: 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