diff options
author | jilles <jilles@FreeBSD.org> | 2013-07-05 14:16:04 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-07-05 14:16:04 +0000 |
commit | 1523d4a961431261ec396302c4112265ef2003c7 (patch) | |
tree | b789549506438ef6d6b45af815d34837a023f1d8 /include | |
parent | 8a645d7c759a342513105b03c0c5ad699ce7d3f9 (diff) | |
download | FreeBSD-src-1523d4a961431261ec396302c4112265ef2003c7.zip FreeBSD-src-1523d4a961431261ec396302c4112265ef2003c7.tar.gz |
stdlib.h: Add correct POSIX version for POSIX extensions to C.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index cc92273..1902950 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -161,14 +161,16 @@ _Noreturn void quick_exit(int); #endif /* __ISO_C_VISIBLE >= 2011 */ /* - * Extensions made by POSIX relative to C. We don't know yet which edition - * of POSIX made these extensions, so assume they've always been there until - * research can be done. + * Extensions made by POSIX relative to C. */ -#if __POSIX_VISIBLE /* >= ??? */ -int posix_memalign(void **, size_t, size_t); /* (ADV) */ -int rand_r(unsigned *); /* (TSF) */ +#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE char *realpath(const char * __restrict, char * __restrict); +#endif +#if __POSIX_VISIBLE >= 199506 +int rand_r(unsigned *); /* (TSF) */ +#endif +#if __POSIX_VISIBLE >= 200112 +int posix_memalign(void **, size_t, size_t); /* (ADV) */ int setenv(const char *, const char *, int); int unsetenv(const char *); #endif |