]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove inotify system call wrappers. Hopefully everyone is using a recent glibc now...
authorSlava Pestov <slava@factorcode.org>
Fri, 9 Sep 2011 05:03:56 +0000 (22:03 -0700)
committerSlava Pestov <slava@factorcode.org>
Fri, 9 Sep 2011 05:03:56 +0000 (22:03 -0700)
vm/os-linux.cpp
vm/os-linux.hpp

index 0bc7427331b1d5a1be2af34a5315f84e35ce7677..ebbbf7a6febe455508eaa45ec26c56a03b3fcbd3 100644 (file)
@@ -24,43 +24,4 @@ const char *vm_executable_path()
        }
 }
 
-#ifdef SYS_inotify_init
-
-VM_C_API int inotify_init()
-{
-       return syscall(SYS_inotify_init);
-}
-
-VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask)
-{
-       return syscall(SYS_inotify_add_watch, fd, name, mask);
-}
-
-VM_C_API int inotify_rm_watch(int fd, u32 wd)
-{
-       return syscall(SYS_inotify_rm_watch, fd, wd);
-}
-
-#else
-
-VM_C_API int inotify_init()
-{
-       current_vm()->not_implemented_error();
-       return -1;
-}
-
-VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask)
-{
-       current_vm()->not_implemented_error();
-       return -1;
-}
-
-VM_C_API int inotify_rm_watch(int fd, u32 wd)
-{
-       current_vm()->not_implemented_error();
-       return -1;
-}
-
-#endif
-
 }
index de13896b9ab555ea0f9cf29fcf11732e74df275a..8ea9b16dd1e90c862245d6cff13454ef53a79be4 100644 (file)
@@ -3,8 +3,4 @@
 namespace factor
 {
 
-VM_C_API int inotify_init();
-VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask);
-VM_C_API int inotify_rm_watch(int fd, u32 wd);
-
 }