POSIX clearly states that getsubopt() should be declared in <stdlib.h>,

not in <unistd.h>
This commit is contained in:
Andrey A. Chernov 2004-02-23 03:16:59 +00:00
parent 2c840b1f65
commit 8720578d06
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126136
2 changed files with 2 additions and 8 deletions

View file

@ -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

View file

@ -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