[CRIU] [PATCH] arch: define the readlinkat syscall for all architectures

Andrey Vagin avagin at openvz.org
Tue Dec 29 06:31:26 PST 2015


From: Andrew Vagin <avagin at virtuozzo.com>

Cc: Vijaya Kumar K <Vijaya.Kumar at caviumnetworks.com>
Fixes: c9448e1ff7d3 ("arm: Fix wrong system call number")
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 arch/arm/syscall.def             | 2 +-
 arch/ppc64/syscall-ppc64.def     | 2 +-
 arch/x86/syscalls/syscall_32.tbl | 2 +-
 arch/x86/syscalls/syscall_64.tbl | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/syscall.def b/arch/arm/syscall.def
index 1ab0827..5d57169 100644
--- a/arch/arm/syscall.def
+++ b/arch/arm/syscall.def
@@ -52,7 +52,7 @@ flock				32	143	(int fd, unsigned long cmd)
 mkdir				!	39	(const char *name, int mode)
 rmdir				!	40	(const char *name)
 unlink				!	10	(char *pathname)
-readlinkat			78	85	(int fd, const char *path, char *buf, int bufsize)
+readlinkat			78	332	(int fd, const char *path, char *buf, int bufsize)
 umask				166	60	(int mask)
 getgroups			158	205	(int gsize, unsigned int *groups)
 setgroups			159	206	(int gsize, unsigned int *groups)
diff --git a/arch/ppc64/syscall-ppc64.def b/arch/ppc64/syscall-ppc64.def
index e48bd29..3319379 100644
--- a/arch/ppc64/syscall-ppc64.def
+++ b/arch/ppc64/syscall-ppc64.def
@@ -50,7 +50,7 @@ __NR_flock		143		sys_flock		(int fd, unsigned long cmd)
 __NR_mkdir		39		sys_mkdir		(const char *name, int mode)
 __NR_rmdir		40		sys_rmdir		(const char *name)
 __NR_unlink		10		sys_unlink		(char *pathname)
-__NR_readlink		85		sys_readlink		(const char *path, char *buf, int bufsize)
+__NR_readlinkat		296		sys_readlinkat		(int fd, const char *path, char *buf, int bufsize)
 __NR_umask		60		sys_umask		(int mask)
 __NR_getgroups		80		sys_getgroups		(int gsize, unsigned int *groups)
 __NR_setgroups		81		sys_setgroups		(int gsize, unsigned int *groups)
diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl
index 0d004cc..04d10d1 100644
--- a/arch/x86/syscalls/syscall_32.tbl
+++ b/arch/x86/syscalls/syscall_32.tbl
@@ -24,7 +24,6 @@ __NR_ioctl		54		sys_ioctl		(unsigned int fd, unsigned int cmd, unsigned long arg
 __NR_fcntl		55		sys_fcntl		(unsigned int fd, unsigned int cmd, unsigned long arg)
 __NR_umask		60		sys_umask		(int mask)
 __NR_setrlimit		75		sys_setrlimit		(unsigned int resource, struct krlimit *rlim)
-__NR_readlink		85		sys_readlink		(const char *path, char *buf, int bufsize)
 __NR_munmap		91		sys_munmap		(void *addr, unsigned long len)
 __NR_setpriority	97		sys_setpriority		(int which, int who, int nice)
 __NR_socketcall		102		sys_socketcall		(int call, unsigned long *args)
@@ -77,6 +76,7 @@ __NR_timer_delete	263		sys_timer_delete	(kernel_timer_t timer_id)
 __NR_clock_gettime	265		sys_clock_gettime	(int which_clock, struct timespec *tp)
 __NR_seccomp		354		sys_seccomp		(unsigned int op, unsigned int flags, const char *uargs)
 __NR_waitid		284		sys_waitid		(int which, pid_t pid, struct siginfo *infop, int options, struct rusage *ru)
+__NR_readlinkat		305		sys_readlinkat		(int fd, const char *path, char *buf, int bufsize)
 __NR_set_robust_list	311		sys_set_robust_list	(struct robust_list_head *head, size_t len)
 __NR_get_robust_list	312		sys_get_robust_list	(int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
 __NR_vmsplice		316		sys_vmsplice		(int fd, const struct iovec *iov, unsigned int nr_segs, unsigned int flags)
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl
index 1b53aee..5c32d4c 100644
--- a/arch/x86/syscalls/syscall_64.tbl
+++ b/arch/x86/syscalls/syscall_64.tbl
@@ -45,7 +45,6 @@ __NR_flock			73		sys_flock		(int fd, unsigned long cmd)
 __NR_mkdir			83		sys_mkdir		(const char *name, int mode)
 __NR_rmdir			84		sys_rmdir		(const char *name)
 __NR_unlink			87		sys_unlink		(char *pathname)
-__NR_readlink			89		sys_readlink		(const char *path, char *buf, int bufsize)
 __NR_umask			95		sys_umask		(int mask)
 __NR_ptrace			101		sys_ptrace		(long request, pid_t pid, void *addr, void *data)
 __NR_getgroups			115		sys_getgroups		(int gsize, unsigned int *groups)
@@ -87,6 +86,7 @@ __NR_clock_gettime		228		sys_clock_gettime	(const clockid_t which_clock, const s
 __NR_exit_group			231		sys_exit_group		(int error_code)
 __NR_openat			257		sys_openat		(int dfd, const char *filename, int flags, int mode)
 __NR_waitid			247		sys_waitid		(int which, pid_t pid, struct siginfo *infop, int options, struct rusage *ru)
+__NR_readlinkat			267		sys_readlinkat		(int fd, const char *path, char *buf, int bufsize)
 __NR_set_robust_list		273		sys_set_robust_list	(struct robust_list_head *head, size_t len)
 __NR_get_robust_list		274		sys_get_robust_list	(int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
 __NR_seccomp			317		sys_seccomp		(unsigned int op, unsigned int flags, const char *uargs)
-- 
2.4.3



More information about the CRIU mailing list