aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-23 14:46:27 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-23 14:46:27 +0000
commit667f38b167caebb38a16aef6df56db0dcb34d684 (patch)
treef0cb380757b08bc0585147f4c1ff39906f7cdd14 /linux-user
parent8346901560d96edf94b803fd3f94db940ad370b3 (diff)
downloadqemu-667f38b167caebb38a16aef6df56db0dcb34d684.zip
qemu-667f38b167caebb38a16aef6df56db0dcb34d684.tar.gz
qemu-667f38b167caebb38a16aef6df56db0dcb34d684.tar.bz2
[f]truncate64 support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1515 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 0a4f07e..5a6d382 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2756,11 +2756,13 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
#endif
#ifdef TARGET_NR_truncate64
case TARGET_NR_truncate64:
- goto unimplemented;
+ ret = get_errno(truncate64((const char *)arg1, arg2));
+ break;
#endif
#ifdef TARGET_NR_ftruncate64
case TARGET_NR_ftruncate64:
- goto unimplemented;
+ ret = get_errno(ftruncate64(arg1, arg2));
+ break;
#endif
#ifdef TARGET_NR_stat64
case TARGET_NR_stat64: