Date: Thu, 22 Mar 2001 13:31:51 -0500 (EST) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Alfred Perlstein <alfred@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/rpc clnt_vc.c svc_vc.c src/sys/sys socket.h src/usr.sbin/rpcbind pmap_svc.c rpcb_svc_com.c src/usr.sbin/keyserv Makefile keyserv.c keyserv.h keyserv_uid.c Message-ID: <200103221831.NAA31696@khavrinen.lcs.mit.edu> In-Reply-To: <20010322102659.T9431@fw.wintelcom.net> References: <200103220431.f2M4VUi82231@freefall.freebsd.org> <200103221541.KAA30165@khavrinen.lcs.mit.edu> <20010322102659.T9431@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Thu, 22 Mar 2001 10:26:59 -0800, Alfred Perlstein <alfred@FreeBSD.org> said:
> Yeah, but it's disgusting, at least I can't see a sane way of declaring
> the cmessage type without using it, here's what you can do:
> 1) leave it in sys/socket.h
Bad for reasons already discussed.
> 2) put the cmessage struct in each file
Fine.
> 3) declare consumers of cmessage as so:
> struct {
> struct cmsghdr cmsg;
> struct cmsgcred cmcred;
> } cm;
Effectively same as (2).
> 4) or do this:
> char cm[sizeof(struct cmsghdr) + sizeof(struct cmsgcred)];
Might not align struct cmsgcred properly.
-GAWollman
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103221831.NAA31696>
