POSIX clearly states that getsubopt() should be declared in <stdlib.h>,
not in <unistd.h>
This commit is contained in:
parent
2c840b1f65
commit
8720578d06
@ -177,10 +177,7 @@ double drand48(void);
|
|||||||
double erand48(unsigned short[3]);
|
double erand48(unsigned short[3]);
|
||||||
/* char *fcvt(double, int, int * __restrict, int * __restrict); */
|
/* char *fcvt(double, int, int * __restrict, int * __restrict); */
|
||||||
/* char *gcvt(double, int, int * __restrict, int * __restrict); */
|
/* char *gcvt(double, int, int * __restrict, int * __restrict); */
|
||||||
#ifndef _GETSUBOPT_DECLARED
|
|
||||||
int getsubopt(char **, char *const *, char **);
|
int getsubopt(char **, char *const *, char **);
|
||||||
#define _GETSUBOPT_DECLARED
|
|
||||||
#endif
|
|
||||||
int grantpt(int);
|
int grantpt(int);
|
||||||
char *initstate(unsigned long /* XSI requires u_int */, char *, long);
|
char *initstate(unsigned long /* XSI requires u_int */, char *, long);
|
||||||
long jrand48(unsigned short[3]);
|
long jrand48(unsigned short[3]);
|
||||||
@ -277,6 +274,8 @@ __int64_t
|
|||||||
strtoq(const char *, char **, int);
|
strtoq(const char *, char **, int);
|
||||||
__uint64_t
|
__uint64_t
|
||||||
strtouq(const char *, char **, int);
|
strtouq(const char *, char **, int);
|
||||||
|
|
||||||
|
extern char *suboptarg; /* getsubopt(3) external variable */
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* __BSD_VISIBLE */
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
@ -539,11 +539,6 @@ int undelete(const char *);
|
|||||||
int unwhiteout(const char *);
|
int unwhiteout(const char *);
|
||||||
void *valloc(size_t); /* obsoleted by malloc() */
|
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 */
|
extern int optreset; /* getopt(3) external variable */
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* __BSD_VISIBLE */
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user