Commit 667f38b167caebb38a16aef6df56db0dcb34d684
1 parent
83469015
[f]truncate64 support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1515 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
2 deletions
linux-user/syscall.c
@@ -2756,11 +2756,13 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, | @@ -2756,11 +2756,13 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, | ||
2756 | #endif | 2756 | #endif |
2757 | #ifdef TARGET_NR_truncate64 | 2757 | #ifdef TARGET_NR_truncate64 |
2758 | case TARGET_NR_truncate64: | 2758 | case TARGET_NR_truncate64: |
2759 | - goto unimplemented; | 2759 | + ret = get_errno(truncate64((const char *)arg1, arg2)); |
2760 | + break; | ||
2760 | #endif | 2761 | #endif |
2761 | #ifdef TARGET_NR_ftruncate64 | 2762 | #ifdef TARGET_NR_ftruncate64 |
2762 | case TARGET_NR_ftruncate64: | 2763 | case TARGET_NR_ftruncate64: |
2763 | - goto unimplemented; | 2764 | + ret = get_errno(ftruncate64(arg1, arg2)); |
2765 | + break; | ||
2764 | #endif | 2766 | #endif |
2765 | #ifdef TARGET_NR_stat64 | 2767 | #ifdef TARGET_NR_stat64 |
2766 | case TARGET_NR_stat64: | 2768 | case TARGET_NR_stat64: |