diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/sys/h8300hms/crt1.c | 2 | ||||
-rw-r--r-- | newlib/libc/sys/h8300hms/syscalls.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/libc/sys/h8300hms/crt1.c b/newlib/libc/sys/h8300hms/crt1.c index dd0be3145..bd4ccf2d8 100644 --- a/newlib/libc/sys/h8300hms/crt1.c +++ b/newlib/libc/sys/h8300hms/crt1.c @@ -1,5 +1,6 @@ void __main () { +#ifndef __ELF__ static int initialized; if (! initialized) { @@ -13,4 +14,5 @@ void __main () (*--p) (); } +#endif } diff --git a/newlib/libc/sys/h8300hms/syscalls.c b/newlib/libc/sys/h8300hms/syscalls.c index b7a90e316..9f89c55d5 100644 --- a/newlib/libc/sys/h8300hms/syscalls.c +++ b/newlib/libc/sys/h8300hms/syscalls.c @@ -3,6 +3,7 @@ #include <_ansi.h> #include <sys/types.h> #include <sys/stat.h> +#include <errno.h> int _DEFUN(_read,(file, ptr, len), int file _AND @@ -48,3 +49,11 @@ _open (path, flags) { return 0; } + +int +_unlink (path) + const char *path; +{ + errno = EIO; + return -1; +} |