From d480c9d545b584076d280205cc39f690b979be45 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Tue, 7 Dec 2021 22:17:04 +0000 Subject: Delete the last emulation callbacks: we're Just ELF, so declare exec_elf_fixup() and coredump_elf() in 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@ --- usr.sbin/btrace/btrace.c | 6 +++--- usr.sbin/btrace/btrace.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 87fc5c1199c..11fef8bfbc7 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.60 2021/11/12 16:57:24 claudio Exp $ */ +/* $OpenBSD: btrace.c,v 1.61 2021/12/07 22:17:03 guenther Exp $ */ /* * Copyright (c) 2019 - 2021 Martin Pieuchot @@ -62,7 +62,7 @@ char *read_btfile(const char *, size_t *); */ void dtpi_cache(int); void dtpi_print_list(void); -char *dtpi_func(struct dtioc_probe_info *); +const char *dtpi_func(struct dtioc_probe_info *); int dtpi_is_unit(const char *); struct dtioc_probe_info *dtpi_get_by_value(const char *, const char *, const char *); @@ -305,7 +305,7 @@ dtpi_print_list(void) } } -char * +const char * dtpi_func(struct dtioc_probe_info *dtpi) { char *sysnb, func[DTNAMESIZE]; diff --git a/usr.sbin/btrace/btrace.h b/usr.sbin/btrace/btrace.h index ded754e3d18..d763ae5a5fc 100644 --- a/usr.sbin/btrace/btrace.h +++ b/usr.sbin/btrace/btrace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.h,v 1.10 2021/10/03 22:01:48 dv Exp $ */ +/* $OpenBSD: btrace.h,v 1.11 2021/12/07 22:17:03 guenther Exp $ */ /* * Copyright (c) 2019 - 2020 Martin Pieuchot @@ -59,6 +59,6 @@ void hist_print(struct hist *, const char *); int stmt_printf(struct bt_stmt *, struct dt_evt *); /* syscalls.c */ -extern char *syscallnames[]; +extern const char *const syscallnames[]; #endif /* BTRACE_H */ -- cgit v1.2.3