summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2009-12-08 13:50:41 +0000
committerEric Blake <eblake@redhat.com>2009-12-08 13:50:41 +0000
commitad0ae5d83af50e747e727b361e6d97ecb0022e51 (patch)
tree51b72832c5c557c7658b810e02001be5b2c05398 /newlib/libc
parent1d30ae12361c42a31f04af8602b1042d78d37867 (diff)
downloadcygnal-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')
-rw-r--r--newlib/libc/include/stdio.h1
-rw-r--r--newlib/libc/include/sys/_default_fcntl.h1
-rw-r--r--newlib/libc/include/sys/unistd.h4
3 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index b9c8745bc..8389449c2 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -348,7 +348,6 @@ FILE * _EXFUN(fmemopen, (void *, size_t, const char *));
FILE * _EXFUN(open_memstream, (char **, size_t *));
#if defined (__CYGWIN__)
int _EXFUN(renameat, (int, const char *, int, const char *));
-int _EXFUN(symlinkat, (const char *, int, const char *));
#endif
int _EXFUN(vdprintf, (int, const char *, __VALIST)
_ATTRIBUTE ((__format__ (__printf__, 2, 0))));
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