summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2021-12-07 22:17:04 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2021-12-07 22:17:04 +0000
commitd480c9d545b584076d280205cc39f690b979be45 (patch)
tree436b8f6a5aecfc20be39aabdcce0492fceaf7642 /usr.sbin
parent384a2c088bee39ff5ced282af8dc4078919311dd (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 'usr.sbin')
-rw-r--r--usr.sbin/btrace/btrace.c6
-rw-r--r--usr.sbin/btrace/btrace.h4
2 files changed, 5 insertions, 5 deletions
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 <mpi@openbsd.org>
@@ -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 <mpi@openbsd.org>
@@ -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 */