]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32/mips64: Fix the problem with VKI_ENOSYS and VKI_EOVERFLOW for mips32/64.
authorDejan Jevtic <dejan.jevtic@valgrind.org>
Tue, 4 Mar 2014 14:12:47 +0000 (14:12 +0000)
committerDejan Jevtic <dejan.jevtic@valgrind.org>
Tue, 4 Mar 2014 14:12:47 +0000 (14:12 +0000)
VKI_ENOSYS and VKI_EOVERFLOW don't have the same generic values for mips32/64.
We need to define these values for every Linux arch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13852

include/vki/vki-amd64-linux.h
include/vki/vki-arm-linux.h
include/vki/vki-arm64-linux.h
include/vki/vki-linux.h
include/vki/vki-mips32-linux.h
include/vki/vki-mips64-linux.h
include/vki/vki-ppc32-linux.h
include/vki/vki-ppc64-linux.h
include/vki/vki-s390x-linux.h
include/vki/vki-x86-linux.h

index b7212c3aa9808d6cb6ef1546261bbd73916958a4..393014896e15cac49c31350706b87ac7fdce85a2 100644 (file)
@@ -677,6 +677,13 @@ struct vki_shminfo64 {
 #define VKI_PTRACE_GETFPREGS          14
 #define VKI_PTRACE_SETFPREGS          15
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 //----------------------------------------------------------------------
 // And that's it!
 //----------------------------------------------------------------------
index a81ce99aeafbc3384035c25122bd79f7f1736d15..3ad6725c4ec1f0eb18728f556ee406292fa3b691 100644 (file)
@@ -887,6 +887,13 @@ struct vki_vm86plus_struct {
 
 #define VKI_HWCAP_NEON      4096
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 //----------------------------------------------------------------------
 // And that's it!
 //----------------------------------------------------------------------
index 9eb0c20af497959508f712a8194a74cb2125466e..9a5afbfdf6a2c72ec8e53865993fe86c097de97b 100644 (file)
@@ -670,6 +670,13 @@ struct vki_shminfo64 {
 //#define VKI_PTRACE_GETFPREGS          14
 //#define VKI_PTRACE_SETFPREGS          15
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 //----------------------------------------------------------------------
 // And that's it!
 //----------------------------------------------------------------------
index a3c4b3c3c18b91d8dabe29e999bb9919fc964c1b..e386292c8d7aa270b3343274ac83b967e5118bd9 100644 (file)
@@ -1244,9 +1244,6 @@ struct  vki_seminfo {
 
 #define VKI_EWOULDBLOCK                VKI_EAGAIN
 
-#define        VKI_ENOSYS              38      /* Function not implemented */
-#define        VKI_EOVERFLOW           75      /* Value too large for defined data type */
-
 //----------------------------------------------------------------------
 // From linux-2.6.8.1/include/linux/wait.h
 //----------------------------------------------------------------------
index ee537197f046416b5618cfcf73a0ad288be3566b..96b5f15d938e37f837aabb0a1089d8f55c58348c 100644 (file)
@@ -976,6 +976,13 @@ enum vki_sock_type {
 };
 #define ARCH_HAS_SOCKET_TYPES 1
 
+//----------------------------------------------------------------------
+// From linux-3.13.0/include/asm/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       89  /* Function not implemented */
+#define        VKI_EOVERFLOW    79  /* Value too large for defined data type */
+
 #endif // __VKI_MIPS32_LINUX_H
 
 /*--------------------------------------------------------------------*/
index 41185846ac762bcd326dad3f53c96656264c96da..c072a30c1cfe2e68f3fc097d246e84e84e91044a 100644 (file)
@@ -999,6 +999,13 @@ enum vki_sock_type {
 };
 #define ARCH_HAS_SOCKET_TYPES 1
 
+//----------------------------------------------------------------------
+// From linux-3.13.0/include/asm/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       89  /* Function not implemented */
+#define        VKI_EOVERFLOW    79  /* Value too large for defined data type */
+
 #endif // __VKI_MIPS64_LINUX_H
 
 /*--------------------------------------------------------------------*/
index 999c481437b1ff32171732e4bcd9b93d6038fb02..056fad2cde1f705321b8e355c2c1e01a032e7b3f 100644 (file)
@@ -921,6 +921,13 @@ struct vki_shminfo64 {
    unsigned long       __unused4;
 };
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 //.. //----------------------------------------------------------------------
 //.. // DRM ioctls
 //.. //----------------------------------------------------------------------
index 12069244898298db352a38483a9eac0b5851b467..dca1c24812c5c72615d8c88a4275af1b6b8fb1e0 100644 (file)
@@ -779,6 +779,13 @@ struct vki_shminfo64 {
   unsigned long   __unused4;
 };
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 //----------------------------------------------------------------------
 // end
 //----------------------------------------------------------------------
index 857ec2f27f96f3e18659d25d25f99e23cc2f0cf2..dcb82a1417921e214724f415a91f032aa6ad56b2 100644 (file)
@@ -957,6 +957,13 @@ struct vki_shminfo64 {
    an error condition. I.e. the system call failed. */
 #define VKI_MAX_ERRNO       -125
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 #endif // __VKI_S390X_LINUX_H
 
 /*--------------------------------------------------------------------*/
index 155470a6e9b9ba72082457f454423f8d6d65af8b..b3680932fa2c373c26313d599d1d6e23c7f24e52 100644 (file)
@@ -893,6 +893,13 @@ struct vki_vm86plus_struct {
        struct vki_vm86plus_info_struct vm86plus;
 };
 
+//----------------------------------------------------------------------
+// From linux-2.6.8.1/include/asm-generic/errno.h
+//----------------------------------------------------------------------
+
+#define        VKI_ENOSYS       38  /* Function not implemented */
+#define        VKI_EOVERFLOW    75  /* Value too large for defined data type */
+
 //----------------------------------------------------------------------
 // And that's it!
 //----------------------------------------------------------------------