diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2021-12-07 22:17:04 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2021-12-07 22:17:04 +0000 |
commit | d480c9d545b584076d280205cc39f690b979be45 (patch) | |
tree | 436b8f6a5aecfc20be39aabdcce0492fceaf7642 /sys/kern/syscalls.c | |
parent | 384a2c088bee39ff5ced282af8dc4078919311dd (diff) |
Delete the last emulation callbacks: we're Just ELF, so declare
exec_elf_fixup() and coredump_elf() in <sys/exec_elf.h> and call
them and the MD setregs() directly in kern_exec.c and kern_sig.c
Also delete e_name[] (only used by sysctl), e_errno (unused), and
e_syscallnames[] (only used by SYSCALL_DEBUG) and constipate
syscallnames to 'const char *const[]'
ok kettenis@
Diffstat (limited to 'sys/kern/syscalls.c')
-rw-r--r-- | sys/kern/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 601e3a7e986..49793eba1c0 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscalls.c,v 1.230 2021/11/29 16:31:43 mvs Exp $ */ +/* $OpenBSD: syscalls.c,v 1.231 2021/12/07 22:17:02 guenther Exp $ */ /* * System call names. @@ -7,7 +7,7 @@ * created from; OpenBSD: syscalls.master,v 1.220 2021/11/29 16:30:30 mvs Exp */ -char *syscallnames[] = { +const char *const syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ |