From f570da9508239c33e387653e1410ee3294b4e097 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 12 Dec 2008 17:11:33 +0000 Subject: 2008-12-12 Ralf Corsepius * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(), _execve(), _exit(). --- newlib/libc/sys/rtems/crt0.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'newlib/libc/sys/rtems') 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() {} */ -- cgit v1.2.3