cygwin: Implement renameat2

Define the RENAME_NOREPLACE flag in <cygwin/fs.h> as defined on Linux
in <linux/fs.h>.  The other RENAME_* flags defined on Linux are not
supported.
This commit is contained in:
Ken Brown
2017-08-17 09:12:15 -04:00
committed by Corinna Vinschen
parent c496cbb6bd
commit f665b1cef3
5 changed files with 54 additions and 7 deletions

View File

@ -384,6 +384,9 @@ int _EXFUN(vdprintf, (int, const char *__restrict, __VALIST)
#endif
#if __ATFILE_VISIBLE
int _EXFUN(renameat, (int, const char *, int, const char *));
# ifdef __CYGWIN__
int _EXFUN(renameat2, (int, const char *, int, const char *, unsigned int));
# endif
#endif
/*