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 <sys/types.h>
> >     #include <sys/socket.h>
> 
> 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.

<machine/param.h> can't be included in any standard header
(except in <sys/param.h>) 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 <machine/ansi.h> for things like this, but it is already too
overloaded.

Bruce



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to