aboutsummaryrefslogtreecommitdiff
path: root/linux-user/mips64/target_syscall.h
diff options
context:
space:
mode:
authorAleksandar Markovic <aleksandar.markovic@imgtec.com>2016-09-19 13:44:43 +0200
committerLeon Alrae <leon.alrae@imgtec.com>2016-09-23 07:07:35 +0100
commit0444a3b7935f6e09dfddf00411840e70f6fd933e (patch)
tree3847ad9bd55efeef02af9080084838a2af705d5b /linux-user/mips64/target_syscall.h
parentd7779acb30489729431436e71afb1fd36ef1966d (diff)
downloadqemu-0444a3b7935f6e09dfddf00411840e70f6fd933e.zip
qemu-0444a3b7935f6e09dfddf00411840e70f6fd933e.tar.gz
qemu-0444a3b7935f6e09dfddf00411840e70f6fd933e.tar.bz2
linux-user: Add missing TARGET_EDQUOT error code for Mips
EDQUOT is defined for Mips platform in Linux kernel in such a way that it has different value than on most other platforms. However, correspondent TARGET_EDQUOT for Mips is missing in Qemu code. Moreover, TARGET_EDQUOT is missing from the table for conversion of error codes from host to target. This patch fixes these problems. Without this patch, syscalls add_key(), keyctl(), link(), mkdir(), mknod(), open(), rename(), request_key(), setxattr(), symlink(), and write() will not be able to return the right error code in some scenarios on Mips platform. (Some of these syscalls are not yet supported in Qemu, but once they are supported, they will need correct EDQUOT handling.) Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Acked-by: Riku Voipio <riku.voipio@linaro.org> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'linux-user/mips64/target_syscall.h')
-rw-r--r--linux-user/mips64/target_syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/mips64/target_syscall.h b/linux-user/mips64/target_syscall.h
index a9c17f7..6692917 100644
--- a/linux-user/mips64/target_syscall.h
+++ b/linux-user/mips64/target_syscall.h
@@ -218,6 +218,8 @@ struct target_pt_regs {
#undef TARGET_ENOTRECOVERABLE
#define TARGET_ENOTRECOVERABLE 166 /* State not recoverable */
+#undef TARGET_EDQUOT
+#define TARGET_EDQUOT 1133 /* Quota exceeded */
#define UNAME_MACHINE "mips64"
#define UNAME_MINIMUM_RELEASE "2.6.32"