diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-29 20:02:31 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-29 20:02:31 +0000 |
commit | b65734ac6cce34b9f4963f4ad3922eba9b48a441 (patch) | |
tree | a76090660cf29338112a978aac141d863ef02a82 /libgo/runtime | |
parent | 3f675741b17720d4124a4f901203b8c7da5ea309 (diff) | |
download | gcc-b65734ac6cce34b9f4963f4ad3922eba9b48a441.zip gcc-b65734ac6cce34b9f4963f4ad3922eba9b48a441.tar.gz gcc-b65734ac6cce34b9f4963f4ad3922eba9b48a441.tar.bz2 |
syscall: Fill out GNU/Linux support.
From-SVN: r184669
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/go-nosys.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ inotify_init (void) } #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 @@ splice (int fd __attribute__ ((unused)), } #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)), |