The new renameat2 syscall provides all the functionality of renameat with an additional flags argument, so make renameat optional so that future architectures can omit it without getting a warning. This patch doesn't affect existing architectures.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -25,7 +25,7 @@ cat << EOF · 24 unmodified lines | ||
| 25 | 25 | #define __IGNORE_rmdir /* unlinkat */ |
| 26 | 26 | #define __IGNORE_lchown /* fchownat */ |
| 27 | 27 | #define __IGNORE_access /* faccessat */ |
| 28 | −#define __IGNORE_rename /* renameat */ | |
| 28 | +#define __IGNORE_rename /* renameat2 */ | |
| 29 | 29 | #define __IGNORE_readlink /* readlinkat */ |
| 30 | 30 | #define __IGNORE_symlink /* symlinkat */ |
| 31 | 31 | #define __IGNORE_utimes /* futimesat */ |
| @@ -37,6 +37,9 @@ cat << EOF · 5 unmodified lines | ||
| 37 | 37 | #define __IGNORE_lstat64 /* fstatat64 */ |
| 38 | 38 | #endif |
| 39 | 39 | |
| 40 | +/* Missing flags argument */ | |
| 41 | +#define __IGNORE_renameat /* renameat2 */ | |
| 42 | + | |
| 40 | 43 | /* CLOEXEC flag */ |
| 41 | 44 | #define __IGNORE_pipe /* pipe2 */ |
| 42 | 45 | #define __IGNORE_dup2 /* dup3 */ |