os-linux.cpp: inotify wrappers should be VM_C_API

db4
Slava Pestov 2009-05-13 03:49:51 -05:00
parent 9ef162e2ef
commit 1e6227fe68
2 changed files with 9 additions and 9 deletions

View File

@ -23,36 +23,36 @@ const char *vm_executable_path()
#ifdef SYS_inotify_init #ifdef SYS_inotify_init
int inotify_init() VM_C_API int inotify_init()
{ {
return syscall(SYS_inotify_init); return syscall(SYS_inotify_init);
} }
int inotify_add_watch(int fd, const char *name, u32 mask) VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask)
{ {
return syscall(SYS_inotify_add_watch, fd, name, mask); return syscall(SYS_inotify_add_watch, fd, name, mask);
} }
int inotify_rm_watch(int fd, u32 wd) VM_C_API int inotify_rm_watch(int fd, u32 wd)
{ {
return syscall(SYS_inotify_rm_watch, fd, wd); return syscall(SYS_inotify_rm_watch, fd, wd);
} }
#else #else
int inotify_init() VM_C_API int inotify_init()
{ {
not_implemented_error(); not_implemented_error();
return -1; return -1;
} }
int inotify_add_watch(int fd, const char *name, u32 mask) VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask)
{ {
not_implemented_error(); not_implemented_error();
return -1; return -1;
} }
int inotify_rm_watch(int fd, u32 wd) VM_C_API int inotify_rm_watch(int fd, u32 wd)
{ {
not_implemented_error(); not_implemented_error();
return -1; return -1;

View File

@ -3,8 +3,8 @@
namespace factor namespace factor
{ {
int inotify_init(); VM_C_API int inotify_init();
int inotify_add_watch(int fd, const char *name, u32 mask); VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask);
int inotify_rm_watch(int fd, u32 wd); VM_C_API int inotify_rm_watch(int fd, u32 wd);
} }