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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8662 invoked from network); 24 Mar 2023 10:26:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Mar 2023 10:26:13 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1679653573; b=Jx6O509amtaKo9u4aBEasQeeVwHScC4JWb7mChS+6ckk8WFO6J/fcI3wcbUGkc/OZ4iWhzPvW9 UCPFbjCLPwBvjbIn4nDedNeeLD8WTbywkJdJ6e0HAiToD48MvlRgCcTwZqf4DV/Lfqv5S7v6QA 5+7eaKUwCLeJtr+74/CLtt6RHy34AqgDQIKRD3/JE4XV2d2jINDBiYIMxTiBQZDcGcIyZm4hRw WVbXDxuSXx26+4UKoauBixrwf8nOVQ32Pp5wohxfZ4mPTqWsK/f4FPzxK8iOsncS+Sb4by5RIm ZCiSjbS8HaL29WLsMVUIBREzWt+D/PmMzcagw0PEcbFysg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01011-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.27; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1679653573; bh=rhLb2ciyZ39Ejs7VNGQNLuHtAnkHexv70BnR0nmN7p4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=XivO8AL+qFvy7wXNz4V/c+xcAKQcPct/xbHK0uCKZ1ptEQIktJJTvvIWvI5K9hPn987ft+HCYS kVegG1CAeDPvnBVmldJRg849hUJGPK9L6Cb8fyO/r1lb6pK3izC78DCwZ8I02PGgW19Fd/VzBI lVcJ8hrRzM7puu7GItg/44RVjsC1aTu5yqeRt6zcF5e3mQuH3ELRFI+6HSuXty4cvMrKmqNKf7 zWPFLDghpHJiplTg+6SyZVWoKXBuZO9Lu2QR9b4m0PuZ1fFpaLnsCQopv7LONksG/+5C4hWDig nM9LrW9tNJH14Jnmeu3GL2Klnx9EONon0rckaFzDE9a0aQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Q0JJ/1d8b7Dqlpx8ZIPWruaw4/PMlyyiAC9EkgTffvg=; b=jE+Ri6sqU/XZi1xyOIW2pZyeJo 8DeUiJi4NMkpAxkkjC9G4WjkUbLPo2ud5v89zTrxhw6Dbix0UoGSzWnTv3MTfh58YNPvgKg6cKG8N 0r2zQoHlCaXCuNvGoa3K7Ir+PBoW2GY/y/2gqRAmJKHg9vJOgNF5gyqDTPpQo2sVC1FLWEtV8jWTX zZvsK0Br8L1dTruDOpSoVI693EKO/zd8hiLBkX0b2t9WpXVZ+DyJbbt2afQ7+PYOH5w9VO4xOnP6P EiTMNgPibidNpYH0fuvwFRXNpxuls5XHg8Scaqk2OVJO/Vuk7MoNq8RCTK0qzqb0451bXhtncRbsN +splUgLw==; Received: by zero.zsh.org with local id 1pfecd-000198-Kb; Fri, 24 Mar 2023 10:26:11 +0000 Authentication-Results: zsh.org; iprev=pass (snd01011-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.27; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01011-bg.im.kddi.ne.jp ([27.86.113.27]:37664 helo=dfmta1005.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pfec2-0000pK-3X; Fri, 24 Mar 2023 10:25:36 +0000 Received: from mail.biglobe.ne.jp by omta1005.biglobe.ne.jp with ESMTP id <20230324102526377.NNDY.30085.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Fri, 24 Mar 2023 19:25:26 +0900 From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: Documentation of the TIMEFMT variable Date: Fri, 24 Mar 2023 19:25:25 +0900 References: <20230203205244.bfq7a3zqcs64rtbe@chazelas.org> To: zsh-workers@zsh.org In-Reply-To: <20230203205244.bfq7a3zqcs64rtbe@chazelas.org> Message-Id: X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 51599 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: > 2023/02/04 5:52, Stephane Chazelas wrote: >=20 > A portability issue. Doc is correct, but code is only correct on > Darwin/macos. (snip) > macos/darwin is the odd one out. ru_maxrss was already in > kibibytes in the original getrusage() implementation in BSD4.2 > in 1985. If ru_maxrss is in KB in all OSes other than macOS, then we can just check $host_os in configure and set a macro in config.h indicating that ru_maxrss need be divided by 1024. But in manpage for Solaris: https://docs.oracle.com/cd/E86824_01/html/E54766/getrusage-3c.html ru_maxrss The maximum resident set size. Size is given in pages (the size of a = page, in bytes, is given by the getpagesize(3C) function). See the NOTES section of = this page. Notes The ru_maxrss, ru_ixrss, ru_idrss, and ru_isrss members of the rusage = structure are set to 0 in this implementation. Is there anyone who can confirm that ru_maxrss is set to zero? If it is always zero, then we need not bother with page to KB = conversion.=