[CRIU] [PATCH 20/20] ARM: removed 64-bit API syscall numbers.
alekskartashov at parallels.com
alekskartashov at parallels.com
Wed Dec 12 08:34:30 EST 2012
From: Alexander Kartashov <alekskartashov at parallels.com>
Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
arch/arm/gen-syscalls.pl | 4 +-
arch/arm/syscall.def | 130 +++++++++++++++++++++++-----------------------
2 files changed, 67 insertions(+), 67 deletions(-)
diff --git a/arch/arm/gen-syscalls.pl b/arch/arm/gen-syscalls.pl
index 3745161..6b08de4 100755
--- a/arch/arm/gen-syscalls.pl
+++ b/arch/arm/gen-syscalls.pl
@@ -56,10 +56,10 @@ for (<IN>) {
my $code_macro;
my $sys_name;
- if (/(?<name>\S+)\s+(?<alias>\S+)\s+(?<code64>\d+)\s+(?<code32>(?:\d+|\!))\s+\((?<args>.+)\)/) {
+ if (/(?<name>\S+)\s+(?<alias>\S+)\s+(?<code32>(?:\d+|\!))\s+\((?<args>.+)\)/) {
$code_macro = "__NR_$+{name}";
$sys_name = "sys_$+{alias}";
- } elsif (/(?<name>\S+)\s+(?<code64>\d+)\s+(?<code32>(?:\d+|\!))\s+\((?<args>.+)\)/) {
+ } elsif (/(?<name>\S+)\s+(?<code32>(?:\d+|\!))\s+\((?<args>.+)\)/) {
$code_macro = "__NR_$+{name}";
$sys_name = "sys_$+{name}";
} else {
diff --git a/arch/arm/syscall.def b/arch/arm/syscall.def
index 2849917..8564231 100644
--- a/arch/arm/syscall.def
+++ b/arch/arm/syscall.def
@@ -5,70 +5,70 @@
# The template is (name and arguments are optinal if you need only __NR_x
# defined, but no realy entry point in syscalls lib).
#
-# name/alias code code32 arguments
+# name/alias code arguments
# -----------------------------------------------------------------------
#
-read 0 3 (int fd, void *buf, unsigned long count)
-write 1 4 (int fd, const void *buf, unsigned long count)
-open 2 5 (const char *filename, unsigned long flags, unsigned long mode)
-close 3 6 (int fd)
-lseek 8 19 (int fd, unsigned long offset, unsigned long origin)
-mmap 9 ! (void *addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long offset)
-mprotect 10 125 (const void *addr, unsigned long len, unsigned long prot)
-munmap 11 91 (void *addr, unsigned long len)
-brk 12 45 (void *addr)
-rt_sigaction sigaction 13 174 (int signum, const rt_sigaction_t *act, rt_sigaction_t *oldact, size_t sigsetsize)
-rt_sigprocmask sigprocmask 14 175 (int how, k_rtsigset_t *set, k_rtsigset_t *old, size_t sigsetsize)
-rt_sigreturn 15 173 (void)
-mincore 27 219 (void *addr, unsigned long size, unsigned char *vec)
-ioctl 16 54 (unsigned int fd, unsigned int cmd, unsigned long arg)
-mremap 25 163 (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flag, unsigned long new_addr)
-madvise 28 220 (unsigned long start, size_t len, int behavior)
-shmat 30 305 (int shmid, void *shmaddr, int shmflag)
-pause 34 29 (void)
-nanosleep 35 162 (struct timespec *req, struct timespec *rem)
-getitimer 36 105 (int which, const struct itimerval *val)
-setitimer 38 104 (int which, const struct itimerval *val, struct itimerval *old)
-getpid 39 20 (void)
-socket 41 281 (int domain, int type, int protocol)
-connect 42 283 (int sockfd, struct sockaddr *addr, int addrlen)
-sendmsg 46 296 (int sockfd, const struct msghdr *msg, int flags)
-recvmsg 47 297 (int sockfd, struct msghdr *msg, int flags)
-bind 49 282 (int sockfd, const struct sockaddr *addr, int addrlen)
-setsockopt 54 294 (int sockfd, int level, int optname, const void *optval, socklen_t optlen)
-getsockopt 55 295 (int sockfd, int level, int optname, const void *optval, socklen_t *optlen)
-clone 56 120 (unsigned long flags, void *child_stack, void *parent_tid, void *child_tid)
-exit 60 1 (unsigned long error_code)
-wait4 61 114 (int pid, int *status, int options, struct rusage *ru)
-kill 62 37 (long pid, int sig)
-fcntl 72 55 (int fd, int type, long arg)
-flock 73 143 (int fd, unsigned long cmd)
-mkdir 83 39 (const char *name, int mode)
-rmdir 84 40 (const char *name)
-unlink 87 10 (char *pathname)
-readlink 89 85 (const char *path, char *buf, int bufsize)
-getgroups 115 205 (int gsize, unsigned int *groups)
-setresuid 117 164 (int uid, int euid, int suid)
-setresgid 119 170 (int gid, int egid, int sgid)
-getpgid 121 132 (pid_t pid)
-setfsuid 122 138 (int fsuid)
-setfsgid 123 139 (int fsgid)
-getsid 124 147 (void)
-capset 126 185 (struct cap_header *h, struct cap_data *d)
-setpriority 141 97 (int which, int who, int nice)
-sched_setscheduler 144 156 (int pid, int policy, struct sched_param *p)
-personality 135 136 (unsigned int personality)
-prctl 157 172 (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
-arch_prctl 158 17 (int option, unsigned long addr)
-mount 165 21 (char *dev_nmae, char *dir_name, char *type, unsigned long flags, void *data)
-umount2 166 52 (char *name, int flags)
-gettid 186 224 (void)
-futex 202 240 (u32 *uaddr, int op, u32 val, struct timespec *utime, u32 *uaddr2, u32 val3)
-set_tid_address 218 256 (int *tid_addr)
-restart_syscall 219 0 (void)
-exit_group 231 248 (int error_code)
-set_robust_list 273 338 (struct robust_list_head *head, size_t len)
-get_robust_list 274 339 (int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
-open_by_handle_at 304 371 (int mountdirfd, struct file_handle *handle, int flags)
-setns 308 375 (int fd, int nstype)
-kcmp 312 378 (pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2)
+read 3 (int fd, void *buf, unsigned long count)
+write 4 (int fd, const void *buf, unsigned long count)
+open 5 (const char *filename, unsigned long flags, unsigned long mode)
+close 6 (int fd)
+lseek 19 (int fd, unsigned long offset, unsigned long origin)
+mmap ! (void *addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long offset)
+mprotect 125 (const void *addr, unsigned long len, unsigned long prot)
+munmap 91 (void *addr, unsigned long len)
+brk 45 (void *addr)
+rt_sigaction sigaction 174 (int signum, const rt_sigaction_t *act, rt_sigaction_t *oldact, size_t sigsetsize)
+rt_sigprocmask sigprocmask 175 (int how, k_rtsigset_t *set, k_rtsigset_t *old, size_t sigsetsize)
+rt_sigreturn 173 (void)
+mincore 219 (void *addr, unsigned long size, unsigned char *vec)
+ioctl 54 (unsigned int fd, unsigned int cmd, unsigned long arg)
+mremap 163 (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flag, unsigned long new_addr)
+madvise 220 (unsigned long start, size_t len, int behavior)
+shmat 305 (int shmid, void *shmaddr, int shmflag)
+pause 29 (void)
+nanosleep 162 (struct timespec *req, struct timespec *rem)
+getitimer 105 (int which, const struct itimerval *val)
+setitimer 104 (int which, const struct itimerval *val, struct itimerval *old)
+getpid 20 (void)
+socket 281 (int domain, int type, int protocol)
+connect 283 (int sockfd, struct sockaddr *addr, int addrlen)
+sendmsg 296 (int sockfd, const struct msghdr *msg, int flags)
+recvmsg 297 (int sockfd, struct msghdr *msg, int flags)
+bind 282 (int sockfd, const struct sockaddr *addr, int addrlen)
+setsockopt 294 (int sockfd, int level, int optname, const void *optval, socklen_t optlen)
+getsockopt 295 (int sockfd, int level, int optname, const void *optval, socklen_t *optlen)
+clone 120 (unsigned long flags, void *child_stack, void *parent_tid, void *child_tid)
+exit 1 (unsigned long error_code)
+wait4 114 (int pid, int *status, int options, struct rusage *ru)
+kill 37 (long pid, int sig)
+fcntl 55 (int fd, int type, long arg)
+flock 143 (int fd, unsigned long cmd)
+mkdir 39 (const char *name, int mode)
+rmdir 40 (const char *name)
+unlink 10 (char *pathname)
+readlink 85 (const char *path, char *buf, int bufsize)
+getgroups 205 (int gsize, unsigned int *groups)
+setresuid 164 (int uid, int euid, int suid)
+setresgid 170 (int gid, int egid, int sgid)
+getpgid 132 (pid_t pid)
+setfsuid 138 (int fsuid)
+setfsgid 139 (int fsgid)
+getsid 147 (void)
+capset 185 (struct cap_header *h, struct cap_data *d)
+setpriority 97 (int which, int who, int nice)
+sched_setscheduler 156 (int pid, int policy, struct sched_param *p)
+personality 136 (unsigned int personality)
+prctl 172 (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
+arch_prctl 17 (int option, unsigned long addr)
+mount 21 (char *dev_nmae, char *dir_name, char *type, unsigned long flags, void *data)
+umount2 52 (char *name, int flags)
+gettid 224 (void)
+futex 240 (u32 *uaddr, int op, u32 val, struct timespec *utime, u32 *uaddr2, u32 val3)
+set_tid_address 256 (int *tid_addr)
+restart_syscall 0 (void)
+exit_group 248 (int error_code)
+set_robust_list 338 (struct robust_list_head *head, size_t len)
+get_robust_list 339 (int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
+open_by_handle_at 371 (int mountdirfd, struct file_handle *handle, int flags)
+setns 375 (int fd, int nstype)
+kcmp 378 (pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2)
--
1.7.9.5
More information about the CRIU
mailing list