OSDN Git Service

Fix some *at declarations.
authorericb <ericb>
Tue, 8 Dec 2009 22:50:39 +0000 (22:50 +0000)
committerericb <ericb>
Tue, 8 Dec 2009 22:50:39 +0000 (22:50 +0000)
* 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.

newlib/ChangeLog
newlib/libc/include/stdio.h
newlib/libc/include/sys/_default_fcntl.h
newlib/libc/include/sys/unistd.h

index 10ffe9d..d454327 100644 (file)
@@ -1,3 +1,11 @@
+2009-12-08  Eric Blake  <ebb9@byu.net>
+
+       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.
+
 2009-12-03  Craig Howland <howland@LGSInnovations.com>
 
        * libc/stdlib/strtod.c:  Correct "NO_REENT" to "_REENT_ONLY".
index b9c8745..8389449 100644 (file)
@@ -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))));
index ccef613..eb30e5c 100644 (file)
@@ -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
index cc507a9..5abe5f7 100644 (file)
@@ -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