summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/dietlibc/include/math.h5
-rw-r--r--mdk-stage1/dietlibc/include/stdio.h1
-rw-r--r--mdk-stage1/dietlibc/include/stdlib.h2
-rw-r--r--mdk-stage1/dietlibc/include/sys/times.h2
-rw-r--r--mdk-stage1/dietlibc/lib/abs.c6
5 files changed, 16 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/math.h b/mdk-stage1/dietlibc/include/math.h
index 716bc8e19..2f4f2e33f 100644
--- a/mdk-stage1/dietlibc/include/math.h
+++ b/mdk-stage1/dietlibc/include/math.h
@@ -53,4 +53,9 @@ double log10(double d) __THROW __attribute__((__const__));
double pow(double x, double y) __THROW __attribute__((__const__));
+double sqrt(double x) __THROW __attribute__((__const__));
+double fabs(double x) __THROW __attribute__((__const__));
+double fmod(double x, double y) __THROW __attribute__((__const__));
+
+
#endif
diff --git a/mdk-stage1/dietlibc/include/stdio.h b/mdk-stage1/dietlibc/include/stdio.h
index 7c7c698eb..92d9dc0cb 100644
--- a/mdk-stage1/dietlibc/include/stdio.h
+++ b/mdk-stage1/dietlibc/include/stdio.h
@@ -63,6 +63,7 @@ int fflush(FILE *stream) __THROW;
int fclose(FILE *stream) __THROW;
+void clearerr(FILE *stream) __THROW;
int feof (FILE *stream) __THROW;
int ferror( FILE *stream) __THROW;
int fileno( FILE *stream) __THROW;
diff --git a/mdk-stage1/dietlibc/include/stdlib.h b/mdk-stage1/dietlibc/include/stdlib.h
index b85425426..800a80d10 100644
--- a/mdk-stage1/dietlibc/include/stdlib.h
+++ b/mdk-stage1/dietlibc/include/stdlib.h
@@ -57,4 +57,6 @@ void *alloca(size_t size) __THROW; /* gcc built-in */
char *realpath(const char *path, char *resolved_path) __THROW;
+int abs(int j) __THROW;
+
#endif
diff --git a/mdk-stage1/dietlibc/include/sys/times.h b/mdk-stage1/dietlibc/include/sys/times.h
index 7a1db07fa..72ec62fec 100644
--- a/mdk-stage1/dietlibc/include/sys/times.h
+++ b/mdk-stage1/dietlibc/include/sys/times.h
@@ -3,4 +3,6 @@
#include <linux/times.h>
+clock_t times(struct tms *buf);
+
#endif
diff --git a/mdk-stage1/dietlibc/lib/abs.c b/mdk-stage1/dietlibc/lib/abs.c
new file mode 100644
index 000000000..9d7055358
--- /dev/null
+++ b/mdk-stage1/dietlibc/lib/abs.c
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+int abs(int j)
+{
+ return (j < 0) ? -j : j;
+}