From 2bcff4ac5cf1d99e20b65756a080f9dca8f42608 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Wed, 13 May 2009 03:49:51 -0500 Subject: [PATCH] os-linux.cpp: inotify wrappers should be VM_C_API --- vm/os-linux.cpp | 12 ++++++------ vm/os-linux.hpp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/vm/os-linux.cpp b/vm/os-linux.cpp index f5814d7f18..2bc121ffc7 100644 --- a/vm/os-linux.cpp +++ b/vm/os-linux.cpp @@ -23,36 +23,36 @@ const char *vm_executable_path() #ifdef SYS_inotify_init -int inotify_init() +VM_C_API int 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); } -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); } #else -int inotify_init() +VM_C_API int inotify_init() { not_implemented_error(); 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(); return -1; } -int inotify_rm_watch(int fd, u32 wd) +VM_C_API int inotify_rm_watch(int fd, u32 wd) { not_implemented_error(); return -1; diff --git a/vm/os-linux.hpp b/vm/os-linux.hpp index 257a6b0692..de13896b9a 100644 --- a/vm/os-linux.hpp +++ b/vm/os-linux.hpp @@ -3,8 +3,8 @@ namespace factor { -int inotify_init(); -int inotify_add_watch(int fd, const char *name, u32 mask); -int inotify_rm_watch(int fd, u32 wd); +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); }