Index: linux-user/syscall.c =================================================================== RCS file: /sources/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.121 diff -u -r1.121 syscall.c --- linux-user/syscall.c 17 Sep 2007 08:09:50 -0000 1.121 +++ linux-user/syscall.c 21 Sep 2007 19:18:25 -0000 @@ -47,6 +47,7 @@ #include #include #include +#include #include #include //#include @@ -4652,7 +4653,23 @@ case TARGET_NR_set_robust_list: goto unimplemented_nowarn; #endif - +#ifdef TARGET_NR_inotify_init + case TARGET_NR_inotify_init: + ret = get_errno(inotify_init()); + break; +#endif +#ifdef TARGET_NR_inotify_add_watch + case TARGET_NR_inotify_add_watch: + p = lock_user_string(arg2); + ret = get_errno(inotify_add_watch(arg1, path(p), arg3)); + unlock_user(p, arg2, 0); + break; +#endif +#ifdef TARGET_NR_inotify_rm_watch + case TARGET_NR_inotify_rm_watch: + ret = get_errno(inotify_rm_watch(arg1, arg2)); + break; +#endif default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num);