summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/lsearch.c
diff options
context:
space:
mode:
authorrmh <rmh@FreeBSD.org>2011-11-22 18:53:54 +0000
committerrmh <rmh@FreeBSD.org>2011-11-22 18:53:54 +0000
commit0c8ce505c84194e1f1bc9c2d13a679b4eee017a8 (patch)
tree56583fbc01d4c94c7549895a7f319d9f6d7e4c12 /lib/libc/stdlib/lsearch.c
parent62da5e13f7b1d2be2ff47ea2b41a6b6a525e4ab4 (diff)
downloadFreeBSD-src-0c8ce505c84194e1f1bc9c2d13a679b4eee017a8.zip
FreeBSD-src-0c8ce505c84194e1f1bc9c2d13a679b4eee017a8.tar.gz
Define __FreeBSD_kernel__ macro in sys/param.h.
__FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, which by definition is always true on FreeBSD. This macro is also defined on other systems that use the kernel of FreeBSD, such as GNU/kFreeBSD. It is tempting to use this macro in userland code when we want to enable kernel-specific routines, and in fact it's fine to do this in code that is part of FreeBSD itself. However, be aware that as presence of this macro is still not widespread (e.g. older FreeBSD versions, 3rd party compilers, etc), it is STRONGLY DISCOURAGED to check for this macro in external applications without also checking for __FreeBSD__ as an alternative. Approved by: kib (mentor) MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdlib/lsearch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud