6 /* Snarfed from SBCL linux-so.c. You must free() this yourself. */
7 const char *vm_executable_path(void)
9 char *path = (char *)safe_malloc(PATH_MAX + 1);
11 int size = readlink("/proc/self/exe", path, PATH_MAX);
14 fatal_error("Cannot read /proc/self/exe",0);
20 return safe_strdup(path);
24 #ifdef SYS_inotify_init
26 int inotify_init(void)
28 return syscall(SYS_inotify_init);
31 int inotify_add_watch(int fd, const char *name, u32 mask)
33 return syscall(SYS_inotify_add_watch, fd, name, mask);
36 int inotify_rm_watch(int fd, u32 wd)
38 return syscall(SYS_inotify_rm_watch, fd, wd);
43 int inotify_init(void)
45 not_implemented_error();
49 int inotify_add_watch(int fd, const char *name, u32 mask)
51 not_implemented_error();
55 int inotify_rm_watch(int fd, u32 wd)
57 not_implemented_error();