diff options
author | ache <ache@FreeBSD.org> | 2004-02-23 03:16:59 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2004-02-23 03:16:59 +0000 |
commit | 4851a07e575db73e1ee8d8d3aa0bb7e73484f68b (patch) | |
tree | 9e72c18e9e3a3be5334f24aaff60ba194712cc6b | |
parent | 2d844ba403aa7c79fed3245fdbaf49728f9d0ec0 (diff) | |
download | FreeBSD-src-4851a07e575db73e1ee8d8d3aa0bb7e73484f68b.zip FreeBSD-src-4851a07e575db73e1ee8d8d3aa0bb7e73484f68b.tar.gz |
POSIX clearly states that getsubopt() should be declared in <stdlib.h>,
not in <unistd.h>
-rw-r--r-- | include/stdlib.h | 5 | ||||
-rw-r--r-- | include/unistd.h | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 23e6409..f94e7ab 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -177,10 +177,7 @@ double drand48(void); double erand48(unsigned short[3]); /* char *fcvt(double, int, int * __restrict, int * __restrict); */ /* char *gcvt(double, int, int * __restrict, int * __restrict); */ -#ifndef _GETSUBOPT_DECLARED int getsubopt(char **, char *const *, char **); -#define _GETSUBOPT_DECLARED -#endif int grantpt(int); char *initstate(unsigned long /* XSI requires u_int */, char *, long); long jrand48(unsigned short[3]); @@ -277,6 +274,8 @@ __int64_t strtoq(const char *, char **, int); __uint64_t strtouq(const char *, char **, int); + +extern char *suboptarg; /* getsubopt(3) external variable */ #endif /* __BSD_VISIBLE */ __END_DECLS diff --git a/include/unistd.h b/include/unistd.h index da1438a..6a441dd 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -539,11 +539,6 @@ int undelete(const char *); int unwhiteout(const char *); void *valloc(size_t); /* obsoleted by malloc() */ -extern char *suboptarg; /* getsubopt(3) external variable */ -#ifndef _GETSUBOPT_DECLARED -int getsubopt(char **, char * const *, char **); -#define _GETSUBOPT_DECLARED -#endif extern int optreset; /* getopt(3) external variable */ #endif /* __BSD_VISIBLE */ __END_DECLS |