Subject: Re: struct ucred changed.
To: David Laight <David.Laight@btinternet.com>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-kern
Date: 11/29/2001 12:11:20
On Thu, 29 Nov 2001, David Laight wrote:

: Aren't uid_t and gid_t 32 bit?
: If so you (probably) haven't changed the alignment!

Depends on the system.  For instance, m68k a.out compat aligns structs and
32-bit objects on a 16-bit boundary.  (m68k ELF raises this to 32 bits,
but m68k a.out compat is still afflicted.)

: If the 'ucred' structure is zero'd on creation a little-endian
: system won't see a difference.
: But you will have changed the values seen on a big-endian system.

...the latter of which is quite important for cr_ngroups from userland.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/