Re: What is __BSD_VISIBLE for?

Steven Smith <[email protected]>
Newsgroups gmane.os.freebsd.newbies
Message-ID <20050118201518.GA7786@archibold>
> __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: [email protected]
> [mailto:[email protected]] On Behalf Of Nikolas Britton
> Sent: Tuesday, January 18, 2005 12:45 PM
> To: Keith Bottner
> Cc: 'Freebsd-Newbies@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?
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "[email protected]"
> 
> --
> 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
>  
> 
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "[email protected]"

-- 
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.
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFB7W5WO4S8/gLNrjcRAvbZAJ4x2OnqK9NkdJDIwovKCEqsjGuHrgCfXdB4
Er5Gvn4ydhCTCyZ969DPGaE=
=hVUz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.