Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2002 15:07:19 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Paul Herman <pherman@frenchfries.net>
Cc:        Dima Dorfman <dima@trit.org>, current@FreeBSD.org
Subject:   Re: new fstat(1) feature (was Re: mergemaster(8) broken -- uses Perl)
Message-ID:  <20020519120719.GA33585@hades.hell.gr>
In-Reply-To: <20020518235204.O2117-100000@mammoth.eat.frenchfries.net>
References:  <20020519062613.04B153E1A@turbine.trit.org> <20020518235204.O2117-100000@mammoth.eat.frenchfries.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-05-19 00:01, Paul Herman wrote:
> 
> OK, here's a patch to fstat(1) which adds an "-s" option to stat(2)
> a list of files on the command line.  It's against -STABLE but
> should still apply to -CURRENT.  Comments are appreciated.

When building with WARNS=2 I also saw a few 'long int format, int
argument' warnings, which can be fixed by using %u instead of %lu in
printf's for st.a_time and friends.  Style(9) put aside, this seems to
work for me in CURRENT (but prints a few of the columns unaligned, see ATIME
below):

hades+root:/tmp/fstat# ./fstat -s fstat
INODE  DEV    SIZE     BLOCKS MODE   FLAGS  LNK UID GID ATIME      MTIME      CTIME      NAME
14134  160768 17714    36     100755 000000 1   1001 0   1021809739 1021809739 1021809739 fstat

-- 
Giorgos Keramidas    - http://www.FreeBSD.org
keramida@FreeBSD.org - The Power to Serve

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020519120719.GA33585>