You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On BSDs libc exposes all features by default. When _XOPEN_SOURCE is specified non-standard features are hidden. Cheating compliance is possible but _DEFAULT_SOURCE (GNU) has no effect because the knob name is different: __BSD_VISIBLE on DragonFly/FreeBSD/OpenBSD and _NETBSD_SOURCE on NetBSD.
Also, usleep was removed in POSIX.1-2008 (-D_XOPEN_SOURCE=700).
Thanks. Keeping the feature test macros straight can be a chore :P. I'm not sure why I originally included both _XOPEN_SOURCE and _DEFAULT_SOURCE, presumably the former preceded the letter and ended up as residual cruft.
On BSDs libc exposes all features by default. When
_XOPEN_SOURCE
is specified non-standard features are hidden. Cheating compliance is possible but_DEFAULT_SOURCE
(GNU) has no effect because the knob name is different:__BSD_VISIBLE
on DragonFly/FreeBSD/OpenBSD and_NETBSD_SOURCE
on NetBSD.Also,
usleep
was removed in POSIX.1-2008 (-D_XOPEN_SOURCE=700
).The text was updated successfully, but these errors were encountered: