On 2/12/21 7:48 PM, Richard Henderson wrote: > For copy_*_user, only 0 and -TARGET_EFAULT are returned; no need > to involve abi_long. Use size_t for lengths. Use bool for the > lock_user copy argument. Use ssize_t for target_strlen, because > we can't overflow the host memory space. > > Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > linux-user/qemu.h | 14 ++++++-------- > linux-user/uaccess.c | 45 ++++++++++++++++++++++---------------------- > 2 files changed, 29 insertions(+), 30 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>