linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix inotify syscalls on ARM
@ 2006-07-26 21:10 Richard Purdie
  2006-07-27  8:56 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2006-07-26 21:10 UTC (permalink / raw)
  To: linux-hotplug

This patch fixes the inotify syscalls on ARM so they work. It uses
__NR_SYSCALL_BASE from the libc headers (via sys/syscall.h) as this
value depends on which ABI you're using and trying to work that out gets
complicated.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>

Index: udev-092/udev_libc_wrapper.h
=================================--- udev-092.orig/udev_libc_wrapper.h	2006-07-26 21:55:06.000000000 +0100
+++ udev-092/udev_libc_wrapper.h	2006-07-26 21:55:37.000000000 +0100
@@ -58,9 +58,9 @@
 # define __NR_inotify_add_watch	152
 # define __NR_inotify_rm_watch	156
 #elif defined (__arm__)
-# define __NR_inotify_init	316
-# define __NR_inotify_add_watch	317
-# define __NR_inotify_rm_watch	318
+# 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
 #elif defined (__sh__)
 # define __NR_inotify_init	290
 # define __NR_inotify_add_watch	291



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-27  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-26 21:10 [PATCH] Fix inotify syscalls on ARM Richard Purdie
2006-07-27  8:56 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).