* Martin Michlmayr <[EMAIL PROTECTED]> [2006-03-25 13:59]:
> Thiemo: is __mips__ okay in this case or how can I check for O32?

Right, I figured out how to support all 3 ABIs on MIPS:


--- inotify-syscalls.h~ 2006-03-25 13:41:40.000000000 +0000
+++ inotify-syscalls.h  2006-03-25 14:40:27.000000000 +0000
@@ -39,6 +39,38 @@
 # define __NR_inotify_init     290
 # define __NR_inotify_add_watch        291
 # define __NR_inotify_rm_watch 292
+#elif defined (__mips__)
+
+#if _MIPS_SIM == _ABIO32
+/*
+ * Linux o32 style syscalls are in the range from 4000 to 4999.
+ */
+#define __NR_Linux             4000
+#define __NR_inotify_init      (__NR_Linux + 284)
+#define __NR_inotify_add_watch (__NR_Linux + 285)
+#define __NR_inotify_rm_watch  (__NR_Linux + 286)
+#endif
+
+#if _MIPS_SIM == _ABI64
+/*
+ * Linux 64-bit syscalls are in the range from 5000 to 5999.
+ */
+#define __NR_Linux 5000
+#define __NR_inotify_init      (__NR_Linux + 243)
+#define __NR_inotify_add_watch (__NR_Linux + 244)
+#define __NR_inotify_rm_watch  (__NR_Linux + 245)
+#endif
+
+#if _MIPS_SIM == _NABI32
+/*
+ * Linux N32 syscalls are in the range from 6000 to 6999.
+ */
+#define __NR_Linux 6000
+#define __NR_inotify_init      (__NR_Linux + 247)
+#define __NR_inotify_add_watch (__NR_Linux + 248)
+#define __NR_inotify_rm_watch  (__NR_Linux + 249)
+#endif
+
 #else
 # error "Unsupported architecture!"
 #endif

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to