From 144fa78944790d9a63cec3049d20e22bbe08d91d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 26 Feb 2007 14:46:53 +0100 Subject: inotify-syscalls.h: Add syscall numbers for m32r for those who care Also do some cleanup work. --- inotify-syscalls.h | 22 ++++++++++------------ 1 file 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 */ -- cgit v1.2.3-54-g00ecf