On 12 June 2018 at 01:51, Richard Henderson <richard.hender...@linaro.org> wrote: > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > linux-user/syscall.h | 51 ++++ > linux-user/strace.c | 35 --- > linux-user/syscall.c | 402 +------------------------------ > linux-user/syscall_file.c | 423 +++++++++++++++++++++++++++++++++ > linux-user/Makefile.objs | 3 +- > linux-user/gen_syscall_list.py | 5 + > linux-user/strace.list | 15 -- > 7 files changed, 484 insertions(+), 450 deletions(-) > create mode 100644 linux-user/syscall_file.c
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> > +SYSCALL_IMPL(close) > +{ > + fd_trans_unregister(arg1); > + return get_errno(close(arg1)); > +} > +SYSCALL_DEF(close, ARG_DEC); If in future we wanted to extend the set of information we had for each syscall in the SyscallDef struct, I guess we'd add parameters to the SYSCALL_DEF macro (or have more variant macros)? I can't offhand think of something I'd want to use that for, so it's a bit of an abstract question for the moment. thanks -- PMM