tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Vnode scope implementation



On Sat, Jul 04, 2009 at 09:12:46PM +0200, Alan Barrett wrote:
> On Sat, 04 Jul 2009, Elad Efrat wrote:
> > I'd like to start implementing the vnode scope for some of our
> > file-systems.
> 
> Please could you explain what that means, and why it would be useful.
> 
> > +#define    KAUTH_VNODE_ACCESS              (1 << 31)
> 
> On a machine where int is a 32-bit type, 1<<31 is undefined (per section
> 6.5.7 of the C99 standard).  I suggest writing this as 0x80000000, and
> similarly for other constants.

Or (1U << 31)

Martin


Home | Main Index | Thread Index | Old Index