Revision c05c7a73 linux-user/syscall.c

b/linux-user/syscall.c
506 506
  return (inotify_rm_watch(fd, wd));
507 507
}
508 508
#endif
509
#ifdef CONFIG_INOTIFY1
510
#if defined(TARGET_NR_inotify_init1) && defined(__NR_inotify_init1)
511
static int sys_inotify_init1(int flags)
512
{
513
  return (inotify_init1(flags));
514
}
515
#endif
516
#endif
509 517
#else
510 518
/* Userspace can usually survive runtime without inotify */
511 519
#undef TARGET_NR_inotify_init
520
#undef TARGET_NR_inotify_init1
512 521
#undef TARGET_NR_inotify_add_watch
513 522
#undef TARGET_NR_inotify_rm_watch
514 523
#endif /* CONFIG_INOTIFY  */
......
7055 7064
        ret = get_errno(sys_inotify_init());
7056 7065
        break;
7057 7066
#endif
7067
#if defined(TARGET_NR_inotify_init1) && defined(__NR_inotify_init1)
7068
    case TARGET_NR_inotify_init1:
7069
        ret = get_errno(sys_inotify_init1(arg1));
7070
        break;
7071
#endif
7058 7072
#if defined(TARGET_NR_inotify_add_watch) && defined(__NR_inotify_add_watch)
7059 7073
    case TARGET_NR_inotify_add_watch:
7060 7074
        p = lock_user_string(arg2);

Also available in: Unified diff