headers that use "struct bintime"

Konstantin Belousov kostikbel at gmail.com
Sat May 19 13:40:10 UTC 2012


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:
> 
> 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
> 
> Should the definitions that use "struct bintime" be __BSD_VISIBLE too?
>  Or maybe "struct bintime" be defined unconditionally?
> 
> Or perhaps we could have "struct __bintime" and use that for system headers?
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20120519/e2c77a09/attachment.pgp


More information about the freebsd-arch mailing list