syscall: Fill out GNU/Linux support.
From-SVN: r184669
diff --git a/libgo/runtime/go-nosys.c b/libgo/runtime/go-nosys.c
index deacec5..4a30a57 100644
--- a/libgo/runtime/go-nosys.c
+++ b/libgo/runtime/go-nosys.c
@@ -116,6 +116,15 @@
}
#endif
+#ifndef HAVE_INOTIFY_INIT1
+int
+inotify_init1 (int flags __attribute__ ((unused)))
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+
#ifndef HAVE_INOTIFY_RM_WATCH
int
inotify_rm_watch (int fd __attribute__ ((unused)),
@@ -187,6 +196,18 @@
}
#endif
+#ifndef HAVE_SYNC_FILE_RANGE
+int
+sync_file_range (int fd __attribute__ ((unused)),
+ off64_t offset __attribute__ ((unused)),
+ off64_t nbytes __attribute__ ((unused)),
+ unsigned int flags __attribute__ ((unused)))
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+
#ifndef HAVE_TEE
int
tee (int fd_in __attribute__ ((unused)),