X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libgo%2Fruntime%2Fgo-nosys.c;h=3ab5ea235f23bba5f6067f784af95897a42bb8c0;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=36bbdd26c35c0caed84c4c84efb27e124cf1ab7a;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/libgo/runtime/go-nosys.c b/libgo/runtime/go-nosys.c index 36bbdd2..3ab5ea2 100644 --- a/libgo/runtime/go-nosys.c +++ b/libgo/runtime/go-nosys.c @@ -16,8 +16,10 @@ #include #include #include +#include #include #include +#include #include #ifndef HAVE_OFF64_T @@ -28,6 +30,19 @@ typedef signed int off64_t __attribute__ ((mode (DI))); typedef off64_t loff_t; #endif +#ifndef HAVE_ACCEPT4 +struct sockaddr; +int +accept4 (int sockfd __attribute__ ((unused)), + struct sockaddr *addr __attribute__ ((unused)), + socklen_t *addrlen __attribute__ ((unused)), + int flags __attribute__ ((unused))) +{ + errno = ENOSYS; + return -1; +} +#endif + #ifndef HAVE_EPOLL_CREATE1 int epoll_create1 (int flags __attribute__ ((unused))) @@ -171,6 +186,16 @@ openat (int dirfd __attribute__ ((unused)), } #endif +#ifndef HAVE_PIPE2 +int +pipe2 (int pipefd[2] __attribute__ ((unused)), + int flags __attribute__ ((unused))) +{ + errno = ENOSYS; + return -1; +} +#endif + #ifndef HAVE_RENAMEAT int renameat (int olddirfd __attribute__ ((unused)), @@ -241,6 +266,19 @@ unshare (int flags __attribute__ ((unused))) } #endif +#ifndef HAVE_UTIMENSAT +struct timespec; +int +utimensat(int dirfd __attribute__ ((unused)), + const char *pathname __attribute__ ((unused)), + const struct timespec times[2] __attribute__ ((unused)), + int flags __attribute__ ((unused))) +{ + errno = ENOSYS; + return -1; +} +#endif + /* Long double math functions. These are needed on old i386 systems that don't have them in libm. The compiler translates calls to these functions on float64 to call an 80-bit floating point