#include #include #include #include #include extern "C" { int fcntl(int fd, int cmd, ...) { va_list ap; va_start(ap, cmd); u32 extra_arg = va_arg(ap, u32); int rc = syscall(SC_fcntl, fd, cmd, extra_arg); __RETURN_WITH_ERRNO(rc, rc, -1); } int watch_file(const char* path, int path_length) { int rc = syscall(SC_watch_file, path, path_length); __RETURN_WITH_ERRNO(rc, rc, -1); } }