Subject: Re: stat(1)
To: Martin Weber , Eric Haszlakiewicz <erh@nimenees.com>
From: mouss <usebsd@free.fr>
List: current-users
Date: 12/28/2001 18:46:59
Hi

At 16:03 28/12/01 +0100, Martin Weber wrote:
>On Sun, Dec 23, 2001 at 07:06:33PM -0600, Eric Haszlakiewicz wrote:
>heh, I've written a stat(1), too, who cares :p erm, while I was
>looking again at man stat (2) I remember two things that I wondered
>about when I wrote it and if someone has a pointer to the information
>I'm searching I'd be very very grateful :)
>
>a) why is st_blocks signed ? Doesn't that cut max filesize too harshly ?

have no idea (is this to avoid problems of unsigned arithmetic? but then I
don't see where these problems would happen)

>b) with is st_gen about ? I think I only see files with st_gen of 0 ... ?

Open and Free have non-zero values of these, so I suspect this is
inherited from the 4.4 code and was fixed the way it is as an answer
to the problem described in:
http://mail-index.netbsd.org/tech-security/1997/03/07/0000.html



mouss