3 /* Snarfed from SBCL linux-so.c. You must free() this yourself. */
4 const char *vm_executable_path(void)
6 char *path
= safe_malloc(PATH_MAX
+ 1);
8 int size
= readlink("/proc/self/exe", path
, PATH_MAX
);
11 fatal_error("Cannot read /proc/self/exe",0);
17 return safe_strdup(path
);
21 #ifdef SYS_inotify_init
23 int inotify_init(void)
25 return syscall(SYS_inotify_init
);
28 int inotify_add_watch(int fd
, const char *name
, u32 mask
)
30 return syscall(SYS_inotify_add_watch
, fd
, name
, mask
);
33 int inotify_rm_watch(int fd
, u32 wd
)
35 return syscall(SYS_inotify_rm_watch
, fd
, wd
);
40 int inotify_init(void)
42 not_implemented_error();
46 int inotify_add_watch(int fd
, const char *name
, u32 mask
)
48 not_implemented_error();
52 int inotify_rm_watch(int fd
, u32 wd
)
54 not_implemented_error();