From owner-cvs-all Thu Mar 22 10:59: 1 2001 Delivered-To: cvs-all@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 75AD337B71F; Thu, 22 Mar 2001 10:58:54 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2MIwmn08260; Thu, 22 Mar 2001 10:58:48 -0800 (PST) Date: Thu, 22 Mar 2001 10:58:48 -0800 From: Alfred Perlstein To: Garrett Wollman 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: <20010322105848.U9431@fw.wintelcom.net> References: <200103220431.f2M4VUi82231@freefall.freebsd.org> <200103221541.KAA30165@khavrinen.lcs.mit.edu> <20010322102659.T9431@fw.wintelcom.net> <200103221831.NAA31696@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103221831.NAA31696@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Thu, Mar 22, 2001 at 01:31:51PM -0500 X-all-your-base: are belong to us. Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Garrett Wollman [010322 10:31] wrote: > < 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. Y'know it seems pretty counterproductive to not do this, anyone who needs to pass creds has to make thier own struct cmessage some way. If everyone needs to do this, then it might as well be in a header where everything it's composed of is defined. CMSG_DATA is terrible because there's no way to reserve the space I need, only to access it out of some binary blob. How about we call it something like "struct cmessage_withcred"? It's more descriptive, less likely to clash wrt namespace and takes care of the "where the heck is this thing defined" problem. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message