From owner-freebsd-hackers Thu May 11 12:24: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from nimitz.ca.sandia.gov (nimitz.ca.sandia.gov [146.246.243.56]) by hub.freebsd.org (Postfix) with ESMTP id 8F82637B5AE for ; Thu, 11 May 2000 12:24:04 -0700 (PDT) (envelope-from bmah@nimitz.ca.sandia.gov) Received: (from bmah@localhost) by nimitz.ca.sandia.gov (8.10.0/8.10.0) id e4BJNZ687896; Thu, 11 May 2000 12:23:35 -0700 (PDT) (envelope-from bmah) Message-Id: <200005111923.e4BJNZ687896@nimitz.ca.sandia.gov> X-Mailer: exmh version 2.1.1-cvs 10/15/1999 To: marc@bowtie.nl Cc: hackers@FreeBSD.ORG Subject: Re: CMSG_DATA and ALIGN macro In-reply-to: <200005110630.IAA10990@bowtie.nl> References: <200005110630.IAA10990@bowtie.nl> Comments: In-reply-to Marc van Kempen message dated "Thu, 11 May 2000 08:30:31 +0200." From: bmah@acm.org (Bruce A. Mah) Reply-To: bmah@acm.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 11 May 2000 12:23:30 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If memory serves me right, Marc van Kempen wrote: > The problem is that the ALIGN macro is not being > picked up even though and are included. > The problem arises from the use of the CMSG_DATA macro, which seems to > be related to sendmsg(), and uses the ALIGN macro. > > The manual page for sendmsg() or similar states that you only need > and , but this fails, it only works if > you also include where the ALIGN macro is defined. > > So the question is: is the manual page in error or are the > include files wrong? If it's the manual page, in which manual > page are you supposed to find information about the use of the > CMSG_DATA macro? Otherwise I suppose the include file > should include ? Hi Marc-- I ran into this a little while ago...you can look into the archives of the -current list for more details. The upshot (as I understand it) is that CMSG_DATA shouldn't rely on the programmer explicitly doing an #include of param.h. No other OS seems to require this (at least the ones to which pchar has been ported to, which is my main area of concern). I don't know if this has been "fixed" or not because there were some rather complicated namespace issues involved...you might check the CVSWeb repository. Of the RELEASE versions, only 4.0-RELEASE has this problem (so far). That having been said, to bring in the definitions from param.h, what you're really supposed to do is to: #include In other words, don't do . This was told to me by Bruce Evans, who presumably knows what he's doing. :-) Bruce. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message