Re: human-readable swap partition sizes with pstat -sh

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Sun, 20 Mar 2005 13:43:18 +0100
On Sun, Mar 20, 2005 at 10:11:04AM +0200, Giorgos Keramidas wrote:
+> On 2005-01-06 23:58, Pawel Jakub Dawidek <pjd_at_freebsd.org> wrote:
+> > I like intmax_t also much better than int64_t, but I took it from
+> > NetBSD and they got int64_t there. Anyway, I think we don't have to be
+> > 100% compatible here and I'll look what can be done.
+> 
+> Bearing this in mind, is it ok then if I commit the pstat changes shown
+> below, which use intmax_t or is it better to change all the intmax_t
+> instances in pstat.c to int64_t?

Use int64_t. We decided not to use intmax_t in humanize_number(3), because
then we need to include inttypes.h from libutil.h and this is just too
nasty.

The patch looks ok.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd_at_FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Sun Mar 20 2005 - 11:43:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC