mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-14 14:56:05 -06:00
Fix statfs(64) syscall wrapper, by Andreas Schwab.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3082 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a029baa406
commit
4ce6f8de1a
2 changed files with 12 additions and 6 deletions
|
|
@ -3352,7 +3352,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|||
put_user(stfs.f_bavail, &target_stfs->f_bavail);
|
||||
put_user(stfs.f_files, &target_stfs->f_files);
|
||||
put_user(stfs.f_ffree, &target_stfs->f_ffree);
|
||||
put_user(stfs.f_fsid.__val[0], &target_stfs->f_fsid);
|
||||
put_user(stfs.f_fsid.__val[0], &target_stfs->f_fsid.val[0]);
|
||||
put_user(stfs.f_fsid.__val[1], &target_stfs->f_fsid.val[1]);
|
||||
put_user(stfs.f_namelen, &target_stfs->f_namelen);
|
||||
unlock_user_struct(target_stfs, arg2, 1);
|
||||
}
|
||||
|
|
@ -3378,7 +3379,8 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|||
put_user(stfs.f_bavail, &target_stfs->f_bavail);
|
||||
put_user(stfs.f_files, &target_stfs->f_files);
|
||||
put_user(stfs.f_ffree, &target_stfs->f_ffree);
|
||||
put_user(stfs.f_fsid.__val[0], &target_stfs->f_fsid);
|
||||
put_user(stfs.f_fsid.__val[0], &target_stfs->f_fsid.val[0]);
|
||||
put_user(stfs.f_fsid.__val[1], &target_stfs->f_fsid.val[1]);
|
||||
put_user(stfs.f_namelen, &target_stfs->f_namelen);
|
||||
unlock_user_struct(target_stfs, arg3, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue