[Y-devel] struct ucred + macosx?

Andrew Suffield asuffield at debian.org
Mon Jul 26 14:17:54 BST 2004


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
 : :' :  https://www.debian.org/ |
 `. `'                          |
   `-             -><-          |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040726/bd14759b/attachment-0001.bin


More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved