projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix dn_comp prototype and add stub
[musl]
/
include
/
stdlib.h
diff --git
a/include/stdlib.h
b/include/stdlib.h
index
0bcc9f4
..
2bd5f10
100644
(file)
--- a/
include/stdlib.h
+++ b/
include/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 WTERMSIG(s) ((s) & 0x7f)
#define WSTOPSIG(s) WEXITSTATUS(s)
#define WIFEXITED(s) (!WTERMSIG(s))
-#define WIFSTOPPED(s) ((
(s) & 0xff) == 0x7f
)
-#define WIFSIGNALED(s) (((s
igned 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);
int posix_memalign (void **, size_t, size_t);
int setenv (const char *, const char *, int);
@@
-139,6
+139,7
@@
int mkstemps (char *, int);
int mkostemps (char *, int, int);
void *valloc (size_t);
void *memalign(size_t, size_t);
int mkostemps (char *, int, int);
void *valloc (size_t);
void *memalign(size_t, size_t);
+int getloadavg(double *, int);
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFCONTINUED(s) ((s) == 0xffff)
#endif
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFCONTINUED(s) ((s) == 0xffff)
#endif
@@
-149,6
+150,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 *);
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)
#endif
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)