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.
This commit is contained in:
Eric Blake 2009-12-08 13:50:41 +00:00
parent 1d30ae1236
commit ad0ae5d83a
4 changed files with 12 additions and 2 deletions

View 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".

View 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))));

View 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

View 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