6 /* Snarfed from SBCL linux-so.c. You must free() the result yourself. */
7 const char *vm_executable_path()
9 char *path = new char[PATH_MAX + 1];
11 int size = readlink("/proc/self/exe", path, PATH_MAX);
14 fatal_error("Cannot read /proc/self/exe",0);
21 const char *ret = safe_strdup(path);
27 #ifdef SYS_inotify_init
29 VM_C_API int inotify_init()
31 return syscall(SYS_inotify_init);
34 VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask)
36 return syscall(SYS_inotify_add_watch, fd, name, mask);
39 VM_C_API int inotify_rm_watch(int fd, u32 wd)
41 return syscall(SYS_inotify_rm_watch, fd, wd);
46 VM_C_API int inotify_init()
48 myvm->not_implemented_error();
52 VM_C_API int inotify_add_watch(int fd, const char *name, u32 mask)
54 myvm->not_implemented_error();
58 VM_C_API int inotify_rm_watch(int fd, u32 wd)
60 myvm->not_implemented_error();