mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 14:31:37 +00:00
fix places where _BSD_SOURCE failed to yield a superset of _XOPEN_SOURCE
the vast majority of these failures seem to have been oversights at the time _BSD_SOURCE was added, or perhaps shortly afterward. the one which may have had some reason behind it is omission of setpgrp from the _BSD_SOURCE feature profile, since the standard setpgrp interface conflicts with a legacy (pre-POSIX) BSD interface by the same name. however, such omission is not aligned with our general policy in this area (for example, handling of similar _GNU_SOURCE cases) and should not be preserved.
This commit is contained in:
@ -196,7 +196,7 @@ void psignal(int, const char *);
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
#if defined(_XOPEN_SOURCE) || defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
|
||||||
int killpg(pid_t, int);
|
int killpg(pid_t, int);
|
||||||
int sigaltstack(const stack_t *__restrict, stack_t *__restrict);
|
int sigaltstack(const stack_t *__restrict, stack_t *__restrict);
|
||||||
int sighold(int);
|
int sighold(int);
|
||||||
|
@ -114,9 +114,6 @@ long int random (void);
|
|||||||
void srandom (unsigned int);
|
void srandom (unsigned int);
|
||||||
char *initstate (unsigned int, char *, size_t);
|
char *initstate (unsigned int, char *, size_t);
|
||||||
char *setstate (char *);
|
char *setstate (char *);
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|
||||||
int putenv (char *);
|
int putenv (char *);
|
||||||
int posix_openpt (int);
|
int posix_openpt (int);
|
||||||
int grantpt (int);
|
int grantpt (int);
|
||||||
|
@ -116,7 +116,7 @@ int timer_getoverrun (timer_t);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
#if defined(_XOPEN_SOURCE) || defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
|
||||||
char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
|
char *strptime (const char *__restrict, const char *__restrict, struct tm *__restrict);
|
||||||
extern int daylight;
|
extern int daylight;
|
||||||
extern long timezone;
|
extern long timezone;
|
||||||
|
@ -140,9 +140,6 @@ int lockf(int, int, off_t);
|
|||||||
long gethostid(void);
|
long gethostid(void);
|
||||||
int nice(int);
|
int nice(int);
|
||||||
void sync(void);
|
void sync(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|
||||||
pid_t setpgrp(void);
|
pid_t setpgrp(void);
|
||||||
char *crypt(const char *, const char *);
|
char *crypt(const char *, const char *);
|
||||||
void encrypt(char *, int);
|
void encrypt(char *, int);
|
||||||
|
Reference in New Issue
Block a user