Subject: Re: statfs, statvfs and friends.
To: enami tsugutomo <enami@but-b.or.jp>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 03/31/2004 16:25:38
enami tsugutomo wrote:

> > 	fsblkcnt_t    f_bavail   Number of free blocks available to
> > 				 non-privileged process.
> 
> Does spec says something about what value will be set to this field
> when # of available block is less than the # of blocks reserved to
> super user?  e.g., always 0 is returned, negative value is returned
> like statfs()'s similar field or ...?

There is no mention, but the answer to your next question obviously has
some effect on the allowable return values.

> Also, does the spec define signedness of fsblkcnt_t type?

SUSv3 says:

     * [XSI] [Option Start] fsblkcnt_t, fsfilcnt_t, [Option End] and
       ino_t shall be defined as unsigned integer types.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/