On 6/10/26 09:54, Dominique Martinet wrote:
Some programs apparently use these, like the python test suite.

The flags argument (rwf_t) is an int, with values shared on all arches
and does not need translating.

This was tested manually with the following python script:
```
import os
fd = os.open('test', os.O_RDWR|os.O_CREAT)
os.pwritev(fd, [b'test', b'ok'], 0, os.RWF_HIPRI)
buf = [bytearray(3), bytearray(10)]
os.preadv(fd, buf, 0, os.RWF_HIPRI)
print(buf[0])
print(buf[1])
```

Signed-off-by: Dominique Martinet <[email protected]>
---
(the 80-column checkpatch warning made me wrap a couple of long lines
I'd find easier to read with 81 columns, so if you prefer I'd be happy
to resend without wrapping for pwrite2 safe_syscall6() declaration and
call, but it doesn't matter much either way)

Thanks!
---
  linux-user/syscall.c | 38 ++++++++++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)

Reviewed-by: Helge Deller <[email protected]>

I've picked it up into the linux-user git tree as-is.
Thanks!
Helge

Reply via email to