linux-user: move TargetFdTrans functions to their own file
PATCH 1/1 linux-user: move TargetFdTrans functions to their own file
This will ease to move out syscall functions from syscall.c
Signed-off-by Laurent Vivier <[email protected]>
--- linux-user/Makefile.objs | 2 +- linux-user/fd-trans.c | 1408 ++++++++++++++++++++++++++++++++++++ linux-user/fd-trans.h | 97 +++ linux-user/syscall.c | 1448 +------------------------------------- 4 files changed, 1507 insertions(+), 1448 deletions(-) create mode 100644 linux-user/fd-trans.c create mode 100644 linux-user/fd-trans.h
linux-user/Makefile.objs +1 -1
@@ -1,7 +1,7 @@ obj-y = main.o syscall.o strace.o mmap.o signal.o \ elfload.o linuxload.o uaccess.o uname.o \ safe-syscall.o $(TARGET_ABI_DIR)/signal.o \ - $(TARGET_ABI_DIR)/cpu_loop.o exit.o + $(TARGET_ABI_DIR)/cpu_loop.o exit.o fd-trans.o obj-$(TARGET_HAS_BFLT) += flatload.o obj-$(TARGET_I386) += vm86.o
linux-user/fd-trans.c new file +1408 -0
1,408 lines not on this page · raw message
linux-user/fd-trans.h new file +97 -0
97 lines not on this page · raw message
linux-user/syscall.c +1 -1447
1,487 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.1
Part of the diff is not shown here. View the raw message.
Quoted 11 lines · Laurent Vivier
This will ease to move out syscall functions from
syscall.cSigned-off-by Laurent Vivier <[email protected]>--- linux-user/Makefile.objs | 2 +- linux-user/fd-trans.c | 1408 ++++++++++++++++++++++++++++++++++++ linux-user/fd-trans.h | 97 +++ linux-user/syscall.c | 1448 +------------------------------------- 4 files changed, 1507 insertions(+), 1448 deletions(-) create mode 100644 linux-user/fd-trans.c create mode 100644 linux-user/fd-trans.h
Thanks for this.
Reviewed-by Richard Henderson <[email protected]>
r~