Den 29/10/2012 kl. 11.30 skrev Dimitry Andric <d...@freebsd.org>: > On 2012-10-29 09:12, Erik Cederstrand wrote: >> >> The code in the report is /sbin/zpool, so I assume it's not KERNEL code. As >> I wrote in my email, I can see B_TRUE and B_FALSE are defined as boolean_t >> in sys/cddl/compat/opensolaris/sys/types.h But I can't see that boolean_t is >> defined anywhere in the included headers as long as KERNEL is not defined. > > In sys/cddl/compat/opensolaris/sys/types.h, there is: > > typedef enum { B_FALSE, B_TRUE } boolean_t; > > This line defines the boolean_t type. Maybe the type itself is never > used, but only the enum values. Sort of like a an anonymous enum in C++.
Ok, so I expected B_FALSE to be defined as 0 explicitly somewhere, completely missing the point of enums. Embarrassing. Thanks for being easy on me :-) Erik _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"