From owner-freebsd-current Sun May 19 5:50:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 7C4BB37B406 for ; Sun, 19 May 2002 05:50:09 -0700 (PDT) Received: from hades.hell.gr (patr530-a040.otenet.gr [212.205.215.40]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4JCo4QJ015560 for ; Sun, 19 May 2002 15:50:06 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4JCo3Iu034038 for ; Sun, 19 May 2002 15:50:03 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g4JC7KMM033708; Sun, 19 May 2002 15:07:20 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 19 May 2002 15:07:19 +0300 From: Giorgos Keramidas To: Paul Herman Cc: Dima Dorfman , current@FreeBSD.org Subject: Re: new fstat(1) feature (was Re: mergemaster(8) broken -- uses Perl) Message-ID: <20020519120719.GA33585@hades.hell.gr> References: <20020519062613.04B153E1A@turbine.trit.org> <20020518235204.O2117-100000@mammoth.eat.frenchfries.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020518235204.O2117-100000@mammoth.eat.frenchfries.net> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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