Re: [PATCH v4 33/53] semihosting: Split out semihost_sys_isatty

2022-06-22 Thread Luc Michel
On 13:45 Tue 07 Jun , Richard Henderson wrote: > Split out the non-ARM specific portions of SYS_ISTTY to a > reusable function. This handles all GuestFD. > > Add a common_semi_istty_cb helper to translate the Posix > error return, 0+ENOTTY, to the Arm semihosting not-a-file > success result.

[PATCH v4 33/53] semihosting: Split out semihost_sys_isatty

2022-06-07 Thread Richard Henderson
Split out the non-ARM specific portions of SYS_ISTTY to a reusable function. This handles all GuestFD. Add a common_semi_istty_cb helper to translate the Posix error return, 0+ENOTTY, to the Arm semihosting not-a-file success result. Signed-off-by: Richard Henderson ---