Re: [PATCH 19/32] bsd-user: Implement getpriority(2) and setpriority(2).

2023-08-29 Thread Richard Henderson
On 8/27/23 08:57, Karim Taha wrote: +static inline abi_long do_bsd_getpriority(abi_long which, abi_long who) +{ +abi_long ret; +/* + * Note that negative values are valid for getpriority, so we must + * differentiate based on errno settings. + */ +errno = 0; +ret = get

[PATCH 19/32] bsd-user: Implement getpriority(2) and setpriority(2).

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 27 +++ bsd-user/freebsd/os-syscall.c | 8 2 files changed, 35 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index c9b5a4cbb6..c776