From 104583f88870483d648220658a85aff80a316926 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 8 Sep 2011 22:03:56 -0700 Subject: [PATCH] Remove inotify system call wrappers. Hopefully everyone is using a recent glibc now. Fixes #86 --- vm/os-linux.cpp | 39 --------------------------------------- vm/os-linux.hpp | 4 ---- 2 files changed, 43 deletions(-) diff --git a/vm/os-linux.cpp b/vm/os-linux.cpp index 0bc7427331..ebbbf7a6fe 100644 --- a/vm/os-linux.cpp +++ b/vm/os-linux.cpp @@ -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 - } diff --git a/vm/os-linux.hpp b/vm/os-linux.hpp index de13896b9a..8ea9b16dd1 100644 --- a/vm/os-linux.hpp +++ b/vm/os-linux.hpp @@ -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); - }