From owner-freebsd-current Sat Mar 25 3: 4:42 2000 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 8FD9837B6AA for ; Sat, 25 Mar 2000 03:04:37 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id WAA15900; Sat, 25 Mar 2000 22:12:13 +1100 Date: Sat, 25 Mar 2000 22:04:02 +1100 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Yoshinobu Inoue Cc: bmah@CA.Sandia.GOV, nnd@mail.nsk.ru, current@FreeBSD.ORG Subject: Re: 'machine/param.h' required for 'sys/socket.h' In-Reply-To: <20000325191659G.shin@nd.net.fujitsu.co.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 25 Mar 2000, Yoshinobu Inoue wrote: > ... > There seems to be no message from bmah related to this, so I > now add a follow-up here. > > The authors' reply is that, > > >The X/Open (as well as POSIX I think) man pages for sendmsg() > >only list socket.h as an include file. > >The old BSD man pages list both param.h and socket.h. > > And, from `man sendmsg` on FreeBSD, only, > > >SYNOPSIS > > #include > > #include > > are required. Same in the not-so-old BSD man pages (Lite1). > So I think machine/param.h should be included from > sys/socket.h for more portability. can't be included in any standard header (except in ) because it gives massive, undocumented namespace pollution. The macro `MACHINE' is especially likely to conflict with an application macro. Instead, CMSG* should use _ALIGN() and _ALIGN() should be implemented somewhere that doesn't add any namespace pollution. We currently use for things like this, but it is already too overloaded. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message