From 3e09037780ca95633749be3acd52e817eed7f98c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 24 Aug 2023 19:10:35 +0200 Subject: libc: get most of binutils to compile --- src/libc/include/stdlib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libc/include/stdlib.h') diff --git a/src/libc/include/stdlib.h b/src/libc/include/stdlib.h index ee9d179..c3fd4bd 100644 --- a/src/libc/include/stdlib.h +++ b/src/libc/include/stdlib.h @@ -16,13 +16,15 @@ const char *getprogname(void); void setprogname(const char *progname); void setproctitle(const char *fmt, ...); -int mkstemp(char *template); +char *mktemp(char *tmpl); +int mkstemp(char *tmpl); char *getenv(const char *name); int system(const char *cmd); int abs(int i); int atoi(const char *s); +long atol(const char *s); double atof(const char *s); long strtol(const char *restrict s, char **restrict end, int base); @@ -32,3 +34,5 @@ unsigned long long strtoull(const char *restrict s, char **restrict end, int bas double strtod(const char *restrict s, char **restrict end); void qsort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *a, const void *b)); +void qsort_r(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *arg); +void* bsearch(const void* key, const void* base_ptr, size_t nmemb, size_t size, int (*compare)(const void*, const void*)); -- cgit v1.2.3