mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
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>
This commit is contained in:
parent
7adda6de6d
commit
6da777e212
3 changed files with 74 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue