]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
[f]truncate64 support
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 23 Jul 2005 14:46:27 +0000 (14:46 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 23 Jul 2005 14:46:27 +0000 (14:46 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1515 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c

index 0a4f07e31dca21217b871846612d9051cd27230d..5a6d3821f5f8f2096c084cb2926cafd8617cbdeb 100644 (file)
@@ -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: