diff options
author | das <das@FreeBSD.org> | 2009-03-04 03:31:10 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2009-03-04 03:31:10 +0000 |
commit | 83a21fcd3a6a9d34618cbaa065f07b09e6287b86 (patch) | |
tree | bfeebd9b38bdf6153a03f14c41ffe829c1edc6cd /include | |
parent | 9dd8da86ee4466eb7e0035d0d1b20bd5d10bac32 (diff) | |
download | FreeBSD-src-83a21fcd3a6a9d34618cbaa065f07b09e6287b86.zip FreeBSD-src-83a21fcd3a6a9d34618cbaa065f07b09e6287b86.tar.gz |
- Add getsubopt and mkdtemp to the POSIX.1-2008 namespace.
- Add mkstemp to the POSIX.1-2008 and BSD namespaces.
- Remove mktemp from the XSI namespace.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 5c8e4e3..cd15706 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -164,6 +164,18 @@ int setenv(const char *, const char *, int); int unsetenv(const char *); #endif +#if __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE +int getsubopt(char **, char *const *, char **); +#ifndef _MKDTEMP_DECLARED +char *mkdtemp(char *); +#define _MKDTEMP_DECLARED +#endif +#ifndef _MKSTEMP_DECLARED +int mkstemp(char *); +#define _MKSTEMP_DECLARED +#endif +#endif /* __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE */ + /* * The only changes to the XSI namespace in revision 6 were the deletion * of the ttyslot() and valloc() functions, which FreeBSD never declared @@ -178,18 +190,13 @@ double drand48(void); double erand48(unsigned short[3]); /* char *fcvt(double, int, int * __restrict, int * __restrict); */ /* char *gcvt(double, int, int * __restrict, int * __restrict); */ -int getsubopt(char **, char *const *, char **); int grantpt(int); char *initstate(unsigned long /* XSI requires u_int */, char *, long); long jrand48(unsigned short[3]); char *l64a(long); void lcong48(unsigned short[7]); long lrand48(void); -#ifndef _MKSTEMP_DECLARED -int mkstemp(char *); -#define _MKSTEMP_DECLARED -#endif -#ifndef _MKTEMP_DECLARED +#if !defined(_MKTEMP_DECLARED) && __XSI_VISIBLE <= 600 char *mktemp(char *); #define _MKTEMP_DECLARED #endif |