summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-02-26 14:46:53 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-02-26 14:46:53 +0100
commit144fa78944790d9a63cec3049d20e22bbe08d91d (patch)
tree5c966ba26fe2ec0149b8272f9e988924e09a9850
parent2b7b13a4ad92ed14f7f2da2aa3cc7a1f7ebdb875 (diff)
inotify-syscalls.h: Add syscall numbers for m32r for those who care
Also do some cleanup work.
-rw-r--r--inotify-syscalls.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/inotify-syscalls.h b/inotify-syscalls.h
index fe5268e..69144cb 100644
--- a/inotify-syscalls.h
+++ b/inotify-syscalls.h
@@ -42,12 +42,6 @@
# define __NR_inotify_add_watch 152
# define __NR_inotify_rm_watch 156
#elif defined (__arm__)
-# define __NR_OABI_SYSCALL_BASE 0x900000
-# if defined(__thumb__) || defined(__ARM_EABI__)
-# define __NR_SYSCALL_BASE 0
-# else
-# define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
-# endif
# define __NR_inotify_init (__NR_SYSCALL_BASE + 316)
# define __NR_inotify_add_watch (__NR_SYSCALL_BASE + 317)
# define __NR_inotify_rm_watch (__NR_SYSCALL_BASE + 318)
@@ -55,6 +49,10 @@
# define __NR_inotify_init 290
# define __NR_inotify_add_watch 291
# define __NR_inotify_rm_watch 292
+#elif defined (__m32r__)
+# define __NR_inotify_init 290
+# define __NR_inotify_add_watch 291
+# define __NR_inotify_rm_watch 292
#elif defined (__hppa__)
# define __NR_inotify_init 269
# define __NR_inotify_add_watch 270
@@ -86,19 +84,19 @@
#endif
#endif /* __NR_inotify_init */
-static inline int inotify_init (void)
+static inline int inotify_init(void)
{
- return syscall (__NR_inotify_init);
+ return syscall(__NR_inotify_init);
}
-static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
+static inline int inotify_add_watch(int fd, const char *name, __u32 mask)
{
- return syscall (__NR_inotify_add_watch, fd, name, mask);
+ return syscall(__NR_inotify_add_watch, fd, name, mask);
}
-static inline int inotify_rm_watch (int fd, __u32 wd)
+static inline int inotify_rm_watch(int fd, __u32 wd)
{
- return syscall (__NR_inotify_rm_watch, fd, wd);
+ return syscall(__NR_inotify_rm_watch, fd, wd);
}
#endif /* _LINUX_INOTIFY_SYSCALLS_H */