diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-09-06 17:48:28 +0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-13 10:07:03 -0700 |
commit | 733e6877d7b1146ecb5c796f4d249843101a7b5f (patch) | |
tree | deef7abf4f88e6e0ba4ac326d351063a73399a8d /system/include/libc/stdlib.h | |
parent | 4c3c7df30af6dc9ba6309e527a5173d9078c56b9 (diff) |
Update to musl-0.9.13 headers.
Diffstat (limited to 'system/include/libc/stdlib.h')
-rw-r--r-- | system/include/libc/stdlib.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/system/include/libc/stdlib.h b/system/include/libc/stdlib.h index 0bcc9f4f..bca1fb41 100644 --- a/system/include/libc/stdlib.h +++ b/system/include/libc/stdlib.h @@ -88,8 +88,8 @@ size_t wcstombs (char *__restrict, const wchar_t *__restrict, size_t); #define WTERMSIG(s) ((s) & 0x7f) #define WSTOPSIG(s) WEXITSTATUS(s) #define WIFEXITED(s) (!WTERMSIG(s)) -#define WIFSTOPPED(s) (((s) & 0xff) == 0x7f) -#define WIFSIGNALED(s) (((signed char) (((s) & 0x7f) + 1) >> 1) > 0) +#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00) +#define WIFSIGNALED(s) (((s)&0xffff)-1 < 0xffu) int posix_memalign (void **, size_t, size_t); int setenv (const char *, const char *, int); @@ -149,6 +149,10 @@ int ptsname_r(int, char *, size_t); char *ecvt(double, int, int *, int *); char *fcvt(double, int, int *, int *); char *gcvt(double, int, char *); +struct __locale_struct; +float strtof_l(const char *__restrict, char **__restrict, struct __locale_struct *); +double strtod_l(const char *__restrict, char **__restrict, struct __locale_struct *); +long double strtold_l(const char *__restrict, char **__restrict, struct __locale_struct *); #endif #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) |