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:
authorJoern Rennecke <joern.rennecke@embecosm.com>2001-08-29 17:26:32 +0400
committerJoern Rennecke <joern.rennecke@embecosm.com>2001-08-29 17:26:32 +0400
commit1ae900d62f5fbaf048bf3976ffb0f7f0e02e53bb (patch)
tree47c2d24664004adc1829024b776b345eb69d4ae9 /newlib/libc/sys/h8300hms/syscalls.c
parent41d53c9845c5eb4c8b8d43e0f93d4f5f5114f6cf (diff)
* configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors / __ctors_end. * libc/sys/h8300hms/syscalls.c: Include errno.h. (_unlink): New stub function.
Diffstat (limited to 'newlib/libc/sys/h8300hms/syscalls.c')
-rw-r--r--newlib/libc/sys/h8300hms/syscalls.c9
1 files changed, 9 insertions, 0 deletions
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;
+}