diff options
author | Eric Blake <eblake@redhat.com> | 2009-12-08 13:50:41 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2009-12-08 13:50:41 +0000 |
commit | ad0ae5d83af50e747e727b361e6d97ecb0022e51 (patch) | |
tree | 51b72832c5c557c7658b810e02001be5b2c05398 /newlib/libc/include/sys | |
parent | 1d30ae12361c42a31f04af8602b1042d78d37867 (diff) | |
download | cygnal-ad0ae5d83af50e747e727b361e6d97ecb0022e51.tar.gz cygnal-ad0ae5d83af50e747e727b361e6d97ecb0022e51.tar.bz2 cygnal-ad0ae5d83af50e747e727b361e6d97ecb0022e51.zip |
Fix some *at declarations.
* libc/include/stdio.h (symlinkat): Move this...
* libc/include/sys/_default_fcntl.h (unlinkat): ...and this...
* libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to
match POSIX.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r-- | newlib/libc/include/sys/_default_fcntl.h | 1 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h index ccef6132e..eb30e5cda 100644 --- a/newlib/libc/include/sys/_default_fcntl.h +++ b/newlib/libc/include/sys/_default_fcntl.h @@ -181,7 +181,6 @@ extern int fcntl _PARAMS ((int, int, ...)); #include <sys/time.h> extern int futimesat _PARAMS ((int, const char *, const struct timeval *)); extern int openat _PARAMS ((int, const char *, int, ...)); -extern int unlinkat _PARAMS ((int, const char *, int)); #endif /* Provide _<systemcall> prototypes for functions provided by some versions diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index cc507a9ea..5abe5f709 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -242,6 +242,10 @@ ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen)); ssize_t _EXFUN(readlinkat, (int __dirfd1, const char *__path, char *__buf, size_t __buflen)); #endif int _EXFUN(symlink, (const char *__name1, const char *__name2)); +#if defined(__CYGWIN__) +int _EXFUN(symlinkat, (const char *, int, const char *)); +int _EXFUN(unlinkat, (int, const char *, int)); +#endif #define F_OK 0 #define R_OK 4 |