aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/qemu.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2023-02-10 11:16:25 -0700
committerWarner Losh <imp@bsdimp.com>2023-03-01 11:09:19 -0700
commit6da777e2121b1eed4d20cc3e892b3c3d303bc252 (patch)
treee7057cceb1732d8c3e1f3629946559d4f489236a /bsd-user/qemu.h
parent7adda6de6d2d994aaf5f7da375ca951157bb008a (diff)
bsd-user: implement sysctlbyname(2)
do_freebsd_sysctlbyname needs to translate the 'name' back down to a OID so we can intercept the special ones. Do that and call the common wrapper do_freebsd_sysctl_oid. Signed-off-by: Kyle Evans <kevans@FreeBSD.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/qemu.h')
-rw-r--r--bsd-user/qemu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 208772d4ed..41d84e0b81 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -255,6 +255,9 @@ int host_to_target_errno(int err);
/* os-sys.c */
abi_long do_freebsd_sysctl(CPUArchState *env, abi_ulong namep, int32_t namelen,
abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp, abi_ulong newlen);
+abi_long do_freebsd_sysctlbyname(CPUArchState *env, abi_ulong namep,
+ int32_t namelen, abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp,
+ abi_ulong newlen);
abi_long do_freebsd_sysarch(void *cpu_env, abi_long arg1, abi_long arg2);
/* user access */