Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-12-12 20:11:33 +0300
committerJeff Johnston <jjohnstn@redhat.com>2008-12-12 20:11:33 +0300
commitf570da9508239c33e387653e1410ee3294b4e097 (patch)
treea95ddcc9cb6f08fc4b4df7d3003b90afde0adc83 /newlib/libc/sys/rtems
parent7851320a41a03f6b890a634e52163a1954a48835 (diff)
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(), _execve(), _exit().
Diffstat (limited to 'newlib/libc/sys/rtems')
-rw-r--r--newlib/libc/sys/rtems/crt0.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index 47332b752..c50f80f0a 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -77,6 +77,13 @@ _calloc_r() {}
_malloc_r() {}
_free_r() {}
+/* stubs for functions required by libc/posix */
+int getdents(int fd, void *dp, int count) { return -1; }
+struct timespec;
+int nanosleep(const struct timespec *req, struct timespec *rem) { return -1; }
+int _execve(const char *path, char * const *argv, char * const *envp) { return -1; }
+int _exit(int status) { return -1; }
+
/* gcc can implicitly generate references to these */
/* strcmp() {} */
/* strcpy() {} */