diff --git a/newlib/libc/sys/sh3eb/syscalls.c b/newlib/libc/sys/sh3eb/syscalls.c index a627cd509..0d521290b 100644 --- a/newlib/libc/sys/sh3eb/syscalls.c +++ b/newlib/libc/sys/sh3eb/syscalls.c @@ -1,4 +1,5 @@ #include <_ansi.h> +#include #include #include #include @@ -43,6 +44,7 @@ _close (int file) int _link (char *old, char *new) { + errno = EMLINK; return -1; } @@ -76,6 +78,7 @@ _creat (const char *path, int _unlink () { + errno = ENOENT; return -1; } @@ -99,6 +102,7 @@ _exit (n) _kill (n, m) { + errno = EINVAL; return -1; } @@ -141,6 +145,7 @@ _utime (path, times) int _fork () { + errno = EAGAIN; return -1; } @@ -148,12 +153,14 @@ int _wait (statusp) int *statusp; { + errno = ECHILD; return -1; } int _execve (const char *path, char *const argv[], char *const envp[]) { + errno = ENOMEM; return -1; }