Date: Sat, 19 May 2012 16:40:05 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Robert Millan <rmh@freebsd.org> Cc: freebsd-arch@freebsd.org Subject: Re: headers that use "struct bintime" Message-ID: <20120519134005.GJ2358@deviant.kiev.zoral.com.ua> In-Reply-To: <CAOfDtXPidEVGHDeZWTQyk-X6pabc0HBqWLdNJG_zRgX=7iKgWg@mail.gmail.com> References: <CAOfDtXPidEVGHDeZWTQyk-X6pabc0HBqWLdNJG_zRgX=7iKgWg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--A/JKaSqKPqQLCbw0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 19, 2012 at 03:33:03PM +0200, Robert Millan wrote: > "struct bintime" is enabled only by __BSD_VISIBLE. However, there are > a few headers that use "struct bintime" without __BSD_VISIBLE: >=20 > sys/arm/include/cpu.h > sys/dev/iscsi/initiator/iscsivar.h > sys/geom/journal/g_journal.h > sys/sys/dtrace_bsd.h > sys/sys/devicestat.h > sys/sys/timeet.h > sys/sys/bio.h > sys/opencrypto/cryptodev.h >=20 > Should the definitions that use "struct bintime" be __BSD_VISIBLE too? > Or maybe "struct bintime" be defined unconditionally? >=20 > Or perhaps we could have "struct __bintime" and use that for system heade= rs? Note that all headers you listed are kernel headers, and kernel is exposed to the whole namespace. I suspect that no headers are supposed to be used by usermode among the list. --A/JKaSqKPqQLCbw0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+3orUACgkQC3+MBN1Mb4htWwCeJV9AuH/VdC4OzaZlZSxg8cx8 vAkAnRG0joEKCMYHhJpai0ROGv79nXUQ =5ZIi -----END PGP SIGNATURE----- --A/JKaSqKPqQLCbw0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120519134005.GJ2358>