aboutsummaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-20 22:33:23 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-03-20 22:33:23 +0000
commit04369ff2f525ea510b6ddeaa2e3ed6aedde8bbb4 (patch)
tree05bb7aeca8770e3299d0817a466bfe80b28d3927 /linux-user
parent68decc7c7f438497fc8f8ef913054df6c1ab5ed6 (diff)
ppc port
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@36 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c1
-rw-r--r--linux-user/syscall.c7
2 files changed, 7 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index b59c85d9c..45e81b207 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
+#include <string.h>
#include <errno.h>
#include <unistd.h>
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e6f04a840..c0bee47f7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
+#include <string.h>
#include <elf.h>
#include <endian.h>
#include <errno.h>
@@ -42,6 +43,9 @@
#define termios host_termios
#define winsize host_winsize
#define termio host_termio
+#define sgttyb host_sgttyb /* same as target */
+#define tchars host_tchars /* same as target */
+#define ltchars host_ltchars /* same as target */
#include <linux/termios.h>
#include <linux/unistd.h>
@@ -904,7 +908,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
case TARGET_NR_ftime:
goto unimplemented;
case TARGET_NR_sync:
- ret = get_errno(sync());
+ sync();
+ ret = 0;
break;
case TARGET_NR_kill:
ret = get_errno(kill(arg1, arg2));