summaryrefslogtreecommitdiff
path: root/src/libc/include/stdlib.h
diff options
context:
space:
mode:
authordzwdz2023-08-24 19:10:35 +0200
committerdzwdz2023-08-24 19:10:35 +0200
commit3e09037780ca95633749be3acd52e817eed7f98c (patch)
tree83bcf5026cd4383809c81c5f38473a6b1e46755e /src/libc/include/stdlib.h
parent292b2386d766826b15f5ca084d37aa2c485fdda6 (diff)
libc: get most of binutils to compile
Diffstat (limited to 'src/libc/include/stdlib.h')
-rw-r--r--src/libc/include/stdlib.h6
1 files changed, 5 insertions, 1 deletions
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*));