Skip to contentSkip to conversation

linux-user: move TargetFdTrans functions to their own file

PATCH In review Laurent Vivier 2 participants 2 messages Aug 23, 2018 – Aug 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: move TargetFdTrans functions to their own file

This will ease to move out syscall functions from syscall.c

---
 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
index b5dfb71f25..769b8d8336 100644
@@ -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.

Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Laurent Vivier

This will ease to move out syscall functions from syscall.c

---
 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.

r~