summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-07-20 15:43:42 +0200
committerSzabolcs Nagy <nsz@port70.net>2014-07-20 18:42:21 +0200
commit002e8d84c5fec47636606aef5d2f16914c6097f3 (patch)
tree872045d3d4bb3bd89374286f93994d5b0016673d /arch
parent1312930f9bdea47006a8a8c8509c0bed5cf69e85 (diff)
downloadmusl-002e8d84c5fec47636606aef5d2f16914c6097f3.tar.gz
add syscall numbers for the new renameat2 syscall
it's like rename but with flags eg. to allow atomic exchange of two files, introduced in linux 3.15 commit 520c8b16505236fc82daa352e6c5e73cd9870cff
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/bits/syscall.h2
-rw-r--r--arch/i386/bits/syscall.h2
-rw-r--r--arch/mips/bits/syscall.h2
-rw-r--r--arch/or1k/bits/syscall.h6
-rw-r--r--arch/powerpc/bits/syscall.h2
-rw-r--r--arch/x32/bits/syscall.h2
-rw-r--r--arch/x86_64/bits/syscall.h3
7 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/bits/syscall.h b/arch/arm/bits/syscall.h
index 0b6ea7d9..efbdafff 100644
--- a/arch/arm/bits/syscall.h
+++ b/arch/arm/bits/syscall.h
@@ -335,6 +335,7 @@
#define __NR_finit_module 379
#define __NR_sched_setattr 380
#define __NR_sched_getattr 381
+#define __NR_renameat2 382
/* Repeated with SYS_ prefix */
@@ -676,3 +677,4 @@
#define SYS_finit_module 379
#define SYS_sched_setattr 380
#define SYS_sched_getattr 381
+#define SYS_renameat2 382
diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h
index 7e48791d..e1bfe6c2 100644
--- a/arch/i386/bits/syscall.h
+++ b/arch/i386/bits/syscall.h
@@ -351,6 +351,7 @@
#define __NR_finit_module 350
#define __NR_sched_setattr 351
#define __NR_sched_getattr 352
+#define __NR_renameat2 353
/* Repeated with SYS_ prefix */
@@ -708,3 +709,4 @@
#define SYS_finit_module 350
#define SYS_sched_setattr 351
#define SYS_sched_getattr 352
+#define SYS_renameat2 353
diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h
index f3d30d0b..dfce41f6 100644
--- a/arch/mips/bits/syscall.h
+++ b/arch/mips/bits/syscall.h
@@ -348,6 +348,7 @@
#define __NR_finit_module 4348
#define __NR_sched_setattr 4349
#define __NR_sched_getattr 4350
+#define __NR_renameat2 4351
/* Repeated with SYS_ prefix */
@@ -701,3 +702,4 @@
#define SYS_finit_module 4348
#define SYS_sched_setattr 4349
#define SYS_sched_getattr 4350
+#define SYS_renameat2 4351
diff --git a/arch/or1k/bits/syscall.h b/arch/or1k/bits/syscall.h
index 905229f0..dfb1a8bc 100644
--- a/arch/or1k/bits/syscall.h
+++ b/arch/or1k/bits/syscall.h
@@ -257,6 +257,9 @@
#define __NR_process_vm_writev 271
#define __NR_kcmp 272
#define __NR_finit_module 273
+#define __NR_sched_setattr 274
+#define __NR_sched_getattr 275
+#define __NR_renameat2 276
#define SYS_io_setup __NR_io_setup
#define SYS_io_destroy __NR_io_destroy
@@ -517,3 +520,6 @@
#define SYS_process_vm_writev __NR_process_vm_writev
#define SYS_kcmp __NR_kcmp
#define SYS_finit_module __NR_finit_module
+#define SYS_sched_setattr __NR_sched_setattr
+#define SYS_sched_getattr __NR_sched_getattr
+#define SYS_renameat2 __NR_renameat2
diff --git a/arch/powerpc/bits/syscall.h b/arch/powerpc/bits/syscall.h
index 16f0abef..277e223a 100644
--- a/arch/powerpc/bits/syscall.h
+++ b/arch/powerpc/bits/syscall.h
@@ -370,6 +370,7 @@
#define __NR_kcmp 354
#define __NR_sched_setattr 355
#define __NR_sched_getattr 356
+#define __NR_renameat2 357
/*
* repeated with SYS prefix
@@ -746,3 +747,4 @@
#define SYS_kcmp 354
#define SYS_sched_setattr 355
#define SYS_sched_getattr 356
+#define SYS_renameat2 357
diff --git a/arch/x32/bits/syscall.h b/arch/x32/bits/syscall.h
index 1c245e7b..4bbe3d29 100644
--- a/arch/x32/bits/syscall.h
+++ b/arch/x32/bits/syscall.h
@@ -273,6 +273,7 @@
#define __NR_finit_module (__X32_SYSCALL_BIT + 313)
#define __NR_sched_setattr (__X32_SYSCALL_BIT + 314)
#define __NR_sched_getattr (__X32_SYSCALL_BIT + 315)
+#define __NR_renameat2 (__X32_SYSCALL_BIT + 316)
#define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512)
#define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513)
@@ -596,6 +597,7 @@
#define SYS_finit_module __NR_finit_module
#define SYS_sched_setattr __NR_sched_setattr
#define SYS_sched_getattr __NR_sched_getattr
+#define SYS_renameat2 __NR_renameat2
#define SYS_rt_sigaction __NR_rt_sigaction
#define SYS_rt_sigreturn __NR_rt_sigreturn
diff --git a/arch/x86_64/bits/syscall.h b/arch/x86_64/bits/syscall.h
index 7bcb711b..9048273c 100644
--- a/arch/x86_64/bits/syscall.h
+++ b/arch/x86_64/bits/syscall.h
@@ -314,6 +314,8 @@
#define __NR_finit_module 313
#define __NR_sched_setattr 314
#define __NR_sched_getattr 315
+#define __NR_renameat2 316
+
#undef __NR_fstatat
#undef __NR_pread
@@ -645,6 +647,7 @@
#define SYS_finit_module 313
#define SYS_sched_setattr 314
#define SYS_sched_getattr 315
+#define SYS_renameat2 316
#undef SYS_fstatat
#undef SYS_pread