What is __BSD_VISIBLE for?

Steven Smith sos22 at cantab.net
Tue Jan 18 12:15:24 PST 2005


> __BSD_VISIBLE is throughout the system header files that are located at
> sys/sys, specifically I am looking at the msg.h file and the struct mymsg;
> however, I have noticed this in quite a few other places and I was hoping
> that someone out there would know what its use is?
There are a few features which are traditional for BSD systems, but
whcih are incompatible with e.g. POSIX.  These tend to be hidden
behind #ifdef __BSD_VISIBLE, so that programs only see them if they
want them.

__BSD_VISIBLE is #define's automatically by sys/cdefs.h, but you can
disable that with a special option to gcc (-traditional, I think).

Steven.

> 
> Keith
> 
> -----Original Message-----
> From: owner-freebsd-newbies at freebsd.org
> [mailto:owner-freebsd-newbies at freebsd.org] On Behalf Of Nikolas Britton
> Sent: Tuesday, January 18, 2005 12:45 PM
> To: Keith Bottner
> Cc: 'Freebsd-Newbies at Freebsd. Org'
> Subject: Re: What is __BSD_VISIBLE for?
> 
> Keith Bottner wrote:
> 
> >I have noticed that __BSD_VISIBLE is used through out the sys headers. 
> >What is this used to distinguish between? Anyone? Where is it set? Or 
> >where should it be set?
> > 
> >Keith
> >
> >  
> >
> hu?
> _______________________________________________
> freebsd-newbies at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe at freebsd.org"
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 1/17/2005
>  
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 1/17/2005
>  
> 
> _______________________________________________
> freebsd-newbies at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe at freebsd.org"

-- 
One day, I'm going to get an Alice-bot to answer all my email for me,
and see how long it takes people to notice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-newbies/attachments/20050118/876ce540/attachment.bin


More information about the freebsd-newbies mailing list