Re: struct ucred + macosx?

Andrew Suffield <[email protected]> Mon, 26 Jul 2004 14:17:54 +0100
Newsgroups gmane.comp.graphics.y.devel
Message-ID <[email protected]>
On Mon, Jul 26, 2004 at 01:05:56AM -0700, Dave Peck wrote:
> I tried to build Y--devel--0.2 (patch 54) on my macosx box. After 
> working through some minor issues, I ran into Y/main/unix.c's use of 
> 'struct ucred'.
> 
> IIRC, Linux's 'struct ucred' is different than that of the BSD 
> variants. (They don't have a pid field, the field names are different, 
> so forth.)

Modern BSDs should match features. I'm not so sure about field names,
and figure that somebody will come up with a patch if necessary.

Porting to the old BSDs is probably not worth the trouble. You'd have
to effectively duplicate the kernel socket code in userspace. It's
easier to add unix domain magic to the old BSDs than to add this to Y.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBBQSClpK98RSteX8RAmV2AKCG/n/Ag3AwwRqG3yEoYfc6BrJsqACeMlvK
7TFsanUJo2lHN2cMAblPFt4=
=/lBo
-----END PGP SIGNATURE-----