summaryrefslogtreecommitdiff
path: root/sim/sh/syscall.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-18 22:43:06 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-18 23:03:08 -0400
commitb7c5246bbfad67b60a820db5e548e665171645ec (patch)
tree3e3bf2509358ee5cdf3f8c89f6ded780c375ebe9 /sim/sh/syscall.h
parentb3d4da0f120444d98d76bb56646af682d64907dd (diff)
downloadbinutils-gdb-b7c5246bbfad67b60a820db5e548e665171645ec.tar.gz
sim: sh: switch syscalls to common nltvals
Rather than hand duplicate the syscall table, switch to the common nltvals framework. We have to tweak the constant names, but we get everything else for free. I made sure the constants have the same values before & after too :).
Diffstat (limited to 'sim/sh/syscall.h')
-rw-r--r--sim/sh/syscall.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/sim/sh/syscall.h b/sim/sh/syscall.h
deleted file mode 100644
index aebce2ce26d..00000000000
--- a/sim/sh/syscall.h
+++ /dev/null
@@ -1,36 +0,0 @@
-
-/* !!! DANGER !!!
- This was copied from newlib. */
-
-
-#define SYS_exit 1
-#define SYS_fork 2
-#define SYS_read 3
-#define SYS_write 4
-#define SYS_open 5
-#define SYS_close 6
-#define SYS_wait4 7
-#define SYS_creat 8
-#define SYS_link 9
-#define SYS_unlink 10
-#define SYS_execv 11
-#define SYS_chdir 12
-#define SYS_mknod 14
-#define SYS_chmod 15
-#define SYS_chown 16
-#define SYS_lseek 19
-#define SYS_getpid 20
-#define SYS_isatty 21
-#define SYS_fstat 22
-#define SYS_time 23
-#define SYS_ARG 24
-#define SYS_stat 38
-#define SYS_pipe 42
-#define SYS_execve 59
-#define SYS_truncate 129
-#define SYS_ftruncate 130
-#define SYS_argc 172
-#define SYS_argnlen 173
-#define SYS_argn 174
-#define SYS_utime 201 /* not really a system call */
-#define SYS_wait 202 /* nor is this */