diff --git a/libc/build.mk b/libc/build.mk index e906e4e76ef76e96014aaec207e69820f64c3480..c298ac30c13691e26be95b11f12827e2295b6cc8 100644 --- a/libc/build.mk +++ b/libc/build.mk @@ -645,3 +645,4 @@ libc += mount.o libc += eventfd.o libc += timerfd.o libc += shm.o +libc += inotify.o diff --git a/libc/inotify.cc b/libc/inotify.cc new file mode 100644 index 0000000000000000000000000000000000000000..5c2fdc01d2bd43a709a536e0f2ea78e1907365e2 --- /dev/null +++ b/libc/inotify.cc @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2014 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + +#include <api/sys/inotify.h> +#include <osv/stubbing.hh> +#include "libc.hh" + +int inotify_init() +{ + WARN_STUBBED(); + + return libc_error(EMFILE); +} + +int inotify_init1(int flags) +{ + WARN_STUBBED(); + + return libc_error(EMFILE); +} + +int inotify_add_watch(int fd, const char *pathname, uint32_t mask) +{ + WARN_STUBBED(); + + return libc_error(EINVAL); +} + +int inotify_rm_watch(int fd, int wd) +{ + WARN_STUBBED(); + + return libc_error(EINVAL); +}