Re: [PATCH 7/9] bsd-user: do_freebsd_sysctl helper for sysctl(2)

2023-02-12 Thread Warner Losh
On Sat, Feb 11, 2023 at 4:09 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 2/10/23 13:18, Warner Losh wrote: > > +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)

Re: [PATCH 7/9] bsd-user: do_freebsd_sysctl helper for sysctl(2)

2023-02-11 Thread Richard Henderson
On 2/10/23 13:18, Warner Losh wrote: +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 ret; +void *hnamep, *holdp = NULL, *hnewp = NULL; +size_t holdlen; +abi_

[PATCH 7/9] bsd-user: do_freebsd_sysctl helper for sysctl(2)

2023-02-10 Thread Warner Losh
From: Kyle Evans Implement the wrapper function for sysctl(2). This puts the oid arguments into a standard form and calls the common do_freebsd_sysctl_oid. Signed-off-by: Kyle Evans Co-Authored-by: Juergen Lock Signed-off-by: Juergen Lock Co-Authored-by: Stacey Son Signed-off-by: Stacey Son