Commit 80932ec1 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'renameat2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs

Pull renameat2 arch support from Miklos Szeredi:
 "I've collected architecture patches for the renameat2 syscall that
  maintainers acked and/or asked me to queue.

  This adds architecture support for the renameat2 syscall to m68k,
  parisc, ia64 and through asm-generic to arc, arm64, c6x, hexagon,
  metag, openrisc, score, tile, unicore32"

* 'renameat2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
  scripts/checksyscalls.sh: Make renameat optional
  asm-generic: Add renameat2 syscall
  ia64: add renameat2 syscall
  parisc: add renameat2 syscall
  m68k: add renameat2 syscall
parents 989d216f 68b77524
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#define NR_syscalls 314 /* length of syscall table */ #define NR_syscalls 315 /* length of syscall table */
/* /*
* The following defines stop scripts/checksyscalls.sh from complaining about * The following defines stop scripts/checksyscalls.sh from complaining about
......
...@@ -327,5 +327,6 @@ ...@@ -327,5 +327,6 @@
#define __NR_finit_module 1335 #define __NR_finit_module 1335
#define __NR_sched_setattr 1336 #define __NR_sched_setattr 1336
#define __NR_sched_getattr 1337 #define __NR_sched_getattr 1337
#define __NR_renameat2 1338
#endif /* _UAPI_ASM_IA64_UNISTD_H */ #endif /* _UAPI_ASM_IA64_UNISTD_H */
...@@ -1775,6 +1775,7 @@ sys_call_table: ...@@ -1775,6 +1775,7 @@ sys_call_table:
data8 sys_finit_module // 1335 data8 sys_finit_module // 1335
data8 sys_sched_setattr data8 sys_sched_setattr
data8 sys_sched_getattr data8 sys_sched_getattr
data8 sys_renameat2
.org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls
#endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */ #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <uapi/asm/unistd.h> #include <uapi/asm/unistd.h>
#define NR_syscalls 351 #define NR_syscalls 352
#define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_OLD_STAT #define __ARCH_WANT_OLD_STAT
......
...@@ -356,5 +356,6 @@ ...@@ -356,5 +356,6 @@
#define __NR_finit_module 348 #define __NR_finit_module 348
#define __NR_sched_setattr 349 #define __NR_sched_setattr 349
#define __NR_sched_getattr 350 #define __NR_sched_getattr 350
#define __NR_renameat2 351
#endif /* _UAPI_ASM_M68K_UNISTD_H_ */ #endif /* _UAPI_ASM_M68K_UNISTD_H_ */
...@@ -371,4 +371,5 @@ ENTRY(sys_call_table) ...@@ -371,4 +371,5 @@ ENTRY(sys_call_table)
.long sys_finit_module .long sys_finit_module
.long sys_sched_setattr .long sys_sched_setattr
.long sys_sched_getattr /* 350 */ .long sys_sched_getattr /* 350 */
.long sys_renameat2
...@@ -829,8 +829,9 @@ ...@@ -829,8 +829,9 @@
#define __NR_sched_setattr (__NR_Linux + 334) #define __NR_sched_setattr (__NR_Linux + 334)
#define __NR_sched_getattr (__NR_Linux + 335) #define __NR_sched_getattr (__NR_Linux + 335)
#define __NR_utimes (__NR_Linux + 336) #define __NR_utimes (__NR_Linux + 336)
#define __NR_renameat2 (__NR_Linux + 337)
#define __NR_Linux_syscalls (__NR_utimes + 1) #define __NR_Linux_syscalls (__NR_renameat2 + 1)
#define __IGNORE_select /* newselect */ #define __IGNORE_select /* newselect */
......
...@@ -432,6 +432,7 @@ ...@@ -432,6 +432,7 @@
ENTRY_SAME(sched_setattr) ENTRY_SAME(sched_setattr)
ENTRY_SAME(sched_getattr) /* 335 */ ENTRY_SAME(sched_getattr) /* 335 */
ENTRY_COMP(utimes) ENTRY_COMP(utimes)
ENTRY_COMP(renameat2)
/* Nothing yet */ /* Nothing yet */
......
...@@ -697,9 +697,11 @@ __SYSCALL(__NR_finit_module, sys_finit_module) ...@@ -697,9 +697,11 @@ __SYSCALL(__NR_finit_module, sys_finit_module)
__SYSCALL(__NR_sched_setattr, sys_sched_setattr) __SYSCALL(__NR_sched_setattr, sys_sched_setattr)
#define __NR_sched_getattr 275 #define __NR_sched_getattr 275
__SYSCALL(__NR_sched_getattr, sys_sched_getattr) __SYSCALL(__NR_sched_getattr, sys_sched_getattr)
#define __NR_renameat2 276
__SYSCALL(__NR_renameat2, sys_renameat2)
#undef __NR_syscalls #undef __NR_syscalls
#define __NR_syscalls 276 #define __NR_syscalls 277
/* /*
* All syscalls below here should go away really, * All syscalls below here should go away really,
......
...@@ -25,7 +25,7 @@ cat << EOF ...@@ -25,7 +25,7 @@ cat << EOF
#define __IGNORE_rmdir /* unlinkat */ #define __IGNORE_rmdir /* unlinkat */
#define __IGNORE_lchown /* fchownat */ #define __IGNORE_lchown /* fchownat */
#define __IGNORE_access /* faccessat */ #define __IGNORE_access /* faccessat */
#define __IGNORE_rename /* renameat */ #define __IGNORE_rename /* renameat2 */
#define __IGNORE_readlink /* readlinkat */ #define __IGNORE_readlink /* readlinkat */
#define __IGNORE_symlink /* symlinkat */ #define __IGNORE_symlink /* symlinkat */
#define __IGNORE_utimes /* futimesat */ #define __IGNORE_utimes /* futimesat */
...@@ -37,6 +37,9 @@ cat << EOF ...@@ -37,6 +37,9 @@ cat << EOF
#define __IGNORE_lstat64 /* fstatat64 */ #define __IGNORE_lstat64 /* fstatat64 */
#endif #endif
/* Missing flags argument */
#define __IGNORE_renameat /* renameat2 */
/* CLOEXEC flag */ /* CLOEXEC flag */
#define __IGNORE_pipe /* pipe2 */ #define __IGNORE_pipe /* pipe2 */
#define __IGNORE_dup2 /* dup3 */ #define __IGNORE_dup2 /* dup3 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment