criu/arch/arm/syscall.def
Alexander Kartashov 8fa8ca9feb arm: added ARM-specific files modelled after arch/x86
Signed-off-by: Alexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-01-22 22:53:24 +04:00

78 lines
4.4 KiB
Modula-2

#
# System calls table, please make sure the table consist only the syscalls
# really used somewhere in project.
#
# 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
# -----------------------------------------------------------------------
#
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)
umask 95 60 (int mask)
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)
setrlimit 160 75 (int resource, struct krlimit *rlim)
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)
fanotify_init 300 367 (unsigned int flags, unsigned int event_f_flags)
fanotify_mark 301 368 (int fanotify_fd, unsigned int flags, u64 mask, int dfd, const char *pathname)
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)