From owner-freebsd-current Tue Mar 21 10:54: 4 2000 Delivered-To: freebsd-current@freebsd.org Received: from nimitz.ca.sandia.gov (nimitz.ca.sandia.gov [146.246.243.56]) by hub.freebsd.org (Postfix) with ESMTP id 7E59837BA3C for ; Tue, 21 Mar 2000 10:53:58 -0800 (PST) (envelope-from bmah@nimitz.ca.sandia.gov) Received: (from bmah@localhost) by nimitz.ca.sandia.gov (8.10.0/8.10.0) id e2LIrUg87051; Tue, 21 Mar 2000 10:53:30 -0800 (PST) (envelope-from bmah) Message-Id: <200003211853.e2LIrUg87051@nimitz.ca.sandia.gov> X-Mailer: exmh version 2.1.1-cvs 10/15/1999 To: Yoshinobu Inoue Cc: bde@zeta.org.au, nnd@mail.nsk.ru, current@FreeBSD.ORG Subject: Re: 'machine/param.h' required for 'sys/socket.h' In-Reply-To: <20000322024911Q.shin@nd.net.fujitsu.co.jp> References: <20000322013459L.shin@nd.net.fujitsu.co.jp> <20000322024911Q.shin@nd.net.fujitsu.co.jp> Comments: In-reply-to Yoshinobu Inoue message dated "Wed, 22 Mar 2000 02:49:11 +0900." From: bmah@CA.Sandia.GOV (Bruce A. Mah) Reply-To: bmah@CA.Sandia.GOV 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: multipart/signed; boundary="==_Exmh_789141986P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 21 Mar 2000 10:53:30 -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --==_Exmh_789141986P Content-Type: text/plain; charset=us-ascii If memory serves me right, Yoshinobu Inoue wrote: > > > I feel requesting inclusion of machine/param.h for any apps > > > which use socket is better. But if there are any other smarter > > > solution, please let me know and I'll appreciate it much. > > > > should never be included by applications since > > it is an implementation detail. > > > > Specify including in apps which use the CMSG*() macros. > > doesn't depend on <*/param.h> unless these macros are used. > > Since these macros are undocumented, applications that use them should > > expect problems :-). > > > > Bruce > > After reading bmah's message, now I am inclined to including > machine/param.h from sys/socket.h for maximum portability, if > there is no spec for it, and if all other platforms doing it. Arrgh. Now it seems I might need to reverse my position. I looked through some code fragments in UNIX Network Programming (Volume 1, Second Edition, pp. 362-365), and there's some precedent for needing with the CMSG*() macros. On the other hand, RFC 2292 and draft-ietf-ipngwg-rfc2292bis (the references I was originally working from) don't mention this requirement at all; they just say that CMSG*() are defined with . I'm slightly confused by now. I'm going to send off a note to the authors of draft-ietf-ipngwg-rfc229bis asking for some clarification. In the meantime, maybe we should hold off on doing any changes. Bruce. --==_Exmh_789141986P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: 8v9hQWl8rwWL3H+0/R4zKr2stejjn8GI iQA/AwUBONfFKdjKMXFboFLDEQIF8wCgqspEwzh/iJt8yOjlp7OO3nNtguYAoJNy PxqIQxugikuNZkB7sJ3YBnUC =5SBz -----END PGP SIGNATURE----- --==_Exmh_789141986P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message