qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.0-pull-request' into staging

update syscall numbers to linux 5.5 (with scripts)
add clock_gettime64/clock_settime64
add AT_EXECFN

v4: restore syscall.tbl series but remove vsyscall series
v3: remove syscall.tbl series
v2: guard copy_to_user_timezone() with TARGET_NR_gettimeofday
remove "Support futex_time64" patch
guard sys_futex with TARGET_NR_exit

# gpg: Signature made Fri 20 Mar 2020 15:23:29 GMT
# gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
# gpg: issuer "laurent@vivier.eu"
# gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
# gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full]
# gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
# Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C

* remotes/vivier2/tags/linux-user-for-5.0-pull-request: (32 commits)
linux-user, openrisc: sync syscall numbers with kernel v5.5
linux-user, nios2: sync syscall numbers with kernel v5.5
linux-user, aarch64: sync syscall numbers with kernel v5.5
scripts: add a script to generate syscall_nr.h
linux-user,mips: update syscall-args-o32.c.inc
linux-user,mips: move content of mips_syscall_args
linux-user: update syscall.tbl from linux 0bf999f9c5e7
linux-user, scripts: add a script to update syscall.tbl
linux-user, mips64: add syscall table generation support
linux-user, mips: add syscall table generation support
linux-user, x86_64: add syscall table generation support
linux-user, i386: add syscall table generation support
linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl
linux-user, sparc, sparc64: add syscall table generation support
linux-user, s390x: add syscall table generation support
linux-user, s390x: remove syscall definitions for !TARGET_S390X
linux-user, ppc: add syscall table generation support
linux-user, arm: add syscall table generation support
linux-user, microblaze: add syscall table generation support
linux-user, sh4: add syscall table generation support
...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

+9464 -7837
+3
MAINTAINERS
··· 2495 2495 F: linux-user/ 2496 2496 F: default-configs/*-linux-user.mak 2497 2497 F: scripts/qemu-binfmt-conf.sh 2498 + F: scripts/update-syscalltbl.sh 2499 + F: scripts/update-mips-syscall-args.sh 2500 + F: scripts/gensyscalls.sh 2498 2501 2499 2502 Tiny Code Generator (TCG) 2500 2503 -------------------------
+2 -1
Makefile.target
··· 128 128 129 129 QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) \ 130 130 -I$(SRC_PATH)/linux-user/host/$(ARCH) \ 131 - -I$(SRC_PATH)/linux-user 131 + -I$(SRC_PATH)/linux-user \ 132 + -Ilinux-user/$(TARGET_ABI_DIR) 132 133 133 134 obj-y += linux-user/ 134 135 obj-y += gdbstub.o thunk.o
+35
configure
··· 1903 1903 # Remove old dependency files to make sure that they get properly regenerated 1904 1904 rm -f */config-devices.mak.d 1905 1905 1906 + # Remove syscall_nr.h to be sure they will be regenerated in the build 1907 + # directory, not in the source directory 1908 + for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ 1909 + i386 x86_64 mips mips64 ; do 1910 + # remove the file if it has been generated in the source directory 1911 + rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" 1912 + # remove the dependency files 1913 + find . -name "*.d" \ 1914 + -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \ 1915 + -exec rm {} \; 1916 + done 1917 + 1906 1918 if test -z "$python" 1907 1919 then 1908 1920 error_exit "Python not found. Use --python=/path/to/python" ··· 7813 7825 i386) 7814 7826 mttcg="yes" 7815 7827 gdb_xml_files="i386-32bit.xml" 7828 + TARGET_SYSTBL_ABI=i386 7816 7829 ;; 7817 7830 x86_64) 7818 7831 TARGET_BASE_ARCH=i386 7832 + TARGET_SYSTBL_ABI=common,64 7819 7833 mttcg="yes" 7820 7834 gdb_xml_files="i386-64bit.xml" 7821 7835 ;; 7822 7836 alpha) 7823 7837 mttcg="yes" 7838 + TARGET_SYSTBL_ABI=common 7824 7839 ;; 7825 7840 arm|armeb) 7826 7841 TARGET_ARCH=arm 7842 + TARGET_SYSTBL_ABI=common,oabi 7827 7843 bflt="yes" 7828 7844 mttcg="yes" 7829 7845 gdb_xml_files="arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml" ··· 7839 7855 ;; 7840 7856 hppa) 7841 7857 mttcg="yes" 7858 + TARGET_SYSTBL_ABI=common,32 7842 7859 ;; 7843 7860 lm32) 7844 7861 ;; 7845 7862 m68k) 7846 7863 bflt="yes" 7847 7864 gdb_xml_files="cf-core.xml cf-fp.xml m68k-fp.xml" 7865 + TARGET_SYSTBL_ABI=common 7848 7866 ;; 7849 7867 microblaze|microblazeel) 7850 7868 TARGET_ARCH=microblaze 7869 + TARGET_SYSTBL_ABI=common 7851 7870 bflt="yes" 7852 7871 echo "TARGET_ABI32=y" >> $config_target_mak 7853 7872 ;; ··· 7855 7874 mttcg="yes" 7856 7875 TARGET_ARCH=mips 7857 7876 echo "TARGET_ABI_MIPSO32=y" >> $config_target_mak 7877 + TARGET_SYSTBL_ABI=o32 7858 7878 ;; 7859 7879 mipsn32|mipsn32el) 7860 7880 mttcg="yes" ··· 7862 7882 TARGET_BASE_ARCH=mips 7863 7883 echo "TARGET_ABI_MIPSN32=y" >> $config_target_mak 7864 7884 echo "TARGET_ABI32=y" >> $config_target_mak 7885 + TARGET_SYSTBL_ABI=n32 7865 7886 ;; 7866 7887 mips64|mips64el) 7867 7888 mttcg="yes" 7868 7889 TARGET_ARCH=mips64 7869 7890 TARGET_BASE_ARCH=mips 7870 7891 echo "TARGET_ABI_MIPSN64=y" >> $config_target_mak 7892 + TARGET_SYSTBL_ABI=n64 7871 7893 ;; 7872 7894 moxie) 7873 7895 ;; ··· 7879 7901 ;; 7880 7902 ppc) 7881 7903 gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" 7904 + TARGET_SYSTBL_ABI=common,nospu,32 7882 7905 ;; 7883 7906 ppc64) 7884 7907 TARGET_BASE_ARCH=ppc 7885 7908 TARGET_ABI_DIR=ppc 7909 + TARGET_SYSTBL_ABI=common,nospu,64 7886 7910 mttcg=yes 7887 7911 gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" 7888 7912 ;; ··· 7890 7914 TARGET_ARCH=ppc64 7891 7915 TARGET_BASE_ARCH=ppc 7892 7916 TARGET_ABI_DIR=ppc 7917 + TARGET_SYSTBL_ABI=common,nospu,64 7893 7918 mttcg=yes 7894 7919 gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" 7895 7920 ;; ··· 7897 7922 TARGET_ARCH=ppc64 7898 7923 TARGET_BASE_ARCH=ppc 7899 7924 TARGET_ABI_DIR=ppc 7925 + TARGET_SYSTBL_ABI=common,nospu,32 7900 7926 echo "TARGET_ABI32=y" >> $config_target_mak 7901 7927 gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" 7902 7928 ;; ··· 7920 7946 ;; 7921 7947 sh4|sh4eb) 7922 7948 TARGET_ARCH=sh4 7949 + TARGET_SYSTBL_ABI=common 7923 7950 bflt="yes" 7924 7951 ;; 7925 7952 sparc) 7953 + TARGET_SYSTBL_ABI=common,32 7926 7954 ;; 7927 7955 sparc64) 7928 7956 TARGET_BASE_ARCH=sparc 7957 + TARGET_SYSTBL_ABI=common,64 7929 7958 ;; 7930 7959 sparc32plus) 7931 7960 TARGET_ARCH=sparc64 7932 7961 TARGET_BASE_ARCH=sparc 7933 7962 TARGET_ABI_DIR=sparc 7963 + TARGET_SYSTBL_ABI=common,32 7934 7964 echo "TARGET_ABI32=y" >> $config_target_mak 7935 7965 ;; 7936 7966 s390x) 7967 + TARGET_SYSTBL_ABI=common,64 7937 7968 mttcg=yes 7938 7969 gdb_xml_files="s390x-core64.xml s390-acr.xml s390-fpr.xml s390-vx.xml s390-cr.xml s390-virt.xml s390-gs.xml" 7939 7970 ;; ··· 7945 7976 ;; 7946 7977 xtensa|xtensaeb) 7947 7978 TARGET_ARCH=xtensa 7979 + TARGET_SYSTBL_ABI=common 7948 7980 bflt="yes" 7949 7981 mttcg="yes" 7950 7982 ;; ··· 7973 8005 echo "TARGET_ABI_DIR=$TARGET_ABI_DIR" >> $config_target_mak 7974 8006 if [ "$HOST_VARIANT_DIR" != "" ]; then 7975 8007 echo "HOST_VARIANT_DIR=$HOST_VARIANT_DIR" >> $config_target_mak 8008 + fi 8009 + if [ "$TARGET_SYSTBL_ABI" != "" ]; then 8010 + echo "TARGET_SYSTBL_ABI=$TARGET_SYSTBL_ABI" >> $config_target_mak 7976 8011 fi 7977 8012 7978 8013 if supported_xen_target $target; then
+17 -2
linux-user/Makefile.objs
··· 5 5 6 6 obj-$(TARGET_HAS_BFLT) += flatload.o 7 7 obj-$(TARGET_I386) += vm86.o 8 - obj-$(TARGET_ARM) += arm/nwfpe/ 9 - obj-$(TARGET_ARM) += arm/semihost.o 10 8 obj-$(TARGET_AARCH64) += arm/semihost.o 9 + 10 + obj-$(TARGET_ALPHA) += alpha/ 11 + obj-$(TARGET_ARM) += arm/ 12 + obj-$(TARGET_HPPA) += hppa/ 13 + obj-$(TARGET_I386) += i386/ 14 + obj-$(TARGET_M68K) += m68k/ 15 + obj-$(TARGET_MICROBLAZE) += microblaze/ 16 + obj-$(TARGET_MIPS) += mips/ 17 + obj-$(TARGET_MIPS64) += mips64/ 18 + obj-$(TARGET_PPC) += ppc/ 19 + obj-$(TARGET_PPC64) += ppc/ 20 + obj-$(TARGET_S390X) += s390x/ 21 + obj-$(TARGET_SH4) += sh4/ 22 + obj-$(TARGET_SPARC) += sparc/ 23 + obj-$(TARGET_SPARC64) += $(TARGET_ABI_DIR)/ 24 + obj-$(TARGET_X86_64) += x86_64/ 25 + obj-$(TARGET_XTENSA) += xtensa/
+29 -5
linux-user/aarch64/syscall_nr.h
··· 1 1 /* 2 2 * This file contains the system call numbers. 3 + * Do not modify. 4 + * This file is generated by scripts/gensyscalls.sh 3 5 */ 4 - 5 6 #ifndef LINUX_USER_AARCH64_SYSCALL_NR_H 6 7 #define LINUX_USER_AARCH64_SYSCALL_NR_H 7 8 ··· 84 85 #define TARGET_NR_splice 76 85 86 #define TARGET_NR_tee 77 86 87 #define TARGET_NR_readlinkat 78 87 - #define TARGET_NR_fstatat64 79 88 + #define TARGET_NR_newfstatat 79 88 89 #define TARGET_NR_fstat 80 89 90 #define TARGET_NR_sync 81 90 91 #define TARGET_NR_fsync 82 ··· 254 255 #define TARGET_NR_prlimit64 261 255 256 #define TARGET_NR_fanotify_init 262 256 257 #define TARGET_NR_fanotify_mark 263 257 - #define TARGET_NR_name_to_handle_at 264 258 - #define TARGET_NR_open_by_handle_at 265 258 + #define TARGET_NR_name_to_handle_at 264 259 + #define TARGET_NR_open_by_handle_at 265 259 260 #define TARGET_NR_clock_adjtime 266 260 261 #define TARGET_NR_syncfs 267 261 262 #define TARGET_NR_setns 268 ··· 276 277 #define TARGET_NR_membarrier 283 277 278 #define TARGET_NR_mlock2 284 278 279 #define TARGET_NR_copy_file_range 285 280 + #define TARGET_NR_preadv2 286 281 + #define TARGET_NR_pwritev2 287 282 + #define TARGET_NR_pkey_mprotect 288 283 + #define TARGET_NR_pkey_alloc 289 284 + #define TARGET_NR_pkey_free 290 285 + #define TARGET_NR_statx 291 286 + #define TARGET_NR_io_pgetevents 292 287 + #define TARGET_NR_rseq 293 288 + #define TARGET_NR_kexec_file_load 294 289 + #define TARGET_NR_pidfd_send_signal 424 290 + #define TARGET_NR_io_uring_setup 425 291 + #define TARGET_NR_io_uring_enter 426 292 + #define TARGET_NR_io_uring_register 427 293 + #define TARGET_NR_open_tree 428 294 + #define TARGET_NR_move_mount 429 295 + #define TARGET_NR_fsopen 430 296 + #define TARGET_NR_fsconfig 431 297 + #define TARGET_NR_fsmount 432 298 + #define TARGET_NR_fspick 433 299 + #define TARGET_NR_pidfd_open 434 300 + #define TARGET_NR_clone3 435 301 + #define TARGET_NR_syscalls 436 279 302 280 - #endif 303 + #endif /* LINUX_USER_AARCH64_SYSCALL_NR_H */ 304 +
+5
linux-user/alpha/Makefile.objs
··· 1 + generated-files-y += linux-user/alpha/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/alpha/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/alpha/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+479
linux-user/alpha/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for alpha 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> 7 + # 8 + # The <abi> is always "common" for this file 9 + # 10 + 0 common osf_syscall alpha_syscall_zero 11 + 1 common exit sys_exit 12 + 2 common fork alpha_fork 13 + 3 common read sys_read 14 + 4 common write sys_write 15 + 5 common osf_old_open sys_ni_syscall 16 + 6 common close sys_close 17 + 7 common osf_wait4 sys_osf_wait4 18 + 8 common osf_old_creat sys_ni_syscall 19 + 9 common link sys_link 20 + 10 common unlink sys_unlink 21 + 11 common osf_execve sys_ni_syscall 22 + 12 common chdir sys_chdir 23 + 13 common fchdir sys_fchdir 24 + 14 common mknod sys_mknod 25 + 15 common chmod sys_chmod 26 + 16 common chown sys_chown 27 + 17 common brk sys_osf_brk 28 + 18 common osf_getfsstat sys_ni_syscall 29 + 19 common lseek sys_lseek 30 + 20 common getxpid sys_getxpid 31 + 21 common osf_mount sys_osf_mount 32 + 22 common umount2 sys_umount 33 + 23 common setuid sys_setuid 34 + 24 common getxuid sys_getxuid 35 + 25 common exec_with_loader sys_ni_syscall 36 + 26 common ptrace sys_ptrace 37 + 27 common osf_nrecvmsg sys_ni_syscall 38 + 28 common osf_nsendmsg sys_ni_syscall 39 + 29 common osf_nrecvfrom sys_ni_syscall 40 + 30 common osf_naccept sys_ni_syscall 41 + 31 common osf_ngetpeername sys_ni_syscall 42 + 32 common osf_ngetsockname sys_ni_syscall 43 + 33 common access sys_access 44 + 34 common osf_chflags sys_ni_syscall 45 + 35 common osf_fchflags sys_ni_syscall 46 + 36 common sync sys_sync 47 + 37 common kill sys_kill 48 + 38 common osf_old_stat sys_ni_syscall 49 + 39 common setpgid sys_setpgid 50 + 40 common osf_old_lstat sys_ni_syscall 51 + 41 common dup sys_dup 52 + 42 common pipe sys_alpha_pipe 53 + 43 common osf_set_program_attributes sys_osf_set_program_attributes 54 + 44 common osf_profil sys_ni_syscall 55 + 45 common open sys_open 56 + 46 common osf_old_sigaction sys_ni_syscall 57 + 47 common getxgid sys_getxgid 58 + 48 common osf_sigprocmask sys_osf_sigprocmask 59 + 49 common osf_getlogin sys_ni_syscall 60 + 50 common osf_setlogin sys_ni_syscall 61 + 51 common acct sys_acct 62 + 52 common sigpending sys_sigpending 63 + 54 common ioctl sys_ioctl 64 + 55 common osf_reboot sys_ni_syscall 65 + 56 common osf_revoke sys_ni_syscall 66 + 57 common symlink sys_symlink 67 + 58 common readlink sys_readlink 68 + 59 common execve sys_execve 69 + 60 common umask sys_umask 70 + 61 common chroot sys_chroot 71 + 62 common osf_old_fstat sys_ni_syscall 72 + 63 common getpgrp sys_getpgrp 73 + 64 common getpagesize sys_getpagesize 74 + 65 common osf_mremap sys_ni_syscall 75 + 66 common vfork alpha_vfork 76 + 67 common stat sys_newstat 77 + 68 common lstat sys_newlstat 78 + 69 common osf_sbrk sys_ni_syscall 79 + 70 common osf_sstk sys_ni_syscall 80 + 71 common mmap sys_osf_mmap 81 + 72 common osf_old_vadvise sys_ni_syscall 82 + 73 common munmap sys_munmap 83 + 74 common mprotect sys_mprotect 84 + 75 common madvise sys_madvise 85 + 76 common vhangup sys_vhangup 86 + 77 common osf_kmodcall sys_ni_syscall 87 + 78 common osf_mincore sys_ni_syscall 88 + 79 common getgroups sys_getgroups 89 + 80 common setgroups sys_setgroups 90 + 81 common osf_old_getpgrp sys_ni_syscall 91 + 82 common setpgrp sys_setpgid 92 + 83 common osf_setitimer compat_sys_setitimer 93 + 84 common osf_old_wait sys_ni_syscall 94 + 85 common osf_table sys_ni_syscall 95 + 86 common osf_getitimer compat_sys_getitimer 96 + 87 common gethostname sys_gethostname 97 + 88 common sethostname sys_sethostname 98 + 89 common getdtablesize sys_getdtablesize 99 + 90 common dup2 sys_dup2 100 + 91 common fstat sys_newfstat 101 + 92 common fcntl sys_fcntl 102 + 93 common osf_select sys_osf_select 103 + 94 common poll sys_poll 104 + 95 common fsync sys_fsync 105 + 96 common setpriority sys_setpriority 106 + 97 common socket sys_socket 107 + 98 common connect sys_connect 108 + 99 common accept sys_accept 109 + 100 common getpriority sys_osf_getpriority 110 + 101 common send sys_send 111 + 102 common recv sys_recv 112 + 103 common sigreturn sys_sigreturn 113 + 104 common bind sys_bind 114 + 105 common setsockopt sys_setsockopt 115 + 106 common listen sys_listen 116 + 107 common osf_plock sys_ni_syscall 117 + 108 common osf_old_sigvec sys_ni_syscall 118 + 109 common osf_old_sigblock sys_ni_syscall 119 + 110 common osf_old_sigsetmask sys_ni_syscall 120 + 111 common sigsuspend sys_sigsuspend 121 + 112 common osf_sigstack sys_osf_sigstack 122 + 113 common recvmsg sys_recvmsg 123 + 114 common sendmsg sys_sendmsg 124 + 115 common osf_old_vtrace sys_ni_syscall 125 + 116 common osf_gettimeofday sys_osf_gettimeofday 126 + 117 common osf_getrusage sys_osf_getrusage 127 + 118 common getsockopt sys_getsockopt 128 + 120 common readv sys_osf_readv 129 + 121 common writev sys_osf_writev 130 + 122 common osf_settimeofday sys_osf_settimeofday 131 + 123 common fchown sys_fchown 132 + 124 common fchmod sys_fchmod 133 + 125 common recvfrom sys_recvfrom 134 + 126 common setreuid sys_setreuid 135 + 127 common setregid sys_setregid 136 + 128 common rename sys_rename 137 + 129 common truncate sys_truncate 138 + 130 common ftruncate sys_ftruncate 139 + 131 common flock sys_flock 140 + 132 common setgid sys_setgid 141 + 133 common sendto sys_sendto 142 + 134 common shutdown sys_shutdown 143 + 135 common socketpair sys_socketpair 144 + 136 common mkdir sys_mkdir 145 + 137 common rmdir sys_rmdir 146 + 138 common osf_utimes sys_osf_utimes 147 + 139 common osf_old_sigreturn sys_ni_syscall 148 + 140 common osf_adjtime sys_ni_syscall 149 + 141 common getpeername sys_getpeername 150 + 142 common osf_gethostid sys_ni_syscall 151 + 143 common osf_sethostid sys_ni_syscall 152 + 144 common getrlimit sys_getrlimit 153 + 145 common setrlimit sys_setrlimit 154 + 146 common osf_old_killpg sys_ni_syscall 155 + 147 common setsid sys_setsid 156 + 148 common quotactl sys_quotactl 157 + 149 common osf_oldquota sys_ni_syscall 158 + 150 common getsockname sys_getsockname 159 + 153 common osf_pid_block sys_ni_syscall 160 + 154 common osf_pid_unblock sys_ni_syscall 161 + 156 common sigaction sys_osf_sigaction 162 + 157 common osf_sigwaitprim sys_ni_syscall 163 + 158 common osf_nfssvc sys_ni_syscall 164 + 159 common osf_getdirentries sys_osf_getdirentries 165 + 160 common osf_statfs sys_osf_statfs 166 + 161 common osf_fstatfs sys_osf_fstatfs 167 + 163 common osf_asynch_daemon sys_ni_syscall 168 + 164 common osf_getfh sys_ni_syscall 169 + 165 common osf_getdomainname sys_osf_getdomainname 170 + 166 common setdomainname sys_setdomainname 171 + 169 common osf_exportfs sys_ni_syscall 172 + 181 common osf_alt_plock sys_ni_syscall 173 + 184 common osf_getmnt sys_ni_syscall 174 + 187 common osf_alt_sigpending sys_ni_syscall 175 + 188 common osf_alt_setsid sys_ni_syscall 176 + 199 common osf_swapon sys_swapon 177 + 200 common msgctl sys_old_msgctl 178 + 201 common msgget sys_msgget 179 + 202 common msgrcv sys_msgrcv 180 + 203 common msgsnd sys_msgsnd 181 + 204 common semctl sys_old_semctl 182 + 205 common semget sys_semget 183 + 206 common semop sys_semop 184 + 207 common osf_utsname sys_osf_utsname 185 + 208 common lchown sys_lchown 186 + 209 common shmat sys_shmat 187 + 210 common shmctl sys_old_shmctl 188 + 211 common shmdt sys_shmdt 189 + 212 common shmget sys_shmget 190 + 213 common osf_mvalid sys_ni_syscall 191 + 214 common osf_getaddressconf sys_ni_syscall 192 + 215 common osf_msleep sys_ni_syscall 193 + 216 common osf_mwakeup sys_ni_syscall 194 + 217 common msync sys_msync 195 + 218 common osf_signal sys_ni_syscall 196 + 219 common osf_utc_gettime sys_ni_syscall 197 + 220 common osf_utc_adjtime sys_ni_syscall 198 + 222 common osf_security sys_ni_syscall 199 + 223 common osf_kloadcall sys_ni_syscall 200 + 224 common osf_stat sys_osf_stat 201 + 225 common osf_lstat sys_osf_lstat 202 + 226 common osf_fstat sys_osf_fstat 203 + 227 common osf_statfs64 sys_osf_statfs64 204 + 228 common osf_fstatfs64 sys_osf_fstatfs64 205 + 233 common getpgid sys_getpgid 206 + 234 common getsid sys_getsid 207 + 235 common sigaltstack sys_sigaltstack 208 + 236 common osf_waitid sys_ni_syscall 209 + 237 common osf_priocntlset sys_ni_syscall 210 + 238 common osf_sigsendset sys_ni_syscall 211 + 239 common osf_set_speculative sys_ni_syscall 212 + 240 common osf_msfs_syscall sys_ni_syscall 213 + 241 common osf_sysinfo sys_osf_sysinfo 214 + 242 common osf_uadmin sys_ni_syscall 215 + 243 common osf_fuser sys_ni_syscall 216 + 244 common osf_proplist_syscall sys_osf_proplist_syscall 217 + 245 common osf_ntp_adjtime sys_ni_syscall 218 + 246 common osf_ntp_gettime sys_ni_syscall 219 + 247 common osf_pathconf sys_ni_syscall 220 + 248 common osf_fpathconf sys_ni_syscall 221 + 250 common osf_uswitch sys_ni_syscall 222 + 251 common osf_usleep_thread sys_osf_usleep_thread 223 + 252 common osf_audcntl sys_ni_syscall 224 + 253 common osf_audgen sys_ni_syscall 225 + 254 common sysfs sys_sysfs 226 + 255 common osf_subsys_info sys_ni_syscall 227 + 256 common osf_getsysinfo sys_osf_getsysinfo 228 + 257 common osf_setsysinfo sys_osf_setsysinfo 229 + 258 common osf_afs_syscall sys_ni_syscall 230 + 259 common osf_swapctl sys_ni_syscall 231 + 260 common osf_memcntl sys_ni_syscall 232 + 261 common osf_fdatasync sys_ni_syscall 233 + 300 common bdflush sys_bdflush 234 + 301 common sethae sys_sethae 235 + 302 common mount sys_mount 236 + 303 common old_adjtimex sys_old_adjtimex 237 + 304 common swapoff sys_swapoff 238 + 305 common getdents sys_getdents 239 + 306 common create_module sys_ni_syscall 240 + 307 common init_module sys_init_module 241 + 308 common delete_module sys_delete_module 242 + 309 common get_kernel_syms sys_ni_syscall 243 + 310 common syslog sys_syslog 244 + 311 common reboot sys_reboot 245 + 312 common clone alpha_clone 246 + 313 common uselib sys_uselib 247 + 314 common mlock sys_mlock 248 + 315 common munlock sys_munlock 249 + 316 common mlockall sys_mlockall 250 + 317 common munlockall sys_munlockall 251 + 318 common sysinfo sys_sysinfo 252 + 319 common _sysctl sys_sysctl 253 + # 320 was sys_idle 254 + 321 common oldumount sys_oldumount 255 + 322 common swapon sys_swapon 256 + 323 common times sys_times 257 + 324 common personality sys_personality 258 + 325 common setfsuid sys_setfsuid 259 + 326 common setfsgid sys_setfsgid 260 + 327 common ustat sys_ustat 261 + 328 common statfs sys_statfs 262 + 329 common fstatfs sys_fstatfs 263 + 330 common sched_setparam sys_sched_setparam 264 + 331 common sched_getparam sys_sched_getparam 265 + 332 common sched_setscheduler sys_sched_setscheduler 266 + 333 common sched_getscheduler sys_sched_getscheduler 267 + 334 common sched_yield sys_sched_yield 268 + 335 common sched_get_priority_max sys_sched_get_priority_max 269 + 336 common sched_get_priority_min sys_sched_get_priority_min 270 + 337 common sched_rr_get_interval sys_sched_rr_get_interval 271 + 338 common afs_syscall sys_ni_syscall 272 + 339 common uname sys_newuname 273 + 340 common nanosleep sys_nanosleep 274 + 341 common mremap sys_mremap 275 + 342 common nfsservctl sys_ni_syscall 276 + 343 common setresuid sys_setresuid 277 + 344 common getresuid sys_getresuid 278 + 345 common pciconfig_read sys_pciconfig_read 279 + 346 common pciconfig_write sys_pciconfig_write 280 + 347 common query_module sys_ni_syscall 281 + 348 common prctl sys_prctl 282 + 349 common pread64 sys_pread64 283 + 350 common pwrite64 sys_pwrite64 284 + 351 common rt_sigreturn sys_rt_sigreturn 285 + 352 common rt_sigaction sys_rt_sigaction 286 + 353 common rt_sigprocmask sys_rt_sigprocmask 287 + 354 common rt_sigpending sys_rt_sigpending 288 + 355 common rt_sigtimedwait sys_rt_sigtimedwait 289 + 356 common rt_sigqueueinfo sys_rt_sigqueueinfo 290 + 357 common rt_sigsuspend sys_rt_sigsuspend 291 + 358 common select sys_select 292 + 359 common gettimeofday sys_gettimeofday 293 + 360 common settimeofday sys_settimeofday 294 + 361 common getitimer sys_getitimer 295 + 362 common setitimer sys_setitimer 296 + 363 common utimes sys_utimes 297 + 364 common getrusage sys_getrusage 298 + 365 common wait4 sys_wait4 299 + 366 common adjtimex sys_adjtimex 300 + 367 common getcwd sys_getcwd 301 + 368 common capget sys_capget 302 + 369 common capset sys_capset 303 + 370 common sendfile sys_sendfile64 304 + 371 common setresgid sys_setresgid 305 + 372 common getresgid sys_getresgid 306 + 373 common dipc sys_ni_syscall 307 + 374 common pivot_root sys_pivot_root 308 + 375 common mincore sys_mincore 309 + 376 common pciconfig_iobase sys_pciconfig_iobase 310 + 377 common getdents64 sys_getdents64 311 + 378 common gettid sys_gettid 312 + 379 common readahead sys_readahead 313 + # 380 is unused 314 + 381 common tkill sys_tkill 315 + 382 common setxattr sys_setxattr 316 + 383 common lsetxattr sys_lsetxattr 317 + 384 common fsetxattr sys_fsetxattr 318 + 385 common getxattr sys_getxattr 319 + 386 common lgetxattr sys_lgetxattr 320 + 387 common fgetxattr sys_fgetxattr 321 + 388 common listxattr sys_listxattr 322 + 389 common llistxattr sys_llistxattr 323 + 390 common flistxattr sys_flistxattr 324 + 391 common removexattr sys_removexattr 325 + 392 common lremovexattr sys_lremovexattr 326 + 393 common fremovexattr sys_fremovexattr 327 + 394 common futex sys_futex 328 + 395 common sched_setaffinity sys_sched_setaffinity 329 + 396 common sched_getaffinity sys_sched_getaffinity 330 + 397 common tuxcall sys_ni_syscall 331 + 398 common io_setup sys_io_setup 332 + 399 common io_destroy sys_io_destroy 333 + 400 common io_getevents sys_io_getevents 334 + 401 common io_submit sys_io_submit 335 + 402 common io_cancel sys_io_cancel 336 + 405 common exit_group sys_exit_group 337 + 406 common lookup_dcookie sys_lookup_dcookie 338 + 407 common epoll_create sys_epoll_create 339 + 408 common epoll_ctl sys_epoll_ctl 340 + 409 common epoll_wait sys_epoll_wait 341 + 410 common remap_file_pages sys_remap_file_pages 342 + 411 common set_tid_address sys_set_tid_address 343 + 412 common restart_syscall sys_restart_syscall 344 + 413 common fadvise64 sys_fadvise64 345 + 414 common timer_create sys_timer_create 346 + 415 common timer_settime sys_timer_settime 347 + 416 common timer_gettime sys_timer_gettime 348 + 417 common timer_getoverrun sys_timer_getoverrun 349 + 418 common timer_delete sys_timer_delete 350 + 419 common clock_settime sys_clock_settime 351 + 420 common clock_gettime sys_clock_gettime 352 + 421 common clock_getres sys_clock_getres 353 + 422 common clock_nanosleep sys_clock_nanosleep 354 + 423 common semtimedop sys_semtimedop 355 + 424 common tgkill sys_tgkill 356 + 425 common stat64 sys_stat64 357 + 426 common lstat64 sys_lstat64 358 + 427 common fstat64 sys_fstat64 359 + 428 common vserver sys_ni_syscall 360 + 429 common mbind sys_ni_syscall 361 + 430 common get_mempolicy sys_ni_syscall 362 + 431 common set_mempolicy sys_ni_syscall 363 + 432 common mq_open sys_mq_open 364 + 433 common mq_unlink sys_mq_unlink 365 + 434 common mq_timedsend sys_mq_timedsend 366 + 435 common mq_timedreceive sys_mq_timedreceive 367 + 436 common mq_notify sys_mq_notify 368 + 437 common mq_getsetattr sys_mq_getsetattr 369 + 438 common waitid sys_waitid 370 + 439 common add_key sys_add_key 371 + 440 common request_key sys_request_key 372 + 441 common keyctl sys_keyctl 373 + 442 common ioprio_set sys_ioprio_set 374 + 443 common ioprio_get sys_ioprio_get 375 + 444 common inotify_init sys_inotify_init 376 + 445 common inotify_add_watch sys_inotify_add_watch 377 + 446 common inotify_rm_watch sys_inotify_rm_watch 378 + 447 common fdatasync sys_fdatasync 379 + 448 common kexec_load sys_kexec_load 380 + 449 common migrate_pages sys_migrate_pages 381 + 450 common openat sys_openat 382 + 451 common mkdirat sys_mkdirat 383 + 452 common mknodat sys_mknodat 384 + 453 common fchownat sys_fchownat 385 + 454 common futimesat sys_futimesat 386 + 455 common fstatat64 sys_fstatat64 387 + 456 common unlinkat sys_unlinkat 388 + 457 common renameat sys_renameat 389 + 458 common linkat sys_linkat 390 + 459 common symlinkat sys_symlinkat 391 + 460 common readlinkat sys_readlinkat 392 + 461 common fchmodat sys_fchmodat 393 + 462 common faccessat sys_faccessat 394 + 463 common pselect6 sys_pselect6 395 + 464 common ppoll sys_ppoll 396 + 465 common unshare sys_unshare 397 + 466 common set_robust_list sys_set_robust_list 398 + 467 common get_robust_list sys_get_robust_list 399 + 468 common splice sys_splice 400 + 469 common sync_file_range sys_sync_file_range 401 + 470 common tee sys_tee 402 + 471 common vmsplice sys_vmsplice 403 + 472 common move_pages sys_move_pages 404 + 473 common getcpu sys_getcpu 405 + 474 common epoll_pwait sys_epoll_pwait 406 + 475 common utimensat sys_utimensat 407 + 476 common signalfd sys_signalfd 408 + 477 common timerfd sys_ni_syscall 409 + 478 common eventfd sys_eventfd 410 + 479 common recvmmsg sys_recvmmsg 411 + 480 common fallocate sys_fallocate 412 + 481 common timerfd_create sys_timerfd_create 413 + 482 common timerfd_settime sys_timerfd_settime 414 + 483 common timerfd_gettime sys_timerfd_gettime 415 + 484 common signalfd4 sys_signalfd4 416 + 485 common eventfd2 sys_eventfd2 417 + 486 common epoll_create1 sys_epoll_create1 418 + 487 common dup3 sys_dup3 419 + 488 common pipe2 sys_pipe2 420 + 489 common inotify_init1 sys_inotify_init1 421 + 490 common preadv sys_preadv 422 + 491 common pwritev sys_pwritev 423 + 492 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 424 + 493 common perf_event_open sys_perf_event_open 425 + 494 common fanotify_init sys_fanotify_init 426 + 495 common fanotify_mark sys_fanotify_mark 427 + 496 common prlimit64 sys_prlimit64 428 + 497 common name_to_handle_at sys_name_to_handle_at 429 + 498 common open_by_handle_at sys_open_by_handle_at 430 + 499 common clock_adjtime sys_clock_adjtime 431 + 500 common syncfs sys_syncfs 432 + 501 common setns sys_setns 433 + 502 common accept4 sys_accept4 434 + 503 common sendmmsg sys_sendmmsg 435 + 504 common process_vm_readv sys_process_vm_readv 436 + 505 common process_vm_writev sys_process_vm_writev 437 + 506 common kcmp sys_kcmp 438 + 507 common finit_module sys_finit_module 439 + 508 common sched_setattr sys_sched_setattr 440 + 509 common sched_getattr sys_sched_getattr 441 + 510 common renameat2 sys_renameat2 442 + 511 common getrandom sys_getrandom 443 + 512 common memfd_create sys_memfd_create 444 + 513 common execveat sys_execveat 445 + 514 common seccomp sys_seccomp 446 + 515 common bpf sys_bpf 447 + 516 common userfaultfd sys_userfaultfd 448 + 517 common membarrier sys_membarrier 449 + 518 common mlock2 sys_mlock2 450 + 519 common copy_file_range sys_copy_file_range 451 + 520 common preadv2 sys_preadv2 452 + 521 common pwritev2 sys_pwritev2 453 + 522 common statx sys_statx 454 + 523 common io_pgetevents sys_io_pgetevents 455 + 524 common pkey_mprotect sys_pkey_mprotect 456 + 525 common pkey_alloc sys_pkey_alloc 457 + 526 common pkey_free sys_pkey_free 458 + 527 common rseq sys_rseq 459 + 528 common statfs64 sys_statfs64 460 + 529 common fstatfs64 sys_fstatfs64 461 + 530 common getegid sys_getegid 462 + 531 common geteuid sys_geteuid 463 + 532 common getppid sys_getppid 464 + # all other architectures have common numbers for new syscall, alpha 465 + # is the exception. 466 + 534 common pidfd_send_signal sys_pidfd_send_signal 467 + 535 common io_uring_setup sys_io_uring_setup 468 + 536 common io_uring_enter sys_io_uring_enter 469 + 537 common io_uring_register sys_io_uring_register 470 + 538 common open_tree sys_open_tree 471 + 539 common move_mount sys_move_mount 472 + 540 common fsopen sys_fsopen 473 + 541 common fsconfig sys_fsconfig 474 + 542 common fsmount sys_fsmount 475 + 543 common fspick sys_fspick 476 + 544 common pidfd_open sys_pidfd_open 477 + # 545 reserved for clone3 478 + 547 common openat2 sys_openat2 479 + 548 common pidfd_getfd sys_pidfd_getfd
-492
linux-user/alpha/syscall_nr.h
··· 1 - #ifndef LINUX_USER_ALPHA_SYSCALL_NR_H 2 - #define LINUX_USER_ALPHA_SYSCALL_NR_H 3 - 4 - #define TARGET_NR_osf_syscall 0 /* not implemented */ 5 - #define TARGET_NR_exit 1 6 - #define TARGET_NR_fork 2 7 - #define TARGET_NR_read 3 8 - #define TARGET_NR_write 4 9 - #define TARGET_NR_osf_old_open 5 /* not implemented */ 10 - #define TARGET_NR_close 6 11 - #define TARGET_NR_osf_wait4 7 12 - #define TARGET_NR_osf_old_creat 8 /* not implemented */ 13 - #define TARGET_NR_link 9 14 - #define TARGET_NR_unlink 10 15 - #define TARGET_NR_osf_execve 11 /* not implemented */ 16 - #define TARGET_NR_chdir 12 17 - #define TARGET_NR_fchdir 13 18 - #define TARGET_NR_mknod 14 19 - #define TARGET_NR_chmod 15 20 - #define TARGET_NR_chown 16 21 - #define TARGET_NR_brk 17 22 - #define TARGET_NR_osf_getfsstat 18 /* not implemented */ 23 - #define TARGET_NR_lseek 19 24 - #define TARGET_NR_getxpid 20 25 - #define TARGET_NR_osf_mount 21 26 - #define TARGET_NR_umount2 22 27 - #define TARGET_NR_setuid 23 28 - #define TARGET_NR_getxuid 24 29 - #define TARGET_NR_exec_with_loader 25 /* not implemented */ 30 - #define TARGET_NR_ptrace 26 31 - #define TARGET_NR_osf_nrecvmsg 27 /* not implemented */ 32 - #define TARGET_NR_osf_nsendmsg 28 /* not implemented */ 33 - #define TARGET_NR_osf_nrecvfrom 29 /* not implemented */ 34 - #define TARGET_NR_osf_naccept 30 /* not implemented */ 35 - #define TARGET_NR_osf_ngetpeername 31 /* not implemented */ 36 - #define TARGET_NR_osf_ngetsockname 32 /* not implemented */ 37 - #define TARGET_NR_access 33 38 - #define TARGET_NR_osf_chflags 34 /* not implemented */ 39 - #define TARGET_NR_osf_fchflags 35 /* not implemented */ 40 - #define TARGET_NR_sync 36 41 - #define TARGET_NR_kill 37 42 - #define TARGET_NR_osf_old_stat 38 /* not implemented */ 43 - #define TARGET_NR_setpgid 39 44 - #define TARGET_NR_osf_old_lstat 40 /* not implemented */ 45 - #define TARGET_NR_dup 41 46 - #define TARGET_NR_pipe 42 47 - #define TARGET_NR_osf_set_program_attributes 43 48 - #define TARGET_NR_osf_profil 44 /* not implemented */ 49 - #define TARGET_NR_open 45 50 - #define TARGET_NR_osf_old_sigaction 46 /* not implemented */ 51 - #define TARGET_NR_getxgid 47 52 - #define TARGET_NR_sigprocmask 48 53 - #define TARGET_NR_osf_getlogin 49 /* not implemented */ 54 - #define TARGET_NR_osf_setlogin 50 /* not implemented */ 55 - #define TARGET_NR_acct 51 56 - #define TARGET_NR_sigpending 52 57 - 58 - #define TARGET_NR_ioctl 54 59 - #define TARGET_NR_osf_reboot 55 /* not implemented */ 60 - #define TARGET_NR_osf_revoke 56 /* not implemented */ 61 - #define TARGET_NR_symlink 57 62 - #define TARGET_NR_readlink 58 63 - #define TARGET_NR_execve 59 64 - #define TARGET_NR_umask 60 65 - #define TARGET_NR_chroot 61 66 - #define TARGET_NR_osf_old_fstat 62 /* not implemented */ 67 - #define TARGET_NR_getpgrp 63 68 - #define TARGET_NR_getpagesize 64 69 - #define TARGET_NR_osf_mremap 65 /* not implemented */ 70 - #define TARGET_NR_vfork 66 71 - #define TARGET_NR_stat 67 72 - #define TARGET_NR_lstat 68 73 - #define TARGET_NR_osf_sbrk 69 /* not implemented */ 74 - #define TARGET_NR_osf_sstk 70 /* not implemented */ 75 - #define TARGET_NR_mmap 71 /* OSF/1 mmap is superset of Linux */ 76 - #define TARGET_NR_osf_old_vadvise 72 /* not implemented */ 77 - #define TARGET_NR_munmap 73 78 - #define TARGET_NR_mprotect 74 79 - #define TARGET_NR_madvise 75 80 - #define TARGET_NR_vhangup 76 81 - #define TARGET_NR_osf_kmodcall 77 /* not implemented */ 82 - #define TARGET_NR_osf_mincore 78 /* not implemented */ 83 - #define TARGET_NR_getgroups 79 84 - #define TARGET_NR_setgroups 80 85 - #define TARGET_NR_osf_old_getpgrp 81 /* not implemented */ 86 - #define TARGET_NR_setpgrp 82 /* BSD alias for setpgid */ 87 - #define TARGET_NR_osf_setitimer 83 88 - #define TARGET_NR_osf_old_wait 84 /* not implemented */ 89 - #define TARGET_NR_osf_table 85 /* not implemented */ 90 - #define TARGET_NR_osf_getitimer 86 91 - #define TARGET_NR_gethostname 87 92 - #define TARGET_NR_sethostname 88 93 - #define TARGET_NR_getdtablesize 89 94 - #define TARGET_NR_dup2 90 95 - #define TARGET_NR_fstat 91 96 - #define TARGET_NR_fcntl 92 97 - #define TARGET_NR_osf_select 93 98 - #define TARGET_NR_poll 94 99 - #define TARGET_NR_fsync 95 100 - #define TARGET_NR_setpriority 96 101 - #define TARGET_NR_socket 97 102 - #define TARGET_NR_connect 98 103 - #define TARGET_NR_accept 99 104 - #define TARGET_NR_getpriority 100 105 - #define TARGET_NR_send 101 106 - #define TARGET_NR_recv 102 107 - #define TARGET_NR_sigreturn 103 108 - #define TARGET_NR_bind 104 109 - #define TARGET_NR_setsockopt 105 110 - #define TARGET_NR_listen 106 111 - #define TARGET_NR_osf_plock 107 /* not implemented */ 112 - #define TARGET_NR_osf_old_sigvec 108 /* not implemented */ 113 - #define TARGET_NR_osf_old_sigblock 109 /* not implemented */ 114 - #define TARGET_NR_osf_old_sigsetmask 110 /* not implemented */ 115 - #define TARGET_NR_sigsuspend 111 116 - #define TARGET_NR_osf_sigstack 112 117 - #define TARGET_NR_recvmsg 113 118 - #define TARGET_NR_sendmsg 114 119 - #define TARGET_NR_osf_old_vtrace 115 /* not implemented */ 120 - #define TARGET_NR_osf_gettimeofday 116 121 - #define TARGET_NR_osf_getrusage 117 122 - #define TARGET_NR_getsockopt 118 123 - 124 - #define TARGET_NR_readv 120 125 - #define TARGET_NR_writev 121 126 - #define TARGET_NR_osf_settimeofday 122 127 - #define TARGET_NR_fchown 123 128 - #define TARGET_NR_fchmod 124 129 - #define TARGET_NR_recvfrom 125 130 - #define TARGET_NR_setreuid 126 131 - #define TARGET_NR_setregid 127 132 - #define TARGET_NR_rename 128 133 - #define TARGET_NR_truncate 129 134 - #define TARGET_NR_ftruncate 130 135 - #define TARGET_NR_flock 131 136 - #define TARGET_NR_setgid 132 137 - #define TARGET_NR_sendto 133 138 - #define TARGET_NR_shutdown 134 139 - #define TARGET_NR_socketpair 135 140 - #define TARGET_NR_mkdir 136 141 - #define TARGET_NR_rmdir 137 142 - #define TARGET_NR_osf_utimes 138 143 - #define TARGET_NR_osf_old_sigreturn 139 /* not implemented */ 144 - #define TARGET_NR_osf_adjtime 140 /* not implemented */ 145 - #define TARGET_NR_getpeername 141 146 - #define TARGET_NR_osf_gethostid 142 /* not implemented */ 147 - #define TARGET_NR_osf_sethostid 143 /* not implemented */ 148 - #define TARGET_NR_getrlimit 144 149 - #define TARGET_NR_setrlimit 145 150 - #define TARGET_NR_osf_old_killpg 146 /* not implemented */ 151 - #define TARGET_NR_setsid 147 152 - #define TARGET_NR_quotactl 148 153 - #define TARGET_NR_osf_oldquota 149 /* not implemented */ 154 - #define TARGET_NR_getsockname 150 155 - 156 - #define TARGET_NR_osf_pid_block 153 /* not implemented */ 157 - #define TARGET_NR_osf_pid_unblock 154 /* not implemented */ 158 - 159 - #define TARGET_NR_sigaction 156 160 - #define TARGET_NR_osf_sigwaitprim 157 /* not implemented */ 161 - #define TARGET_NR_osf_nfssvc 158 /* not implemented */ 162 - #define TARGET_NR_osf_getdirentries 159 163 - #define TARGET_NR_osf_statfs 160 164 - #define TARGET_NR_osf_fstatfs 161 165 - 166 - #define TARGET_NR_osf_asynch_daemon 163 /* not implemented */ 167 - #define TARGET_NR_osf_getfh 164 /* not implemented */ 168 - #define TARGET_NR_osf_getdomainname 165 169 - #define TARGET_NR_setdomainname 166 170 - 171 - #define TARGET_NR_osf_exportfs 169 /* not implemented */ 172 - 173 - #define TARGET_NR_osf_alt_plock 181 /* not implemented */ 174 - 175 - #define TARGET_NR_osf_getmnt 184 /* not implemented */ 176 - 177 - #define TARGET_NR_osf_alt_sigpending 187 /* not implemented */ 178 - #define TARGET_NR_osf_alt_setsid 188 /* not implemented */ 179 - 180 - #define TARGET_NR_osf_swapon 199 181 - #define TARGET_NR_msgctl 200 182 - #define TARGET_NR_msgget 201 183 - #define TARGET_NR_msgrcv 202 184 - #define TARGET_NR_msgsnd 203 185 - #define TARGET_NR_semctl 204 186 - #define TARGET_NR_semget 205 187 - #define TARGET_NR_semop 206 188 - #define TARGET_NR_osf_utsname 207 189 - #define TARGET_NR_lchown 208 190 - #define TARGET_NR_osf_shmat 209 191 - /* this has the usual shmat semantics so give it the name syscall.c expects 192 - * so that our support for it is enabled. 193 - */ 194 - #define TARGET_NR_shmat TARGET_NR_osf_shmat 195 - #define TARGET_NR_shmctl 210 196 - #define TARGET_NR_shmdt 211 197 - #define TARGET_NR_shmget 212 198 - #define TARGET_NR_osf_mvalid 213 /* not implemented */ 199 - #define TARGET_NR_osf_getaddressconf 214 /* not implemented */ 200 - #define TARGET_NR_osf_msleep 215 /* not implemented */ 201 - #define TARGET_NR_osf_mwakeup 216 /* not implemented */ 202 - #define TARGET_NR_msync 217 203 - #define TARGET_NR_osf_signal 218 /* not implemented */ 204 - #define TARGET_NR_osf_utc_gettime 219 /* not implemented */ 205 - #define TARGET_NR_osf_utc_adjtime 220 /* not implemented */ 206 - 207 - #define TARGET_NR_osf_security 222 /* not implemented */ 208 - #define TARGET_NR_osf_kloadcall 223 /* not implemented */ 209 - 210 - #define TARGET_NR_getpgid 233 211 - #define TARGET_NR_getsid 234 212 - #define TARGET_NR_sigaltstack 235 213 - #define TARGET_NR_osf_waitid 236 /* not implemented */ 214 - #define TARGET_NR_osf_priocntlset 237 /* not implemented */ 215 - #define TARGET_NR_osf_sigsendset 238 /* not implemented */ 216 - #define TARGET_NR_osf_set_speculative 239 /* not implemented */ 217 - #define TARGET_NR_osf_msfs_syscall 240 /* not implemented */ 218 - #define TARGET_NR_osf_sysinfo 241 219 - #define TARGET_NR_osf_uadmin 242 /* not implemented */ 220 - #define TARGET_NR_osf_fuser 243 /* not implemented */ 221 - #define TARGET_NR_osf_proplist_syscall 244 222 - #define TARGET_NR_osf_ntp_adjtime 245 /* not implemented */ 223 - #define TARGET_NR_osf_ntp_gettime 246 /* not implemented */ 224 - #define TARGET_NR_osf_pathconf 247 /* not implemented */ 225 - #define TARGET_NR_osf_fpathconf 248 /* not implemented */ 226 - 227 - #define TARGET_NR_osf_uswitch 250 /* not implemented */ 228 - #define TARGET_NR_osf_usleep_thread 251 229 - #define TARGET_NR_osf_audcntl 252 /* not implemented */ 230 - #define TARGET_NR_osf_audgen 253 /* not implemented */ 231 - #define TARGET_NR_sysfs 254 232 - #define TARGET_NR_osf_subsys_info 255 /* not implemented */ 233 - #define TARGET_NR_osf_getsysinfo 256 234 - #define TARGET_NR_osf_setsysinfo 257 235 - #define TARGET_NR_osf_afs_syscall 258 /* not implemented */ 236 - #define TARGET_NR_osf_swapctl 259 /* not implemented */ 237 - #define TARGET_NR_osf_memcntl 260 /* not implemented */ 238 - #define TARGET_NR_osf_fdatasync 261 /* not implemented */ 239 - 240 - 241 - /* 242 - * Linux-specific system calls begin at 300 243 - */ 244 - #define TARGET_NR_bdflush 300 245 - #define TARGET_NR_sethae 301 246 - #define TARGET_NR_mount 302 247 - #define TARGET_NR_old_adjtimex 303 248 - #define TARGET_NR_swapoff 304 249 - #define TARGET_NR_getdents 305 250 - #define TARGET_NR_create_module 306 251 - #define TARGET_NR_init_module 307 252 - #define TARGET_NR_delete_module 308 253 - #define TARGET_NR_get_kernel_syms 309 254 - #define TARGET_NR_syslog 310 255 - #define TARGET_NR_reboot 311 256 - #define TARGET_NR_clone 312 257 - #define TARGET_NR_uselib 313 258 - #define TARGET_NR_mlock 314 259 - #define TARGET_NR_munlock 315 260 - #define TARGET_NR_mlockall 316 261 - #define TARGET_NR_munlockall 317 262 - #define TARGET_NR_sysinfo 318 263 - #define TARGET_NR__sysctl 319 264 - /* 320 was sys_idle. */ 265 - #define TARGET_NR_umount 321 266 - #define TARGET_NR_swapon 322 267 - #define TARGET_NR_times 323 268 - #define TARGET_NR_personality 324 269 - #define TARGET_NR_setfsuid 325 270 - #define TARGET_NR_setfsgid 326 271 - #define TARGET_NR_ustat 327 272 - #define TARGET_NR_statfs 328 273 - #define TARGET_NR_fstatfs 329 274 - #define TARGET_NR_sched_setparam 330 275 - #define TARGET_NR_sched_getparam 331 276 - #define TARGET_NR_sched_setscheduler 332 277 - #define TARGET_NR_sched_getscheduler 333 278 - #define TARGET_NR_sched_yield 334 279 - #define TARGET_NR_sched_get_priority_max 335 280 - #define TARGET_NR_sched_get_priority_min 336 281 - #define TARGET_NR_sched_rr_get_interval 337 282 - #define TARGET_NR_afs_syscall 338 283 - #define TARGET_NR_uname 339 284 - #define TARGET_NR_nanosleep 340 285 - #define TARGET_NR_mremap 341 286 - #define TARGET_NR_nfsservctl 342 287 - #define TARGET_NR_setresuid 343 288 - #define TARGET_NR_getresuid 344 289 - #define TARGET_NR_pciconfig_read 345 290 - #define TARGET_NR_pciconfig_write 346 291 - #define TARGET_NR_query_module 347 292 - #define TARGET_NR_prctl 348 293 - #define TARGET_NR_pread64 349 294 - #define TARGET_NR_pwrite64 350 295 - #define TARGET_NR_rt_sigreturn 351 296 - #define TARGET_NR_rt_sigaction 352 297 - #define TARGET_NR_rt_sigprocmask 353 298 - #define TARGET_NR_rt_sigpending 354 299 - #define TARGET_NR_rt_sigtimedwait 355 300 - #define TARGET_NR_rt_sigqueueinfo 356 301 - #define TARGET_NR_rt_sigsuspend 357 302 - #define TARGET_NR_select 358 303 - #define TARGET_NR_gettimeofday 359 304 - #define TARGET_NR_settimeofday 360 305 - #define TARGET_NR_getitimer 361 306 - #define TARGET_NR_setitimer 362 307 - #define TARGET_NR_utimes 363 308 - #define TARGET_NR_getrusage 364 309 - #define TARGET_NR_wait4 365 310 - #define TARGET_NR_adjtimex 366 311 - #define TARGET_NR_getcwd 367 312 - #define TARGET_NR_capget 368 313 - #define TARGET_NR_capset 369 314 - #define TARGET_NR_sendfile 370 315 - #define TARGET_NR_setresgid 371 316 - #define TARGET_NR_getresgid 372 317 - #define TARGET_NR_dipc 373 318 - #define TARGET_NR_pivot_root 374 319 - #define TARGET_NR_mincore 375 320 - #define TARGET_NR_pciconfig_iobase 376 321 - #define TARGET_NR_getdents64 377 322 - #define TARGET_NR_gettid 378 323 - #define TARGET_NR_readahead 379 324 - /* 380 is unused */ 325 - #define TARGET_NR_tkill 381 326 - #define TARGET_NR_setxattr 382 327 - #define TARGET_NR_lsetxattr 383 328 - #define TARGET_NR_fsetxattr 384 329 - #define TARGET_NR_getxattr 385 330 - #define TARGET_NR_lgetxattr 386 331 - #define TARGET_NR_fgetxattr 387 332 - #define TARGET_NR_listxattr 388 333 - #define TARGET_NR_llistxattr 389 334 - #define TARGET_NR_flistxattr 390 335 - #define TARGET_NR_removexattr 391 336 - #define TARGET_NR_lremovexattr 392 337 - #define TARGET_NR_fremovexattr 393 338 - #define TARGET_NR_futex 394 339 - #define TARGET_NR_sched_setaffinity 395 340 - #define TARGET_NR_sched_getaffinity 396 341 - #define TARGET_NR_tuxcall 397 342 - #define TARGET_NR_io_setup 398 343 - #define TARGET_NR_io_destroy 399 344 - #define TARGET_NR_io_getevents 400 345 - #define TARGET_NR_io_submit 401 346 - #define TARGET_NR_io_cancel 402 347 - #define TARGET_NR_exit_group 405 348 - #define TARGET_NR_lookup_dcookie 406 349 - #define TARGET_NR_epoll_create 407 350 - #define TARGET_NR_epoll_ctl 408 351 - #define TARGET_NR_epoll_wait 409 352 - #define TARGET_NR_remap_file_pages 410 353 - #define TARGET_NR_set_tid_address 411 354 - #define TARGET_NR_restart_syscall 412 355 - #define TARGET_NR_fadvise64 413 356 - #define TARGET_NR_timer_create 414 357 - #define TARGET_NR_timer_settime 415 358 - #define TARGET_NR_timer_gettime 416 359 - #define TARGET_NR_timer_getoverrun 417 360 - #define TARGET_NR_timer_delete 418 361 - #define TARGET_NR_clock_settime 419 362 - #define TARGET_NR_clock_gettime 420 363 - #define TARGET_NR_clock_getres 421 364 - #define TARGET_NR_clock_nanosleep 422 365 - #define TARGET_NR_semtimedop 423 366 - #define TARGET_NR_tgkill 424 367 - #define TARGET_NR_stat64 425 368 - #define TARGET_NR_lstat64 426 369 - #define TARGET_NR_fstat64 427 370 - #define TARGET_NR_vserver 428 371 - #define TARGET_NR_mbind 429 372 - #define TARGET_NR_get_mempolicy 430 373 - #define TARGET_NR_set_mempolicy 431 374 - #define TARGET_NR_mq_open 432 375 - #define TARGET_NR_mq_unlink 433 376 - #define TARGET_NR_mq_timedsend 434 377 - #define TARGET_NR_mq_timedreceive 435 378 - #define TARGET_NR_mq_notify 436 379 - #define TARGET_NR_mq_getsetattr 437 380 - #define TARGET_NR_waitid 438 381 - #define TARGET_NR_add_key 439 382 - #define TARGET_NR_request_key 440 383 - #define TARGET_NR_keyctl 441 384 - #define TARGET_NR_ioprio_set 442 385 - #define TARGET_NR_ioprio_get 443 386 - #define TARGET_NR_inotify_init 444 387 - #define TARGET_NR_inotify_add_watch 445 388 - #define TARGET_NR_inotify_rm_watch 446 389 - #define TARGET_NR_fdatasync 447 390 - #define TARGET_NR_kexec_load 448 391 - #define TARGET_NR_migrate_pages 449 392 - #define TARGET_NR_openat 450 393 - #define TARGET_NR_mkdirat 451 394 - #define TARGET_NR_mknodat 452 395 - #define TARGET_NR_fchownat 453 396 - #define TARGET_NR_futimesat 454 397 - #define TARGET_NR_fstatat64 455 398 - #define TARGET_NR_unlinkat 456 399 - #define TARGET_NR_renameat 457 400 - #define TARGET_NR_linkat 458 401 - #define TARGET_NR_symlinkat 459 402 - #define TARGET_NR_readlinkat 460 403 - #define TARGET_NR_fchmodat 461 404 - #define TARGET_NR_faccessat 462 405 - #define TARGET_NR_pselect6 463 406 - #define TARGET_NR_ppoll 464 407 - #define TARGET_NR_unshare 465 408 - #define TARGET_NR_set_robust_list 466 409 - #define TARGET_NR_get_robust_list 467 410 - #define TARGET_NR_splice 468 411 - #define TARGET_NR_sync_file_range 469 412 - #define TARGET_NR_tee 470 413 - #define TARGET_NR_vmsplice 471 414 - #define TARGET_NR_move_pages 472 415 - #define TARGET_NR_getcpu 473 416 - #define TARGET_NR_epoll_pwait 474 417 - #define TARGET_NR_utimensat 475 418 - #define TARGET_NR_signalfd 476 419 - #define TARGET_NR_timerfd 477 420 - #define TARGET_NR_eventfd 478 421 - #define TARGET_NR_recvmmsg 479 422 - #define TARGET_NR_fallocate 480 423 - #define TARGET_NR_timerfd_create 481 424 - #define TARGET_NR_timerfd_settime 482 425 - #define TARGET_NR_timerfd_gettime 483 426 - #define TARGET_NR_signalfd4 484 427 - #define TARGET_NR_eventfd2 485 428 - #define TARGET_NR_epoll_create1 486 429 - #define TARGET_NR_dup3 487 430 - #define TARGET_NR_pipe2 488 431 - #define TARGET_NR_inotify_init1 489 432 - #define TARGET_NR_preadv 490 433 - #define TARGET_NR_pwritev 491 434 - #define TARGET_NR_rt_tgsigqueueinfo 492 435 - #define TARGET_NR_perf_event_open 493 436 - #define TARGET_NR_fanotify_init 494 437 - #define TARGET_NR_fanotify_mark 495 438 - #define TARGET_NR_prlimit64 496 439 - #define TARGET_NR_name_to_handle_at 497 440 - #define TARGET_NR_open_by_handle_at 498 441 - #define TARGET_NR_clock_adjtime 499 442 - #define TARGET_NR_syncfs 500 443 - #define TARGET_NR_setns 501 444 - #define TARGET_NR_accept4 502 445 - #define TARGET_NR_sendmmsg 503 446 - #define TARGET_NR_process_vm_readv 504 447 - #define TARGET_NR_process_vm_writev 505 448 - #define TARGET_NR_kcmp 506 449 - #define TARGET_NR_finit_module 507 450 - #define TARGET_NR_sched_setattr 508 451 - #define TARGET_NR_sched_getattr 509 452 - #define TARGET_NR_renameat2 510 453 - #define TARGET_NR_getrandom 511 454 - #define TARGET_NR_memfd_create 512 455 - #define TARGET_NR_execveat 513 456 - #define TARGET_NR_seccomp 514 457 - #define TARGET_NR_bpf 515 458 - #define TARGET_NR_userfaultfd 516 459 - #define TARGET_NR_membarrier 517 460 - #define TARGET_NR_mlock2 518 461 - #define TARGET_NR_copy_file_range 519 462 - #define TARGET_NR_preadv2 520 463 - #define TARGET_NR_pwritev2 521 464 - #define TARGET_NR_statx 522 465 - #define TARGET_NR_io_pgetevents 523 466 - #define TARGET_NR_pkey_mprotect 524 467 - #define TARGET_NR_pkey_alloc 525 468 - #define TARGET_NR_pkey_free 526 469 - #define TARGET_NR_rseq 527 470 - #define TARGET_NR_statfs64 528 471 - #define TARGET_NR_fstatfs64 529 472 - #define TARGET_NR_getegid 530 473 - #define TARGET_NR_geteuid 531 474 - #define TARGET_NR_getppid 532 475 - /* 476 - * all other architectures have common numbers for new syscall, alpha 477 - * is the exception. 478 - */ 479 - #define TARGET_NR_pidfd_send_signal 534 480 - #define TARGET_NR_io_uring_setup 535 481 - #define TARGET_NR_io_uring_enter 536 482 - #define TARGET_NR_io_uring_register 537 483 - #define TARGET_NR_open_tree 538 484 - #define TARGET_NR_move_mount 539 485 - #define TARGET_NR_fsopen 540 486 - #define TARGET_NR_fsconfig 541 487 - #define TARGET_NR_fsmount 542 488 - #define TARGET_NR_fspick 543 489 - #define TARGET_NR_pidfd_open 544 490 - /* 545 reserved for clone3 */ 491 - 492 - #endif
+32
linux-user/alpha/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_ALPHA_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+8
linux-user/arm/Makefile.objs
··· 1 + obj-$(TARGET_ARM) += nwfpe/ 2 + obj-$(TARGET_ARM) += semihost.o 3 + 4 + generated-files-y += linux-user/arm/syscall_nr.h 5 + 6 + syshdr := $(SRC_PATH)/linux-user/arm/syscallhdr.sh 7 + %/syscall_nr.h: $(SRC_PATH)/linux-user/arm/syscall.tbl $(syshdr) 8 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+453
linux-user/arm/syscall.tbl
··· 1 + # 2 + # Linux system call numbers and entry vectors 3 + # 4 + # The format is: 5 + # <num> <abi> <name> [<entry point> [<oabi compat entry point>]] 6 + # 7 + # Where abi is: 8 + # common - for system calls shared between oabi and eabi (may have compat) 9 + # oabi - for oabi-only system calls (may have compat) 10 + # eabi - for eabi-only system calls 11 + # 12 + # For each syscall number, "common" is mutually exclusive with oabi and eabi 13 + # 14 + 0 common restart_syscall sys_restart_syscall 15 + 1 common exit sys_exit 16 + 2 common fork sys_fork 17 + 3 common read sys_read 18 + 4 common write sys_write 19 + 5 common open sys_open 20 + 6 common close sys_close 21 + # 7 was sys_waitpid 22 + 8 common creat sys_creat 23 + 9 common link sys_link 24 + 10 common unlink sys_unlink 25 + 11 common execve sys_execve 26 + 12 common chdir sys_chdir 27 + 13 oabi time sys_time32 28 + 14 common mknod sys_mknod 29 + 15 common chmod sys_chmod 30 + 16 common lchown sys_lchown16 31 + # 17 was sys_break 32 + # 18 was sys_stat 33 + 19 common lseek sys_lseek 34 + 20 common getpid sys_getpid 35 + 21 common mount sys_mount 36 + 22 oabi umount sys_oldumount 37 + 23 common setuid sys_setuid16 38 + 24 common getuid sys_getuid16 39 + 25 oabi stime sys_stime32 40 + 26 common ptrace sys_ptrace 41 + 27 oabi alarm sys_alarm 42 + # 28 was sys_fstat 43 + 29 common pause sys_pause 44 + 30 oabi utime sys_utime32 45 + # 31 was sys_stty 46 + # 32 was sys_gtty 47 + 33 common access sys_access 48 + 34 common nice sys_nice 49 + # 35 was sys_ftime 50 + 36 common sync sys_sync 51 + 37 common kill sys_kill 52 + 38 common rename sys_rename 53 + 39 common mkdir sys_mkdir 54 + 40 common rmdir sys_rmdir 55 + 41 common dup sys_dup 56 + 42 common pipe sys_pipe 57 + 43 common times sys_times 58 + # 44 was sys_prof 59 + 45 common brk sys_brk 60 + 46 common setgid sys_setgid16 61 + 47 common getgid sys_getgid16 62 + # 48 was sys_signal 63 + 49 common geteuid sys_geteuid16 64 + 50 common getegid sys_getegid16 65 + 51 common acct sys_acct 66 + 52 common umount2 sys_umount 67 + # 53 was sys_lock 68 + 54 common ioctl sys_ioctl 69 + 55 common fcntl sys_fcntl 70 + # 56 was sys_mpx 71 + 57 common setpgid sys_setpgid 72 + # 58 was sys_ulimit 73 + # 59 was sys_olduname 74 + 60 common umask sys_umask 75 + 61 common chroot sys_chroot 76 + 62 common ustat sys_ustat 77 + 63 common dup2 sys_dup2 78 + 64 common getppid sys_getppid 79 + 65 common getpgrp sys_getpgrp 80 + 66 common setsid sys_setsid 81 + 67 common sigaction sys_sigaction 82 + # 68 was sys_sgetmask 83 + # 69 was sys_ssetmask 84 + 70 common setreuid sys_setreuid16 85 + 71 common setregid sys_setregid16 86 + 72 common sigsuspend sys_sigsuspend 87 + 73 common sigpending sys_sigpending 88 + 74 common sethostname sys_sethostname 89 + 75 common setrlimit sys_setrlimit 90 + # Back compat 2GB limited rlimit 91 + 76 oabi getrlimit sys_old_getrlimit 92 + 77 common getrusage sys_getrusage 93 + 78 common gettimeofday sys_gettimeofday 94 + 79 common settimeofday sys_settimeofday 95 + 80 common getgroups sys_getgroups16 96 + 81 common setgroups sys_setgroups16 97 + 82 oabi select sys_old_select 98 + 83 common symlink sys_symlink 99 + # 84 was sys_lstat 100 + 85 common readlink sys_readlink 101 + 86 common uselib sys_uselib 102 + 87 common swapon sys_swapon 103 + 88 common reboot sys_reboot 104 + 89 oabi readdir sys_old_readdir 105 + 90 oabi mmap sys_old_mmap 106 + 91 common munmap sys_munmap 107 + 92 common truncate sys_truncate 108 + 93 common ftruncate sys_ftruncate 109 + 94 common fchmod sys_fchmod 110 + 95 common fchown sys_fchown16 111 + 96 common getpriority sys_getpriority 112 + 97 common setpriority sys_setpriority 113 + # 98 was sys_profil 114 + 99 common statfs sys_statfs 115 + 100 common fstatfs sys_fstatfs 116 + # 101 was sys_ioperm 117 + 102 oabi socketcall sys_socketcall sys_oabi_socketcall 118 + 103 common syslog sys_syslog 119 + 104 common setitimer sys_setitimer 120 + 105 common getitimer sys_getitimer 121 + 106 common stat sys_newstat 122 + 107 common lstat sys_newlstat 123 + 108 common fstat sys_newfstat 124 + # 109 was sys_uname 125 + # 110 was sys_iopl 126 + 111 common vhangup sys_vhangup 127 + # 112 was sys_idle 128 + # syscall to call a syscall! 129 + 113 oabi syscall sys_syscall 130 + 114 common wait4 sys_wait4 131 + 115 common swapoff sys_swapoff 132 + 116 common sysinfo sys_sysinfo 133 + 117 oabi ipc sys_ipc sys_oabi_ipc 134 + 118 common fsync sys_fsync 135 + 119 common sigreturn sys_sigreturn_wrapper 136 + 120 common clone sys_clone 137 + 121 common setdomainname sys_setdomainname 138 + 122 common uname sys_newuname 139 + # 123 was sys_modify_ldt 140 + 124 common adjtimex sys_adjtimex_time32 141 + 125 common mprotect sys_mprotect 142 + 126 common sigprocmask sys_sigprocmask 143 + # 127 was sys_create_module 144 + 128 common init_module sys_init_module 145 + 129 common delete_module sys_delete_module 146 + # 130 was sys_get_kernel_syms 147 + 131 common quotactl sys_quotactl 148 + 132 common getpgid sys_getpgid 149 + 133 common fchdir sys_fchdir 150 + 134 common bdflush sys_bdflush 151 + 135 common sysfs sys_sysfs 152 + 136 common personality sys_personality 153 + # 137 was sys_afs_syscall 154 + 138 common setfsuid sys_setfsuid16 155 + 139 common setfsgid sys_setfsgid16 156 + 140 common _llseek sys_llseek 157 + 141 common getdents sys_getdents 158 + 142 common _newselect sys_select 159 + 143 common flock sys_flock 160 + 144 common msync sys_msync 161 + 145 common readv sys_readv 162 + 146 common writev sys_writev 163 + 147 common getsid sys_getsid 164 + 148 common fdatasync sys_fdatasync 165 + 149 common _sysctl sys_sysctl 166 + 150 common mlock sys_mlock 167 + 151 common munlock sys_munlock 168 + 152 common mlockall sys_mlockall 169 + 153 common munlockall sys_munlockall 170 + 154 common sched_setparam sys_sched_setparam 171 + 155 common sched_getparam sys_sched_getparam 172 + 156 common sched_setscheduler sys_sched_setscheduler 173 + 157 common sched_getscheduler sys_sched_getscheduler 174 + 158 common sched_yield sys_sched_yield 175 + 159 common sched_get_priority_max sys_sched_get_priority_max 176 + 160 common sched_get_priority_min sys_sched_get_priority_min 177 + 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32 178 + 162 common nanosleep sys_nanosleep_time32 179 + 163 common mremap sys_mremap 180 + 164 common setresuid sys_setresuid16 181 + 165 common getresuid sys_getresuid16 182 + # 166 was sys_vm86 183 + # 167 was sys_query_module 184 + 168 common poll sys_poll 185 + 169 common nfsservctl 186 + 170 common setresgid sys_setresgid16 187 + 171 common getresgid sys_getresgid16 188 + 172 common prctl sys_prctl 189 + 173 common rt_sigreturn sys_rt_sigreturn_wrapper 190 + 174 common rt_sigaction sys_rt_sigaction 191 + 175 common rt_sigprocmask sys_rt_sigprocmask 192 + 176 common rt_sigpending sys_rt_sigpending 193 + 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 194 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo 195 + 179 common rt_sigsuspend sys_rt_sigsuspend 196 + 180 common pread64 sys_pread64 sys_oabi_pread64 197 + 181 common pwrite64 sys_pwrite64 sys_oabi_pwrite64 198 + 182 common chown sys_chown16 199 + 183 common getcwd sys_getcwd 200 + 184 common capget sys_capget 201 + 185 common capset sys_capset 202 + 186 common sigaltstack sys_sigaltstack 203 + 187 common sendfile sys_sendfile 204 + # 188 reserved 205 + # 189 reserved 206 + 190 common vfork sys_vfork 207 + # SuS compliant getrlimit 208 + 191 common ugetrlimit sys_getrlimit 209 + 192 common mmap2 sys_mmap2 210 + 193 common truncate64 sys_truncate64 sys_oabi_truncate64 211 + 194 common ftruncate64 sys_ftruncate64 sys_oabi_ftruncate64 212 + 195 common stat64 sys_stat64 sys_oabi_stat64 213 + 196 common lstat64 sys_lstat64 sys_oabi_lstat64 214 + 197 common fstat64 sys_fstat64 sys_oabi_fstat64 215 + 198 common lchown32 sys_lchown 216 + 199 common getuid32 sys_getuid 217 + 200 common getgid32 sys_getgid 218 + 201 common geteuid32 sys_geteuid 219 + 202 common getegid32 sys_getegid 220 + 203 common setreuid32 sys_setreuid 221 + 204 common setregid32 sys_setregid 222 + 205 common getgroups32 sys_getgroups 223 + 206 common setgroups32 sys_setgroups 224 + 207 common fchown32 sys_fchown 225 + 208 common setresuid32 sys_setresuid 226 + 209 common getresuid32 sys_getresuid 227 + 210 common setresgid32 sys_setresgid 228 + 211 common getresgid32 sys_getresgid 229 + 212 common chown32 sys_chown 230 + 213 common setuid32 sys_setuid 231 + 214 common setgid32 sys_setgid 232 + 215 common setfsuid32 sys_setfsuid 233 + 216 common setfsgid32 sys_setfsgid 234 + 217 common getdents64 sys_getdents64 235 + 218 common pivot_root sys_pivot_root 236 + 219 common mincore sys_mincore 237 + 220 common madvise sys_madvise 238 + 221 common fcntl64 sys_fcntl64 sys_oabi_fcntl64 239 + # 222 for tux 240 + # 223 is unused 241 + 224 common gettid sys_gettid 242 + 225 common readahead sys_readahead sys_oabi_readahead 243 + 226 common setxattr sys_setxattr 244 + 227 common lsetxattr sys_lsetxattr 245 + 228 common fsetxattr sys_fsetxattr 246 + 229 common getxattr sys_getxattr 247 + 230 common lgetxattr sys_lgetxattr 248 + 231 common fgetxattr sys_fgetxattr 249 + 232 common listxattr sys_listxattr 250 + 233 common llistxattr sys_llistxattr 251 + 234 common flistxattr sys_flistxattr 252 + 235 common removexattr sys_removexattr 253 + 236 common lremovexattr sys_lremovexattr 254 + 237 common fremovexattr sys_fremovexattr 255 + 238 common tkill sys_tkill 256 + 239 common sendfile64 sys_sendfile64 257 + 240 common futex sys_futex_time32 258 + 241 common sched_setaffinity sys_sched_setaffinity 259 + 242 common sched_getaffinity sys_sched_getaffinity 260 + 243 common io_setup sys_io_setup 261 + 244 common io_destroy sys_io_destroy 262 + 245 common io_getevents sys_io_getevents_time32 263 + 246 common io_submit sys_io_submit 264 + 247 common io_cancel sys_io_cancel 265 + 248 common exit_group sys_exit_group 266 + 249 common lookup_dcookie sys_lookup_dcookie 267 + 250 common epoll_create sys_epoll_create 268 + 251 common epoll_ctl sys_epoll_ctl sys_oabi_epoll_ctl 269 + 252 common epoll_wait sys_epoll_wait sys_oabi_epoll_wait 270 + 253 common remap_file_pages sys_remap_file_pages 271 + # 254 for set_thread_area 272 + # 255 for get_thread_area 273 + 256 common set_tid_address sys_set_tid_address 274 + 257 common timer_create sys_timer_create 275 + 258 common timer_settime sys_timer_settime32 276 + 259 common timer_gettime sys_timer_gettime32 277 + 260 common timer_getoverrun sys_timer_getoverrun 278 + 261 common timer_delete sys_timer_delete 279 + 262 common clock_settime sys_clock_settime32 280 + 263 common clock_gettime sys_clock_gettime32 281 + 264 common clock_getres sys_clock_getres_time32 282 + 265 common clock_nanosleep sys_clock_nanosleep_time32 283 + 266 common statfs64 sys_statfs64_wrapper 284 + 267 common fstatfs64 sys_fstatfs64_wrapper 285 + 268 common tgkill sys_tgkill 286 + 269 common utimes sys_utimes_time32 287 + 270 common arm_fadvise64_64 sys_arm_fadvise64_64 288 + 271 common pciconfig_iobase sys_pciconfig_iobase 289 + 272 common pciconfig_read sys_pciconfig_read 290 + 273 common pciconfig_write sys_pciconfig_write 291 + 274 common mq_open sys_mq_open 292 + 275 common mq_unlink sys_mq_unlink 293 + 276 common mq_timedsend sys_mq_timedsend_time32 294 + 277 common mq_timedreceive sys_mq_timedreceive_time32 295 + 278 common mq_notify sys_mq_notify 296 + 279 common mq_getsetattr sys_mq_getsetattr 297 + 280 common waitid sys_waitid 298 + 281 common socket sys_socket 299 + 282 common bind sys_bind sys_oabi_bind 300 + 283 common connect sys_connect sys_oabi_connect 301 + 284 common listen sys_listen 302 + 285 common accept sys_accept 303 + 286 common getsockname sys_getsockname 304 + 287 common getpeername sys_getpeername 305 + 288 common socketpair sys_socketpair 306 + 289 common send sys_send 307 + 290 common sendto sys_sendto sys_oabi_sendto 308 + 291 common recv sys_recv 309 + 292 common recvfrom sys_recvfrom 310 + 293 common shutdown sys_shutdown 311 + 294 common setsockopt sys_setsockopt 312 + 295 common getsockopt sys_getsockopt 313 + 296 common sendmsg sys_sendmsg sys_oabi_sendmsg 314 + 297 common recvmsg sys_recvmsg 315 + 298 common semop sys_semop sys_oabi_semop 316 + 299 common semget sys_semget 317 + 300 common semctl sys_old_semctl 318 + 301 common msgsnd sys_msgsnd 319 + 302 common msgrcv sys_msgrcv 320 + 303 common msgget sys_msgget 321 + 304 common msgctl sys_old_msgctl 322 + 305 common shmat sys_shmat 323 + 306 common shmdt sys_shmdt 324 + 307 common shmget sys_shmget 325 + 308 common shmctl sys_old_shmctl 326 + 309 common add_key sys_add_key 327 + 310 common request_key sys_request_key 328 + 311 common keyctl sys_keyctl 329 + 312 common semtimedop sys_semtimedop_time32 sys_oabi_semtimedop 330 + 313 common vserver 331 + 314 common ioprio_set sys_ioprio_set 332 + 315 common ioprio_get sys_ioprio_get 333 + 316 common inotify_init sys_inotify_init 334 + 317 common inotify_add_watch sys_inotify_add_watch 335 + 318 common inotify_rm_watch sys_inotify_rm_watch 336 + 319 common mbind sys_mbind 337 + 320 common get_mempolicy sys_get_mempolicy 338 + 321 common set_mempolicy sys_set_mempolicy 339 + 322 common openat sys_openat 340 + 323 common mkdirat sys_mkdirat 341 + 324 common mknodat sys_mknodat 342 + 325 common fchownat sys_fchownat 343 + 326 common futimesat sys_futimesat_time32 344 + 327 common fstatat64 sys_fstatat64 sys_oabi_fstatat64 345 + 328 common unlinkat sys_unlinkat 346 + 329 common renameat sys_renameat 347 + 330 common linkat sys_linkat 348 + 331 common symlinkat sys_symlinkat 349 + 332 common readlinkat sys_readlinkat 350 + 333 common fchmodat sys_fchmodat 351 + 334 common faccessat sys_faccessat 352 + 335 common pselect6 sys_pselect6_time32 353 + 336 common ppoll sys_ppoll_time32 354 + 337 common unshare sys_unshare 355 + 338 common set_robust_list sys_set_robust_list 356 + 339 common get_robust_list sys_get_robust_list 357 + 340 common splice sys_splice 358 + 341 common arm_sync_file_range sys_sync_file_range2 359 + 342 common tee sys_tee 360 + 343 common vmsplice sys_vmsplice 361 + 344 common move_pages sys_move_pages 362 + 345 common getcpu sys_getcpu 363 + 346 common epoll_pwait sys_epoll_pwait 364 + 347 common kexec_load sys_kexec_load 365 + 348 common utimensat sys_utimensat_time32 366 + 349 common signalfd sys_signalfd 367 + 350 common timerfd_create sys_timerfd_create 368 + 351 common eventfd sys_eventfd 369 + 352 common fallocate sys_fallocate 370 + 353 common timerfd_settime sys_timerfd_settime32 371 + 354 common timerfd_gettime sys_timerfd_gettime32 372 + 355 common signalfd4 sys_signalfd4 373 + 356 common eventfd2 sys_eventfd2 374 + 357 common epoll_create1 sys_epoll_create1 375 + 358 common dup3 sys_dup3 376 + 359 common pipe2 sys_pipe2 377 + 360 common inotify_init1 sys_inotify_init1 378 + 361 common preadv sys_preadv 379 + 362 common pwritev sys_pwritev 380 + 363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 381 + 364 common perf_event_open sys_perf_event_open 382 + 365 common recvmmsg sys_recvmmsg_time32 383 + 366 common accept4 sys_accept4 384 + 367 common fanotify_init sys_fanotify_init 385 + 368 common fanotify_mark sys_fanotify_mark 386 + 369 common prlimit64 sys_prlimit64 387 + 370 common name_to_handle_at sys_name_to_handle_at 388 + 371 common open_by_handle_at sys_open_by_handle_at 389 + 372 common clock_adjtime sys_clock_adjtime32 390 + 373 common syncfs sys_syncfs 391 + 374 common sendmmsg sys_sendmmsg 392 + 375 common setns sys_setns 393 + 376 common process_vm_readv sys_process_vm_readv 394 + 377 common process_vm_writev sys_process_vm_writev 395 + 378 common kcmp sys_kcmp 396 + 379 common finit_module sys_finit_module 397 + 380 common sched_setattr sys_sched_setattr 398 + 381 common sched_getattr sys_sched_getattr 399 + 382 common renameat2 sys_renameat2 400 + 383 common seccomp sys_seccomp 401 + 384 common getrandom sys_getrandom 402 + 385 common memfd_create sys_memfd_create 403 + 386 common bpf sys_bpf 404 + 387 common execveat sys_execveat 405 + 388 common userfaultfd sys_userfaultfd 406 + 389 common membarrier sys_membarrier 407 + 390 common mlock2 sys_mlock2 408 + 391 common copy_file_range sys_copy_file_range 409 + 392 common preadv2 sys_preadv2 410 + 393 common pwritev2 sys_pwritev2 411 + 394 common pkey_mprotect sys_pkey_mprotect 412 + 395 common pkey_alloc sys_pkey_alloc 413 + 396 common pkey_free sys_pkey_free 414 + 397 common statx sys_statx 415 + 398 common rseq sys_rseq 416 + 399 common io_pgetevents sys_io_pgetevents_time32 417 + 400 common migrate_pages sys_migrate_pages 418 + 401 common kexec_file_load sys_kexec_file_load 419 + # 402 is unused 420 + 403 common clock_gettime64 sys_clock_gettime 421 + 404 common clock_settime64 sys_clock_settime 422 + 405 common clock_adjtime64 sys_clock_adjtime 423 + 406 common clock_getres_time64 sys_clock_getres 424 + 407 common clock_nanosleep_time64 sys_clock_nanosleep 425 + 408 common timer_gettime64 sys_timer_gettime 426 + 409 common timer_settime64 sys_timer_settime 427 + 410 common timerfd_gettime64 sys_timerfd_gettime 428 + 411 common timerfd_settime64 sys_timerfd_settime 429 + 412 common utimensat_time64 sys_utimensat 430 + 413 common pselect6_time64 sys_pselect6 431 + 414 common ppoll_time64 sys_ppoll 432 + 416 common io_pgetevents_time64 sys_io_pgetevents 433 + 417 common recvmmsg_time64 sys_recvmmsg 434 + 418 common mq_timedsend_time64 sys_mq_timedsend 435 + 419 common mq_timedreceive_time64 sys_mq_timedreceive 436 + 420 common semtimedop_time64 sys_semtimedop 437 + 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait 438 + 422 common futex_time64 sys_futex 439 + 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 440 + 424 common pidfd_send_signal sys_pidfd_send_signal 441 + 425 common io_uring_setup sys_io_uring_setup 442 + 426 common io_uring_enter sys_io_uring_enter 443 + 427 common io_uring_register sys_io_uring_register 444 + 428 common open_tree sys_open_tree 445 + 429 common move_mount sys_move_mount 446 + 430 common fsopen sys_fsopen 447 + 431 common fsconfig sys_fsconfig 448 + 432 common fsmount sys_fsmount 449 + 433 common fspick sys_fspick 450 + 434 common pidfd_open sys_pidfd_open 451 + 435 common clone3 sys_clone3 452 + 437 common openat2 sys_openat2 453 + 438 common pidfd_getfd sys_pidfd_getfd
-447
linux-user/arm/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_ARM_SYSCALL_NR_H 6 - #define LINUX_USER_ARM_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_restart_syscall ( 0) 9 - #define TARGET_NR_exit ( 1) 10 - #define TARGET_NR_fork ( 2) 11 - #define TARGET_NR_read ( 3) 12 - #define TARGET_NR_write ( 4) 13 - #define TARGET_NR_open ( 5) 14 - #define TARGET_NR_close ( 6) 15 - #define TARGET_NR_waitpid ( 7) /* removed */ 16 - #define TARGET_NR_creat ( 8) 17 - #define TARGET_NR_link ( 9) 18 - #define TARGET_NR_unlink ( 10) 19 - #define TARGET_NR_execve ( 11) 20 - #define TARGET_NR_chdir ( 12) 21 - #define TARGET_NR_time ( 13) 22 - #define TARGET_NR_mknod ( 14) 23 - #define TARGET_NR_chmod ( 15) 24 - #define TARGET_NR_lchown ( 16) 25 - #define TARGET_NR_break ( 17) /* removed */ 26 - /* 18 was sys_stat */ 27 - #define TARGET_NR_lseek ( 19) 28 - #define TARGET_NR_getpid ( 20) 29 - #define TARGET_NR_mount ( 21) 30 - #define TARGET_NR_umount ( 22) 31 - #define TARGET_NR_setuid ( 23) 32 - #define TARGET_NR_getuid ( 24) 33 - #define TARGET_NR_stime ( 25) 34 - #define TARGET_NR_ptrace ( 26) 35 - #define TARGET_NR_alarm ( 27) 36 - 37 - #define TARGET_NR_pause ( 29) 38 - #define TARGET_NR_utime ( 30) 39 - #define TARGET_NR_stty ( 31) /* removed */ 40 - #define TARGET_NR_gtty ( 32) /* removed */ 41 - #define TARGET_NR_access ( 33) 42 - #define TARGET_NR_nice ( 34) 43 - #define TARGET_NR_ftime ( 35) /* removed */ 44 - #define TARGET_NR_sync ( 36) 45 - #define TARGET_NR_kill ( 37) 46 - #define TARGET_NR_rename ( 38) 47 - #define TARGET_NR_mkdir ( 39) 48 - #define TARGET_NR_rmdir ( 40) 49 - #define TARGET_NR_dup ( 41) 50 - #define TARGET_NR_pipe ( 42) 51 - #define TARGET_NR_times ( 43) 52 - #define TARGET_NR_prof ( 44) /* removed */ 53 - #define TARGET_NR_brk ( 45) 54 - #define TARGET_NR_setgid ( 46) 55 - #define TARGET_NR_getgid ( 47) 56 - #define TARGET_NR_signal ( 48) /* removed */ 57 - #define TARGET_NR_geteuid ( 49) 58 - #define TARGET_NR_getegid ( 50) 59 - #define TARGET_NR_acct ( 51) 60 - #define TARGET_NR_umount2 ( 52) 61 - #define TARGET_NR_lock ( 53) /* removed */ 62 - #define TARGET_NR_ioctl ( 54) 63 - #define TARGET_NR_fcntl ( 55) 64 - #define TARGET_NR_mpx ( 56) /* removed */ 65 - #define TARGET_NR_setpgid ( 57) 66 - #define TARGET_NR_ulimit ( 58) /* removed */ 67 - /* 59 was sys_olduname */ 68 - #define TARGET_NR_umask ( 60) 69 - #define TARGET_NR_chroot ( 61) 70 - #define TARGET_NR_ustat ( 62) 71 - #define TARGET_NR_dup2 ( 63) 72 - #define TARGET_NR_getppid ( 64) 73 - #define TARGET_NR_getpgrp ( 65) 74 - #define TARGET_NR_setsid ( 66) 75 - #define TARGET_NR_sigaction ( 67) 76 - #define TARGET_NR_sgetmask ( 68) /* removed */ 77 - #define TARGET_NR_ssetmask ( 69) /* removed */ 78 - #define TARGET_NR_setreuid ( 70) 79 - #define TARGET_NR_setregid ( 71) 80 - #define TARGET_NR_sigsuspend ( 72) 81 - #define TARGET_NR_sigpending ( 73) 82 - #define TARGET_NR_sethostname ( 74) 83 - #define TARGET_NR_setrlimit ( 75) 84 - #define TARGET_NR_getrlimit ( 76) /* Back compat 2GB limited rlimit */ 85 - #define TARGET_NR_getrusage ( 77) 86 - #define TARGET_NR_gettimeofday ( 78) 87 - #define TARGET_NR_settimeofday ( 79) 88 - #define TARGET_NR_getgroups ( 80) 89 - #define TARGET_NR_setgroups ( 81) 90 - #define TARGET_NR_select ( 82) 91 - #define TARGET_NR_symlink ( 83) 92 - /* 84 was sys_lstat */ 93 - #define TARGET_NR_readlink ( 85) 94 - #define TARGET_NR_uselib ( 86) 95 - #define TARGET_NR_swapon ( 87) 96 - #define TARGET_NR_reboot ( 88) 97 - #define TARGET_NR_readdir ( 89) 98 - #define TARGET_NR_mmap ( 90) 99 - #define TARGET_NR_munmap ( 91) 100 - #define TARGET_NR_truncate ( 92) 101 - #define TARGET_NR_ftruncate ( 93) 102 - #define TARGET_NR_fchmod ( 94) 103 - #define TARGET_NR_fchown ( 95) 104 - #define TARGET_NR_getpriority ( 96) 105 - #define TARGET_NR_setpriority ( 97) 106 - #define TARGET_NR_profil ( 98) /* removed */ 107 - #define TARGET_NR_statfs ( 99) 108 - #define TARGET_NR_fstatfs (100) 109 - #define TARGET_NR_ioperm (101) 110 - #define TARGET_NR_socketcall (102) 111 - #define TARGET_NR_syslog (103) 112 - #define TARGET_NR_setitimer (104) 113 - #define TARGET_NR_getitimer (105) 114 - #define TARGET_NR_stat (106) 115 - #define TARGET_NR_lstat (107) 116 - #define TARGET_NR_fstat (108) 117 - /* 109 was sys_uname */ 118 - /* 110 was sys_iopl */ 119 - #define TARGET_NR_vhangup (111) 120 - #define TARGET_NR_idle (112) 121 - #define TARGET_NR_syscall (113) /* syscall to call a syscall! */ 122 - #define TARGET_NR_wait4 (114) 123 - #define TARGET_NR_swapoff (115) 124 - #define TARGET_NR_sysinfo (116) 125 - #define TARGET_NR_ipc (117) 126 - #define TARGET_NR_fsync (118) 127 - #define TARGET_NR_sigreturn (119) 128 - #define TARGET_NR_clone (120) 129 - #define TARGET_NR_setdomainname (121) 130 - #define TARGET_NR_uname (122) 131 - #define TARGET_NR_modify_ldt (123) 132 - #define TARGET_NR_adjtimex (124) 133 - #define TARGET_NR_mprotect (125) 134 - #define TARGET_NR_sigprocmask (126) 135 - #define TARGET_NR_create_module (127) /* removed */ 136 - #define TARGET_NR_init_module (128) 137 - #define TARGET_NR_delete_module (129) 138 - #define TARGET_NR_get_kernel_syms (130) /* removed */ 139 - #define TARGET_NR_quotactl (131) 140 - #define TARGET_NR_getpgid (132) 141 - #define TARGET_NR_fchdir (133) 142 - #define TARGET_NR_bdflush (134) 143 - #define TARGET_NR_sysfs (135) 144 - #define TARGET_NR_personality (136) 145 - #define TARGET_NR_afs_syscall (137) /* Syscall for Andrew File System */ 146 - #define TARGET_NR_setfsuid (138) 147 - #define TARGET_NR_setfsgid (139) 148 - #define TARGET_NR__llseek (140) 149 - #define TARGET_NR_getdents (141) 150 - #define TARGET_NR__newselect (142) 151 - #define TARGET_NR_flock (143) 152 - #define TARGET_NR_msync (144) 153 - #define TARGET_NR_readv (145) 154 - #define TARGET_NR_writev (146) 155 - #define TARGET_NR_getsid (147) 156 - #define TARGET_NR_fdatasync (148) 157 - #define TARGET_NR__sysctl (149) 158 - #define TARGET_NR_mlock (150) 159 - #define TARGET_NR_munlock (151) 160 - #define TARGET_NR_mlockall (152) 161 - #define TARGET_NR_munlockall (153) 162 - #define TARGET_NR_sched_setparam (154) 163 - #define TARGET_NR_sched_getparam (155) 164 - #define TARGET_NR_sched_setscheduler (156) 165 - #define TARGET_NR_sched_getscheduler (157) 166 - #define TARGET_NR_sched_yield (158) 167 - #define TARGET_NR_sched_get_priority_max (159) 168 - #define TARGET_NR_sched_get_priority_min (160) 169 - #define TARGET_NR_sched_rr_get_interval (161) 170 - #define TARGET_NR_nanosleep (162) 171 - #define TARGET_NR_mremap (163) 172 - #define TARGET_NR_setresuid (164) 173 - #define TARGET_NR_getresuid (165) 174 - #define TARGET_NR_vm86 (166) /* removed */ 175 - #define TARGET_NR_query_module (167) /* removed */ 176 - #define TARGET_NR_poll (168) 177 - #define TARGET_NR_nfsservctl (169) 178 - #define TARGET_NR_setresgid (170) 179 - #define TARGET_NR_getresgid (171) 180 - #define TARGET_NR_prctl (172) 181 - #define TARGET_NR_rt_sigreturn (173) 182 - #define TARGET_NR_rt_sigaction (174) 183 - #define TARGET_NR_rt_sigprocmask (175) 184 - #define TARGET_NR_rt_sigpending (176) 185 - #define TARGET_NR_rt_sigtimedwait (177) 186 - #define TARGET_NR_rt_sigqueueinfo (178) 187 - #define TARGET_NR_rt_sigsuspend (179) 188 - #define TARGET_NR_pread64 (180) 189 - #define TARGET_NR_pwrite64 (181) 190 - #define TARGET_NR_chown (182) 191 - #define TARGET_NR_getcwd (183) 192 - #define TARGET_NR_capget (184) 193 - #define TARGET_NR_capset (185) 194 - #define TARGET_NR_sigaltstack (186) 195 - #define TARGET_NR_sendfile (187) 196 - /* 188 reserved */ 197 - /* 189 reserved */ 198 - #define TARGET_NR_vfork (190) 199 - #define TARGET_NR_ugetrlimit (191) /* SuS compliant getrlimit */ 200 - #define TARGET_NR_mmap2 (192) 201 - #define TARGET_NR_truncate64 (193) 202 - #define TARGET_NR_ftruncate64 (194) 203 - #define TARGET_NR_stat64 (195) 204 - #define TARGET_NR_lstat64 (196) 205 - #define TARGET_NR_fstat64 (197) 206 - #define TARGET_NR_lchown32 (198) 207 - #define TARGET_NR_getuid32 (199) 208 - #define TARGET_NR_getgid32 (200) 209 - #define TARGET_NR_geteuid32 (201) 210 - #define TARGET_NR_getegid32 (202) 211 - #define TARGET_NR_setreuid32 (203) 212 - #define TARGET_NR_setregid32 (204) 213 - #define TARGET_NR_getgroups32 (205) 214 - #define TARGET_NR_setgroups32 (206) 215 - #define TARGET_NR_fchown32 (207) 216 - #define TARGET_NR_setresuid32 (208) 217 - #define TARGET_NR_getresuid32 (209) 218 - #define TARGET_NR_setresgid32 (210) 219 - #define TARGET_NR_getresgid32 (211) 220 - #define TARGET_NR_chown32 (212) 221 - #define TARGET_NR_setuid32 (213) 222 - #define TARGET_NR_setgid32 (214) 223 - #define TARGET_NR_setfsuid32 (215) 224 - #define TARGET_NR_setfsgid32 (216) 225 - #define TARGET_NR_getdents64 (217) 226 - #define TARGET_NR_pivot_root (218) 227 - #define TARGET_NR_mincore (219) 228 - #define TARGET_NR_madvise (220) 229 - #define TARGET_NR_fcntl64 (221) 230 - /* 222 for tux */ 231 - /* 223 is unused */ 232 - #define TARGET_NR_gettid (224) 233 - #define TARGET_NR_readahead (225) 234 - #define TARGET_NR_setxattr (226) 235 - #define TARGET_NR_lsetxattr (227) 236 - #define TARGET_NR_fsetxattr (228) 237 - #define TARGET_NR_getxattr (229) 238 - #define TARGET_NR_lgetxattr (230) 239 - #define TARGET_NR_fgetxattr (231) 240 - #define TARGET_NR_listxattr (232) 241 - #define TARGET_NR_llistxattr (233) 242 - #define TARGET_NR_flistxattr (234) 243 - #define TARGET_NR_removexattr (235) 244 - #define TARGET_NR_lremovexattr (236) 245 - #define TARGET_NR_fremovexattr (237) 246 - #define TARGET_NR_tkill (238) 247 - #define TARGET_NR_sendfile64 (239) 248 - #define TARGET_NR_futex (240) 249 - #define TARGET_NR_sched_setaffinity (241) 250 - #define TARGET_NR_sched_getaffinity (242) 251 - #define TARGET_NR_io_setup (243) 252 - #define TARGET_NR_io_destroy (244) 253 - #define TARGET_NR_io_getevents (245) 254 - #define TARGET_NR_io_submit (246) 255 - #define TARGET_NR_io_cancel (247) 256 - #define TARGET_NR_exit_group (248) 257 - #define TARGET_NR_lookup_dcookie (249) 258 - #define TARGET_NR_epoll_create (250) 259 - #define TARGET_NR_epoll_ctl (251) 260 - #define TARGET_NR_epoll_wait (252) 261 - #define TARGET_NR_remap_file_pages (253) 262 - /* 254 for set_thread_area */ 263 - /* 255 for get_thread_area */ 264 - /* 256 for set_tid_address */ 265 - #define TARGET_NR_set_tid_address 256 266 - #define TARGET_NR_timer_create 257 267 - #define TARGET_NR_timer_settime 258 268 - #define TARGET_NR_timer_gettime 259 269 - #define TARGET_NR_timer_getoverrun 260 270 - #define TARGET_NR_timer_delete 261 271 - #define TARGET_NR_clock_settime 262 272 - #define TARGET_NR_clock_gettime 263 273 - #define TARGET_NR_clock_getres 264 274 - #define TARGET_NR_clock_nanosleep 265 275 - #define TARGET_NR_statfs64 266 276 - #define TARGET_NR_fstatfs64 267 277 - #define TARGET_NR_tgkill 268 278 - #define TARGET_NR_utimes 269 279 - #define TARGET_NR_arm_fadvise64_64 270 280 - #define TARGET_NR_pciconfig_iobase 271 281 - #define TARGET_NR_pciconfig_read 272 282 - #define TARGET_NR_pciconfig_write 273 283 - #define TARGET_NR_mq_open 274 284 - #define TARGET_NR_mq_unlink 275 285 - #define TARGET_NR_mq_timedsend 276 286 - #define TARGET_NR_mq_timedreceive 277 287 - #define TARGET_NR_mq_notify 278 288 - #define TARGET_NR_mq_getsetattr 279 289 - #define TARGET_NR_waitid 280 290 - #define TARGET_NR_socket 281 291 - #define TARGET_NR_bind 282 292 - #define TARGET_NR_connect 283 293 - #define TARGET_NR_listen 284 294 - #define TARGET_NR_accept 285 295 - #define TARGET_NR_getsockname 286 296 - #define TARGET_NR_getpeername 287 297 - #define TARGET_NR_socketpair 288 298 - #define TARGET_NR_send 289 299 - #define TARGET_NR_sendto 290 300 - #define TARGET_NR_recv 291 301 - #define TARGET_NR_recvfrom 292 302 - #define TARGET_NR_shutdown 293 303 - #define TARGET_NR_setsockopt 294 304 - #define TARGET_NR_getsockopt 295 305 - #define TARGET_NR_sendmsg 296 306 - #define TARGET_NR_recvmsg 297 307 - #define TARGET_NR_semop 298 308 - #define TARGET_NR_semget 299 309 - #define TARGET_NR_semctl 300 310 - #define TARGET_NR_msgsnd 301 311 - #define TARGET_NR_msgrcv 302 312 - #define TARGET_NR_msgget 303 313 - #define TARGET_NR_msgctl 304 314 - #define TARGET_NR_shmat 305 315 - #define TARGET_NR_shmdt 306 316 - #define TARGET_NR_shmget 307 317 - #define TARGET_NR_shmctl 308 318 - #define TARGET_NR_add_key 309 319 - #define TARGET_NR_request_key 310 320 - #define TARGET_NR_keyctl 311 321 - #define TARGET_NR_semtimedop 312 322 - #define TARGET_NR_vserver 313 323 - #define TARGET_NR_ioprio_set 314 324 - #define TARGET_NR_ioprio_get 315 325 - #define TARGET_NR_inotify_init 316 326 - #define TARGET_NR_inotify_add_watch 317 327 - #define TARGET_NR_inotify_rm_watch 318 328 - #define TARGET_NR_mbind 319 329 - #define TARGET_NR_get_mempolicy 320 330 - #define TARGET_NR_set_mempolicy 321 331 - #define TARGET_NR_openat (322) 332 - #define TARGET_NR_mkdirat (323) 333 - #define TARGET_NR_mknodat (324) 334 - #define TARGET_NR_fchownat (325) 335 - #define TARGET_NR_futimesat (326) 336 - #define TARGET_NR_fstatat64 (327) 337 - #define TARGET_NR_unlinkat (328) 338 - #define TARGET_NR_renameat (329) 339 - #define TARGET_NR_linkat (330) 340 - #define TARGET_NR_symlinkat (331) 341 - #define TARGET_NR_readlinkat (332) 342 - #define TARGET_NR_fchmodat (333) 343 - #define TARGET_NR_faccessat (334) 344 - #define TARGET_NR_pselect6 (335) 345 - #define TARGET_NR_ppoll (336) 346 - #define TARGET_NR_unshare (337) 347 - #define TARGET_NR_set_robust_list (338) 348 - #define TARGET_NR_get_robust_list (339) 349 - #define TARGET_NR_splice (340) 350 - #define TARGET_NR_arm_sync_file_range (341) 351 - #define TARGET_NR_sync_file_range2 TARGET_NR_arm_sync_file_range 352 - #define TARGET_NR_tee (342) 353 - #define TARGET_NR_vmsplice (343) 354 - #define TARGET_NR_move_pages (344) 355 - #define TARGET_NR_getcpu (345) 356 - #define TARGET_NR_epoll_pwait (346) 357 - #define TARGET_NR_kexec_load (347) 358 - #define TARGET_NR_utimensat (348) 359 - #define TARGET_NR_signalfd (349) 360 - #define TARGET_NR_timerfd_create (350) 361 - #define TARGET_NR_eventfd (351) 362 - #define TARGET_NR_fallocate (352) 363 - #define TARGET_NR_timerfd_settime (353) 364 - #define TARGET_NR_timerfd_gettime (354) 365 - #define TARGET_NR_signalfd4 (355) 366 - #define TARGET_NR_eventfd2 (356) 367 - #define TARGET_NR_epoll_create1 (357) 368 - #define TARGET_NR_dup3 (358) 369 - #define TARGET_NR_pipe2 (359) 370 - #define TARGET_NR_inotify_init1 (360) 371 - #define TARGET_NR_preadv (361) 372 - #define TARGET_NR_pwritev (362) 373 - #define TARGET_NR_rt_tgsigqueueinfo (363) 374 - #define TARGET_NR_perf_event_open (364) 375 - #define TARGET_NR_recvmmsg (365) 376 - #define TARGET_NR_accept4 (366) 377 - #define TARGET_NR_fanotify_init (367) 378 - #define TARGET_NR_fanotify_mark (368) 379 - #define TARGET_NR_prlimit64 (369) 380 - #define TARGET_NR_name_to_handle_at (370) 381 - #define TARGET_NR_open_by_handle_at (371) 382 - #define TARGET_NR_clock_adjtime (372) 383 - #define TARGET_NR_syncfs (373) 384 - #define TARGET_NR_sendmmsg (374) 385 - #define TARGET_NR_setns (375) 386 - #define TARGET_NR_process_vm_readv (376) 387 - #define TARGET_NR_process_vm_writev (377) 388 - #define TARGET_NR_kcmp (378) 389 - #define TARGET_NR_finit_module (379) 390 - 391 - #define TARGET_NR_sched_setattr (380) 392 - #define TARGET_NR_sched_getattr (381) 393 - #define TARGET_NR_renameat2 (382) 394 - #define TARGET_NR_seccomp (383) 395 - #define TARGET_NR_getrandom (384) 396 - #define TARGET_NR_memfd_create (385) 397 - #define TARGET_NR_bpf (386) 398 - #define TARGET_NR_execveat (387) 399 - #define TARGET_NR_userfaultfd (388) 400 - #define TARGET_NR_membarrier (389) 401 - #define TARGET_NR_mlock2 (390) 402 - #define TARGET_NR_copy_file_range (391) 403 - #define TARGET_NR_preadv2 (392) 404 - #define TARGET_NR_pwritev2 (393) 405 - #define TARGET_NR_pkey_mprotect (394) 406 - #define TARGET_NR_pkey_alloc (395) 407 - #define TARGET_NR_pkey_free (396) 408 - #define TARGET_NR_statx (397) 409 - #define TARGET_NR_rseq (398) 410 - #define TARGET_NR_io_pgetevents (399) 411 - #define TARGET_NR_migrate_pages (400) 412 - #define TARGET_NR_kexec_file_load (401) 413 - /* 402 is unused */ 414 - #define TARGET_NR_clock_gettime64 (403) 415 - #define TARGET_NR_clock_settime64 (404) 416 - #define TARGET_NR_clock_adjtime64 (405) 417 - #define TARGET_NR_clock_getres_time64 (406) 418 - #define TARGET_NR_clock_nanosleep_time64 (407) 419 - #define TARGET_NR_timer_gettime64 (408) 420 - #define TARGET_NR_timer_settime64 (409) 421 - #define TARGET_NR_timerfd_gettime64 (410) 422 - #define TARGET_NR_timerfd_settime64 (411) 423 - #define TARGET_NR_utimensat_time64 (412) 424 - #define TARGET_NR_pselect6_time64 (413) 425 - #define TARGET_NR_ppoll_time64 (414) 426 - #define TARGET_NR_io_pgetevents_time64 (416) 427 - #define TARGET_NR_recvmmsg_time64 (417) 428 - #define TARGET_NR_mq_timedsend_time64 (418) 429 - #define TARGET_NR_mq_timedreceive_time64 (419) 430 - #define TARGET_NR_semtimedop_time64 (420) 431 - #define TARGET_NR_rt_sigtimedwait_time64 (421) 432 - #define TARGET_NR_futex_time64 (422) 433 - #define TARGET_NR_sched_rr_get_interval_time64 (423) 434 - #define TARGET_NR_pidfd_send_signal (424) 435 - #define TARGET_NR_io_uring_setup (425) 436 - #define TARGET_NR_io_uring_enter (426) 437 - #define TARGET_NR_io_uring_register (427) 438 - #define TARGET_NR_open_tree (428) 439 - #define TARGET_NR_move_mount (429) 440 - #define TARGET_NR_fsopen (430) 441 - #define TARGET_NR_fsconfig (431) 442 - #define TARGET_NR_fsmount (432) 443 - #define TARGET_NR_fspick (433) 444 - #define TARGET_NR_pidfd_open (434) 445 - #define TARGET_NR_clone3 (435) 446 - 447 - #endif
+31
linux-user/arm/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_ARM_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + if echo $out | grep -q uapi; then 14 + fileguard="_UAPI$fileguard" 15 + fi 16 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 17 + echo "#ifndef ${fileguard}" 18 + echo "#define ${fileguard} 1" 19 + echo "" 20 + 21 + while read nr abi name entry ; do 22 + if [ -z "$offset" ]; then 23 + echo "#define TARGET_NR_${prefix}${name} $nr" 24 + else 25 + echo "#define TARGET_NR_${prefix}${name} ($offset + $nr)" 26 + fi 27 + done 28 + 29 + echo "" 30 + echo "#endif /* ${fileguard} */" 31 + ) > "$out"
+2 -1
linux-user/elfload.c
··· 1573 1573 ~(abi_ulong)(TARGET_ELF_EXEC_PAGESIZE-1)) 1574 1574 #define TARGET_ELF_PAGEOFFSET(_v) ((_v) & (TARGET_ELF_EXEC_PAGESIZE-1)) 1575 1575 1576 - #define DLINFO_ITEMS 15 1576 + #define DLINFO_ITEMS 16 1577 1577 1578 1578 static inline void memcpy_fromfs(void * to, const void * from, unsigned long n) 1579 1579 { ··· 2037 2037 NEW_AUX_ENT(AT_CLKTCK, (abi_ulong) sysconf(_SC_CLK_TCK)); 2038 2038 NEW_AUX_ENT(AT_RANDOM, (abi_ulong) u_rand_bytes); 2039 2039 NEW_AUX_ENT(AT_SECURE, (abi_ulong) qemu_getauxval(AT_SECURE)); 2040 + NEW_AUX_ENT(AT_EXECFN, info->file_string); 2040 2041 2041 2042 #ifdef ELF_HWCAP2 2042 2043 NEW_AUX_ENT(AT_HWCAP2, (abi_ulong) ELF_HWCAP2);
+5
linux-user/hppa/Makefile.objs
··· 1 + generated-files-y += linux-user/hppa/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/hppa/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/hppa/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+437
linux-user/hppa/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for parisc 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> <compat entry point> 7 + # 8 + # The <abi> can be common, 64, or 32 for this file. 9 + # 10 + 0 common restart_syscall sys_restart_syscall 11 + 1 common exit sys_exit 12 + 2 common fork sys_fork_wrapper 13 + 3 common read sys_read 14 + 4 common write sys_write 15 + 5 common open sys_open compat_sys_open 16 + 6 common close sys_close 17 + 7 common waitpid sys_waitpid 18 + 8 common creat sys_creat 19 + 9 common link sys_link 20 + 10 common unlink sys_unlink 21 + 11 common execve sys_execve compat_sys_execve 22 + 12 common chdir sys_chdir 23 + 13 32 time sys_time32 24 + 13 64 time sys_time 25 + 14 common mknod sys_mknod 26 + 15 common chmod sys_chmod 27 + 16 common lchown sys_lchown 28 + 17 common socket sys_socket 29 + 18 common stat sys_newstat compat_sys_newstat 30 + 19 common lseek sys_lseek compat_sys_lseek 31 + 20 common getpid sys_getpid 32 + 21 common mount sys_mount compat_sys_mount 33 + 22 common bind sys_bind 34 + 23 common setuid sys_setuid 35 + 24 common getuid sys_getuid 36 + 25 32 stime sys_stime32 37 + 25 64 stime sys_stime 38 + 26 common ptrace sys_ptrace compat_sys_ptrace 39 + 27 common alarm sys_alarm 40 + 28 common fstat sys_newfstat compat_sys_newfstat 41 + 29 common pause sys_pause 42 + 30 32 utime sys_utime32 43 + 30 64 utime sys_utime 44 + 31 common connect sys_connect 45 + 32 common listen sys_listen 46 + 33 common access sys_access 47 + 34 common nice sys_nice 48 + 35 common accept sys_accept 49 + 36 common sync sys_sync 50 + 37 common kill sys_kill 51 + 38 common rename sys_rename 52 + 39 common mkdir sys_mkdir 53 + 40 common rmdir sys_rmdir 54 + 41 common dup sys_dup 55 + 42 common pipe sys_pipe 56 + 43 common times sys_times compat_sys_times 57 + 44 common getsockname sys_getsockname 58 + 45 common brk sys_brk 59 + 46 common setgid sys_setgid 60 + 47 common getgid sys_getgid 61 + 48 common signal sys_signal 62 + 49 common geteuid sys_geteuid 63 + 50 common getegid sys_getegid 64 + 51 common acct sys_acct 65 + 52 common umount2 sys_umount 66 + 53 common getpeername sys_getpeername 67 + 54 common ioctl sys_ioctl compat_sys_ioctl 68 + 55 common fcntl sys_fcntl compat_sys_fcntl 69 + 56 common socketpair sys_socketpair 70 + 57 common setpgid sys_setpgid 71 + 58 common send sys_send 72 + 59 common uname sys_newuname 73 + 60 common umask sys_umask 74 + 61 common chroot sys_chroot 75 + 62 common ustat sys_ustat compat_sys_ustat 76 + 63 common dup2 sys_dup2 77 + 64 common getppid sys_getppid 78 + 65 common getpgrp sys_getpgrp 79 + 66 common setsid sys_setsid 80 + 67 common pivot_root sys_pivot_root 81 + 68 common sgetmask sys_sgetmask sys32_unimplemented 82 + 69 common ssetmask sys_ssetmask sys32_unimplemented 83 + 70 common setreuid sys_setreuid 84 + 71 common setregid sys_setregid 85 + 72 common mincore sys_mincore 86 + 73 common sigpending sys_sigpending compat_sys_sigpending 87 + 74 common sethostname sys_sethostname 88 + 75 common setrlimit sys_setrlimit compat_sys_setrlimit 89 + 76 common getrlimit sys_getrlimit compat_sys_getrlimit 90 + 77 common getrusage sys_getrusage compat_sys_getrusage 91 + 78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 92 + 79 common settimeofday sys_settimeofday compat_sys_settimeofday 93 + 80 common getgroups sys_getgroups 94 + 81 common setgroups sys_setgroups 95 + 82 common sendto sys_sendto 96 + 83 common symlink sys_symlink 97 + 84 common lstat sys_newlstat compat_sys_newlstat 98 + 85 common readlink sys_readlink 99 + 86 common uselib sys_ni_syscall 100 + 87 common swapon sys_swapon 101 + 88 common reboot sys_reboot 102 + 89 common mmap2 sys_mmap2 103 + 90 common mmap sys_mmap 104 + 91 common munmap sys_munmap 105 + 92 common truncate sys_truncate compat_sys_truncate 106 + 93 common ftruncate sys_ftruncate compat_sys_ftruncate 107 + 94 common fchmod sys_fchmod 108 + 95 common fchown sys_fchown 109 + 96 common getpriority sys_getpriority 110 + 97 common setpriority sys_setpriority 111 + 98 common recv sys_recv 112 + 99 common statfs sys_statfs compat_sys_statfs 113 + 100 common fstatfs sys_fstatfs compat_sys_fstatfs 114 + 101 common stat64 sys_stat64 115 + # 102 was socketcall 116 + 103 common syslog sys_syslog 117 + 104 common setitimer sys_setitimer compat_sys_setitimer 118 + 105 common getitimer sys_getitimer compat_sys_getitimer 119 + 106 common capget sys_capget 120 + 107 common capset sys_capset 121 + 108 32 pread64 parisc_pread64 122 + 108 64 pread64 sys_pread64 123 + 109 32 pwrite64 parisc_pwrite64 124 + 109 64 pwrite64 sys_pwrite64 125 + 110 common getcwd sys_getcwd 126 + 111 common vhangup sys_vhangup 127 + 112 common fstat64 sys_fstat64 128 + 113 common vfork sys_vfork_wrapper 129 + 114 common wait4 sys_wait4 compat_sys_wait4 130 + 115 common swapoff sys_swapoff 131 + 116 common sysinfo sys_sysinfo compat_sys_sysinfo 132 + 117 common shutdown sys_shutdown 133 + 118 common fsync sys_fsync 134 + 119 common madvise sys_madvise 135 + 120 common clone sys_clone_wrapper 136 + 121 common setdomainname sys_setdomainname 137 + 122 common sendfile sys_sendfile compat_sys_sendfile 138 + 123 common recvfrom sys_recvfrom 139 + 124 32 adjtimex sys_adjtimex_time32 140 + 124 64 adjtimex sys_adjtimex 141 + 125 common mprotect sys_mprotect 142 + 126 common sigprocmask sys_sigprocmask compat_sys_sigprocmask 143 + # 127 was create_module 144 + 128 common init_module sys_init_module 145 + 129 common delete_module sys_delete_module 146 + # 130 was get_kernel_syms 147 + 131 common quotactl sys_quotactl 148 + 132 common getpgid sys_getpgid 149 + 133 common fchdir sys_fchdir 150 + 134 common bdflush sys_bdflush 151 + 135 common sysfs sys_sysfs 152 + 136 32 personality parisc_personality 153 + 136 64 personality sys_personality 154 + # 137 was afs_syscall 155 + 138 common setfsuid sys_setfsuid 156 + 139 common setfsgid sys_setfsgid 157 + 140 common _llseek sys_llseek 158 + 141 common getdents sys_getdents compat_sys_getdents 159 + 142 common _newselect sys_select compat_sys_select 160 + 143 common flock sys_flock 161 + 144 common msync sys_msync 162 + 145 common readv sys_readv compat_sys_readv 163 + 146 common writev sys_writev compat_sys_writev 164 + 147 common getsid sys_getsid 165 + 148 common fdatasync sys_fdatasync 166 + 149 common _sysctl sys_sysctl compat_sys_sysctl 167 + 150 common mlock sys_mlock 168 + 151 common munlock sys_munlock 169 + 152 common mlockall sys_mlockall 170 + 153 common munlockall sys_munlockall 171 + 154 common sched_setparam sys_sched_setparam 172 + 155 common sched_getparam sys_sched_getparam 173 + 156 common sched_setscheduler sys_sched_setscheduler 174 + 157 common sched_getscheduler sys_sched_getscheduler 175 + 158 common sched_yield sys_sched_yield 176 + 159 common sched_get_priority_max sys_sched_get_priority_max 177 + 160 common sched_get_priority_min sys_sched_get_priority_min 178 + 161 32 sched_rr_get_interval sys_sched_rr_get_interval_time32 179 + 161 64 sched_rr_get_interval sys_sched_rr_get_interval 180 + 162 32 nanosleep sys_nanosleep_time32 181 + 162 64 nanosleep sys_nanosleep 182 + 163 common mremap sys_mremap 183 + 164 common setresuid sys_setresuid 184 + 165 common getresuid sys_getresuid 185 + 166 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 186 + # 167 was query_module 187 + 168 common poll sys_poll 188 + # 169 was nfsservctl 189 + 170 common setresgid sys_setresgid 190 + 171 common getresgid sys_getresgid 191 + 172 common prctl sys_prctl 192 + 173 common rt_sigreturn sys_rt_sigreturn_wrapper 193 + 174 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 194 + 175 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 195 + 176 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 196 + 177 32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 197 + 177 64 rt_sigtimedwait sys_rt_sigtimedwait 198 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 199 + 179 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 200 + 180 common chown sys_chown 201 + 181 common setsockopt sys_setsockopt compat_sys_setsockopt 202 + 182 common getsockopt sys_getsockopt compat_sys_getsockopt 203 + 183 common sendmsg sys_sendmsg compat_sys_sendmsg 204 + 184 common recvmsg sys_recvmsg compat_sys_recvmsg 205 + 185 common semop sys_semop 206 + 186 common semget sys_semget 207 + 187 common semctl sys_semctl compat_sys_semctl 208 + 188 common msgsnd sys_msgsnd compat_sys_msgsnd 209 + 189 common msgrcv sys_msgrcv compat_sys_msgrcv 210 + 190 common msgget sys_msgget 211 + 191 common msgctl sys_msgctl compat_sys_msgctl 212 + 192 common shmat sys_shmat compat_sys_shmat 213 + 193 common shmdt sys_shmdt 214 + 194 common shmget sys_shmget 215 + 195 common shmctl sys_shmctl compat_sys_shmctl 216 + # 196 was getpmsg 217 + # 197 was putpmsg 218 + 198 common lstat64 sys_lstat64 219 + 199 32 truncate64 parisc_truncate64 220 + 199 64 truncate64 sys_truncate64 221 + 200 32 ftruncate64 parisc_ftruncate64 222 + 200 64 ftruncate64 sys_ftruncate64 223 + 201 common getdents64 sys_getdents64 224 + 202 common fcntl64 sys_fcntl64 compat_sys_fcntl64 225 + # 203 was attrctl 226 + # 204 was acl_get 227 + # 205 was acl_set 228 + 206 common gettid sys_gettid 229 + 207 32 readahead parisc_readahead 230 + 207 64 readahead sys_readahead 231 + 208 common tkill sys_tkill 232 + 209 common sendfile64 sys_sendfile64 compat_sys_sendfile64 233 + 210 32 futex sys_futex_time32 234 + 210 64 futex sys_futex 235 + 211 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 236 + 212 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 237 + # 213 was set_thread_area 238 + # 214 was get_thread_area 239 + 215 common io_setup sys_io_setup compat_sys_io_setup 240 + 216 common io_destroy sys_io_destroy 241 + 217 32 io_getevents sys_io_getevents_time32 242 + 217 64 io_getevents sys_io_getevents 243 + 218 common io_submit sys_io_submit compat_sys_io_submit 244 + 219 common io_cancel sys_io_cancel 245 + # 220 was alloc_hugepages 246 + # 221 was free_hugepages 247 + 222 common exit_group sys_exit_group 248 + 223 common lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 249 + 224 common epoll_create sys_epoll_create 250 + 225 common epoll_ctl sys_epoll_ctl 251 + 226 common epoll_wait sys_epoll_wait 252 + 227 common remap_file_pages sys_remap_file_pages 253 + 228 32 semtimedop sys_semtimedop_time32 254 + 228 64 semtimedop sys_semtimedop 255 + 229 common mq_open sys_mq_open compat_sys_mq_open 256 + 230 common mq_unlink sys_mq_unlink 257 + 231 32 mq_timedsend sys_mq_timedsend_time32 258 + 231 64 mq_timedsend sys_mq_timedsend 259 + 232 32 mq_timedreceive sys_mq_timedreceive_time32 260 + 232 64 mq_timedreceive sys_mq_timedreceive 261 + 233 common mq_notify sys_mq_notify compat_sys_mq_notify 262 + 234 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 263 + 235 common waitid sys_waitid compat_sys_waitid 264 + 236 32 fadvise64_64 parisc_fadvise64_64 265 + 236 64 fadvise64_64 sys_fadvise64_64 266 + 237 common set_tid_address sys_set_tid_address 267 + 238 common setxattr sys_setxattr 268 + 239 common lsetxattr sys_lsetxattr 269 + 240 common fsetxattr sys_fsetxattr 270 + 241 common getxattr sys_getxattr 271 + 242 common lgetxattr sys_lgetxattr 272 + 243 common fgetxattr sys_fgetxattr 273 + 244 common listxattr sys_listxattr 274 + 245 common llistxattr sys_llistxattr 275 + 246 common flistxattr sys_flistxattr 276 + 247 common removexattr sys_removexattr 277 + 248 common lremovexattr sys_lremovexattr 278 + 249 common fremovexattr sys_fremovexattr 279 + 250 common timer_create sys_timer_create compat_sys_timer_create 280 + 251 32 timer_settime sys_timer_settime32 281 + 251 64 timer_settime sys_timer_settime 282 + 252 32 timer_gettime sys_timer_gettime32 283 + 252 64 timer_gettime sys_timer_gettime 284 + 253 common timer_getoverrun sys_timer_getoverrun 285 + 254 common timer_delete sys_timer_delete 286 + 255 32 clock_settime sys_clock_settime32 287 + 255 64 clock_settime sys_clock_settime 288 + 256 32 clock_gettime sys_clock_gettime32 289 + 256 64 clock_gettime sys_clock_gettime 290 + 257 32 clock_getres sys_clock_getres_time32 291 + 257 64 clock_getres sys_clock_getres 292 + 258 32 clock_nanosleep sys_clock_nanosleep_time32 293 + 258 64 clock_nanosleep sys_clock_nanosleep 294 + 259 common tgkill sys_tgkill 295 + 260 common mbind sys_mbind compat_sys_mbind 296 + 261 common get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 297 + 262 common set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 298 + # 263 was vserver 299 + 264 common add_key sys_add_key 300 + 265 common request_key sys_request_key 301 + 266 common keyctl sys_keyctl compat_sys_keyctl 302 + 267 common ioprio_set sys_ioprio_set 303 + 268 common ioprio_get sys_ioprio_get 304 + 269 common inotify_init sys_inotify_init 305 + 270 common inotify_add_watch sys_inotify_add_watch 306 + 271 common inotify_rm_watch sys_inotify_rm_watch 307 + 272 common migrate_pages sys_migrate_pages 308 + 273 32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 309 + 273 64 pselect6 sys_pselect6 310 + 274 32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32 311 + 274 64 ppoll sys_ppoll 312 + 275 common openat sys_openat compat_sys_openat 313 + 276 common mkdirat sys_mkdirat 314 + 277 common mknodat sys_mknodat 315 + 278 common fchownat sys_fchownat 316 + 279 32 futimesat sys_futimesat_time32 317 + 279 64 futimesat sys_futimesat 318 + 280 common fstatat64 sys_fstatat64 319 + 281 common unlinkat sys_unlinkat 320 + 282 common renameat sys_renameat 321 + 283 common linkat sys_linkat 322 + 284 common symlinkat sys_symlinkat 323 + 285 common readlinkat sys_readlinkat 324 + 286 common fchmodat sys_fchmodat 325 + 287 common faccessat sys_faccessat 326 + 288 common unshare sys_unshare 327 + 289 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 328 + 290 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 329 + 291 common splice sys_splice 330 + 292 32 sync_file_range parisc_sync_file_range 331 + 292 64 sync_file_range sys_sync_file_range 332 + 293 common tee sys_tee 333 + 294 common vmsplice sys_vmsplice compat_sys_vmsplice 334 + 295 common move_pages sys_move_pages compat_sys_move_pages 335 + 296 common getcpu sys_getcpu 336 + 297 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 337 + 298 common statfs64 sys_statfs64 compat_sys_statfs64 338 + 299 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 339 + 300 common kexec_load sys_kexec_load compat_sys_kexec_load 340 + 301 32 utimensat sys_utimensat_time32 341 + 301 64 utimensat sys_utimensat 342 + 302 common signalfd sys_signalfd compat_sys_signalfd 343 + # 303 was timerfd 344 + 304 common eventfd sys_eventfd 345 + 305 32 fallocate parisc_fallocate 346 + 305 64 fallocate sys_fallocate 347 + 306 common timerfd_create sys_timerfd_create 348 + 307 32 timerfd_settime sys_timerfd_settime32 349 + 307 64 timerfd_settime sys_timerfd_settime 350 + 308 32 timerfd_gettime sys_timerfd_gettime32 351 + 308 64 timerfd_gettime sys_timerfd_gettime 352 + 309 common signalfd4 sys_signalfd4 compat_sys_signalfd4 353 + 310 common eventfd2 sys_eventfd2 354 + 311 common epoll_create1 sys_epoll_create1 355 + 312 common dup3 sys_dup3 356 + 313 common pipe2 sys_pipe2 357 + 314 common inotify_init1 sys_inotify_init1 358 + 315 common preadv sys_preadv compat_sys_preadv 359 + 316 common pwritev sys_pwritev compat_sys_pwritev 360 + 317 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 361 + 318 common perf_event_open sys_perf_event_open 362 + 319 32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 363 + 319 64 recvmmsg sys_recvmmsg 364 + 320 common accept4 sys_accept4 365 + 321 common prlimit64 sys_prlimit64 366 + 322 common fanotify_init sys_fanotify_init 367 + 323 common fanotify_mark sys_fanotify_mark sys32_fanotify_mark 368 + 324 32 clock_adjtime sys_clock_adjtime32 369 + 324 64 clock_adjtime sys_clock_adjtime 370 + 325 common name_to_handle_at sys_name_to_handle_at 371 + 326 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 372 + 327 common syncfs sys_syncfs 373 + 328 common setns sys_setns 374 + 329 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 375 + 330 common process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 376 + 331 common process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 377 + 332 common kcmp sys_kcmp 378 + 333 common finit_module sys_finit_module 379 + 334 common sched_setattr sys_sched_setattr 380 + 335 common sched_getattr sys_sched_getattr 381 + 336 32 utimes sys_utimes_time32 382 + 336 64 utimes sys_utimes 383 + 337 common renameat2 sys_renameat2 384 + 338 common seccomp sys_seccomp 385 + 339 common getrandom sys_getrandom 386 + 340 common memfd_create sys_memfd_create 387 + 341 common bpf sys_bpf 388 + 342 common execveat sys_execveat compat_sys_execveat 389 + 343 common membarrier sys_membarrier 390 + 344 common userfaultfd sys_userfaultfd 391 + 345 common mlock2 sys_mlock2 392 + 346 common copy_file_range sys_copy_file_range 393 + 347 common preadv2 sys_preadv2 compat_sys_preadv2 394 + 348 common pwritev2 sys_pwritev2 compat_sys_pwritev2 395 + 349 common statx sys_statx 396 + 350 32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 397 + 350 64 io_pgetevents sys_io_pgetevents 398 + 351 common pkey_mprotect sys_pkey_mprotect 399 + 352 common pkey_alloc sys_pkey_alloc 400 + 353 common pkey_free sys_pkey_free 401 + 354 common rseq sys_rseq 402 + 355 common kexec_file_load sys_kexec_file_load sys_kexec_file_load 403 + # up to 402 is unassigned and reserved for arch specific syscalls 404 + 403 32 clock_gettime64 sys_clock_gettime sys_clock_gettime 405 + 404 32 clock_settime64 sys_clock_settime sys_clock_settime 406 + 405 32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime 407 + 406 32 clock_getres_time64 sys_clock_getres sys_clock_getres 408 + 407 32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep 409 + 408 32 timer_gettime64 sys_timer_gettime sys_timer_gettime 410 + 409 32 timer_settime64 sys_timer_settime sys_timer_settime 411 + 410 32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime 412 + 411 32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime 413 + 412 32 utimensat_time64 sys_utimensat sys_utimensat 414 + 413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 415 + 414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 416 + 416 32 io_pgetevents_time64 sys_io_pgetevents sys_io_pgetevents 417 + 417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 418 + 418 32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend 419 + 419 32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive 420 + 420 32 semtimedop_time64 sys_semtimedop sys_semtimedop 421 + 421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 422 + 422 32 futex_time64 sys_futex sys_futex 423 + 423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval 424 + 424 common pidfd_send_signal sys_pidfd_send_signal 425 + 425 common io_uring_setup sys_io_uring_setup 426 + 426 common io_uring_enter sys_io_uring_enter 427 + 427 common io_uring_register sys_io_uring_register 428 + 428 common open_tree sys_open_tree 429 + 429 common move_mount sys_move_mount 430 + 430 common fsopen sys_fsopen 431 + 431 common fsconfig sys_fsconfig 432 + 432 common fsmount sys_fsmount 433 + 433 common fspick sys_fspick 434 + 434 common pidfd_open sys_pidfd_open 435 + 435 common clone3 sys_clone3_wrapper 436 + 437 common openat2 sys_openat2 437 + 438 common pidfd_getfd sys_pidfd_getfd
-358
linux-user/hppa/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_HPPA_SYSCALL_NR_H 6 - #define LINUX_USER_HPPA_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_restart_syscall 0 9 - #define TARGET_NR_exit 1 10 - #define TARGET_NR_fork 2 11 - #define TARGET_NR_read 3 12 - #define TARGET_NR_write 4 13 - #define TARGET_NR_open 5 14 - #define TARGET_NR_close 6 15 - #define TARGET_NR_waitpid 7 16 - #define TARGET_NR_creat 8 17 - #define TARGET_NR_link 9 18 - #define TARGET_NR_unlink 10 19 - #define TARGET_NR_execve 11 20 - #define TARGET_NR_chdir 12 21 - #define TARGET_NR_time 13 22 - #define TARGET_NR_mknod 14 23 - #define TARGET_NR_chmod 15 24 - #define TARGET_NR_lchown 16 25 - #define TARGET_NR_socket 17 26 - #define TARGET_NR_stat 18 27 - #define TARGET_NR_lseek 19 28 - #define TARGET_NR_getpid 20 29 - #define TARGET_NR_mount 21 30 - #define TARGET_NR_bind 22 31 - #define TARGET_NR_setuid 23 32 - #define TARGET_NR_getuid 24 33 - #define TARGET_NR_stime 25 34 - #define TARGET_NR_ptrace 26 35 - #define TARGET_NR_alarm 27 36 - #define TARGET_NR_fstat 28 37 - #define TARGET_NR_pause 29 38 - #define TARGET_NR_utime 30 39 - #define TARGET_NR_connect 31 40 - #define TARGET_NR_listen 32 41 - #define TARGET_NR_access 33 42 - #define TARGET_NR_nice 34 43 - #define TARGET_NR_accept 35 44 - #define TARGET_NR_sync 36 45 - #define TARGET_NR_kill 37 46 - #define TARGET_NR_rename 38 47 - #define TARGET_NR_mkdir 39 48 - #define TARGET_NR_rmdir 40 49 - #define TARGET_NR_dup 41 50 - #define TARGET_NR_pipe 42 51 - #define TARGET_NR_times 43 52 - #define TARGET_NR_getsockname 44 53 - #define TARGET_NR_brk 45 54 - #define TARGET_NR_setgid 46 55 - #define TARGET_NR_getgid 47 56 - #define TARGET_NR_signal 48 57 - #define TARGET_NR_geteuid 49 58 - #define TARGET_NR_getegid 50 59 - #define TARGET_NR_acct 51 60 - #define TARGET_NR_umount2 52 61 - #define TARGET_NR_getpeername 53 62 - #define TARGET_NR_ioctl 54 63 - #define TARGET_NR_fcntl 55 64 - #define TARGET_NR_socketpair 56 65 - #define TARGET_NR_setpgid 57 66 - #define TARGET_NR_send 58 67 - #define TARGET_NR_uname 59 68 - #define TARGET_NR_umask 60 69 - #define TARGET_NR_chroot 61 70 - #define TARGET_NR_ustat 62 71 - #define TARGET_NR_dup2 63 72 - #define TARGET_NR_getppid 64 73 - #define TARGET_NR_getpgrp 65 74 - #define TARGET_NR_setsid 66 75 - #define TARGET_NR_pivot_root 67 76 - #define TARGET_NR_sgetmask 68 77 - #define TARGET_NR_ssetmask 69 78 - #define TARGET_NR_setreuid 70 79 - #define TARGET_NR_setregid 71 80 - #define TARGET_NR_mincore 72 81 - #define TARGET_NR_sigpending 73 82 - #define TARGET_NR_sethostname 74 83 - #define TARGET_NR_setrlimit 75 84 - #define TARGET_NR_getrlimit 76 85 - #define TARGET_NR_getrusage 77 86 - #define TARGET_NR_gettimeofday 78 87 - #define TARGET_NR_settimeofday 79 88 - #define TARGET_NR_getgroups 80 89 - #define TARGET_NR_setgroups 81 90 - #define TARGET_NR_sendto 82 91 - #define TARGET_NR_symlink 83 92 - #define TARGET_NR_lstat 84 93 - #define TARGET_NR_readlink 85 94 - #define TARGET_NR_uselib 86 95 - #define TARGET_NR_swapon 87 96 - #define TARGET_NR_reboot 88 97 - #define TARGET_NR_mmap2 89 98 - #define TARGET_NR_mmap 90 99 - #define TARGET_NR_munmap 91 100 - #define TARGET_NR_truncate 92 101 - #define TARGET_NR_ftruncate 93 102 - #define TARGET_NR_fchmod 94 103 - #define TARGET_NR_fchown 95 104 - #define TARGET_NR_getpriority 96 105 - #define TARGET_NR_setpriority 97 106 - #define TARGET_NR_recv 98 107 - #define TARGET_NR_statfs 99 108 - #define TARGET_NR_fstatfs 100 109 - #define TARGET_NR_stat64 101 110 - #define TARGET_NR_socketcall 102 111 - #define TARGET_NR_syslog 103 112 - #define TARGET_NR_setitimer 104 113 - #define TARGET_NR_getitimer 105 114 - #define TARGET_NR_capget 106 115 - #define TARGET_NR_capset 107 116 - #define TARGET_NR_pread64 108 117 - #define TARGET_NR_pwrite64 109 118 - #define TARGET_NR_getcwd 110 119 - #define TARGET_NR_vhangup 111 120 - #define TARGET_NR_fstat64 112 121 - #define TARGET_NR_vfork 113 122 - #define TARGET_NR_wait4 114 123 - #define TARGET_NR_swapoff 115 124 - #define TARGET_NR_sysinfo 116 125 - #define TARGET_NR_shutdown 117 126 - #define TARGET_NR_fsync 118 127 - #define TARGET_NR_madvise 119 128 - #define TARGET_NR_clone 120 129 - #define TARGET_NR_setdomainname 121 130 - #define TARGET_NR_sendfile 122 131 - #define TARGET_NR_recvfrom 123 132 - #define TARGET_NR_adjtimex 124 133 - #define TARGET_NR_mprotect 125 134 - #define TARGET_NR_sigprocmask 126 135 - #define TARGET_NR_create_module 127 136 - #define TARGET_NR_init_module 128 137 - #define TARGET_NR_delete_module 129 138 - #define TARGET_NR_get_kernel_syms 130 139 - #define TARGET_NR_quotactl 131 140 - #define TARGET_NR_getpgid 132 141 - #define TARGET_NR_fchdir 133 142 - #define TARGET_NR_bdflush 134 143 - #define TARGET_NR_sysfs 135 144 - #define TARGET_NR_personality 136 145 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 146 - #define TARGET_NR_setfsuid 138 147 - #define TARGET_NR_setfsgid 139 148 - #define TARGET_NR__llseek 140 149 - #define TARGET_NR_getdents 141 150 - #define TARGET_NR__newselect 142 151 - #define TARGET_NR_flock 143 152 - #define TARGET_NR_msync 144 153 - #define TARGET_NR_readv 145 154 - #define TARGET_NR_writev 146 155 - #define TARGET_NR_getsid 147 156 - #define TARGET_NR_fdatasync 148 157 - #define TARGET_NR__sysctl 149 158 - #define TARGET_NR_mlock 150 159 - #define TARGET_NR_munlock 151 160 - #define TARGET_NR_mlockall 152 161 - #define TARGET_NR_munlockall 153 162 - #define TARGET_NR_sched_setparam 154 163 - #define TARGET_NR_sched_getparam 155 164 - #define TARGET_NR_sched_setscheduler 156 165 - #define TARGET_NR_sched_getscheduler 157 166 - #define TARGET_NR_sched_yield 158 167 - #define TARGET_NR_sched_get_priority_max 159 168 - #define TARGET_NR_sched_get_priority_min 160 169 - #define TARGET_NR_sched_rr_get_interval 161 170 - #define TARGET_NR_nanosleep 162 171 - #define TARGET_NR_mremap 163 172 - #define TARGET_NR_setresuid 164 173 - #define TARGET_NR_getresuid 165 174 - #define TARGET_NR_sigaltstack 166 175 - #define TARGET_NR_query_module 167 176 - #define TARGET_NR_poll 168 177 - #define TARGET_NR_nfsservctl 169 178 - #define TARGET_NR_setresgid 170 179 - #define TARGET_NR_getresgid 171 180 - #define TARGET_NR_prctl 172 181 - #define TARGET_NR_rt_sigreturn 173 182 - #define TARGET_NR_rt_sigaction 174 183 - #define TARGET_NR_rt_sigprocmask 175 184 - #define TARGET_NR_rt_sigpending 176 185 - #define TARGET_NR_rt_sigtimedwait 177 186 - #define TARGET_NR_rt_sigqueueinfo 178 187 - #define TARGET_NR_rt_sigsuspend 179 188 - #define TARGET_NR_chown 180 189 - #define TARGET_NR_setsockopt 181 190 - #define TARGET_NR_getsockopt 182 191 - #define TARGET_NR_sendmsg 183 192 - #define TARGET_NR_recvmsg 184 193 - #define TARGET_NR_semop 185 194 - #define TARGET_NR_semget 186 195 - #define TARGET_NR_semctl 187 196 - #define TARGET_NR_msgsnd 188 197 - #define TARGET_NR_msgrcv 189 198 - #define TARGET_NR_msgget 190 199 - #define TARGET_NR_msgctl 191 200 - #define TARGET_NR_shmat 192 201 - #define TARGET_NR_shmdt 193 202 - #define TARGET_NR_shmget 194 203 - #define TARGET_NR_shmctl 195 204 - #define TARGET_NR_getpmsg 196 205 - #define TARGET_NR_putpmsg 197 206 - #define TARGET_NR_lstat64 198 207 - #define TARGET_NR_truncate64 199 208 - #define TARGET_NR_ftruncate64 200 209 - #define TARGET_NR_getdents64 201 210 - #define TARGET_NR_fcntl64 202 211 - #define TARGET_NR_attrctl 203 212 - #define TARGET_NR_acl_get 204 213 - #define TARGET_NR_acl_set 205 214 - #define TARGET_NR_gettid 206 215 - #define TARGET_NR_readahead 207 216 - #define TARGET_NR_tkill 208 217 - #define TARGET_NR_sendfile64 209 218 - #define TARGET_NR_futex 210 219 - #define TARGET_NR_sched_setaffinity 211 220 - #define TARGET_NR_sched_getaffinity 212 221 - #define TARGET_NR_set_thread_area 213 222 - #define TARGET_NR_get_thread_area 214 223 - #define TARGET_NR_io_setup 215 224 - #define TARGET_NR_io_destroy 216 225 - #define TARGET_NR_io_getevents 217 226 - #define TARGET_NR_io_submit 218 227 - #define TARGET_NR_io_cancel 219 228 - #define TARGET_NR_alloc_hugepages 220 229 - #define TARGET_NR_free_hugepages 221 230 - #define TARGET_NR_exit_group 222 231 - #define TARGET_NR_lookup_dcookie 223 232 - #define TARGET_NR_epoll_create 224 233 - #define TARGET_NR_epoll_ctl 225 234 - #define TARGET_NR_epoll_wait 226 235 - #define TARGET_NR_remap_file_pages 227 236 - #define TARGET_NR_semtimedop 228 237 - #define TARGET_NR_mq_open 229 238 - #define TARGET_NR_mq_unlink 230 239 - #define TARGET_NR_mq_timedsend 231 240 - #define TARGET_NR_mq_timedreceive 232 241 - #define TARGET_NR_mq_notify 233 242 - #define TARGET_NR_mq_getsetattr 234 243 - #define TARGET_NR_waitid 235 244 - #define TARGET_NR_fadvise64_64 236 245 - #define TARGET_NR_set_tid_address 237 246 - #define TARGET_NR_setxattr 238 247 - #define TARGET_NR_lsetxattr 239 248 - #define TARGET_NR_fsetxattr 240 249 - #define TARGET_NR_getxattr 241 250 - #define TARGET_NR_lgetxattr 242 251 - #define TARGET_NR_fgetxattr 243 252 - #define TARGET_NR_listxattr 244 253 - #define TARGET_NR_llistxattr 245 254 - #define TARGET_NR_flistxattr 246 255 - #define TARGET_NR_removexattr 247 256 - #define TARGET_NR_lremovexattr 248 257 - #define TARGET_NR_fremovexattr 249 258 - #define TARGET_NR_timer_create 250 259 - #define TARGET_NR_timer_settime 251 260 - #define TARGET_NR_timer_gettime 252 261 - #define TARGET_NR_timer_getoverrun 253 262 - #define TARGET_NR_timer_delete 254 263 - #define TARGET_NR_clock_settime 255 264 - #define TARGET_NR_clock_gettime 256 265 - #define TARGET_NR_clock_getres 257 266 - #define TARGET_NR_clock_nanosleep 258 267 - #define TARGET_NR_tgkill 259 268 - #define TARGET_NR_mbind 260 269 - #define TARGET_NR_get_mempolicy 261 270 - #define TARGET_NR_set_mempolicy 262 271 - #define TARGET_NR_vserver 263 272 - #define TARGET_NR_add_key 264 273 - #define TARGET_NR_request_key 265 274 - #define TARGET_NR_keyctl 266 275 - #define TARGET_NR_ioprio_set 267 276 - #define TARGET_NR_ioprio_get 268 277 - #define TARGET_NR_inotify_init 269 278 - #define TARGET_NR_inotify_add_watch 270 279 - #define TARGET_NR_inotify_rm_watch 271 280 - #define TARGET_NR_migrate_pages 272 281 - #define TARGET_NR_pselect6 273 282 - #define TARGET_NR_ppoll 274 283 - #define TARGET_NR_openat 275 284 - #define TARGET_NR_mkdirat 276 285 - #define TARGET_NR_mknodat 277 286 - #define TARGET_NR_fchownat 278 287 - #define TARGET_NR_futimesat 279 288 - #define TARGET_NR_fstatat64 280 289 - #define TARGET_NR_unlinkat 281 290 - #define TARGET_NR_renameat 282 291 - #define TARGET_NR_linkat 283 292 - #define TARGET_NR_symlinkat 284 293 - #define TARGET_NR_readlinkat 285 294 - #define TARGET_NR_fchmodat 286 295 - #define TARGET_NR_faccessat 287 296 - #define TARGET_NR_unshare 288 297 - #define TARGET_NR_set_robust_list 289 298 - #define TARGET_NR_get_robust_list 290 299 - #define TARGET_NR_splice 291 300 - #define TARGET_NR_sync_file_range 292 301 - #define TARGET_NR_tee 293 302 - #define TARGET_NR_vmsplice 294 303 - #define TARGET_NR_move_pages 295 304 - #define TARGET_NR_getcpu 296 305 - #define TARGET_NR_epoll_pwait 297 306 - #define TARGET_NR_statfs64 298 307 - #define TARGET_NR_fstatfs64 299 308 - #define TARGET_NR_kexec_load 300 309 - #define TARGET_NR_utimensat 301 310 - #define TARGET_NR_signalfd 302 311 - #define TARGET_NR_timerfd 303 312 - #define TARGET_NR_eventfd 304 313 - #define TARGET_NR_fallocate 305 314 - #define TARGET_NR_timerfd_create 306 315 - #define TARGET_NR_timerfd_settime 307 316 - #define TARGET_NR_timerfd_gettime 308 317 - #define TARGET_NR_signalfd4 309 318 - #define TARGET_NR_eventfd2 310 319 - #define TARGET_NR_epoll_create1 311 320 - #define TARGET_NR_dup3 312 321 - #define TARGET_NR_pipe2 313 322 - #define TARGET_NR_inotify_init1 314 323 - #define TARGET_NR_preadv 315 324 - #define TARGET_NR_pwritev 316 325 - #define TARGET_NR_rt_tgsigqueueinfo 317 326 - #define TARGET_NR_perf_event_open 318 327 - #define TARGET_NR_recvmmsg 319 328 - #define TARGET_NR_accept4 320 329 - #define TARGET_NR_prlimit64 321 330 - #define TARGET_NR_fanotify_init 322 331 - #define TARGET_NR_fanotify_mark 323 332 - #define TARGET_NR_clock_adjtime 324 333 - #define TARGET_NR_name_to_handle_at 325 334 - #define TARGET_NR_open_by_handle_at 326 335 - #define TARGET_NR_syncfs 327 336 - #define TARGET_NR_setns 328 337 - #define TARGET_NR_sendmmsg 329 338 - #define TARGET_NR_process_vm_readv 330 339 - #define TARGET_NR_process_vm_writev 331 340 - #define TARGET_NR_kcmp 332 341 - #define TARGET_NR_finit_module 333 342 - #define TARGET_NR_sched_setattr 334 343 - #define TARGET_NR_sched_getattr 335 344 - #define TARGET_NR_utimes 336 345 - #define TARGET_NR_renameat2 337 346 - #define TARGET_NR_seccomp 338 347 - #define TARGET_NR_getrandom 339 348 - #define TARGET_NR_memfd_create 340 349 - #define TARGET_NR_bpf 341 350 - #define TARGET_NR_execveat 342 351 - #define TARGET_NR_membarrier 343 352 - #define TARGET_NR_userfaultfd 344 353 - #define TARGET_NR_mlock2 345 354 - #define TARGET_NR_copy_file_range 346 355 - #define TARGET_NR_preadv2 347 356 - #define TARGET_NR_pwritev2 348 357 - 358 - #endif
+32
linux-user/hppa/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_HPPA_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry compat ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+5
linux-user/i386/Makefile.objs
··· 1 + generated-files-y += linux-user/i386/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/i386/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/i386/syscall_32.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+444
linux-user/i386/syscall_32.tbl
··· 1 + # 2 + # 32-bit system call numbers and entry vectors 3 + # 4 + # The format is: 5 + # <number> <abi> <name> <entry point> <compat entry point> 6 + # 7 + # The __ia32_sys and __ia32_compat_sys stubs are created on-the-fly for 8 + # sys_*() system calls and compat_sys_*() compat system calls if 9 + # IA32_EMULATION is defined, and expect struct pt_regs *regs as their only 10 + # parameter. 11 + # 12 + # The abi is always "i386" for this file. 13 + # 14 + 0 i386 restart_syscall sys_restart_syscall __ia32_sys_restart_syscall 15 + 1 i386 exit sys_exit __ia32_sys_exit 16 + 2 i386 fork sys_fork __ia32_sys_fork 17 + 3 i386 read sys_read __ia32_sys_read 18 + 4 i386 write sys_write __ia32_sys_write 19 + 5 i386 open sys_open __ia32_compat_sys_open 20 + 6 i386 close sys_close __ia32_sys_close 21 + 7 i386 waitpid sys_waitpid __ia32_sys_waitpid 22 + 8 i386 creat sys_creat __ia32_sys_creat 23 + 9 i386 link sys_link __ia32_sys_link 24 + 10 i386 unlink sys_unlink __ia32_sys_unlink 25 + 11 i386 execve sys_execve __ia32_compat_sys_execve 26 + 12 i386 chdir sys_chdir __ia32_sys_chdir 27 + 13 i386 time sys_time32 __ia32_sys_time32 28 + 14 i386 mknod sys_mknod __ia32_sys_mknod 29 + 15 i386 chmod sys_chmod __ia32_sys_chmod 30 + 16 i386 lchown sys_lchown16 __ia32_sys_lchown16 31 + 17 i386 break 32 + 18 i386 oldstat sys_stat __ia32_sys_stat 33 + 19 i386 lseek sys_lseek __ia32_compat_sys_lseek 34 + 20 i386 getpid sys_getpid __ia32_sys_getpid 35 + 21 i386 mount sys_mount __ia32_compat_sys_mount 36 + 22 i386 umount sys_oldumount __ia32_sys_oldumount 37 + 23 i386 setuid sys_setuid16 __ia32_sys_setuid16 38 + 24 i386 getuid sys_getuid16 __ia32_sys_getuid16 39 + 25 i386 stime sys_stime32 __ia32_sys_stime32 40 + 26 i386 ptrace sys_ptrace __ia32_compat_sys_ptrace 41 + 27 i386 alarm sys_alarm __ia32_sys_alarm 42 + 28 i386 oldfstat sys_fstat __ia32_sys_fstat 43 + 29 i386 pause sys_pause __ia32_sys_pause 44 + 30 i386 utime sys_utime32 __ia32_sys_utime32 45 + 31 i386 stty 46 + 32 i386 gtty 47 + 33 i386 access sys_access __ia32_sys_access 48 + 34 i386 nice sys_nice __ia32_sys_nice 49 + 35 i386 ftime 50 + 36 i386 sync sys_sync __ia32_sys_sync 51 + 37 i386 kill sys_kill __ia32_sys_kill 52 + 38 i386 rename sys_rename __ia32_sys_rename 53 + 39 i386 mkdir sys_mkdir __ia32_sys_mkdir 54 + 40 i386 rmdir sys_rmdir __ia32_sys_rmdir 55 + 41 i386 dup sys_dup __ia32_sys_dup 56 + 42 i386 pipe sys_pipe __ia32_sys_pipe 57 + 43 i386 times sys_times __ia32_compat_sys_times 58 + 44 i386 prof 59 + 45 i386 brk sys_brk __ia32_sys_brk 60 + 46 i386 setgid sys_setgid16 __ia32_sys_setgid16 61 + 47 i386 getgid sys_getgid16 __ia32_sys_getgid16 62 + 48 i386 signal sys_signal __ia32_sys_signal 63 + 49 i386 geteuid sys_geteuid16 __ia32_sys_geteuid16 64 + 50 i386 getegid sys_getegid16 __ia32_sys_getegid16 65 + 51 i386 acct sys_acct __ia32_sys_acct 66 + 52 i386 umount2 sys_umount __ia32_sys_umount 67 + 53 i386 lock 68 + 54 i386 ioctl sys_ioctl __ia32_compat_sys_ioctl 69 + 55 i386 fcntl sys_fcntl __ia32_compat_sys_fcntl64 70 + 56 i386 mpx 71 + 57 i386 setpgid sys_setpgid __ia32_sys_setpgid 72 + 58 i386 ulimit 73 + 59 i386 oldolduname sys_olduname __ia32_sys_olduname 74 + 60 i386 umask sys_umask __ia32_sys_umask 75 + 61 i386 chroot sys_chroot __ia32_sys_chroot 76 + 62 i386 ustat sys_ustat __ia32_compat_sys_ustat 77 + 63 i386 dup2 sys_dup2 __ia32_sys_dup2 78 + 64 i386 getppid sys_getppid __ia32_sys_getppid 79 + 65 i386 getpgrp sys_getpgrp __ia32_sys_getpgrp 80 + 66 i386 setsid sys_setsid __ia32_sys_setsid 81 + 67 i386 sigaction sys_sigaction __ia32_compat_sys_sigaction 82 + 68 i386 sgetmask sys_sgetmask __ia32_sys_sgetmask 83 + 69 i386 ssetmask sys_ssetmask __ia32_sys_ssetmask 84 + 70 i386 setreuid sys_setreuid16 __ia32_sys_setreuid16 85 + 71 i386 setregid sys_setregid16 __ia32_sys_setregid16 86 + 72 i386 sigsuspend sys_sigsuspend __ia32_sys_sigsuspend 87 + 73 i386 sigpending sys_sigpending __ia32_compat_sys_sigpending 88 + 74 i386 sethostname sys_sethostname __ia32_sys_sethostname 89 + 75 i386 setrlimit sys_setrlimit __ia32_compat_sys_setrlimit 90 + 76 i386 getrlimit sys_old_getrlimit __ia32_compat_sys_old_getrlimit 91 + 77 i386 getrusage sys_getrusage __ia32_compat_sys_getrusage 92 + 78 i386 gettimeofday sys_gettimeofday __ia32_compat_sys_gettimeofday 93 + 79 i386 settimeofday sys_settimeofday __ia32_compat_sys_settimeofday 94 + 80 i386 getgroups sys_getgroups16 __ia32_sys_getgroups16 95 + 81 i386 setgroups sys_setgroups16 __ia32_sys_setgroups16 96 + 82 i386 select sys_old_select __ia32_compat_sys_old_select 97 + 83 i386 symlink sys_symlink __ia32_sys_symlink 98 + 84 i386 oldlstat sys_lstat __ia32_sys_lstat 99 + 85 i386 readlink sys_readlink __ia32_sys_readlink 100 + 86 i386 uselib sys_uselib __ia32_sys_uselib 101 + 87 i386 swapon sys_swapon __ia32_sys_swapon 102 + 88 i386 reboot sys_reboot __ia32_sys_reboot 103 + 89 i386 readdir sys_old_readdir __ia32_compat_sys_old_readdir 104 + 90 i386 mmap sys_old_mmap __ia32_compat_sys_x86_mmap 105 + 91 i386 munmap sys_munmap __ia32_sys_munmap 106 + 92 i386 truncate sys_truncate __ia32_compat_sys_truncate 107 + 93 i386 ftruncate sys_ftruncate __ia32_compat_sys_ftruncate 108 + 94 i386 fchmod sys_fchmod __ia32_sys_fchmod 109 + 95 i386 fchown sys_fchown16 __ia32_sys_fchown16 110 + 96 i386 getpriority sys_getpriority __ia32_sys_getpriority 111 + 97 i386 setpriority sys_setpriority __ia32_sys_setpriority 112 + 98 i386 profil 113 + 99 i386 statfs sys_statfs __ia32_compat_sys_statfs 114 + 100 i386 fstatfs sys_fstatfs __ia32_compat_sys_fstatfs 115 + 101 i386 ioperm sys_ioperm __ia32_sys_ioperm 116 + 102 i386 socketcall sys_socketcall __ia32_compat_sys_socketcall 117 + 103 i386 syslog sys_syslog __ia32_sys_syslog 118 + 104 i386 setitimer sys_setitimer __ia32_compat_sys_setitimer 119 + 105 i386 getitimer sys_getitimer __ia32_compat_sys_getitimer 120 + 106 i386 stat sys_newstat __ia32_compat_sys_newstat 121 + 107 i386 lstat sys_newlstat __ia32_compat_sys_newlstat 122 + 108 i386 fstat sys_newfstat __ia32_compat_sys_newfstat 123 + 109 i386 olduname sys_uname __ia32_sys_uname 124 + 110 i386 iopl sys_iopl __ia32_sys_iopl 125 + 111 i386 vhangup sys_vhangup __ia32_sys_vhangup 126 + 112 i386 idle 127 + 113 i386 vm86old sys_vm86old __ia32_sys_ni_syscall 128 + 114 i386 wait4 sys_wait4 __ia32_compat_sys_wait4 129 + 115 i386 swapoff sys_swapoff __ia32_sys_swapoff 130 + 116 i386 sysinfo sys_sysinfo __ia32_compat_sys_sysinfo 131 + 117 i386 ipc sys_ipc __ia32_compat_sys_ipc 132 + 118 i386 fsync sys_fsync __ia32_sys_fsync 133 + 119 i386 sigreturn sys_sigreturn __ia32_compat_sys_sigreturn 134 + 120 i386 clone sys_clone __ia32_compat_sys_x86_clone 135 + 121 i386 setdomainname sys_setdomainname __ia32_sys_setdomainname 136 + 122 i386 uname sys_newuname __ia32_sys_newuname 137 + 123 i386 modify_ldt sys_modify_ldt __ia32_sys_modify_ldt 138 + 124 i386 adjtimex sys_adjtimex_time32 __ia32_sys_adjtimex_time32 139 + 125 i386 mprotect sys_mprotect __ia32_sys_mprotect 140 + 126 i386 sigprocmask sys_sigprocmask __ia32_compat_sys_sigprocmask 141 + 127 i386 create_module 142 + 128 i386 init_module sys_init_module __ia32_sys_init_module 143 + 129 i386 delete_module sys_delete_module __ia32_sys_delete_module 144 + 130 i386 get_kernel_syms 145 + 131 i386 quotactl sys_quotactl __ia32_compat_sys_quotactl32 146 + 132 i386 getpgid sys_getpgid __ia32_sys_getpgid 147 + 133 i386 fchdir sys_fchdir __ia32_sys_fchdir 148 + 134 i386 bdflush sys_bdflush __ia32_sys_bdflush 149 + 135 i386 sysfs sys_sysfs __ia32_sys_sysfs 150 + 136 i386 personality sys_personality __ia32_sys_personality 151 + 137 i386 afs_syscall 152 + 138 i386 setfsuid sys_setfsuid16 __ia32_sys_setfsuid16 153 + 139 i386 setfsgid sys_setfsgid16 __ia32_sys_setfsgid16 154 + 140 i386 _llseek sys_llseek __ia32_sys_llseek 155 + 141 i386 getdents sys_getdents __ia32_compat_sys_getdents 156 + 142 i386 _newselect sys_select __ia32_compat_sys_select 157 + 143 i386 flock sys_flock __ia32_sys_flock 158 + 144 i386 msync sys_msync __ia32_sys_msync 159 + 145 i386 readv sys_readv __ia32_compat_sys_readv 160 + 146 i386 writev sys_writev __ia32_compat_sys_writev 161 + 147 i386 getsid sys_getsid __ia32_sys_getsid 162 + 148 i386 fdatasync sys_fdatasync __ia32_sys_fdatasync 163 + 149 i386 _sysctl sys_sysctl __ia32_compat_sys_sysctl 164 + 150 i386 mlock sys_mlock __ia32_sys_mlock 165 + 151 i386 munlock sys_munlock __ia32_sys_munlock 166 + 152 i386 mlockall sys_mlockall __ia32_sys_mlockall 167 + 153 i386 munlockall sys_munlockall __ia32_sys_munlockall 168 + 154 i386 sched_setparam sys_sched_setparam __ia32_sys_sched_setparam 169 + 155 i386 sched_getparam sys_sched_getparam __ia32_sys_sched_getparam 170 + 156 i386 sched_setscheduler sys_sched_setscheduler __ia32_sys_sched_setscheduler 171 + 157 i386 sched_getscheduler sys_sched_getscheduler __ia32_sys_sched_getscheduler 172 + 158 i386 sched_yield sys_sched_yield __ia32_sys_sched_yield 173 + 159 i386 sched_get_priority_max sys_sched_get_priority_max __ia32_sys_sched_get_priority_max 174 + 160 i386 sched_get_priority_min sys_sched_get_priority_min __ia32_sys_sched_get_priority_min 175 + 161 i386 sched_rr_get_interval sys_sched_rr_get_interval_time32 __ia32_sys_sched_rr_get_interval_time32 176 + 162 i386 nanosleep sys_nanosleep_time32 __ia32_sys_nanosleep_time32 177 + 163 i386 mremap sys_mremap __ia32_sys_mremap 178 + 164 i386 setresuid sys_setresuid16 __ia32_sys_setresuid16 179 + 165 i386 getresuid sys_getresuid16 __ia32_sys_getresuid16 180 + 166 i386 vm86 sys_vm86 __ia32_sys_ni_syscall 181 + 167 i386 query_module 182 + 168 i386 poll sys_poll __ia32_sys_poll 183 + 169 i386 nfsservctl 184 + 170 i386 setresgid sys_setresgid16 __ia32_sys_setresgid16 185 + 171 i386 getresgid sys_getresgid16 __ia32_sys_getresgid16 186 + 172 i386 prctl sys_prctl __ia32_sys_prctl 187 + 173 i386 rt_sigreturn sys_rt_sigreturn __ia32_compat_sys_rt_sigreturn 188 + 174 i386 rt_sigaction sys_rt_sigaction __ia32_compat_sys_rt_sigaction 189 + 175 i386 rt_sigprocmask sys_rt_sigprocmask __ia32_compat_sys_rt_sigprocmask 190 + 176 i386 rt_sigpending sys_rt_sigpending __ia32_compat_sys_rt_sigpending 191 + 177 i386 rt_sigtimedwait sys_rt_sigtimedwait_time32 __ia32_compat_sys_rt_sigtimedwait_time32 192 + 178 i386 rt_sigqueueinfo sys_rt_sigqueueinfo __ia32_compat_sys_rt_sigqueueinfo 193 + 179 i386 rt_sigsuspend sys_rt_sigsuspend __ia32_compat_sys_rt_sigsuspend 194 + 180 i386 pread64 sys_pread64 __ia32_compat_sys_x86_pread 195 + 181 i386 pwrite64 sys_pwrite64 __ia32_compat_sys_x86_pwrite 196 + 182 i386 chown sys_chown16 __ia32_sys_chown16 197 + 183 i386 getcwd sys_getcwd __ia32_sys_getcwd 198 + 184 i386 capget sys_capget __ia32_sys_capget 199 + 185 i386 capset sys_capset __ia32_sys_capset 200 + 186 i386 sigaltstack sys_sigaltstack __ia32_compat_sys_sigaltstack 201 + 187 i386 sendfile sys_sendfile __ia32_compat_sys_sendfile 202 + 188 i386 getpmsg 203 + 189 i386 putpmsg 204 + 190 i386 vfork sys_vfork __ia32_sys_vfork 205 + 191 i386 ugetrlimit sys_getrlimit __ia32_compat_sys_getrlimit 206 + 192 i386 mmap2 sys_mmap_pgoff __ia32_sys_mmap_pgoff 207 + 193 i386 truncate64 sys_truncate64 __ia32_compat_sys_x86_truncate64 208 + 194 i386 ftruncate64 sys_ftruncate64 __ia32_compat_sys_x86_ftruncate64 209 + 195 i386 stat64 sys_stat64 __ia32_compat_sys_x86_stat64 210 + 196 i386 lstat64 sys_lstat64 __ia32_compat_sys_x86_lstat64 211 + 197 i386 fstat64 sys_fstat64 __ia32_compat_sys_x86_fstat64 212 + 198 i386 lchown32 sys_lchown __ia32_sys_lchown 213 + 199 i386 getuid32 sys_getuid __ia32_sys_getuid 214 + 200 i386 getgid32 sys_getgid __ia32_sys_getgid 215 + 201 i386 geteuid32 sys_geteuid __ia32_sys_geteuid 216 + 202 i386 getegid32 sys_getegid __ia32_sys_getegid 217 + 203 i386 setreuid32 sys_setreuid __ia32_sys_setreuid 218 + 204 i386 setregid32 sys_setregid __ia32_sys_setregid 219 + 205 i386 getgroups32 sys_getgroups __ia32_sys_getgroups 220 + 206 i386 setgroups32 sys_setgroups __ia32_sys_setgroups 221 + 207 i386 fchown32 sys_fchown __ia32_sys_fchown 222 + 208 i386 setresuid32 sys_setresuid __ia32_sys_setresuid 223 + 209 i386 getresuid32 sys_getresuid __ia32_sys_getresuid 224 + 210 i386 setresgid32 sys_setresgid __ia32_sys_setresgid 225 + 211 i386 getresgid32 sys_getresgid __ia32_sys_getresgid 226 + 212 i386 chown32 sys_chown __ia32_sys_chown 227 + 213 i386 setuid32 sys_setuid __ia32_sys_setuid 228 + 214 i386 setgid32 sys_setgid __ia32_sys_setgid 229 + 215 i386 setfsuid32 sys_setfsuid __ia32_sys_setfsuid 230 + 216 i386 setfsgid32 sys_setfsgid __ia32_sys_setfsgid 231 + 217 i386 pivot_root sys_pivot_root __ia32_sys_pivot_root 232 + 218 i386 mincore sys_mincore __ia32_sys_mincore 233 + 219 i386 madvise sys_madvise __ia32_sys_madvise 234 + 220 i386 getdents64 sys_getdents64 __ia32_sys_getdents64 235 + 221 i386 fcntl64 sys_fcntl64 __ia32_compat_sys_fcntl64 236 + # 222 is unused 237 + # 223 is unused 238 + 224 i386 gettid sys_gettid __ia32_sys_gettid 239 + 225 i386 readahead sys_readahead __ia32_compat_sys_x86_readahead 240 + 226 i386 setxattr sys_setxattr __ia32_sys_setxattr 241 + 227 i386 lsetxattr sys_lsetxattr __ia32_sys_lsetxattr 242 + 228 i386 fsetxattr sys_fsetxattr __ia32_sys_fsetxattr 243 + 229 i386 getxattr sys_getxattr __ia32_sys_getxattr 244 + 230 i386 lgetxattr sys_lgetxattr __ia32_sys_lgetxattr 245 + 231 i386 fgetxattr sys_fgetxattr __ia32_sys_fgetxattr 246 + 232 i386 listxattr sys_listxattr __ia32_sys_listxattr 247 + 233 i386 llistxattr sys_llistxattr __ia32_sys_llistxattr 248 + 234 i386 flistxattr sys_flistxattr __ia32_sys_flistxattr 249 + 235 i386 removexattr sys_removexattr __ia32_sys_removexattr 250 + 236 i386 lremovexattr sys_lremovexattr __ia32_sys_lremovexattr 251 + 237 i386 fremovexattr sys_fremovexattr __ia32_sys_fremovexattr 252 + 238 i386 tkill sys_tkill __ia32_sys_tkill 253 + 239 i386 sendfile64 sys_sendfile64 __ia32_sys_sendfile64 254 + 240 i386 futex sys_futex_time32 __ia32_sys_futex_time32 255 + 241 i386 sched_setaffinity sys_sched_setaffinity __ia32_compat_sys_sched_setaffinity 256 + 242 i386 sched_getaffinity sys_sched_getaffinity __ia32_compat_sys_sched_getaffinity 257 + 243 i386 set_thread_area sys_set_thread_area __ia32_sys_set_thread_area 258 + 244 i386 get_thread_area sys_get_thread_area __ia32_sys_get_thread_area 259 + 245 i386 io_setup sys_io_setup __ia32_compat_sys_io_setup 260 + 246 i386 io_destroy sys_io_destroy __ia32_sys_io_destroy 261 + 247 i386 io_getevents sys_io_getevents_time32 __ia32_sys_io_getevents_time32 262 + 248 i386 io_submit sys_io_submit __ia32_compat_sys_io_submit 263 + 249 i386 io_cancel sys_io_cancel __ia32_sys_io_cancel 264 + 250 i386 fadvise64 sys_fadvise64 __ia32_compat_sys_x86_fadvise64 265 + # 251 is available for reuse (was briefly sys_set_zone_reclaim) 266 + 252 i386 exit_group sys_exit_group __ia32_sys_exit_group 267 + 253 i386 lookup_dcookie sys_lookup_dcookie __ia32_compat_sys_lookup_dcookie 268 + 254 i386 epoll_create sys_epoll_create __ia32_sys_epoll_create 269 + 255 i386 epoll_ctl sys_epoll_ctl __ia32_sys_epoll_ctl 270 + 256 i386 epoll_wait sys_epoll_wait __ia32_sys_epoll_wait 271 + 257 i386 remap_file_pages sys_remap_file_pages __ia32_sys_remap_file_pages 272 + 258 i386 set_tid_address sys_set_tid_address __ia32_sys_set_tid_address 273 + 259 i386 timer_create sys_timer_create __ia32_compat_sys_timer_create 274 + 260 i386 timer_settime sys_timer_settime32 __ia32_sys_timer_settime32 275 + 261 i386 timer_gettime sys_timer_gettime32 __ia32_sys_timer_gettime32 276 + 262 i386 timer_getoverrun sys_timer_getoverrun __ia32_sys_timer_getoverrun 277 + 263 i386 timer_delete sys_timer_delete __ia32_sys_timer_delete 278 + 264 i386 clock_settime sys_clock_settime32 __ia32_sys_clock_settime32 279 + 265 i386 clock_gettime sys_clock_gettime32 __ia32_sys_clock_gettime32 280 + 266 i386 clock_getres sys_clock_getres_time32 __ia32_sys_clock_getres_time32 281 + 267 i386 clock_nanosleep sys_clock_nanosleep_time32 __ia32_sys_clock_nanosleep_time32 282 + 268 i386 statfs64 sys_statfs64 __ia32_compat_sys_statfs64 283 + 269 i386 fstatfs64 sys_fstatfs64 __ia32_compat_sys_fstatfs64 284 + 270 i386 tgkill sys_tgkill __ia32_sys_tgkill 285 + 271 i386 utimes sys_utimes_time32 __ia32_sys_utimes_time32 286 + 272 i386 fadvise64_64 sys_fadvise64_64 __ia32_compat_sys_x86_fadvise64_64 287 + 273 i386 vserver 288 + 274 i386 mbind sys_mbind __ia32_sys_mbind 289 + 275 i386 get_mempolicy sys_get_mempolicy __ia32_compat_sys_get_mempolicy 290 + 276 i386 set_mempolicy sys_set_mempolicy __ia32_sys_set_mempolicy 291 + 277 i386 mq_open sys_mq_open __ia32_compat_sys_mq_open 292 + 278 i386 mq_unlink sys_mq_unlink __ia32_sys_mq_unlink 293 + 279 i386 mq_timedsend sys_mq_timedsend_time32 __ia32_sys_mq_timedsend_time32 294 + 280 i386 mq_timedreceive sys_mq_timedreceive_time32 __ia32_sys_mq_timedreceive_time32 295 + 281 i386 mq_notify sys_mq_notify __ia32_compat_sys_mq_notify 296 + 282 i386 mq_getsetattr sys_mq_getsetattr __ia32_compat_sys_mq_getsetattr 297 + 283 i386 kexec_load sys_kexec_load __ia32_compat_sys_kexec_load 298 + 284 i386 waitid sys_waitid __ia32_compat_sys_waitid 299 + # 285 sys_setaltroot 300 + 286 i386 add_key sys_add_key __ia32_sys_add_key 301 + 287 i386 request_key sys_request_key __ia32_sys_request_key 302 + 288 i386 keyctl sys_keyctl __ia32_compat_sys_keyctl 303 + 289 i386 ioprio_set sys_ioprio_set __ia32_sys_ioprio_set 304 + 290 i386 ioprio_get sys_ioprio_get __ia32_sys_ioprio_get 305 + 291 i386 inotify_init sys_inotify_init __ia32_sys_inotify_init 306 + 292 i386 inotify_add_watch sys_inotify_add_watch __ia32_sys_inotify_add_watch 307 + 293 i386 inotify_rm_watch sys_inotify_rm_watch __ia32_sys_inotify_rm_watch 308 + 294 i386 migrate_pages sys_migrate_pages __ia32_sys_migrate_pages 309 + 295 i386 openat sys_openat __ia32_compat_sys_openat 310 + 296 i386 mkdirat sys_mkdirat __ia32_sys_mkdirat 311 + 297 i386 mknodat sys_mknodat __ia32_sys_mknodat 312 + 298 i386 fchownat sys_fchownat __ia32_sys_fchownat 313 + 299 i386 futimesat sys_futimesat_time32 __ia32_sys_futimesat_time32 314 + 300 i386 fstatat64 sys_fstatat64 __ia32_compat_sys_x86_fstatat 315 + 301 i386 unlinkat sys_unlinkat __ia32_sys_unlinkat 316 + 302 i386 renameat sys_renameat __ia32_sys_renameat 317 + 303 i386 linkat sys_linkat __ia32_sys_linkat 318 + 304 i386 symlinkat sys_symlinkat __ia32_sys_symlinkat 319 + 305 i386 readlinkat sys_readlinkat __ia32_sys_readlinkat 320 + 306 i386 fchmodat sys_fchmodat __ia32_sys_fchmodat 321 + 307 i386 faccessat sys_faccessat __ia32_sys_faccessat 322 + 308 i386 pselect6 sys_pselect6_time32 __ia32_compat_sys_pselect6_time32 323 + 309 i386 ppoll sys_ppoll_time32 __ia32_compat_sys_ppoll_time32 324 + 310 i386 unshare sys_unshare __ia32_sys_unshare 325 + 311 i386 set_robust_list sys_set_robust_list __ia32_compat_sys_set_robust_list 326 + 312 i386 get_robust_list sys_get_robust_list __ia32_compat_sys_get_robust_list 327 + 313 i386 splice sys_splice __ia32_sys_splice 328 + 314 i386 sync_file_range sys_sync_file_range __ia32_compat_sys_x86_sync_file_range 329 + 315 i386 tee sys_tee __ia32_sys_tee 330 + 316 i386 vmsplice sys_vmsplice __ia32_compat_sys_vmsplice 331 + 317 i386 move_pages sys_move_pages __ia32_compat_sys_move_pages 332 + 318 i386 getcpu sys_getcpu __ia32_sys_getcpu 333 + 319 i386 epoll_pwait sys_epoll_pwait __ia32_sys_epoll_pwait 334 + 320 i386 utimensat sys_utimensat_time32 __ia32_sys_utimensat_time32 335 + 321 i386 signalfd sys_signalfd __ia32_compat_sys_signalfd 336 + 322 i386 timerfd_create sys_timerfd_create __ia32_sys_timerfd_create 337 + 323 i386 eventfd sys_eventfd __ia32_sys_eventfd 338 + 324 i386 fallocate sys_fallocate __ia32_compat_sys_x86_fallocate 339 + 325 i386 timerfd_settime sys_timerfd_settime32 __ia32_sys_timerfd_settime32 340 + 326 i386 timerfd_gettime sys_timerfd_gettime32 __ia32_sys_timerfd_gettime32 341 + 327 i386 signalfd4 sys_signalfd4 __ia32_compat_sys_signalfd4 342 + 328 i386 eventfd2 sys_eventfd2 __ia32_sys_eventfd2 343 + 329 i386 epoll_create1 sys_epoll_create1 __ia32_sys_epoll_create1 344 + 330 i386 dup3 sys_dup3 __ia32_sys_dup3 345 + 331 i386 pipe2 sys_pipe2 __ia32_sys_pipe2 346 + 332 i386 inotify_init1 sys_inotify_init1 __ia32_sys_inotify_init1 347 + 333 i386 preadv sys_preadv __ia32_compat_sys_preadv 348 + 334 i386 pwritev sys_pwritev __ia32_compat_sys_pwritev 349 + 335 i386 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo __ia32_compat_sys_rt_tgsigqueueinfo 350 + 336 i386 perf_event_open sys_perf_event_open __ia32_sys_perf_event_open 351 + 337 i386 recvmmsg sys_recvmmsg_time32 __ia32_compat_sys_recvmmsg_time32 352 + 338 i386 fanotify_init sys_fanotify_init __ia32_sys_fanotify_init 353 + 339 i386 fanotify_mark sys_fanotify_mark __ia32_compat_sys_fanotify_mark 354 + 340 i386 prlimit64 sys_prlimit64 __ia32_sys_prlimit64 355 + 341 i386 name_to_handle_at sys_name_to_handle_at __ia32_sys_name_to_handle_at 356 + 342 i386 open_by_handle_at sys_open_by_handle_at __ia32_compat_sys_open_by_handle_at 357 + 343 i386 clock_adjtime sys_clock_adjtime32 __ia32_sys_clock_adjtime32 358 + 344 i386 syncfs sys_syncfs __ia32_sys_syncfs 359 + 345 i386 sendmmsg sys_sendmmsg __ia32_compat_sys_sendmmsg 360 + 346 i386 setns sys_setns __ia32_sys_setns 361 + 347 i386 process_vm_readv sys_process_vm_readv __ia32_compat_sys_process_vm_readv 362 + 348 i386 process_vm_writev sys_process_vm_writev __ia32_compat_sys_process_vm_writev 363 + 349 i386 kcmp sys_kcmp __ia32_sys_kcmp 364 + 350 i386 finit_module sys_finit_module __ia32_sys_finit_module 365 + 351 i386 sched_setattr sys_sched_setattr __ia32_sys_sched_setattr 366 + 352 i386 sched_getattr sys_sched_getattr __ia32_sys_sched_getattr 367 + 353 i386 renameat2 sys_renameat2 __ia32_sys_renameat2 368 + 354 i386 seccomp sys_seccomp __ia32_sys_seccomp 369 + 355 i386 getrandom sys_getrandom __ia32_sys_getrandom 370 + 356 i386 memfd_create sys_memfd_create __ia32_sys_memfd_create 371 + 357 i386 bpf sys_bpf __ia32_sys_bpf 372 + 358 i386 execveat sys_execveat __ia32_compat_sys_execveat 373 + 359 i386 socket sys_socket __ia32_sys_socket 374 + 360 i386 socketpair sys_socketpair __ia32_sys_socketpair 375 + 361 i386 bind sys_bind __ia32_sys_bind 376 + 362 i386 connect sys_connect __ia32_sys_connect 377 + 363 i386 listen sys_listen __ia32_sys_listen 378 + 364 i386 accept4 sys_accept4 __ia32_sys_accept4 379 + 365 i386 getsockopt sys_getsockopt __ia32_compat_sys_getsockopt 380 + 366 i386 setsockopt sys_setsockopt __ia32_compat_sys_setsockopt 381 + 367 i386 getsockname sys_getsockname __ia32_sys_getsockname 382 + 368 i386 getpeername sys_getpeername __ia32_sys_getpeername 383 + 369 i386 sendto sys_sendto __ia32_sys_sendto 384 + 370 i386 sendmsg sys_sendmsg __ia32_compat_sys_sendmsg 385 + 371 i386 recvfrom sys_recvfrom __ia32_compat_sys_recvfrom 386 + 372 i386 recvmsg sys_recvmsg __ia32_compat_sys_recvmsg 387 + 373 i386 shutdown sys_shutdown __ia32_sys_shutdown 388 + 374 i386 userfaultfd sys_userfaultfd __ia32_sys_userfaultfd 389 + 375 i386 membarrier sys_membarrier __ia32_sys_membarrier 390 + 376 i386 mlock2 sys_mlock2 __ia32_sys_mlock2 391 + 377 i386 copy_file_range sys_copy_file_range __ia32_sys_copy_file_range 392 + 378 i386 preadv2 sys_preadv2 __ia32_compat_sys_preadv2 393 + 379 i386 pwritev2 sys_pwritev2 __ia32_compat_sys_pwritev2 394 + 380 i386 pkey_mprotect sys_pkey_mprotect __ia32_sys_pkey_mprotect 395 + 381 i386 pkey_alloc sys_pkey_alloc __ia32_sys_pkey_alloc 396 + 382 i386 pkey_free sys_pkey_free __ia32_sys_pkey_free 397 + 383 i386 statx sys_statx __ia32_sys_statx 398 + 384 i386 arch_prctl sys_arch_prctl __ia32_compat_sys_arch_prctl 399 + 385 i386 io_pgetevents sys_io_pgetevents_time32 __ia32_compat_sys_io_pgetevents 400 + 386 i386 rseq sys_rseq __ia32_sys_rseq 401 + 393 i386 semget sys_semget __ia32_sys_semget 402 + 394 i386 semctl sys_semctl __ia32_compat_sys_semctl 403 + 395 i386 shmget sys_shmget __ia32_sys_shmget 404 + 396 i386 shmctl sys_shmctl __ia32_compat_sys_shmctl 405 + 397 i386 shmat sys_shmat __ia32_compat_sys_shmat 406 + 398 i386 shmdt sys_shmdt __ia32_sys_shmdt 407 + 399 i386 msgget sys_msgget __ia32_sys_msgget 408 + 400 i386 msgsnd sys_msgsnd __ia32_compat_sys_msgsnd 409 + 401 i386 msgrcv sys_msgrcv __ia32_compat_sys_msgrcv 410 + 402 i386 msgctl sys_msgctl __ia32_compat_sys_msgctl 411 + 403 i386 clock_gettime64 sys_clock_gettime __ia32_sys_clock_gettime 412 + 404 i386 clock_settime64 sys_clock_settime __ia32_sys_clock_settime 413 + 405 i386 clock_adjtime64 sys_clock_adjtime __ia32_sys_clock_adjtime 414 + 406 i386 clock_getres_time64 sys_clock_getres __ia32_sys_clock_getres 415 + 407 i386 clock_nanosleep_time64 sys_clock_nanosleep __ia32_sys_clock_nanosleep 416 + 408 i386 timer_gettime64 sys_timer_gettime __ia32_sys_timer_gettime 417 + 409 i386 timer_settime64 sys_timer_settime __ia32_sys_timer_settime 418 + 410 i386 timerfd_gettime64 sys_timerfd_gettime __ia32_sys_timerfd_gettime 419 + 411 i386 timerfd_settime64 sys_timerfd_settime __ia32_sys_timerfd_settime 420 + 412 i386 utimensat_time64 sys_utimensat __ia32_sys_utimensat 421 + 413 i386 pselect6_time64 sys_pselect6 __ia32_compat_sys_pselect6_time64 422 + 414 i386 ppoll_time64 sys_ppoll __ia32_compat_sys_ppoll_time64 423 + 416 i386 io_pgetevents_time64 sys_io_pgetevents __ia32_sys_io_pgetevents 424 + 417 i386 recvmmsg_time64 sys_recvmmsg __ia32_compat_sys_recvmmsg_time64 425 + 418 i386 mq_timedsend_time64 sys_mq_timedsend __ia32_sys_mq_timedsend 426 + 419 i386 mq_timedreceive_time64 sys_mq_timedreceive __ia32_sys_mq_timedreceive 427 + 420 i386 semtimedop_time64 sys_semtimedop __ia32_sys_semtimedop 428 + 421 i386 rt_sigtimedwait_time64 sys_rt_sigtimedwait __ia32_compat_sys_rt_sigtimedwait_time64 429 + 422 i386 futex_time64 sys_futex __ia32_sys_futex 430 + 423 i386 sched_rr_get_interval_time64 sys_sched_rr_get_interval __ia32_sys_sched_rr_get_interval 431 + 424 i386 pidfd_send_signal sys_pidfd_send_signal __ia32_sys_pidfd_send_signal 432 + 425 i386 io_uring_setup sys_io_uring_setup __ia32_sys_io_uring_setup 433 + 426 i386 io_uring_enter sys_io_uring_enter __ia32_sys_io_uring_enter 434 + 427 i386 io_uring_register sys_io_uring_register __ia32_sys_io_uring_register 435 + 428 i386 open_tree sys_open_tree __ia32_sys_open_tree 436 + 429 i386 move_mount sys_move_mount __ia32_sys_move_mount 437 + 430 i386 fsopen sys_fsopen __ia32_sys_fsopen 438 + 431 i386 fsconfig sys_fsconfig __ia32_sys_fsconfig 439 + 432 i386 fsmount sys_fsmount __ia32_sys_fsmount 440 + 433 i386 fspick sys_fspick __ia32_sys_fspick 441 + 434 i386 pidfd_open sys_pidfd_open __ia32_sys_pidfd_open 442 + 435 i386 clone3 sys_clone3 __ia32_sys_clone3 443 + 437 i386 openat2 sys_openat2 __ia32_sys_openat2 444 + 438 i386 pidfd_getfd sys_pidfd_getfd __ia32_sys_pidfd_getfd
-387
linux-user/i386/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_I386_SYSCALL_NR_H 6 - #define LINUX_USER_I386_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_restart_syscall 0 9 - #define TARGET_NR_exit 1 10 - #define TARGET_NR_fork 2 11 - #define TARGET_NR_read 3 12 - #define TARGET_NR_write 4 13 - #define TARGET_NR_open 5 14 - #define TARGET_NR_close 6 15 - #define TARGET_NR_waitpid 7 16 - #define TARGET_NR_creat 8 17 - #define TARGET_NR_link 9 18 - #define TARGET_NR_unlink 10 19 - #define TARGET_NR_execve 11 20 - #define TARGET_NR_chdir 12 21 - #define TARGET_NR_time 13 22 - #define TARGET_NR_mknod 14 23 - #define TARGET_NR_chmod 15 24 - #define TARGET_NR_lchown 16 25 - #define TARGET_NR_break 17 26 - #define TARGET_NR_oldstat 18 27 - #define TARGET_NR_lseek 19 28 - #define TARGET_NR_getpid 20 29 - #define TARGET_NR_mount 21 30 - #define TARGET_NR_umount 22 31 - #define TARGET_NR_setuid 23 32 - #define TARGET_NR_getuid 24 33 - #define TARGET_NR_stime 25 34 - #define TARGET_NR_ptrace 26 35 - #define TARGET_NR_alarm 27 36 - #define TARGET_NR_oldfstat 28 37 - #define TARGET_NR_pause 29 38 - #define TARGET_NR_utime 30 39 - #define TARGET_NR_stty 31 40 - #define TARGET_NR_gtty 32 41 - #define TARGET_NR_access 33 42 - #define TARGET_NR_nice 34 43 - #define TARGET_NR_ftime 35 44 - #define TARGET_NR_sync 36 45 - #define TARGET_NR_kill 37 46 - #define TARGET_NR_rename 38 47 - #define TARGET_NR_mkdir 39 48 - #define TARGET_NR_rmdir 40 49 - #define TARGET_NR_dup 41 50 - #define TARGET_NR_pipe 42 51 - #define TARGET_NR_times 43 52 - #define TARGET_NR_prof 44 53 - #define TARGET_NR_brk 45 54 - #define TARGET_NR_setgid 46 55 - #define TARGET_NR_getgid 47 56 - #define TARGET_NR_signal 48 57 - #define TARGET_NR_geteuid 49 58 - #define TARGET_NR_getegid 50 59 - #define TARGET_NR_acct 51 60 - #define TARGET_NR_umount2 52 61 - #define TARGET_NR_lock 53 62 - #define TARGET_NR_ioctl 54 63 - #define TARGET_NR_fcntl 55 64 - #define TARGET_NR_mpx 56 65 - #define TARGET_NR_setpgid 57 66 - #define TARGET_NR_ulimit 58 67 - #define TARGET_NR_oldolduname 59 68 - #define TARGET_NR_umask 60 69 - #define TARGET_NR_chroot 61 70 - #define TARGET_NR_ustat 62 71 - #define TARGET_NR_dup2 63 72 - #define TARGET_NR_getppid 64 73 - #define TARGET_NR_getpgrp 65 74 - #define TARGET_NR_setsid 66 75 - #define TARGET_NR_sigaction 67 76 - #define TARGET_NR_sgetmask 68 77 - #define TARGET_NR_ssetmask 69 78 - #define TARGET_NR_setreuid 70 79 - #define TARGET_NR_setregid 71 80 - #define TARGET_NR_sigsuspend 72 81 - #define TARGET_NR_sigpending 73 82 - #define TARGET_NR_sethostname 74 83 - #define TARGET_NR_setrlimit 75 84 - #define TARGET_NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */ 85 - #define TARGET_NR_getrusage 77 86 - #define TARGET_NR_gettimeofday 78 87 - #define TARGET_NR_settimeofday 79 88 - #define TARGET_NR_getgroups 80 89 - #define TARGET_NR_setgroups 81 90 - #define TARGET_NR_select 82 91 - #define TARGET_NR_symlink 83 92 - #define TARGET_NR_oldlstat 84 93 - #define TARGET_NR_readlink 85 94 - #define TARGET_NR_uselib 86 95 - #define TARGET_NR_swapon 87 96 - #define TARGET_NR_reboot 88 97 - #define TARGET_NR_readdir 89 98 - #define TARGET_NR_mmap 90 99 - #define TARGET_NR_munmap 91 100 - #define TARGET_NR_truncate 92 101 - #define TARGET_NR_ftruncate 93 102 - #define TARGET_NR_fchmod 94 103 - #define TARGET_NR_fchown 95 104 - #define TARGET_NR_getpriority 96 105 - #define TARGET_NR_setpriority 97 106 - #define TARGET_NR_profil 98 107 - #define TARGET_NR_statfs 99 108 - #define TARGET_NR_fstatfs 100 109 - #define TARGET_NR_ioperm 101 110 - #define TARGET_NR_socketcall 102 111 - #define TARGET_NR_syslog 103 112 - #define TARGET_NR_setitimer 104 113 - #define TARGET_NR_getitimer 105 114 - #define TARGET_NR_stat 106 115 - #define TARGET_NR_lstat 107 116 - #define TARGET_NR_fstat 108 117 - #define TARGET_NR_olduname 109 118 - #define TARGET_NR_iopl 110 119 - #define TARGET_NR_vhangup 111 120 - #define TARGET_NR_idle 112 121 - #define TARGET_NR_vm86old 113 122 - #define TARGET_NR_wait4 114 123 - #define TARGET_NR_swapoff 115 124 - #define TARGET_NR_sysinfo 116 125 - #define TARGET_NR_ipc 117 126 - #define TARGET_NR_fsync 118 127 - #define TARGET_NR_sigreturn 119 128 - #define TARGET_NR_clone 120 129 - #define TARGET_NR_setdomainname 121 130 - #define TARGET_NR_uname 122 131 - #define TARGET_NR_modify_ldt 123 132 - #define TARGET_NR_adjtimex 124 133 - #define TARGET_NR_mprotect 125 134 - #define TARGET_NR_sigprocmask 126 135 - #define TARGET_NR_create_module 127 136 - #define TARGET_NR_init_module 128 137 - #define TARGET_NR_delete_module 129 138 - #define TARGET_NR_get_kernel_syms 130 139 - #define TARGET_NR_quotactl 131 140 - #define TARGET_NR_getpgid 132 141 - #define TARGET_NR_fchdir 133 142 - #define TARGET_NR_bdflush 134 143 - #define TARGET_NR_sysfs 135 144 - #define TARGET_NR_personality 136 145 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 146 - #define TARGET_NR_setfsuid 138 147 - #define TARGET_NR_setfsgid 139 148 - #define TARGET_NR__llseek 140 149 - #define TARGET_NR_getdents 141 150 - #define TARGET_NR__newselect 142 151 - #define TARGET_NR_flock 143 152 - #define TARGET_NR_msync 144 153 - #define TARGET_NR_readv 145 154 - #define TARGET_NR_writev 146 155 - #define TARGET_NR_getsid 147 156 - #define TARGET_NR_fdatasync 148 157 - #define TARGET_NR__sysctl 149 158 - #define TARGET_NR_mlock 150 159 - #define TARGET_NR_munlock 151 160 - #define TARGET_NR_mlockall 152 161 - #define TARGET_NR_munlockall 153 162 - #define TARGET_NR_sched_setparam 154 163 - #define TARGET_NR_sched_getparam 155 164 - #define TARGET_NR_sched_setscheduler 156 165 - #define TARGET_NR_sched_getscheduler 157 166 - #define TARGET_NR_sched_yield 158 167 - #define TARGET_NR_sched_get_priority_max 159 168 - #define TARGET_NR_sched_get_priority_min 160 169 - #define TARGET_NR_sched_rr_get_interval 161 170 - #define TARGET_NR_nanosleep 162 171 - #define TARGET_NR_mremap 163 172 - #define TARGET_NR_setresuid 164 173 - #define TARGET_NR_getresuid 165 174 - #define TARGET_NR_vm86 166 175 - #define TARGET_NR_query_module 167 176 - #define TARGET_NR_poll 168 177 - #define TARGET_NR_nfsservctl 169 178 - #define TARGET_NR_setresgid 170 179 - #define TARGET_NR_getresgid 171 180 - #define TARGET_NR_prctl 172 181 - #define TARGET_NR_rt_sigreturn 173 182 - #define TARGET_NR_rt_sigaction 174 183 - #define TARGET_NR_rt_sigprocmask 175 184 - #define TARGET_NR_rt_sigpending 176 185 - #define TARGET_NR_rt_sigtimedwait 177 186 - #define TARGET_NR_rt_sigqueueinfo 178 187 - #define TARGET_NR_rt_sigsuspend 179 188 - #define TARGET_NR_pread64 180 189 - #define TARGET_NR_pwrite64 181 190 - #define TARGET_NR_chown 182 191 - #define TARGET_NR_getcwd 183 192 - #define TARGET_NR_capget 184 193 - #define TARGET_NR_capset 185 194 - #define TARGET_NR_sigaltstack 186 195 - #define TARGET_NR_sendfile 187 196 - #define TARGET_NR_getpmsg 188 /* some people actually want streams */ 197 - #define TARGET_NR_putpmsg 189 /* some people actually want streams */ 198 - #define TARGET_NR_vfork 190 199 - #define TARGET_NR_ugetrlimit 191 /* SuS compliant getrlimit */ 200 - #define TARGET_NR_mmap2 192 201 - #define TARGET_NR_truncate64 193 202 - #define TARGET_NR_ftruncate64 194 203 - #define TARGET_NR_stat64 195 204 - #define TARGET_NR_lstat64 196 205 - #define TARGET_NR_fstat64 197 206 - #define TARGET_NR_lchown32 198 207 - #define TARGET_NR_getuid32 199 208 - #define TARGET_NR_getgid32 200 209 - #define TARGET_NR_geteuid32 201 210 - #define TARGET_NR_getegid32 202 211 - #define TARGET_NR_setreuid32 203 212 - #define TARGET_NR_setregid32 204 213 - #define TARGET_NR_getgroups32 205 214 - #define TARGET_NR_setgroups32 206 215 - #define TARGET_NR_fchown32 207 216 - #define TARGET_NR_setresuid32 208 217 - #define TARGET_NR_getresuid32 209 218 - #define TARGET_NR_setresgid32 210 219 - #define TARGET_NR_getresgid32 211 220 - #define TARGET_NR_chown32 212 221 - #define TARGET_NR_setuid32 213 222 - #define TARGET_NR_setgid32 214 223 - #define TARGET_NR_setfsuid32 215 224 - #define TARGET_NR_setfsgid32 216 225 - #define TARGET_NR_pivot_root 217 226 - #define TARGET_NR_mincore 218 227 - #define TARGET_NR_madvise 219 228 - #define TARGET_NR_madvise1 219 /* delete when C lib stub is removed */ 229 - #define TARGET_NR_getdents64 220 230 - #define TARGET_NR_fcntl64 221 231 - /* 223 is unused */ 232 - #define TARGET_NR_gettid 224 233 - #define TARGET_NR_readahead 225 234 - #define TARGET_NR_setxattr 226 235 - #define TARGET_NR_lsetxattr 227 236 - #define TARGET_NR_fsetxattr 228 237 - #define TARGET_NR_getxattr 229 238 - #define TARGET_NR_lgetxattr 230 239 - #define TARGET_NR_fgetxattr 231 240 - #define TARGET_NR_listxattr 232 241 - #define TARGET_NR_llistxattr 233 242 - #define TARGET_NR_flistxattr 234 243 - #define TARGET_NR_removexattr 235 244 - #define TARGET_NR_lremovexattr 236 245 - #define TARGET_NR_fremovexattr 237 246 - #define TARGET_NR_tkill 238 247 - #define TARGET_NR_sendfile64 239 248 - #define TARGET_NR_futex 240 249 - #define TARGET_NR_sched_setaffinity 241 250 - #define TARGET_NR_sched_getaffinity 242 251 - #define TARGET_NR_set_thread_area 243 252 - #define TARGET_NR_get_thread_area 244 253 - #define TARGET_NR_io_setup 245 254 - #define TARGET_NR_io_destroy 246 255 - #define TARGET_NR_io_getevents 247 256 - #define TARGET_NR_io_submit 248 257 - #define TARGET_NR_io_cancel 249 258 - #define TARGET_NR_fadvise64 250 259 - /* 251 is available for reuse (was briefly sys_set_zone_reclaim) */ 260 - #define TARGET_NR_exit_group 252 261 - #define TARGET_NR_lookup_dcookie 253 262 - #define TARGET_NR_epoll_create 254 263 - #define TARGET_NR_epoll_ctl 255 264 - #define TARGET_NR_epoll_wait 256 265 - #define TARGET_NR_remap_file_pages 257 266 - #define TARGET_NR_set_tid_address 258 267 - #define TARGET_NR_timer_create 259 268 - #define TARGET_NR_timer_settime (TARGET_NR_timer_create+1) 269 - #define TARGET_NR_timer_gettime (TARGET_NR_timer_create+2) 270 - #define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create+3) 271 - #define TARGET_NR_timer_delete (TARGET_NR_timer_create+4) 272 - #define TARGET_NR_clock_settime (TARGET_NR_timer_create+5) 273 - #define TARGET_NR_clock_gettime (TARGET_NR_timer_create+6) 274 - #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) 275 - #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) 276 - #define TARGET_NR_statfs64 268 277 - #define TARGET_NR_fstatfs64 269 278 - #define TARGET_NR_tgkill 270 279 - #define TARGET_NR_utimes 271 280 - #define TARGET_NR_fadvise64_64 272 281 - #define TARGET_NR_vserver 273 282 - #define TARGET_NR_mbind 274 283 - #define TARGET_NR_get_mempolicy 275 284 - #define TARGET_NR_set_mempolicy 276 285 - #define TARGET_NR_mq_open 277 286 - #define TARGET_NR_mq_unlink (TARGET_NR_mq_open+1) 287 - #define TARGET_NR_mq_timedsend (TARGET_NR_mq_open+2) 288 - #define TARGET_NR_mq_timedreceive (TARGET_NR_mq_open+3) 289 - #define TARGET_NR_mq_notify (TARGET_NR_mq_open+4) 290 - #define TARGET_NR_mq_getsetattr (TARGET_NR_mq_open+5) 291 - #define TARGET_NR_kexec_load 283 292 - #define TARGET_NR_waitid 284 293 - /* #define TARGET_NR_sys_setaltroot 285 */ 294 - #define TARGET_NR_add_key 286 295 - #define TARGET_NR_request_key 287 296 - #define TARGET_NR_keyctl 288 297 - #define TARGET_NR_ioprio_set 289 298 - #define TARGET_NR_ioprio_get 290 299 - #define TARGET_NR_inotify_init 291 300 - #define TARGET_NR_inotify_add_watch 292 301 - #define TARGET_NR_inotify_rm_watch 293 302 - #define TARGET_NR_migrate_pages 294 303 - #define TARGET_NR_openat 295 304 - #define TARGET_NR_mkdirat 296 305 - #define TARGET_NR_mknodat 297 306 - #define TARGET_NR_fchownat 298 307 - #define TARGET_NR_futimesat 299 308 - #define TARGET_NR_fstatat64 300 309 - #define TARGET_NR_unlinkat 301 310 - #define TARGET_NR_renameat 302 311 - #define TARGET_NR_linkat 303 312 - #define TARGET_NR_symlinkat 304 313 - #define TARGET_NR_readlinkat 305 314 - #define TARGET_NR_fchmodat 306 315 - #define TARGET_NR_faccessat 307 316 - #define TARGET_NR_pselect6 308 317 - #define TARGET_NR_ppoll 309 318 - #define TARGET_NR_unshare 310 319 - #define TARGET_NR_set_robust_list 311 320 - #define TARGET_NR_get_robust_list 312 321 - #define TARGET_NR_splice 313 322 - #define TARGET_NR_sync_file_range 314 323 - #define TARGET_NR_tee 315 324 - #define TARGET_NR_vmsplice 316 325 - #define TARGET_NR_move_pages 317 326 - #define TARGET_NR_getcpu 318 327 - #define TARGET_NR_epoll_pwait 319 328 - #define TARGET_NR_utimensat 320 329 - #define TARGET_NR_signalfd 321 330 - #define TARGET_NR_timerfd_create 322 331 - #define TARGET_NR_eventfd 323 332 - #define TARGET_NR_fallocate 324 333 - #define TARGET_NR_timerfd_settime 325 334 - #define TARGET_NR_timerfd_gettime 326 335 - #define TARGET_NR_signalfd4 327 336 - #define TARGET_NR_eventfd2 328 337 - #define TARGET_NR_epoll_create1 329 338 - #define TARGET_NR_dup3 330 339 - #define TARGET_NR_pipe2 331 340 - #define TARGET_NR_inotify_init1 332 341 - #define TARGET_NR_preadv 333 342 - #define TARGET_NR_pwritev 334 343 - #define TARGET_NR_rt_tgsigqueueinfo 335 344 - #define TARGET_NR_perf_event_open 336 345 - #define TARGET_NR_recvmmsg 337 346 - #define TARGET_NR_fanotify_init 338 347 - #define TARGET_NR_fanotify_mark 339 348 - #define TARGET_NR_prlimit64 340 349 - #define TARGET_NR_name_to_handle_at 341 350 - #define TARGET_NR_open_by_handle_at 342 351 - #define TARGET_NR_clock_adjtime 343 352 - #define TARGET_NR_syncfs 344 353 - #define TARGET_NR_sendmmsg 345 354 - #define TARGET_NR_setns 346 355 - #define TARGET_NR_process_vm_readv 347 356 - #define TARGET_NR_process_vm_writev 348 357 - #define TARGET_NR_kcmp 349 358 - #define TARGET_NR_finit_module 350 359 - #define TARGET_NR_sched_setattr 351 360 - #define TARGET_NR_sched_getattr 352 361 - #define TARGET_NR_renameat2 353 362 - #define TARGET_NR_seccomp 354 363 - #define TARGET_NR_getrandom 355 364 - #define TARGET_NR_memfd_create 356 365 - #define TARGET_NR_bpf 357 366 - #define TARGET_NR_execveat 358 367 - #define TARGET_NR_socket 359 368 - #define TARGET_NR_socketpair 360 369 - #define TARGET_NR_bind 361 370 - #define TARGET_NR_connect 362 371 - #define TARGET_NR_listen 363 372 - #define TARGET_NR_accept4 364 373 - #define TARGET_NR_getsockopt 365 374 - #define TARGET_NR_setsockopt 366 375 - #define TARGET_NR_getsockname 367 376 - #define TARGET_NR_getpeername 368 377 - #define TARGET_NR_sendto 369 378 - #define TARGET_NR_sendmsg 370 379 - #define TARGET_NR_recvfrom 371 380 - #define TARGET_NR_recvmsg 372 381 - #define TARGET_NR_shutdown 373 382 - #define TARGET_NR_userfaultfd 374 383 - #define TARGET_NR_membarrier 375 384 - #define TARGET_NR_mlock2 376 385 - #define TARGET_NR_copy_file_range 377 386 - 387 - #endif
+28
linux-user/i386/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_I386_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + echo "#ifndef ${fileguard}" 15 + echo "#define ${fileguard} 1" 16 + echo "" 17 + 18 + while read nr abi name entry ; do 19 + if [ -z "$offset" ]; then 20 + echo "#define TARGET_NR_${prefix}${name} $nr" 21 + else 22 + echo "#define TARGET_NR_${prefix}${name} ($offset + $nr)" 23 + fi 24 + done 25 + 26 + echo "" 27 + echo "#endif /* ${fileguard} */" 28 + ) > "$out"
+2 -2
linux-user/i386/target_cpu.h
··· 33 33 { 34 34 } 35 35 36 + abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr); 37 + 36 38 #if defined(TARGET_ABI32) 37 39 abi_long do_set_thread_area(CPUX86State *env, abi_ulong ptr); 38 40 ··· 42 44 cpu_x86_load_seg(env, R_GS, env->segs[R_GS].selector); 43 45 } 44 46 #else 45 - abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr); 46 - 47 47 static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls) 48 48 { 49 49 do_arch_prctl(env, TARGET_ARCH_SET_FS, newtls);
+5
linux-user/m68k/Makefile.objs
··· 1 + generated-files-y += linux-user/m68k/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/m68k/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/m68k/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+439
linux-user/m68k/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for m68k 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> 7 + # 8 + # The <abi> is always "common" for this file 9 + # 10 + 0 common restart_syscall sys_restart_syscall 11 + 1 common exit sys_exit 12 + 2 common fork __sys_fork 13 + 3 common read sys_read 14 + 4 common write sys_write 15 + 5 common open sys_open 16 + 6 common close sys_close 17 + 7 common waitpid sys_waitpid 18 + 8 common creat sys_creat 19 + 9 common link sys_link 20 + 10 common unlink sys_unlink 21 + 11 common execve sys_execve 22 + 12 common chdir sys_chdir 23 + 13 common time sys_time32 24 + 14 common mknod sys_mknod 25 + 15 common chmod sys_chmod 26 + 16 common chown sys_chown16 27 + # 17 was break 28 + 18 common oldstat sys_stat 29 + 19 common lseek sys_lseek 30 + 20 common getpid sys_getpid 31 + 21 common mount sys_mount 32 + 22 common umount sys_oldumount 33 + 23 common setuid sys_setuid16 34 + 24 common getuid sys_getuid16 35 + 25 common stime sys_stime32 36 + 26 common ptrace sys_ptrace 37 + 27 common alarm sys_alarm 38 + 28 common oldfstat sys_fstat 39 + 29 common pause sys_pause 40 + 30 common utime sys_utime32 41 + # 31 was stty 42 + # 32 was gtty 43 + 33 common access sys_access 44 + 34 common nice sys_nice 45 + # 35 was ftime 46 + 36 common sync sys_sync 47 + 37 common kill sys_kill 48 + 38 common rename sys_rename 49 + 39 common mkdir sys_mkdir 50 + 40 common rmdir sys_rmdir 51 + 41 common dup sys_dup 52 + 42 common pipe sys_pipe 53 + 43 common times sys_times 54 + # 44 was prof 55 + 45 common brk sys_brk 56 + 46 common setgid sys_setgid16 57 + 47 common getgid sys_getgid16 58 + 48 common signal sys_signal 59 + 49 common geteuid sys_geteuid16 60 + 50 common getegid sys_getegid16 61 + 51 common acct sys_acct 62 + 52 common umount2 sys_umount 63 + # 53 was lock 64 + 54 common ioctl sys_ioctl 65 + 55 common fcntl sys_fcntl 66 + # 56 was mpx 67 + 57 common setpgid sys_setpgid 68 + # 58 was ulimit 69 + # 59 was oldolduname 70 + 60 common umask sys_umask 71 + 61 common chroot sys_chroot 72 + 62 common ustat sys_ustat 73 + 63 common dup2 sys_dup2 74 + 64 common getppid sys_getppid 75 + 65 common getpgrp sys_getpgrp 76 + 66 common setsid sys_setsid 77 + 67 common sigaction sys_sigaction 78 + 68 common sgetmask sys_sgetmask 79 + 69 common ssetmask sys_ssetmask 80 + 70 common setreuid sys_setreuid16 81 + 71 common setregid sys_setregid16 82 + 72 common sigsuspend sys_sigsuspend 83 + 73 common sigpending sys_sigpending 84 + 74 common sethostname sys_sethostname 85 + 75 common setrlimit sys_setrlimit 86 + 76 common getrlimit sys_old_getrlimit 87 + 77 common getrusage sys_getrusage 88 + 78 common gettimeofday sys_gettimeofday 89 + 79 common settimeofday sys_settimeofday 90 + 80 common getgroups sys_getgroups16 91 + 81 common setgroups sys_setgroups16 92 + 82 common select sys_old_select 93 + 83 common symlink sys_symlink 94 + 84 common oldlstat sys_lstat 95 + 85 common readlink sys_readlink 96 + 86 common uselib sys_uselib 97 + 87 common swapon sys_swapon 98 + 88 common reboot sys_reboot 99 + 89 common readdir sys_old_readdir 100 + 90 common mmap sys_old_mmap 101 + 91 common munmap sys_munmap 102 + 92 common truncate sys_truncate 103 + 93 common ftruncate sys_ftruncate 104 + 94 common fchmod sys_fchmod 105 + 95 common fchown sys_fchown16 106 + 96 common getpriority sys_getpriority 107 + 97 common setpriority sys_setpriority 108 + # 98 was profil 109 + 99 common statfs sys_statfs 110 + 100 common fstatfs sys_fstatfs 111 + # 101 was ioperm 112 + 102 common socketcall sys_socketcall 113 + 103 common syslog sys_syslog 114 + 104 common setitimer sys_setitimer 115 + 105 common getitimer sys_getitimer 116 + 106 common stat sys_newstat 117 + 107 common lstat sys_newlstat 118 + 108 common fstat sys_newfstat 119 + # 109 was olduname 120 + # 110 was iopl 121 + 111 common vhangup sys_vhangup 122 + # 112 was idle 123 + # 113 was vm86 124 + 114 common wait4 sys_wait4 125 + 115 common swapoff sys_swapoff 126 + 116 common sysinfo sys_sysinfo 127 + 117 common ipc sys_ipc 128 + 118 common fsync sys_fsync 129 + 119 common sigreturn sys_sigreturn 130 + 120 common clone __sys_clone 131 + 121 common setdomainname sys_setdomainname 132 + 122 common uname sys_newuname 133 + 123 common cacheflush sys_cacheflush 134 + 124 common adjtimex sys_adjtimex_time32 135 + 125 common mprotect sys_mprotect 136 + 126 common sigprocmask sys_sigprocmask 137 + 127 common create_module sys_ni_syscall 138 + 128 common init_module sys_init_module 139 + 129 common delete_module sys_delete_module 140 + 130 common get_kernel_syms sys_ni_syscall 141 + 131 common quotactl sys_quotactl 142 + 132 common getpgid sys_getpgid 143 + 133 common fchdir sys_fchdir 144 + 134 common bdflush sys_bdflush 145 + 135 common sysfs sys_sysfs 146 + 136 common personality sys_personality 147 + # 137 was afs_syscall 148 + 138 common setfsuid sys_setfsuid16 149 + 139 common setfsgid sys_setfsgid16 150 + 140 common _llseek sys_llseek 151 + 141 common getdents sys_getdents 152 + 142 common _newselect sys_select 153 + 143 common flock sys_flock 154 + 144 common msync sys_msync 155 + 145 common readv sys_readv 156 + 146 common writev sys_writev 157 + 147 common getsid sys_getsid 158 + 148 common fdatasync sys_fdatasync 159 + 149 common _sysctl sys_sysctl 160 + 150 common mlock sys_mlock 161 + 151 common munlock sys_munlock 162 + 152 common mlockall sys_mlockall 163 + 153 common munlockall sys_munlockall 164 + 154 common sched_setparam sys_sched_setparam 165 + 155 common sched_getparam sys_sched_getparam 166 + 156 common sched_setscheduler sys_sched_setscheduler 167 + 157 common sched_getscheduler sys_sched_getscheduler 168 + 158 common sched_yield sys_sched_yield 169 + 159 common sched_get_priority_max sys_sched_get_priority_max 170 + 160 common sched_get_priority_min sys_sched_get_priority_min 171 + 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32 172 + 162 common nanosleep sys_nanosleep_time32 173 + 163 common mremap sys_mremap 174 + 164 common setresuid sys_setresuid16 175 + 165 common getresuid sys_getresuid16 176 + 166 common getpagesize sys_getpagesize 177 + 167 common query_module sys_ni_syscall 178 + 168 common poll sys_poll 179 + 169 common nfsservctl sys_ni_syscall 180 + 170 common setresgid sys_setresgid16 181 + 171 common getresgid sys_getresgid16 182 + 172 common prctl sys_prctl 183 + 173 common rt_sigreturn sys_rt_sigreturn 184 + 174 common rt_sigaction sys_rt_sigaction 185 + 175 common rt_sigprocmask sys_rt_sigprocmask 186 + 176 common rt_sigpending sys_rt_sigpending 187 + 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 188 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo 189 + 179 common rt_sigsuspend sys_rt_sigsuspend 190 + 180 common pread64 sys_pread64 191 + 181 common pwrite64 sys_pwrite64 192 + 182 common lchown sys_lchown16 193 + 183 common getcwd sys_getcwd 194 + 184 common capget sys_capget 195 + 185 common capset sys_capset 196 + 186 common sigaltstack sys_sigaltstack 197 + 187 common sendfile sys_sendfile 198 + 188 common getpmsg sys_ni_syscall 199 + 189 common putpmsg sys_ni_syscall 200 + 190 common vfork __sys_vfork 201 + 191 common ugetrlimit sys_getrlimit 202 + 192 common mmap2 sys_mmap2 203 + 193 common truncate64 sys_truncate64 204 + 194 common ftruncate64 sys_ftruncate64 205 + 195 common stat64 sys_stat64 206 + 196 common lstat64 sys_lstat64 207 + 197 common fstat64 sys_fstat64 208 + 198 common chown32 sys_chown 209 + 199 common getuid32 sys_getuid 210 + 200 common getgid32 sys_getgid 211 + 201 common geteuid32 sys_geteuid 212 + 202 common getegid32 sys_getegid 213 + 203 common setreuid32 sys_setreuid 214 + 204 common setregid32 sys_setregid 215 + 205 common getgroups32 sys_getgroups 216 + 206 common setgroups32 sys_setgroups 217 + 207 common fchown32 sys_fchown 218 + 208 common setresuid32 sys_setresuid 219 + 209 common getresuid32 sys_getresuid 220 + 210 common setresgid32 sys_setresgid 221 + 211 common getresgid32 sys_getresgid 222 + 212 common lchown32 sys_lchown 223 + 213 common setuid32 sys_setuid 224 + 214 common setgid32 sys_setgid 225 + 215 common setfsuid32 sys_setfsuid 226 + 216 common setfsgid32 sys_setfsgid 227 + 217 common pivot_root sys_pivot_root 228 + # 218 is reserved 229 + # 219 is reserved 230 + 220 common getdents64 sys_getdents64 231 + 221 common gettid sys_gettid 232 + 222 common tkill sys_tkill 233 + 223 common setxattr sys_setxattr 234 + 224 common lsetxattr sys_lsetxattr 235 + 225 common fsetxattr sys_fsetxattr 236 + 226 common getxattr sys_getxattr 237 + 227 common lgetxattr sys_lgetxattr 238 + 228 common fgetxattr sys_fgetxattr 239 + 229 common listxattr sys_listxattr 240 + 230 common llistxattr sys_llistxattr 241 + 231 common flistxattr sys_flistxattr 242 + 232 common removexattr sys_removexattr 243 + 233 common lremovexattr sys_lremovexattr 244 + 234 common fremovexattr sys_fremovexattr 245 + 235 common futex sys_futex_time32 246 + 236 common sendfile64 sys_sendfile64 247 + 237 common mincore sys_mincore 248 + 238 common madvise sys_madvise 249 + 239 common fcntl64 sys_fcntl64 250 + 240 common readahead sys_readahead 251 + 241 common io_setup sys_io_setup 252 + 242 common io_destroy sys_io_destroy 253 + 243 common io_getevents sys_io_getevents_time32 254 + 244 common io_submit sys_io_submit 255 + 245 common io_cancel sys_io_cancel 256 + 246 common fadvise64 sys_fadvise64 257 + 247 common exit_group sys_exit_group 258 + 248 common lookup_dcookie sys_lookup_dcookie 259 + 249 common epoll_create sys_epoll_create 260 + 250 common epoll_ctl sys_epoll_ctl 261 + 251 common epoll_wait sys_epoll_wait 262 + 252 common remap_file_pages sys_remap_file_pages 263 + 253 common set_tid_address sys_set_tid_address 264 + 254 common timer_create sys_timer_create 265 + 255 common timer_settime sys_timer_settime32 266 + 256 common timer_gettime sys_timer_gettime32 267 + 257 common timer_getoverrun sys_timer_getoverrun 268 + 258 common timer_delete sys_timer_delete 269 + 259 common clock_settime sys_clock_settime32 270 + 260 common clock_gettime sys_clock_gettime32 271 + 261 common clock_getres sys_clock_getres_time32 272 + 262 common clock_nanosleep sys_clock_nanosleep_time32 273 + 263 common statfs64 sys_statfs64 274 + 264 common fstatfs64 sys_fstatfs64 275 + 265 common tgkill sys_tgkill 276 + 266 common utimes sys_utimes_time32 277 + 267 common fadvise64_64 sys_fadvise64_64 278 + 268 common mbind sys_mbind 279 + 269 common get_mempolicy sys_get_mempolicy 280 + 270 common set_mempolicy sys_set_mempolicy 281 + 271 common mq_open sys_mq_open 282 + 272 common mq_unlink sys_mq_unlink 283 + 273 common mq_timedsend sys_mq_timedsend_time32 284 + 274 common mq_timedreceive sys_mq_timedreceive_time32 285 + 275 common mq_notify sys_mq_notify 286 + 276 common mq_getsetattr sys_mq_getsetattr 287 + 277 common waitid sys_waitid 288 + # 278 was vserver 289 + 279 common add_key sys_add_key 290 + 280 common request_key sys_request_key 291 + 281 common keyctl sys_keyctl 292 + 282 common ioprio_set sys_ioprio_set 293 + 283 common ioprio_get sys_ioprio_get 294 + 284 common inotify_init sys_inotify_init 295 + 285 common inotify_add_watch sys_inotify_add_watch 296 + 286 common inotify_rm_watch sys_inotify_rm_watch 297 + 287 common migrate_pages sys_migrate_pages 298 + 288 common openat sys_openat 299 + 289 common mkdirat sys_mkdirat 300 + 290 common mknodat sys_mknodat 301 + 291 common fchownat sys_fchownat 302 + 292 common futimesat sys_futimesat_time32 303 + 293 common fstatat64 sys_fstatat64 304 + 294 common unlinkat sys_unlinkat 305 + 295 common renameat sys_renameat 306 + 296 common linkat sys_linkat 307 + 297 common symlinkat sys_symlinkat 308 + 298 common readlinkat sys_readlinkat 309 + 299 common fchmodat sys_fchmodat 310 + 300 common faccessat sys_faccessat 311 + 301 common pselect6 sys_pselect6_time32 312 + 302 common ppoll sys_ppoll_time32 313 + 303 common unshare sys_unshare 314 + 304 common set_robust_list sys_set_robust_list 315 + 305 common get_robust_list sys_get_robust_list 316 + 306 common splice sys_splice 317 + 307 common sync_file_range sys_sync_file_range 318 + 308 common tee sys_tee 319 + 309 common vmsplice sys_vmsplice 320 + 310 common move_pages sys_move_pages 321 + 311 common sched_setaffinity sys_sched_setaffinity 322 + 312 common sched_getaffinity sys_sched_getaffinity 323 + 313 common kexec_load sys_kexec_load 324 + 314 common getcpu sys_getcpu 325 + 315 common epoll_pwait sys_epoll_pwait 326 + 316 common utimensat sys_utimensat_time32 327 + 317 common signalfd sys_signalfd 328 + 318 common timerfd_create sys_timerfd_create 329 + 319 common eventfd sys_eventfd 330 + 320 common fallocate sys_fallocate 331 + 321 common timerfd_settime sys_timerfd_settime32 332 + 322 common timerfd_gettime sys_timerfd_gettime32 333 + 323 common signalfd4 sys_signalfd4 334 + 324 common eventfd2 sys_eventfd2 335 + 325 common epoll_create1 sys_epoll_create1 336 + 326 common dup3 sys_dup3 337 + 327 common pipe2 sys_pipe2 338 + 328 common inotify_init1 sys_inotify_init1 339 + 329 common preadv sys_preadv 340 + 330 common pwritev sys_pwritev 341 + 331 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 342 + 332 common perf_event_open sys_perf_event_open 343 + 333 common get_thread_area sys_get_thread_area 344 + 334 common set_thread_area sys_set_thread_area 345 + 335 common atomic_cmpxchg_32 sys_atomic_cmpxchg_32 346 + 336 common atomic_barrier sys_atomic_barrier 347 + 337 common fanotify_init sys_fanotify_init 348 + 338 common fanotify_mark sys_fanotify_mark 349 + 339 common prlimit64 sys_prlimit64 350 + 340 common name_to_handle_at sys_name_to_handle_at 351 + 341 common open_by_handle_at sys_open_by_handle_at 352 + 342 common clock_adjtime sys_clock_adjtime32 353 + 343 common syncfs sys_syncfs 354 + 344 common setns sys_setns 355 + 345 common process_vm_readv sys_process_vm_readv 356 + 346 common process_vm_writev sys_process_vm_writev 357 + 347 common kcmp sys_kcmp 358 + 348 common finit_module sys_finit_module 359 + 349 common sched_setattr sys_sched_setattr 360 + 350 common sched_getattr sys_sched_getattr 361 + 351 common renameat2 sys_renameat2 362 + 352 common getrandom sys_getrandom 363 + 353 common memfd_create sys_memfd_create 364 + 354 common bpf sys_bpf 365 + 355 common execveat sys_execveat 366 + 356 common socket sys_socket 367 + 357 common socketpair sys_socketpair 368 + 358 common bind sys_bind 369 + 359 common connect sys_connect 370 + 360 common listen sys_listen 371 + 361 common accept4 sys_accept4 372 + 362 common getsockopt sys_getsockopt 373 + 363 common setsockopt sys_setsockopt 374 + 364 common getsockname sys_getsockname 375 + 365 common getpeername sys_getpeername 376 + 366 common sendto sys_sendto 377 + 367 common sendmsg sys_sendmsg 378 + 368 common recvfrom sys_recvfrom 379 + 369 common recvmsg sys_recvmsg 380 + 370 common shutdown sys_shutdown 381 + 371 common recvmmsg sys_recvmmsg_time32 382 + 372 common sendmmsg sys_sendmmsg 383 + 373 common userfaultfd sys_userfaultfd 384 + 374 common membarrier sys_membarrier 385 + 375 common mlock2 sys_mlock2 386 + 376 common copy_file_range sys_copy_file_range 387 + 377 common preadv2 sys_preadv2 388 + 378 common pwritev2 sys_pwritev2 389 + 379 common statx sys_statx 390 + 380 common seccomp sys_seccomp 391 + 381 common pkey_mprotect sys_pkey_mprotect 392 + 382 common pkey_alloc sys_pkey_alloc 393 + 383 common pkey_free sys_pkey_free 394 + 384 common rseq sys_rseq 395 + # room for arch specific calls 396 + 393 common semget sys_semget 397 + 394 common semctl sys_semctl 398 + 395 common shmget sys_shmget 399 + 396 common shmctl sys_shmctl 400 + 397 common shmat sys_shmat 401 + 398 common shmdt sys_shmdt 402 + 399 common msgget sys_msgget 403 + 400 common msgsnd sys_msgsnd 404 + 401 common msgrcv sys_msgrcv 405 + 402 common msgctl sys_msgctl 406 + 403 common clock_gettime64 sys_clock_gettime 407 + 404 common clock_settime64 sys_clock_settime 408 + 405 common clock_adjtime64 sys_clock_adjtime 409 + 406 common clock_getres_time64 sys_clock_getres 410 + 407 common clock_nanosleep_time64 sys_clock_nanosleep 411 + 408 common timer_gettime64 sys_timer_gettime 412 + 409 common timer_settime64 sys_timer_settime 413 + 410 common timerfd_gettime64 sys_timerfd_gettime 414 + 411 common timerfd_settime64 sys_timerfd_settime 415 + 412 common utimensat_time64 sys_utimensat 416 + 413 common pselect6_time64 sys_pselect6 417 + 414 common ppoll_time64 sys_ppoll 418 + 416 common io_pgetevents_time64 sys_io_pgetevents 419 + 417 common recvmmsg_time64 sys_recvmmsg 420 + 418 common mq_timedsend_time64 sys_mq_timedsend 421 + 419 common mq_timedreceive_time64 sys_mq_timedreceive 422 + 420 common semtimedop_time64 sys_semtimedop 423 + 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait 424 + 422 common futex_time64 sys_futex 425 + 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 426 + 424 common pidfd_send_signal sys_pidfd_send_signal 427 + 425 common io_uring_setup sys_io_uring_setup 428 + 426 common io_uring_enter sys_io_uring_enter 429 + 427 common io_uring_register sys_io_uring_register 430 + 428 common open_tree sys_open_tree 431 + 429 common move_mount sys_move_mount 432 + 430 common fsopen sys_fsopen 433 + 431 common fsconfig sys_fsconfig 434 + 432 common fsmount sys_fsmount 435 + 433 common fspick sys_fspick 436 + 434 common pidfd_open sys_pidfd_open 437 + 435 common clone3 __sys_clone3 438 + 437 common openat2 sys_openat2 439 + 438 common pidfd_getfd sys_pidfd_getfd
-434
linux-user/m68k/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_M68K_SYSCALL_NR_H 6 - #define LINUX_USER_M68K_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_exit 1 9 - #define TARGET_NR_fork 2 10 - #define TARGET_NR_read 3 11 - #define TARGET_NR_write 4 12 - #define TARGET_NR_open 5 13 - #define TARGET_NR_close 6 14 - #define TARGET_NR_waitpid 7 15 - #define TARGET_NR_creat 8 16 - #define TARGET_NR_link 9 17 - #define TARGET_NR_unlink 10 18 - #define TARGET_NR_execve 11 19 - #define TARGET_NR_chdir 12 20 - #define TARGET_NR_time 13 21 - #define TARGET_NR_mknod 14 22 - #define TARGET_NR_chmod 15 23 - #define TARGET_NR_chown 16 24 - #define TARGET_NR_break 17 25 - #define TARGET_NR_oldstat 18 26 - #define TARGET_NR_lseek 19 27 - #define TARGET_NR_getpid 20 28 - #define TARGET_NR_mount 21 29 - #define TARGET_NR_umount 22 30 - #define TARGET_NR_setuid 23 31 - #define TARGET_NR_getuid 24 32 - #define TARGET_NR_stime 25 33 - #define TARGET_NR_ptrace 26 34 - #define TARGET_NR_alarm 27 35 - #define TARGET_NR_oldfstat 28 36 - #define TARGET_NR_pause 29 37 - #define TARGET_NR_utime 30 38 - #define TARGET_NR_stty 31 39 - #define TARGET_NR_gtty 32 40 - #define TARGET_NR_access 33 41 - #define TARGET_NR_nice 34 42 - #define TARGET_NR_ftime 35 43 - #define TARGET_NR_sync 36 44 - #define TARGET_NR_kill 37 45 - #define TARGET_NR_rename 38 46 - #define TARGET_NR_mkdir 39 47 - #define TARGET_NR_rmdir 40 48 - #define TARGET_NR_dup 41 49 - #define TARGET_NR_pipe 42 50 - #define TARGET_NR_times 43 51 - #define TARGET_NR_prof 44 52 - #define TARGET_NR_brk 45 53 - #define TARGET_NR_setgid 46 54 - #define TARGET_NR_getgid 47 55 - #define TARGET_NR_signal 48 56 - #define TARGET_NR_geteuid 49 57 - #define TARGET_NR_getegid 50 58 - #define TARGET_NR_acct 51 59 - #define TARGET_NR_umount2 52 60 - #define TARGET_NR_lock 53 61 - #define TARGET_NR_ioctl 54 62 - #define TARGET_NR_fcntl 55 63 - #define TARGET_NR_mpx 56 64 - #define TARGET_NR_setpgid 57 65 - #define TARGET_NR_ulimit 58 66 - #define TARGET_NR_oldolduname 59 67 - #define TARGET_NR_umask 60 68 - #define TARGET_NR_chroot 61 69 - #define TARGET_NR_ustat 62 70 - #define TARGET_NR_dup2 63 71 - #define TARGET_NR_getppid 64 72 - #define TARGET_NR_getpgrp 65 73 - #define TARGET_NR_setsid 66 74 - #define TARGET_NR_sigaction 67 75 - #define TARGET_NR_sgetmask 68 76 - #define TARGET_NR_ssetmask 69 77 - #define TARGET_NR_setreuid 70 78 - #define TARGET_NR_setregid 71 79 - #define TARGET_NR_sigsuspend 72 80 - #define TARGET_NR_sigpending 73 81 - #define TARGET_NR_sethostname 74 82 - #define TARGET_NR_setrlimit 75 83 - #define TARGET_NR_getrlimit 76 84 - #define TARGET_NR_getrusage 77 85 - #define TARGET_NR_gettimeofday 78 86 - #define TARGET_NR_settimeofday 79 87 - #define TARGET_NR_getgroups 80 88 - #define TARGET_NR_setgroups 81 89 - #define TARGET_NR_select 82 90 - #define TARGET_NR_symlink 83 91 - #define TARGET_NR_oldlstat 84 92 - #define TARGET_NR_readlink 85 93 - #define TARGET_NR_uselib 86 94 - #define TARGET_NR_swapon 87 95 - #define TARGET_NR_reboot 88 96 - #define TARGET_NR_readdir 89 97 - #define TARGET_NR_mmap 90 98 - #define TARGET_NR_munmap 91 99 - #define TARGET_NR_truncate 92 100 - #define TARGET_NR_ftruncate 93 101 - #define TARGET_NR_fchmod 94 102 - #define TARGET_NR_fchown 95 103 - #define TARGET_NR_getpriority 96 104 - #define TARGET_NR_setpriority 97 105 - #define TARGET_NR_profil 98 106 - #define TARGET_NR_statfs 99 107 - #define TARGET_NR_fstatfs 100 108 - #define TARGET_NR_ioperm 101 109 - #define TARGET_NR_socketcall 102 110 - #define TARGET_NR_syslog 103 111 - #define TARGET_NR_setitimer 104 112 - #define TARGET_NR_getitimer 105 113 - #define TARGET_NR_stat 106 114 - #define TARGET_NR_lstat 107 115 - #define TARGET_NR_fstat 108 116 - #define TARGET_NR_olduname 109 117 - //#define TARGET_NR_iopl /* 110 */ not supported 118 - #define TARGET_NR_vhangup 111 119 - //#define TARGET_NR_idle /* 112 */ Obsolete 120 - //#define TARGET_NR_vm86 /* 113 */ not supported 121 - #define TARGET_NR_wait4 114 122 - #define TARGET_NR_swapoff 115 123 - #define TARGET_NR_sysinfo 116 124 - #define TARGET_NR_ipc 117 125 - #define TARGET_NR_fsync 118 126 - #define TARGET_NR_sigreturn 119 127 - #define TARGET_NR_clone 120 128 - #define TARGET_NR_setdomainname 121 129 - #define TARGET_NR_uname 122 130 - #define TARGET_NR_cacheflush 123 131 - #define TARGET_NR_adjtimex 124 132 - #define TARGET_NR_mprotect 125 133 - #define TARGET_NR_sigprocmask 126 134 - #define TARGET_NR_create_module 127 135 - #define TARGET_NR_init_module 128 136 - #define TARGET_NR_delete_module 129 137 - #define TARGET_NR_get_kernel_syms 130 138 - #define TARGET_NR_quotactl 131 139 - #define TARGET_NR_getpgid 132 140 - #define TARGET_NR_fchdir 133 141 - #define TARGET_NR_bdflush 134 142 - #define TARGET_NR_sysfs 135 143 - #define TARGET_NR_personality 136 144 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 145 - #define TARGET_NR_setfsuid 138 146 - #define TARGET_NR_setfsgid 139 147 - #define TARGET_NR__llseek 140 148 - #define TARGET_NR_getdents 141 149 - #define TARGET_NR__newselect 142 150 - #define TARGET_NR_flock 143 151 - #define TARGET_NR_msync 144 152 - #define TARGET_NR_readv 145 153 - #define TARGET_NR_writev 146 154 - #define TARGET_NR_getsid 147 155 - #define TARGET_NR_fdatasync 148 156 - #define TARGET_NR__sysctl 149 157 - #define TARGET_NR_mlock 150 158 - #define TARGET_NR_munlock 151 159 - #define TARGET_NR_mlockall 152 160 - #define TARGET_NR_munlockall 153 161 - #define TARGET_NR_sched_setparam 154 162 - #define TARGET_NR_sched_getparam 155 163 - #define TARGET_NR_sched_setscheduler 156 164 - #define TARGET_NR_sched_getscheduler 157 165 - #define TARGET_NR_sched_yield 158 166 - #define TARGET_NR_sched_get_priority_max 159 167 - #define TARGET_NR_sched_get_priority_min 160 168 - #define TARGET_NR_sched_rr_get_interval 161 169 - #define TARGET_NR_nanosleep 162 170 - #define TARGET_NR_mremap 163 171 - #define TARGET_NR_setresuid 164 172 - #define TARGET_NR_getresuid 165 173 - #define TARGET_NR_getpagesize 166 174 - #define TARGET_NR_query_module 167 175 - #define TARGET_NR_poll 168 176 - #define TARGET_NR_nfsservctl 169 177 - #define TARGET_NR_setresgid 170 178 - #define TARGET_NR_getresgid 171 179 - #define TARGET_NR_prctl 172 180 - #define TARGET_NR_rt_sigreturn 173 181 - #define TARGET_NR_rt_sigaction 174 182 - #define TARGET_NR_rt_sigprocmask 175 183 - #define TARGET_NR_rt_sigpending 176 184 - #define TARGET_NR_rt_sigtimedwait 177 185 - #define TARGET_NR_rt_sigqueueinfo 178 186 - #define TARGET_NR_rt_sigsuspend 179 187 - #define TARGET_NR_pread64 180 188 - #define TARGET_NR_pwrite64 181 189 - #define TARGET_NR_lchown 182 190 - #define TARGET_NR_getcwd 183 191 - #define TARGET_NR_capget 184 192 - #define TARGET_NR_capset 185 193 - #define TARGET_NR_sigaltstack 186 194 - #define TARGET_NR_sendfile 187 195 - #define TARGET_NR_getpmsg 188 /* some people actually want streams */ 196 - #define TARGET_NR_putpmsg 189 /* some people actually want streams */ 197 - #define TARGET_NR_vfork 190 198 - #define TARGET_NR_ugetrlimit 191 199 - #define TARGET_NR_mmap2 192 200 - #define TARGET_NR_truncate64 193 201 - #define TARGET_NR_ftruncate64 194 202 - #define TARGET_NR_stat64 195 203 - #define TARGET_NR_lstat64 196 204 - #define TARGET_NR_fstat64 197 205 - #define TARGET_NR_chown32 198 206 - #define TARGET_NR_getuid32 199 207 - #define TARGET_NR_getgid32 200 208 - #define TARGET_NR_geteuid32 201 209 - #define TARGET_NR_getegid32 202 210 - #define TARGET_NR_setreuid32 203 211 - #define TARGET_NR_setregid32 204 212 - #define TARGET_NR_getgroups32 205 213 - #define TARGET_NR_setgroups32 206 214 - #define TARGET_NR_fchown32 207 215 - #define TARGET_NR_setresuid32 208 216 - #define TARGET_NR_getresuid32 209 217 - #define TARGET_NR_setresgid32 210 218 - #define TARGET_NR_getresgid32 211 219 - #define TARGET_NR_lchown32 212 220 - #define TARGET_NR_setuid32 213 221 - #define TARGET_NR_setgid32 214 222 - #define TARGET_NR_setfsuid32 215 223 - #define TARGET_NR_setfsgid32 216 224 - #define TARGET_NR_pivot_root 217 225 - #define TARGET_NR_getdents64 220 226 - #define TARGET_NR_gettid 221 227 - #define TARGET_NR_tkill 222 228 - #define TARGET_NR_setxattr 223 229 - #define TARGET_NR_lsetxattr 224 230 - #define TARGET_NR_fsetxattr 225 231 - #define TARGET_NR_getxattr 226 232 - #define TARGET_NR_lgetxattr 227 233 - #define TARGET_NR_fgetxattr 228 234 - #define TARGET_NR_listxattr 229 235 - #define TARGET_NR_llistxattr 230 236 - #define TARGET_NR_flistxattr 231 237 - #define TARGET_NR_removexattr 232 238 - #define TARGET_NR_lremovexattr 233 239 - #define TARGET_NR_fremovexattr 234 240 - #define TARGET_NR_futex 235 241 - #define TARGET_NR_sendfile64 236 242 - #define TARGET_NR_mincore 237 243 - #define TARGET_NR_madvise 238 244 - #define TARGET_NR_fcntl64 239 245 - #define TARGET_NR_readahead 240 246 - #define TARGET_NR_io_setup 241 247 - #define TARGET_NR_io_destroy 242 248 - #define TARGET_NR_io_getevents 243 249 - #define TARGET_NR_io_submit 244 250 - #define TARGET_NR_io_cancel 245 251 - #define TARGET_NR_fadvise64 246 252 - #define TARGET_NR_exit_group 247 253 - #define TARGET_NR_lookup_dcookie 248 254 - #define TARGET_NR_epoll_create 249 255 - #define TARGET_NR_epoll_ctl 250 256 - #define TARGET_NR_epoll_wait 251 257 - #define TARGET_NR_remap_file_pages 252 258 - #define TARGET_NR_set_tid_address 253 259 - #define TARGET_NR_timer_create 254 260 - #define TARGET_NR_timer_settime 255 261 - #define TARGET_NR_timer_gettime 256 262 - #define TARGET_NR_timer_getoverrun 257 263 - #define TARGET_NR_timer_delete 258 264 - #define TARGET_NR_clock_settime 259 265 - #define TARGET_NR_clock_gettime 260 266 - #define TARGET_NR_clock_getres 261 267 - #define TARGET_NR_clock_nanosleep 262 268 - #define TARGET_NR_statfs64 263 269 - #define TARGET_NR_fstatfs64 264 270 - #define TARGET_NR_tgkill 265 271 - #define TARGET_NR_utimes 266 272 - #define TARGET_NR_fadvise64_64 267 273 - #define TARGET_NR_mbind 268 274 - #define TARGET_NR_get_mempolicy 269 275 - #define TARGET_NR_set_mempolicy 270 276 - #define TARGET_NR_mq_open 271 277 - #define TARGET_NR_mq_unlink 272 278 - #define TARGET_NR_mq_timedsend 273 279 - #define TARGET_NR_mq_timedreceive 274 280 - #define TARGET_NR_mq_notify 275 281 - #define TARGET_NR_mq_getsetattr 276 282 - #define TARGET_NR_waitid 277 283 - #define TARGET_NR_vserver 278 284 - #define TARGET_NR_add_key 279 285 - #define TARGET_NR_request_key 280 286 - #define TARGET_NR_keyctl 281 287 - #define TARGET_NR_ioprio_set 282 288 - #define TARGET_NR_ioprio_get 283 289 - #define TARGET_NR_inotify_init 284 290 - #define TARGET_NR_inotify_add_watch 285 291 - #define TARGET_NR_inotify_rm_watch 286 292 - #define TARGET_NR_migrate_pages 287 293 - #define TARGET_NR_openat 288 294 - #define TARGET_NR_mkdirat 289 295 - #define TARGET_NR_mknodat 290 296 - #define TARGET_NR_fchownat 291 297 - #define TARGET_NR_futimesat 292 298 - #define TARGET_NR_fstatat64 293 299 - #define TARGET_NR_unlinkat 294 300 - #define TARGET_NR_renameat 295 301 - #define TARGET_NR_linkat 296 302 - #define TARGET_NR_symlinkat 297 303 - #define TARGET_NR_readlinkat 298 304 - #define TARGET_NR_fchmodat 299 305 - #define TARGET_NR_faccessat 300 306 - #define TARGET_NR_pselect6 301 307 - #define TARGET_NR_ppoll 302 308 - #define TARGET_NR_unshare 303 309 - #define TARGET_NR_set_robust_list 304 310 - #define TARGET_NR_get_robust_list 305 311 - #define TARGET_NR_splice 306 312 - #define TARGET_NR_sync_file_range 307 313 - #define TARGET_NR_tee 308 314 - #define TARGET_NR_vmsplice 309 315 - #define TARGET_NR_move_pages 310 316 - #define TARGET_NR_sched_setaffinity 311 317 - #define TARGET_NR_sched_getaffinity 312 318 - #define TARGET_NR_kexec_load 313 319 - #define TARGET_NR_getcpu 314 320 - #define TARGET_NR_epoll_pwait 315 321 - #define TARGET_NR_utimensat 316 322 - #define TARGET_NR_signalfd 317 323 - #define TARGET_NR_timerfd_create 318 324 - #define TARGET_NR_eventfd 319 325 - #define TARGET_NR_fallocate 320 326 - #define TARGET_NR_timerfd_settime 321 327 - #define TARGET_NR_timerfd_gettime 322 328 - #define TARGET_NR_signalfd4 323 329 - #define TARGET_NR_eventfd2 324 330 - #define TARGET_NR_epoll_create1 325 331 - #define TARGET_NR_dup3 326 332 - #define TARGET_NR_pipe2 327 333 - #define TARGET_NR_inotify_init1 328 334 - #define TARGET_NR_inotify_init1 328 335 - #define TARGET_NR_preadv 329 336 - #define TARGET_NR_pwritev 330 337 - #define TARGET_NR_rt_tgsigqueueinfo 331 338 - #define TARGET_NR_perf_event_open 332 339 - #define TARGET_NR_get_thread_area 333 340 - #define TARGET_NR_set_thread_area 334 341 - #define TARGET_NR_atomic_cmpxchg_32 335 342 - #define TARGET_NR_atomic_barrier 336 343 - #define TARGET_NR_fanotify_init 337 344 - #define TARGET_NR_fanotify_mark 338 345 - #define TARGET_NR_prlimit64 339 346 - #define TARGET_NR_name_to_handle_at 340 347 - #define TARGET_NR_open_by_handle_at 341 348 - #define TARGET_NR_clock_adjtime 342 349 - #define TARGET_NR_syncfs 343 350 - #define TARGET_NR_setns 344 351 - #define TARGET_NR_process_vm_readv 345 352 - #define TARGET_NR_process_vm_writev 346 353 - #define TARGET_NR_kcmp 347 354 - #define TARGET_NR_finit_module 348 355 - #define TARGET_NR_sched_setattr 349 356 - #define TARGET_NR_sched_getattr 350 357 - #define TARGET_NR_renameat2 351 358 - #define TARGET_NR_getrandom 352 359 - #define TARGET_NR_memfd_create 353 360 - #define TARGET_NR_bpf 354 361 - #define TARGET_NR_execveat 355 362 - #define TARGET_NR_socket 356 363 - #define TARGET_NR_socketpair 357 364 - #define TARGET_NR_bind 358 365 - #define TARGET_NR_connect 359 366 - #define TARGET_NR_listen 360 367 - #define TARGET_NR_accept4 361 368 - #define TARGET_NR_getsockopt 362 369 - #define TARGET_NR_setsockopt 363 370 - #define TARGET_NR_getsockname 364 371 - #define TARGET_NR_getpeername 365 372 - #define TARGET_NR_sendto 366 373 - #define TARGET_NR_sendmsg 367 374 - #define TARGET_NR_recvfrom 368 375 - #define TARGET_NR_recvmsg 369 376 - #define TARGET_NR_shutdown 370 377 - #define TARGET_NR_recvmmsg 371 378 - #define TARGET_NR_sendmmsg 372 379 - #define TARGET_NR_userfaultfd 373 380 - #define TARGET_NR_membarrier 374 381 - #define TARGET_NR_mlock2 375 382 - #define TARGET_NR_copy_file_range 376 383 - #define TARGET_NR_preadv2 377 384 - #define TARGET_NR_pwritev2 378 385 - #define TARGET_NR_statx 379 386 - #define TARGET_NR_seccomp 380 387 - #define TARGET_NR_pkey_mprotect 381 388 - #define TARGET_NR_pkey_alloc 382 389 - #define TARGET_NR_pkey_free 383 390 - #define TARGET_NR_rseq 384 391 - /* room for arch specific calls */ 392 - #define TARGET_NR_semget 393 393 - #define TARGET_NR_semctl 394 394 - #define TARGET_NR_shmget 395 395 - #define TARGET_NR_shmctl 396 396 - #define TARGET_NR_shmat 397 397 - #define TARGET_NR_shmdt 398 398 - #define TARGET_NR_msgget 399 399 - #define TARGET_NR_msgsnd 400 400 - #define TARGET_NR_msgrcv 401 401 - #define TARGET_NR_msgctl 402 402 - #define TARGET_NR_clock_gettime64 403 403 - #define TARGET_NR_clock_settime64 404 404 - #define TARGET_NR_clock_adjtime64 405 405 - #define TARGET_NR_clock_getres_time64 406 406 - #define TARGET_NR_clock_nanosleep_time64 407 407 - #define TARGET_NR_timer_gettime64 408 408 - #define TARGET_NR_timer_settime64 409 409 - #define TARGET_NR_timerfd_gettime64 410 410 - #define TARGET_NR_timerfd_settime64 411 411 - #define TARGET_NR_utimensat_time64 412 412 - #define TARGET_NR_pselect6_time64 413 413 - #define TARGET_NR_ppoll_time64 414 414 - #define TARGET_NR_io_pgetevents_time64 416 415 - #define TARGET_NR_recvmmsg_time64 417 416 - #define TARGET_NR_mq_timedsend_time64 418 417 - #define TARGET_NR_mq_timedreceive_time64 419 418 - #define TARGET_NR_semtimedop_time64 420 419 - #define TARGET_NR_rt_sigtimedwait_time64 421 420 - #define TARGET_NR_futex_time64 422 421 - #define TARGET_NR_sched_rr_get_interval_time64 423 422 - #define TARGET_NR_pidfd_send_signal 424 423 - #define TARGET_NR_io_uring_setup 425 424 - #define TARGET_NR_io_uring_enter 426 425 - #define TARGET_NR_io_uring_register 427 426 - #define TARGET_NR_open_tree 428 427 - #define TARGET_NR_move_mount 429 428 - #define TARGET_NR_fsopen 430 429 - #define TARGET_NR_fsconfig 431 430 - #define TARGET_NR_fsmount 432 431 - #define TARGET_NR_fspick 433 432 - #define TARGET_NR_pidfd_open 434 433 - /* 435 reserved for clone3 */ 434 - #endif
+32
linux-user/m68k/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_M68K_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */\n" "${fileguard}" 32 + ) > "$out"
+5
linux-user/microblaze/Makefile.objs
··· 1 + generated-files-y += linux-user/microblaze/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/microblaze/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/microblaze/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+445
linux-user/microblaze/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for microblaze 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> 7 + # 8 + # The <abi> is always "common" for this file 9 + # 10 + 0 common restart_syscall sys_restart_syscall 11 + 1 common exit sys_exit 12 + 2 common fork sys_fork 13 + 3 common read sys_read 14 + 4 common write sys_write 15 + 5 common open sys_open 16 + 6 common close sys_close 17 + 7 common waitpid sys_waitpid 18 + 8 common creat sys_creat 19 + 9 common link sys_link 20 + 10 common unlink sys_unlink 21 + 11 common execve sys_execve 22 + 12 common chdir sys_chdir 23 + 13 common time sys_time32 24 + 14 common mknod sys_mknod 25 + 15 common chmod sys_chmod 26 + 16 common lchown sys_lchown 27 + 17 common break sys_ni_syscall 28 + 18 common oldstat sys_ni_syscall 29 + 19 common lseek sys_lseek 30 + 20 common getpid sys_getpid 31 + 21 common mount sys_mount 32 + 22 common umount sys_oldumount 33 + 23 common setuid sys_setuid 34 + 24 common getuid sys_getuid 35 + 25 common stime sys_stime32 36 + 26 common ptrace sys_ptrace 37 + 27 common alarm sys_alarm 38 + 28 common oldfstat sys_ni_syscall 39 + 29 common pause sys_pause 40 + 30 common utime sys_utime32 41 + 31 common stty sys_ni_syscall 42 + 32 common gtty sys_ni_syscall 43 + 33 common access sys_access 44 + 34 common nice sys_nice 45 + 35 common ftime sys_ni_syscall 46 + 36 common sync sys_sync 47 + 37 common kill sys_kill 48 + 38 common rename sys_rename 49 + 39 common mkdir sys_mkdir 50 + 40 common rmdir sys_rmdir 51 + 41 common dup sys_dup 52 + 42 common pipe sys_pipe 53 + 43 common times sys_times 54 + 44 common prof sys_ni_syscall 55 + 45 common brk sys_brk 56 + 46 common setgid sys_setgid 57 + 47 common getgid sys_getgid 58 + 48 common signal sys_signal 59 + 49 common geteuid sys_geteuid 60 + 50 common getegid sys_getegid 61 + 51 common acct sys_acct 62 + 52 common umount2 sys_umount 63 + 53 common lock sys_ni_syscall 64 + 54 common ioctl sys_ioctl 65 + 55 common fcntl sys_fcntl 66 + 56 common mpx sys_ni_syscall 67 + 57 common setpgid sys_setpgid 68 + 58 common ulimit sys_ni_syscall 69 + 59 common oldolduname sys_ni_syscall 70 + 60 common umask sys_umask 71 + 61 common chroot sys_chroot 72 + 62 common ustat sys_ustat 73 + 63 common dup2 sys_dup2 74 + 64 common getppid sys_getppid 75 + 65 common getpgrp sys_getpgrp 76 + 66 common setsid sys_setsid 77 + 67 common sigaction sys_ni_syscall 78 + 68 common sgetmask sys_sgetmask 79 + 69 common ssetmask sys_ssetmask 80 + 70 common setreuid sys_setreuid 81 + 71 common setregid sys_setregid 82 + 72 common sigsuspend sys_ni_syscall 83 + 73 common sigpending sys_sigpending 84 + 74 common sethostname sys_sethostname 85 + 75 common setrlimit sys_setrlimit 86 + 76 common getrlimit sys_ni_syscall 87 + 77 common getrusage sys_getrusage 88 + 78 common gettimeofday sys_gettimeofday 89 + 79 common settimeofday sys_settimeofday 90 + 80 common getgroups sys_getgroups 91 + 81 common setgroups sys_setgroups 92 + 82 common select sys_ni_syscall 93 + 83 common symlink sys_symlink 94 + 84 common oldlstat sys_ni_syscall 95 + 85 common readlink sys_readlink 96 + 86 common uselib sys_uselib 97 + 87 common swapon sys_swapon 98 + 88 common reboot sys_reboot 99 + 89 common readdir sys_ni_syscall 100 + 90 common mmap sys_mmap 101 + 91 common munmap sys_munmap 102 + 92 common truncate sys_truncate 103 + 93 common ftruncate sys_ftruncate 104 + 94 common fchmod sys_fchmod 105 + 95 common fchown sys_fchown 106 + 96 common getpriority sys_getpriority 107 + 97 common setpriority sys_setpriority 108 + 98 common profil sys_ni_syscall 109 + 99 common statfs sys_statfs 110 + 100 common fstatfs sys_fstatfs 111 + 101 common ioperm sys_ni_syscall 112 + 102 common socketcall sys_socketcall 113 + 103 common syslog sys_syslog 114 + 104 common setitimer sys_setitimer 115 + 105 common getitimer sys_getitimer 116 + 106 common stat sys_newstat 117 + 107 common lstat sys_newlstat 118 + 108 common fstat sys_newfstat 119 + 109 common olduname sys_ni_syscall 120 + 110 common iopl sys_ni_syscall 121 + 111 common vhangup sys_vhangup 122 + 112 common idle sys_ni_syscall 123 + 113 common vm86old sys_ni_syscall 124 + 114 common wait4 sys_wait4 125 + 115 common swapoff sys_swapoff 126 + 116 common sysinfo sys_sysinfo 127 + 117 common ipc sys_ni_syscall 128 + 118 common fsync sys_fsync 129 + 119 common sigreturn sys_ni_syscall 130 + 120 common clone sys_clone 131 + 121 common setdomainname sys_setdomainname 132 + 122 common uname sys_newuname 133 + 123 common modify_ldt sys_ni_syscall 134 + 124 common adjtimex sys_adjtimex_time32 135 + 125 common mprotect sys_mprotect 136 + 126 common sigprocmask sys_sigprocmask 137 + 127 common create_module sys_ni_syscall 138 + 128 common init_module sys_init_module 139 + 129 common delete_module sys_delete_module 140 + 130 common get_kernel_syms sys_ni_syscall 141 + 131 common quotactl sys_quotactl 142 + 132 common getpgid sys_getpgid 143 + 133 common fchdir sys_fchdir 144 + 134 common bdflush sys_bdflush 145 + 135 common sysfs sys_sysfs 146 + 136 common personality sys_personality 147 + 137 common afs_syscall sys_ni_syscall 148 + 138 common setfsuid sys_setfsuid 149 + 139 common setfsgid sys_setfsgid 150 + 140 common _llseek sys_llseek 151 + 141 common getdents sys_getdents 152 + 142 common _newselect sys_select 153 + 143 common flock sys_flock 154 + 144 common msync sys_msync 155 + 145 common readv sys_readv 156 + 146 common writev sys_writev 157 + 147 common getsid sys_getsid 158 + 148 common fdatasync sys_fdatasync 159 + 149 common _sysctl sys_sysctl 160 + 150 common mlock sys_mlock 161 + 151 common munlock sys_munlock 162 + 152 common mlockall sys_mlockall 163 + 153 common munlockall sys_munlockall 164 + 154 common sched_setparam sys_sched_setparam 165 + 155 common sched_getparam sys_sched_getparam 166 + 156 common sched_setscheduler sys_sched_setscheduler 167 + 157 common sched_getscheduler sys_sched_getscheduler 168 + 158 common sched_yield sys_sched_yield 169 + 159 common sched_get_priority_max sys_sched_get_priority_max 170 + 160 common sched_get_priority_min sys_sched_get_priority_min 171 + 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32 172 + 162 common nanosleep sys_nanosleep_time32 173 + 163 common mremap sys_mremap 174 + 164 common setresuid sys_setresuid 175 + 165 common getresuid sys_getresuid 176 + 166 common vm86 sys_ni_syscall 177 + 167 common query_module sys_ni_syscall 178 + 168 common poll sys_poll 179 + 169 common nfsservctl sys_ni_syscall 180 + 170 common setresgid sys_setresgid 181 + 171 common getresgid sys_getresgid 182 + 172 common prctl sys_prctl 183 + 173 common rt_sigreturn sys_rt_sigreturn_wrapper 184 + 174 common rt_sigaction sys_rt_sigaction 185 + 175 common rt_sigprocmask sys_rt_sigprocmask 186 + 176 common rt_sigpending sys_rt_sigpending 187 + 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 188 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo 189 + 179 common rt_sigsuspend sys_rt_sigsuspend 190 + 180 common pread64 sys_pread64 191 + 181 common pwrite64 sys_pwrite64 192 + 182 common chown sys_chown 193 + 183 common getcwd sys_getcwd 194 + 184 common capget sys_capget 195 + 185 common capset sys_capset 196 + 186 common sigaltstack sys_ni_syscall 197 + 187 common sendfile sys_sendfile 198 + 188 common getpmsg sys_ni_syscall 199 + 189 common putpmsg sys_ni_syscall 200 + 190 common vfork sys_vfork 201 + 191 common ugetrlimit sys_getrlimit 202 + 192 common mmap2 sys_mmap2 203 + 193 common truncate64 sys_truncate64 204 + 194 common ftruncate64 sys_ftruncate64 205 + 195 common stat64 sys_stat64 206 + 196 common lstat64 sys_lstat64 207 + 197 common fstat64 sys_fstat64 208 + 198 common lchown32 sys_lchown 209 + 199 common getuid32 sys_getuid 210 + 200 common getgid32 sys_getgid 211 + 201 common geteuid32 sys_geteuid 212 + 202 common getegid32 sys_getegid 213 + 203 common setreuid32 sys_setreuid 214 + 204 common setregid32 sys_setregid 215 + 205 common getgroups32 sys_getgroups 216 + 206 common setgroups32 sys_setgroups 217 + 207 common fchown32 sys_fchown 218 + 208 common setresuid32 sys_setresuid 219 + 209 common getresuid32 sys_getresuid 220 + 210 common setresgid32 sys_setresgid 221 + 211 common getresgid32 sys_getresgid 222 + 212 common chown32 sys_chown 223 + 213 common setuid32 sys_setuid 224 + 214 common setgid32 sys_setgid 225 + 215 common setfsuid32 sys_setfsuid 226 + 216 common setfsgid32 sys_setfsgid 227 + 217 common pivot_root sys_pivot_root 228 + 218 common mincore sys_mincore 229 + 219 common madvise sys_madvise 230 + 220 common getdents64 sys_getdents64 231 + 221 common fcntl64 sys_fcntl64 232 + # 222 is reserved for TUX 233 + # 223 is unused 234 + 224 common gettid sys_gettid 235 + 225 common readahead sys_readahead 236 + 226 common setxattr sys_setxattr 237 + 227 common lsetxattr sys_lsetxattr 238 + 228 common fsetxattr sys_fsetxattr 239 + 229 common getxattr sys_getxattr 240 + 230 common lgetxattr sys_lgetxattr 241 + 231 common fgetxattr sys_fgetxattr 242 + 232 common listxattr sys_listxattr 243 + 233 common llistxattr sys_llistxattr 244 + 234 common flistxattr sys_flistxattr 245 + 235 common removexattr sys_removexattr 246 + 236 common lremovexattr sys_lremovexattr 247 + 237 common fremovexattr sys_fremovexattr 248 + 238 common tkill sys_tkill 249 + 239 common sendfile64 sys_sendfile64 250 + 240 common futex sys_futex_time32 251 + 241 common sched_setaffinity sys_sched_setaffinity 252 + 242 common sched_getaffinity sys_sched_getaffinity 253 + 243 common set_thread_area sys_ni_syscall 254 + 244 common get_thread_area sys_ni_syscall 255 + 245 common io_setup sys_io_setup 256 + 246 common io_destroy sys_io_destroy 257 + 247 common io_getevents sys_io_getevents_time32 258 + 248 common io_submit sys_io_submit 259 + 249 common io_cancel sys_io_cancel 260 + 250 common fadvise64 sys_fadvise64 261 + # 251 is available for reuse (was briefly sys_set_zone_reclaim) 262 + 252 common exit_group sys_exit_group 263 + 253 common lookup_dcookie sys_lookup_dcookie 264 + 254 common epoll_create sys_epoll_create 265 + 255 common epoll_ctl sys_epoll_ctl 266 + 256 common epoll_wait sys_epoll_wait 267 + 257 common remap_file_pages sys_remap_file_pages 268 + 258 common set_tid_address sys_set_tid_address 269 + 259 common timer_create sys_timer_create 270 + 260 common timer_settime sys_timer_settime32 271 + 261 common timer_gettime sys_timer_gettime32 272 + 262 common timer_getoverrun sys_timer_getoverrun 273 + 263 common timer_delete sys_timer_delete 274 + 264 common clock_settime sys_clock_settime32 275 + 265 common clock_gettime sys_clock_gettime32 276 + 266 common clock_getres sys_clock_getres_time32 277 + 267 common clock_nanosleep sys_clock_nanosleep_time32 278 + 268 common statfs64 sys_statfs64 279 + 269 common fstatfs64 sys_fstatfs64 280 + 270 common tgkill sys_tgkill 281 + 271 common utimes sys_utimes_time32 282 + 272 common fadvise64_64 sys_fadvise64_64 283 + 273 common vserver sys_ni_syscall 284 + 274 common mbind sys_mbind 285 + 275 common get_mempolicy sys_get_mempolicy 286 + 276 common set_mempolicy sys_set_mempolicy 287 + 277 common mq_open sys_mq_open 288 + 278 common mq_unlink sys_mq_unlink 289 + 279 common mq_timedsend sys_mq_timedsend_time32 290 + 280 common mq_timedreceive sys_mq_timedreceive_time32 291 + 281 common mq_notify sys_mq_notify 292 + 282 common mq_getsetattr sys_mq_getsetattr 293 + 283 common kexec_load sys_kexec_load 294 + 284 common waitid sys_waitid 295 + # 285 was setaltroot 296 + 286 common add_key sys_add_key 297 + 287 common request_key sys_request_key 298 + 288 common keyctl sys_keyctl 299 + 289 common ioprio_set sys_ioprio_set 300 + 290 common ioprio_get sys_ioprio_get 301 + 291 common inotify_init sys_inotify_init 302 + 292 common inotify_add_watch sys_inotify_add_watch 303 + 293 common inotify_rm_watch sys_inotify_rm_watch 304 + 294 common migrate_pages sys_ni_syscall 305 + 295 common openat sys_openat 306 + 296 common mkdirat sys_mkdirat 307 + 297 common mknodat sys_mknodat 308 + 298 common fchownat sys_fchownat 309 + 299 common futimesat sys_futimesat_time32 310 + 300 common fstatat64 sys_fstatat64 311 + 301 common unlinkat sys_unlinkat 312 + 302 common renameat sys_renameat 313 + 303 common linkat sys_linkat 314 + 304 common symlinkat sys_symlinkat 315 + 305 common readlinkat sys_readlinkat 316 + 306 common fchmodat sys_fchmodat 317 + 307 common faccessat sys_faccessat 318 + 308 common pselect6 sys_pselect6_time32 319 + 309 common ppoll sys_ppoll_time32 320 + 310 common unshare sys_unshare 321 + 311 common set_robust_list sys_set_robust_list 322 + 312 common get_robust_list sys_get_robust_list 323 + 313 common splice sys_splice 324 + 314 common sync_file_range sys_sync_file_range 325 + 315 common tee sys_tee 326 + 316 common vmsplice sys_vmsplice 327 + 317 common move_pages sys_move_pages 328 + 318 common getcpu sys_getcpu 329 + 319 common epoll_pwait sys_epoll_pwait 330 + 320 common utimensat sys_utimensat_time32 331 + 321 common signalfd sys_signalfd 332 + 322 common timerfd_create sys_timerfd_create 333 + 323 common eventfd sys_eventfd 334 + 324 common fallocate sys_fallocate 335 + 325 common semtimedop sys_semtimedop_time32 336 + 326 common timerfd_settime sys_timerfd_settime32 337 + 327 common timerfd_gettime sys_timerfd_gettime32 338 + 328 common semctl sys_old_semctl 339 + 329 common semget sys_semget 340 + 330 common semop sys_semop 341 + 331 common msgctl sys_old_msgctl 342 + 332 common msgget sys_msgget 343 + 333 common msgrcv sys_msgrcv 344 + 334 common msgsnd sys_msgsnd 345 + 335 common shmat sys_shmat 346 + 336 common shmctl sys_old_shmctl 347 + 337 common shmdt sys_shmdt 348 + 338 common shmget sys_shmget 349 + 339 common signalfd4 sys_signalfd4 350 + 340 common eventfd2 sys_eventfd2 351 + 341 common epoll_create1 sys_epoll_create1 352 + 342 common dup3 sys_dup3 353 + 343 common pipe2 sys_pipe2 354 + 344 common inotify_init1 sys_inotify_init1 355 + 345 common socket sys_socket 356 + 346 common socketpair sys_socketpair 357 + 347 common bind sys_bind 358 + 348 common listen sys_listen 359 + 349 common accept sys_accept 360 + 350 common connect sys_connect 361 + 351 common getsockname sys_getsockname 362 + 352 common getpeername sys_getpeername 363 + 353 common sendto sys_sendto 364 + 354 common send sys_send 365 + 355 common recvfrom sys_recvfrom 366 + 356 common recv sys_recv 367 + 357 common setsockopt sys_setsockopt 368 + 358 common getsockopt sys_getsockopt 369 + 359 common shutdown sys_shutdown 370 + 360 common sendmsg sys_sendmsg 371 + 361 common recvmsg sys_recvmsg 372 + 362 common accept4 sys_accept4 373 + 363 common preadv sys_preadv 374 + 364 common pwritev sys_pwritev 375 + 365 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 376 + 366 common perf_event_open sys_perf_event_open 377 + 367 common recvmmsg sys_recvmmsg_time32 378 + 368 common fanotify_init sys_fanotify_init 379 + 369 common fanotify_mark sys_fanotify_mark 380 + 370 common prlimit64 sys_prlimit64 381 + 371 common name_to_handle_at sys_name_to_handle_at 382 + 372 common open_by_handle_at sys_open_by_handle_at 383 + 373 common clock_adjtime sys_clock_adjtime32 384 + 374 common syncfs sys_syncfs 385 + 375 common setns sys_setns 386 + 376 common sendmmsg sys_sendmmsg 387 + 377 common process_vm_readv sys_process_vm_readv 388 + 378 common process_vm_writev sys_process_vm_writev 389 + 379 common kcmp sys_kcmp 390 + 380 common finit_module sys_finit_module 391 + 381 common sched_setattr sys_sched_setattr 392 + 382 common sched_getattr sys_sched_getattr 393 + 383 common renameat2 sys_renameat2 394 + 384 common seccomp sys_seccomp 395 + 385 common getrandom sys_getrandom 396 + 386 common memfd_create sys_memfd_create 397 + 387 common bpf sys_bpf 398 + 388 common execveat sys_execveat 399 + 389 common userfaultfd sys_userfaultfd 400 + 390 common membarrier sys_membarrier 401 + 391 common mlock2 sys_mlock2 402 + 392 common copy_file_range sys_copy_file_range 403 + 393 common preadv2 sys_preadv2 404 + 394 common pwritev2 sys_pwritev2 405 + 395 common pkey_mprotect sys_pkey_mprotect 406 + 396 common pkey_alloc sys_pkey_alloc 407 + 397 common pkey_free sys_pkey_free 408 + 398 common statx sys_statx 409 + 399 common io_pgetevents sys_io_pgetevents_time32 410 + 400 common rseq sys_rseq 411 + # 401 and 402 are unused 412 + 403 common clock_gettime64 sys_clock_gettime 413 + 404 common clock_settime64 sys_clock_settime 414 + 405 common clock_adjtime64 sys_clock_adjtime 415 + 406 common clock_getres_time64 sys_clock_getres 416 + 407 common clock_nanosleep_time64 sys_clock_nanosleep 417 + 408 common timer_gettime64 sys_timer_gettime 418 + 409 common timer_settime64 sys_timer_settime 419 + 410 common timerfd_gettime64 sys_timerfd_gettime 420 + 411 common timerfd_settime64 sys_timerfd_settime 421 + 412 common utimensat_time64 sys_utimensat 422 + 413 common pselect6_time64 sys_pselect6 423 + 414 common ppoll_time64 sys_ppoll 424 + 416 common io_pgetevents_time64 sys_io_pgetevents 425 + 417 common recvmmsg_time64 sys_recvmmsg 426 + 418 common mq_timedsend_time64 sys_mq_timedsend 427 + 419 common mq_timedreceive_time64 sys_mq_timedreceive 428 + 420 common semtimedop_time64 sys_semtimedop 429 + 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait 430 + 422 common futex_time64 sys_futex 431 + 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 432 + 424 common pidfd_send_signal sys_pidfd_send_signal 433 + 425 common io_uring_setup sys_io_uring_setup 434 + 426 common io_uring_enter sys_io_uring_enter 435 + 427 common io_uring_register sys_io_uring_register 436 + 428 common open_tree sys_open_tree 437 + 429 common move_mount sys_move_mount 438 + 430 common fsopen sys_fsopen 439 + 431 common fsconfig sys_fsconfig 440 + 432 common fsmount sys_fsmount 441 + 433 common fspick sys_fspick 442 + 434 common pidfd_open sys_pidfd_open 443 + 435 common clone3 sys_clone3 444 + 437 common openat2 sys_openat2 445 + 438 common pidfd_getfd sys_pidfd_getfd
-442
linux-user/microblaze/syscall_nr.h
··· 1 - #ifndef LINUX_USER_MICROBLAZE_SYSCALL_NR_H 2 - #define LINUX_USER_MICROBLAZE_SYSCALL_NR_H 3 - 4 - #define TARGET_NR_restart_syscall 0 /* ok */ 5 - #define TARGET_NR_exit 1 /* ok */ 6 - #define TARGET_NR_fork 2 /* not for no MMU - weird */ 7 - #define TARGET_NR_read 3 /* ok */ 8 - #define TARGET_NR_write 4 /* ok */ 9 - #define TARGET_NR_open 5 /* openat */ 10 - #define TARGET_NR_close 6 /* ok */ 11 - #define TARGET_NR_waitpid 7 /* waitid */ 12 - #define TARGET_NR_creat 8 /* openat */ 13 - #define TARGET_NR_link 9 /* linkat */ 14 - #define TARGET_NR_unlink 10 /* unlinkat */ 15 - #define TARGET_NR_execve 11 /* ok */ 16 - #define TARGET_NR_chdir 12 /* ok */ 17 - #define TARGET_NR_time 13 /* obsolete -> sys_gettimeofday */ 18 - #define TARGET_NR_mknod 14 /* mknodat */ 19 - #define TARGET_NR_chmod 15 /* fchmodat */ 20 - #define TARGET_NR_lchown 16 /* ok */ 21 - #define TARGET_NR_break 17 /* don't know */ 22 - #define TARGET_NR_oldstat 18 /* remove */ 23 - #define TARGET_NR_lseek 19 /* ok */ 24 - #define TARGET_NR_getpid 20 /* ok */ 25 - #define TARGET_NR_mount 21 /* ok */ 26 - #define TARGET_NR_umount 22 /* ok */ /* use only umount2 */ 27 - #define TARGET_NR_setuid 23 /* ok */ 28 - #define TARGET_NR_getuid 24 /* ok */ 29 - #define TARGET_NR_stime 25 /* obsolete -> sys_settimeofday */ 30 - #define TARGET_NR_ptrace 26 /* ok */ 31 - #define TARGET_NR_alarm 27 /* obsolete -> sys_setitimer */ 32 - #define TARGET_NR_oldfstat 28 /* remove */ 33 - #define TARGET_NR_pause 29 /* obsolete -> sys_rt_sigtimedwait */ 34 - #define TARGET_NR_utime 30 /* obsolete -> sys_utimesat */ 35 - #define TARGET_NR_stty 31 /* remove */ 36 - #define TARGET_NR_gtty 32 /* remove */ 37 - #define TARGET_NR_access 33 /* faccessat */ 38 - #define TARGET_NR_nice 34 /* can be implemented by sys_setpriority */ 39 - #define TARGET_NR_ftime 35 /* remove */ 40 - #define TARGET_NR_sync 36 /* ok */ 41 - #define TARGET_NR_kill 37 /* ok */ 42 - #define TARGET_NR_rename 38 /* renameat */ 43 - #define TARGET_NR_mkdir 39 /* mkdirat */ 44 - #define TARGET_NR_rmdir 40 /* unlinkat */ 45 - #define TARGET_NR_dup 41 /* ok */ 46 - #define TARGET_NR_pipe 42 /* ok */ 47 - #define TARGET_NR_times 43 /* ok */ 48 - #define TARGET_NR_prof 44 /* remove */ 49 - #define TARGET_NR_brk 45 /* ok -mmu, nommu specific */ 50 - #define TARGET_NR_setgid 46 /* ok */ 51 - #define TARGET_NR_getgid 47 /* ok */ 52 - #define TARGET_NR_signal 48 /* obsolete -> sys_rt_sigaction */ 53 - #define TARGET_NR_geteuid 49 /* ok */ 54 - #define TARGET_NR_getegid 50 /* ok */ 55 - #define TARGET_NR_acct 51 /* add it and then I can disable it */ 56 - #define TARGET_NR_umount2 52 /* remove */ 57 - #define TARGET_NR_lock 53 /* remove */ 58 - #define TARGET_NR_ioctl 54 /* ok */ 59 - #define TARGET_NR_fcntl 55 /* ok -> 64bit version*/ 60 - #define TARGET_NR_mpx 56 /* remove */ 61 - #define TARGET_NR_setpgid 57 /* ok */ 62 - #define TARGET_NR_ulimit 58 /* remove */ 63 - #define TARGET_NR_oldolduname 59 /* remove */ 64 - #define TARGET_NR_umask 60 /* ok */ 65 - #define TARGET_NR_chroot 61 /* ok */ 66 - #define TARGET_NR_ustat 62 /* obsolete -> statfs64 */ 67 - #define TARGET_NR_dup2 63 /* ok */ 68 - #define TARGET_NR_getppid 64 /* ok */ 69 - #define TARGET_NR_getpgrp 65 /* obsolete -> sys_getpgid */ 70 - #define TARGET_NR_setsid 66 /* ok */ 71 - #define TARGET_NR_sigaction 67 /* obsolete -> rt_sigaction */ 72 - #define TARGET_NR_sgetmask 68 /* obsolete -> sys_rt_sigprocmask */ 73 - #define TARGET_NR_ssetmask 69 /* obsolete ->sys_rt_sigprocmask */ 74 - #define TARGET_NR_setreuid 70 /* ok */ 75 - #define TARGET_NR_setregid 71 /* ok */ 76 - #define TARGET_NR_sigsuspend 72 /* obsolete -> rt_sigsuspend */ 77 - #define TARGET_NR_sigpending 73 /* obsolete -> sys_rt_sigpending */ 78 - #define TARGET_NR_sethostname 74 /* ok */ 79 - #define TARGET_NR_setrlimit 75 /* ok */ 80 - #define TARGET_NR_getrlimit 76 /* ok Back compatible 2Gig limited rlimit */ 81 - #define TARGET_NR_getrusage 77 /* ok */ 82 - #define TARGET_NR_gettimeofday 78 /* ok */ 83 - #define TARGET_NR_settimeofday 79 /* ok */ 84 - #define TARGET_NR_getgroups 80 /* ok */ 85 - #define TARGET_NR_setgroups 81 /* ok */ 86 - #define TARGET_NR_select 82 /* obsolete -> sys_pselect7 */ 87 - #define TARGET_NR_symlink 83 /* symlinkat */ 88 - #define TARGET_NR_oldlstat 84 /* remove */ 89 - #define TARGET_NR_readlink 85 /* obsolete -> sys_readlinkat */ 90 - #define TARGET_NR_uselib 86 /* remove */ 91 - #define TARGET_NR_swapon 87 /* ok */ 92 - #define TARGET_NR_reboot 88 /* ok */ 93 - #define TARGET_NR_readdir 89 /* remove ? */ 94 - #define TARGET_NR_mmap 90 /* obsolete -> sys_mmap2 */ 95 - #define TARGET_NR_munmap 91 /* ok - mmu and nommu */ 96 - #define TARGET_NR_truncate 92 /* ok or truncate64 */ 97 - #define TARGET_NR_ftruncate 93 /* ok or ftruncate64 */ 98 - #define TARGET_NR_fchmod 94 /* ok */ 99 - #define TARGET_NR_fchown 95 /* ok */ 100 - #define TARGET_NR_getpriority 96 /* ok */ 101 - #define TARGET_NR_setpriority 97 /* ok */ 102 - #define TARGET_NR_profil 98 /* remove */ 103 - #define TARGET_NR_statfs 99 /* ok or statfs64 */ 104 - #define TARGET_NR_fstatfs 100 /* ok or fstatfs64 */ 105 - #define TARGET_NR_ioperm 101 /* remove */ 106 - #define TARGET_NR_socketcall 102 /* remove */ 107 - #define TARGET_NR_syslog 103 /* ok */ 108 - #define TARGET_NR_setitimer 104 /* ok */ 109 - #define TARGET_NR_getitimer 105 /* ok */ 110 - #define TARGET_NR_stat 106 /* remove */ 111 - #define TARGET_NR_lstat 107 /* remove */ 112 - #define TARGET_NR_fstat 108 /* remove */ 113 - #define TARGET_NR_olduname 109 /* remove */ 114 - #define TARGET_NR_iopl 110 /* remove */ 115 - #define TARGET_NR_vhangup 111 /* ok */ 116 - #define TARGET_NR_idle 112 /* remove */ 117 - #define TARGET_NR_vm86old 113 /* remove */ 118 - #define TARGET_NR_wait4 114 /* obsolete -> waitid */ 119 - #define TARGET_NR_swapoff 115 /* ok */ 120 - #define TARGET_NR_sysinfo 116 /* ok */ 121 - #define TARGET_NR_ipc 117 /* remove - direct call */ 122 - #define TARGET_NR_fsync 118 /* ok */ 123 - #define TARGET_NR_sigreturn 119 /* obsolete -> sys_rt_sigreturn */ 124 - #define TARGET_NR_clone 120 /* ok */ 125 - #define TARGET_NR_setdomainname 121 /* ok */ 126 - #define TARGET_NR_uname 122 /* remove */ 127 - #define TARGET_NR_modify_ldt 123 /* remove */ 128 - #define TARGET_NR_adjtimex 124 /* ok */ 129 - #define TARGET_NR_mprotect 125 /* remove */ 130 - #define TARGET_NR_sigprocmask 126 /* obsolete -> sys_rt_sigprocmask */ 131 - #define TARGET_NR_create_module 127 /* remove */ 132 - #define TARGET_NR_init_module 128 /* ok */ 133 - #define TARGET_NR_delete_module 129 /* ok */ 134 - #define TARGET_NR_get_kernel_syms 130 /* remove */ 135 - #define TARGET_NR_quotactl 131 /* ok */ 136 - #define TARGET_NR_getpgid 132 /* ok */ 137 - #define TARGET_NR_fchdir 133 /* ok */ 138 - #define TARGET_NR_bdflush 134 /* remove */ 139 - #define TARGET_NR_sysfs 135 /* needed for busybox */ 140 - #define TARGET_NR_personality 136 /* ok */ 141 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 142 - #define TARGET_NR_setfsuid 138 /* ok */ 143 - #define TARGET_NR_setfsgid 139 /* ok */ 144 - #define TARGET_NR__llseek 140 /* remove only lseek */ 145 - #define TARGET_NR_getdents 141 /* ok or getdents64 */ 146 - #define TARGET_NR__newselect 142 /* remove */ 147 - #define TARGET_NR_flock 143 /* ok */ 148 - #define TARGET_NR_msync 144 /* remove */ 149 - #define TARGET_NR_readv 145 /* ok */ 150 - #define TARGET_NR_writev 146 /* ok */ 151 - #define TARGET_NR_getsid 147 /* ok */ 152 - #define TARGET_NR_fdatasync 148 /* ok */ 153 - #define TARGET_NR__sysctl 149 /* remove */ 154 - #define TARGET_NR_mlock 150 /* ok - nommu or mmu */ 155 - #define TARGET_NR_munlock 151 /* ok - nommu or mmu */ 156 - #define TARGET_NR_mlockall 152 /* ok - nommu or mmu */ 157 - #define TARGET_NR_munlockall 153 /* ok - nommu or mmu */ 158 - #define TARGET_NR_sched_setparam 154 /* ok */ 159 - #define TARGET_NR_sched_getparam 155 /* ok */ 160 - #define TARGET_NR_sched_setscheduler 156 /* ok */ 161 - #define TARGET_NR_sched_getscheduler 157 /* ok */ 162 - #define TARGET_NR_sched_yield 158 /* ok */ 163 - #define TARGET_NR_sched_get_priority_max 159 /* ok */ 164 - #define TARGET_NR_sched_get_priority_min 160 /* ok */ 165 - #define TARGET_NR_sched_rr_get_interval 161 /* ok */ 166 - #define TARGET_NR_nanosleep 162 /* ok */ 167 - #define TARGET_NR_mremap 163 /* ok - nommu or mmu */ 168 - #define TARGET_NR_setresuid 164 /* ok */ 169 - #define TARGET_NR_getresuid 165 /* ok */ 170 - #define TARGET_NR_vm86 166 /* remove */ 171 - #define TARGET_NR_query_module 167 /* ok */ 172 - #define TARGET_NR_poll 168 /* obsolete -> sys_ppoll */ 173 - #define TARGET_NR_nfsservctl 169 /* ok */ 174 - #define TARGET_NR_setresgid 170 /* ok */ 175 - #define TARGET_NR_getresgid 171 /* ok */ 176 - #define TARGET_NR_prctl 172 /* ok */ 177 - #define TARGET_NR_rt_sigreturn 173 /* ok */ 178 - #define TARGET_NR_rt_sigaction 174 /* ok */ 179 - #define TARGET_NR_rt_sigprocmask 175 /* ok */ 180 - #define TARGET_NR_rt_sigpending 176 /* ok */ 181 - #define TARGET_NR_rt_sigtimedwait 177 /* ok */ 182 - #define TARGET_NR_rt_sigqueueinfo 178 /* ok */ 183 - #define TARGET_NR_rt_sigsuspend 179 /* ok */ 184 - #define TARGET_NR_pread64 180 /* ok */ 185 - #define TARGET_NR_pwrite64 181 /* ok */ 186 - #define TARGET_NR_chown 182 /* obsolete -> fchownat */ 187 - #define TARGET_NR_getcwd 183 /* ok */ 188 - #define TARGET_NR_capget 184 /* ok */ 189 - #define TARGET_NR_capset 185 /* ok */ 190 - #define TARGET_NR_sigaltstack 186 /* remove */ 191 - #define TARGET_NR_sendfile 187 /* ok -> exist 64bit version*/ 192 - #define TARGET_NR_getpmsg 188 /* remove - some people actually want streams */ 193 - #define TARGET_NR_putpmsg 189 /* remove - some people actually want streams */ 194 - #define TARGET_NR_vfork 190 /* for noMMU - group with clone -> maybe remove */ 195 - #define TARGET_NR_ugetrlimit 191 /* remove - SuS compliant getrlimit */ 196 - #define TARGET_NR_mmap2 192 /* ok */ 197 - #define TARGET_NR_truncate64 193 /* ok */ 198 - #define TARGET_NR_ftruncate64 194 /* ok */ 199 - #define TARGET_NR_stat64 195 /* remove _ARCH_WANT_STAT64 */ 200 - #define TARGET_NR_lstat64 196 /* remove _ARCH_WANT_STAT64 */ 201 - #define TARGET_NR_fstat64 197 /* remove _ARCH_WANT_STAT64 */ 202 - #define TARGET_NR_lchown32 198 /* ok - without 32 */ 203 - #define TARGET_NR_getuid32 199 /* ok - without 32 */ 204 - #define TARGET_NR_getgid32 200 /* ok - without 32 */ 205 - #define TARGET_NR_geteuid32 201 /* ok - without 32 */ 206 - #define TARGET_NR_getegid32 202 /* ok - without 32 */ 207 - #define TARGET_NR_setreuid32 203 /* ok - without 32 */ 208 - #define TARGET_NR_setregid32 204 /* ok - without 32 */ 209 - #define TARGET_NR_getgroups32 205 /* ok - without 32 */ 210 - #define TARGET_NR_setgroups32 206 /* ok - without 32 */ 211 - #define TARGET_NR_fchown32 207 /* ok - without 32 */ 212 - #define TARGET_NR_setresuid32 208 /* ok - without 32 */ 213 - #define TARGET_NR_getresuid32 209 /* ok - without 32 */ 214 - #define TARGET_NR_setresgid32 210 /* ok - without 32 */ 215 - #define TARGET_NR_getresgid32 211 /* ok - without 32 */ 216 - #define TARGET_NR_chown32 212 /* ok - without 32 -obsolete -> fchownat */ 217 - #define TARGET_NR_setuid32 213 /* ok - without 32 */ 218 - #define TARGET_NR_setgid32 214 /* ok - without 32 */ 219 - #define TARGET_NR_setfsuid32 215 /* ok - without 32 */ 220 - #define TARGET_NR_setfsgid32 216 /* ok - without 32 */ 221 - #define TARGET_NR_pivot_root 217 /* ok */ 222 - #define TARGET_NR_mincore 218 /* ok */ 223 - #define TARGET_NR_madvise 219 /* ok */ 224 - //#define TARGET_NR_madvise1 219 /* remove delete when C lib stub is removed */ 225 - #define TARGET_NR_getdents64 220 /* ok */ 226 - #define TARGET_NR_fcntl64 221 /* ok */ 227 - /* 223 is unused */ 228 - #define TARGET_NR_gettid 224 /* ok */ 229 - #define TARGET_NR_readahead 225 /* ok */ 230 - #define TARGET_NR_setxattr 226 /* ok */ 231 - #define TARGET_NR_lsetxattr 227 /* ok */ 232 - #define TARGET_NR_fsetxattr 228 /* ok */ 233 - #define TARGET_NR_getxattr 229 /* ok */ 234 - #define TARGET_NR_lgetxattr 230 /* ok */ 235 - #define TARGET_NR_fgetxattr 231 /* ok */ 236 - #define TARGET_NR_listxattr 232 /* ok */ 237 - #define TARGET_NR_llistxattr 233 /* ok */ 238 - #define TARGET_NR_flistxattr 234 /* ok */ 239 - #define TARGET_NR_removexattr 235 /* ok */ 240 - #define TARGET_NR_lremovexattr 236 /* ok */ 241 - #define TARGET_NR_fremovexattr 237 /* ok */ 242 - #define TARGET_NR_tkill 238 /* ok */ 243 - #define TARGET_NR_sendfile64 239 /* ok */ 244 - #define TARGET_NR_futex 240 /* ok */ 245 - #define TARGET_NR_sched_setaffinity 241 /* ok */ 246 - #define TARGET_NR_sched_getaffinity 242 /* ok */ 247 - #define TARGET_NR_set_thread_area 243 /* remove */ 248 - #define TARGET_NR_get_thread_area 244 /* remove */ 249 - #define TARGET_NR_io_setup 245 /* ok */ 250 - #define TARGET_NR_io_destroy 246 /* ok */ 251 - #define TARGET_NR_io_getevents 247 /* ok */ 252 - #define TARGET_NR_io_submit 248 /* ok */ 253 - #define TARGET_NR_io_cancel 249 /* ok */ 254 - #define TARGET_NR_fadvise64 250 /* remove -> sys_fadvise64_64 */ 255 - /* 251 is available for reuse (was briefly sys_set_zone_reclaim) */ 256 - #define TARGET_NR_exit_group 252 /* ok */ 257 - #define TARGET_NR_lookup_dcookie 253 /* ok */ 258 - #define TARGET_NR_epoll_create 254 /* ok */ 259 - #define TARGET_NR_epoll_ctl 255 /* ok */ 260 - #define TARGET_NR_epoll_wait 256 /* obsolete -> sys_epoll_pwait */ 261 - #define TARGET_NR_remap_file_pages 257 /* only for mmu */ 262 - #define TARGET_NR_set_tid_address 258 /* ok */ 263 - #define TARGET_NR_timer_create 259 /* ok */ 264 - #define TARGET_NR_timer_settime (TARGET_NR_timer_create+1) /* 260 */ /* ok */ 265 - #define TARGET_NR_timer_gettime (TARGET_NR_timer_create+2) /* 261 */ /* ok */ 266 - #define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create+3) /* 262 */ /* ok */ 267 - #define TARGET_NR_timer_delete (TARGET_NR_timer_create+4) /* 263 */ /* ok */ 268 - #define TARGET_NR_clock_settime (TARGET_NR_timer_create+5) /* 264 */ /* ok */ 269 - #define TARGET_NR_clock_gettime (TARGET_NR_timer_create+6) /* 265 */ /* ok */ 270 - #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) /* 266 */ /* ok */ 271 - #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) /* 267 */ /* ok */ 272 - #define TARGET_NR_statfs64 268 /* ok */ 273 - #define TARGET_NR_fstatfs64 269 /* ok */ 274 - #define TARGET_NR_tgkill 270 /* ok */ 275 - #define TARGET_NR_utimes 271 /* obsolete -> sys_futimesat */ 276 - #define TARGET_NR_fadvise64_64 272 /* ok */ 277 - #define TARGET_NR_vserver 273 /* ok */ 278 - #define TARGET_NR_mbind 274 /* only for mmu */ 279 - #define TARGET_NR_get_mempolicy 275 /* only for mmu */ 280 - #define TARGET_NR_set_mempolicy 276 /* only for mmu */ 281 - #define TARGET_NR_mq_open 277 /* ok */ 282 - #define TARGET_NR_mq_unlink (TARGET_NR_mq_open+1) /* 278 */ /* ok */ 283 - #define TARGET_NR_mq_timedsend (TARGET_NR_mq_open+2) /* 279 */ /* ok */ 284 - #define TARGET_NR_mq_timedreceive (TARGET_NR_mq_open+3) /* 280 */ /* ok */ 285 - #define TARGET_NR_mq_notify (TARGET_NR_mq_open+4) /* 281 */ /* ok */ 286 - #define TARGET_NR_mq_getsetattr (TARGET_NR_mq_open+5) /* 282 */ /* ok */ 287 - #define TARGET_NR_kexec_load 283 /* ok */ 288 - #define TARGET_NR_waitid 284 /* ok */ 289 - /* #define TARGET_NR_sys_setaltroot 285 */ 290 - #define TARGET_NR_add_key 286 /* ok */ 291 - #define TARGET_NR_request_key 287 /* ok */ 292 - #define TARGET_NR_keyctl 288 /* ok */ 293 - #define TARGET_NR_ioprio_set 289 /* ok */ 294 - #define TARGET_NR_ioprio_get 290 /* ok */ 295 - #define TARGET_NR_inotify_init 291 /* ok */ 296 - #define TARGET_NR_inotify_add_watch 292 /* ok */ 297 - #define TARGET_NR_inotify_rm_watch 293 /* ok */ 298 - #define TARGET_NR_migrate_pages 294 /* mmu */ 299 - #define TARGET_NR_openat 295 /* ok */ 300 - #define TARGET_NR_mkdirat 296 /* ok */ 301 - #define TARGET_NR_mknodat 297 /* ok */ 302 - #define TARGET_NR_fchownat 298 /* ok */ 303 - #define TARGET_NR_futimesat 299 /* obsolete -> sys_utimesat */ 304 - #define TARGET_NR_fstatat64 300 /* stat64 */ 305 - #define TARGET_NR_unlinkat 301 /* ok */ 306 - #define TARGET_NR_renameat 302 /* ok */ 307 - #define TARGET_NR_linkat 303 /* ok */ 308 - #define TARGET_NR_symlinkat 304 /* ok */ 309 - #define TARGET_NR_readlinkat 305 /* ok */ 310 - #define TARGET_NR_fchmodat 306 /* ok */ 311 - #define TARGET_NR_faccessat 307 /* ok */ 312 - #define TARGET_NR_pselect6 308 /* obsolete -> sys_pselect7 */ 313 - #define TARGET_NR_ppoll 309 /* ok */ 314 - #define TARGET_NR_unshare 310 /* ok */ 315 - #define TARGET_NR_set_robust_list 311 /* ok */ 316 - #define TARGET_NR_get_robust_list 312 /* ok */ 317 - #define TARGET_NR_splice 313 /* ok */ 318 - #define TARGET_NR_sync_file_range 314 /* ok */ 319 - #define TARGET_NR_tee 315 /* ok */ 320 - #define TARGET_NR_vmsplice 316 /* ok */ 321 - #define TARGET_NR_move_pages 317 /* mmu */ 322 - #define TARGET_NR_getcpu 318 /* ok */ 323 - #define TARGET_NR_epoll_pwait 319 /* ok */ 324 - #define TARGET_NR_utimensat 320 /* ok */ 325 - #define TARGET_NR_signalfd 321 /* ok */ 326 - #define TARGET_NR_timerfd_create 322 /* ok */ 327 - #define TARGET_NR_eventfd 323 /* ok */ 328 - #define TARGET_NR_fallocate 324 /* ok */ 329 - #define TARGET_NR_semtimedop 325 /* ok - semaphore group */ 330 - #define TARGET_NR_timerfd_settime 326 /* ok */ 331 - #define TARGET_NR_timerfd_gettime 327 /* ok */ 332 - /* sysv ipc syscalls */ 333 - #define TARGET_NR_semctl 328 /* ok */ 334 - #define TARGET_NR_semget 329 /* ok */ 335 - #define TARGET_NR_semop 330 /* ok */ 336 - #define TARGET_NR_msgctl 331 /* ok */ 337 - #define TARGET_NR_msgget 332 /* ok */ 338 - #define TARGET_NR_msgrcv 333 /* ok */ 339 - #define TARGET_NR_msgsnd 334 /* ok */ 340 - #define TARGET_NR_shmat 335 /* ok */ 341 - #define TARGET_NR_shmctl 336 /* ok */ 342 - #define TARGET_NR_shmdt 337 /* ok */ 343 - #define TARGET_NR_shmget 338 /* ok */ 344 - 345 - 346 - #define TARGET_NR_signalfd4 339 /* new */ 347 - #define TARGET_NR_eventfd2 340 /* new */ 348 - #define TARGET_NR_epoll_create1 341 /* new */ 349 - #define TARGET_NR_dup3 342 /* new */ 350 - #define TARGET_NR_pipe2 343 /* new */ 351 - #define TARGET_NR_inotify_init1 344 /* new */ 352 - #define TARGET_NR_socket 345 /* new */ 353 - #define TARGET_NR_socketpair 346 /* new */ 354 - #define TARGET_NR_bind 347 /* new */ 355 - #define TARGET_NR_listen 348 /* new */ 356 - #define TARGET_NR_accept 349 /* new */ 357 - #define TARGET_NR_connect 350 /* new */ 358 - #define TARGET_NR_getsockname 351 /* new */ 359 - #define TARGET_NR_getpeername 352 /* new */ 360 - #define TARGET_NR_sendto 353 /* new */ 361 - #define TARGET_NR_send 354 /* new */ 362 - #define TARGET_NR_recvfrom 355 /* new */ 363 - #define TARGET_NR_recv 356 /* new */ 364 - #define TARGET_NR_setsockopt 357 /* new */ 365 - #define TARGET_NR_getsockopt 358 /* new */ 366 - #define TARGET_NR_shutdown 359 /* new */ 367 - #define TARGET_NR_sendmsg 360 /* new */ 368 - #define TARGET_NR_recvmsg 361 /* new */ 369 - #define TARGET_NR_accept4 362 /* new */ 370 - #define TARGET_NR_preadv 363 /* new */ 371 - #define TARGET_NR_pwritev 364 /* new */ 372 - #define TARGET_NR_rt_tgsigqueueinfo 365 /* new */ 373 - #define TARGET_NR_perf_event_open 366 /* new */ 374 - #define TARGET_NR_recvmmsg 367 /* new */ 375 - #define TARGET_NR_fanotify_init 368 376 - #define TARGET_NR_fanotify_mark 369 377 - #define TARGET_NR_prlimit64 370 378 - #define TARGET_NR_name_to_handle_at 371 379 - #define TARGET_NR_open_by_handle_at 372 380 - #define TARGET_NR_clock_adjtime 373 381 - #define TARGET_NR_syncfs 374 382 - #define TARGET_NR_setns 375 383 - #define TARGET_NR_sendmmsg 376 384 - #define TARGET_NR_process_vm_readv 377 385 - #define TARGET_NR_process_vm_writev 378 386 - #define TARGET_NR_kcmp 379 387 - #define TARGET_NR_finit_module 380 388 - #define TARGET_NR_sched_setattr 381 389 - #define TARGET_NR_sched_getattr 382 390 - #define TARGET_NR_renameat2 383 391 - #define TARGET_NR_seccomp 384 392 - #define TARGET_NR_getrandom 385 393 - #define TARGET_NR_memfd_create 386 394 - #define TARGET_NR_bpf 387 395 - #define TARGET_NR_execveat 388 396 - #define TARGET_NR_userfaultfd 389 397 - #define TARGET_NR_membarrier 390 398 - #define TARGET_NR_mlock2 391 399 - #define TARGET_NR_copy_file_range 392 400 - #define TARGET_NR_preadv2 393 401 - #define TARGET_NR_pwritev2 394 402 - #define TARGET_NR_pkey_mprotect 395 403 - #define TARGET_NR_pkey_alloc 396 404 - #define TARGET_NR_pkey_free 397 405 - #define TARGET_NR_statx 398 406 - #define TARGET_NR_io_pgetevents 399 407 - #define TARGET_NR_rseq 400 408 - /* 401 and 402 are unused */ 409 - #define TARGET_NR_clock_gettime64 403 410 - #define TARGET_NR_clock_settime64 404 411 - #define TARGET_NR_clock_adjtime64 405 412 - #define TARGET_NR_clock_getres_time64 406 413 - #define TARGET_NR_clock_nanosleep_time64 407 414 - #define TARGET_NR_timer_gettime64 408 415 - #define TARGET_NR_timer_settime64 409 416 - #define TARGET_NR_timerfd_gettime64 410 417 - #define TARGET_NR_timerfd_settime64 411 418 - #define TARGET_NR_utimensat_time64 412 419 - #define TARGET_NR_pselect6_time64 413 420 - #define TARGET_NR_ppoll_time64 414 421 - #define TARGET_NR_io_pgetevents_time64 416 422 - #define TARGET_NR_recvmmsg_time64 417 423 - #define TARGET_NR_mq_timedsend_time64 418 424 - #define TARGET_NR_mq_timedreceive_time64 419 425 - #define TARGET_NR_semtimedop_time64 420 426 - #define TARGET_NR_rt_sigtimedwait_time64 421 427 - #define TARGET_NR_futex_time64 422 428 - #define TARGET_NR_sched_rr_get_interval_time64 423 429 - #define TARGET_NR_pidfd_send_signal 424 430 - #define TARGET_NR_io_uring_setup 425 431 - #define TARGET_NR_io_uring_enter 426 432 - #define TARGET_NR_io_uring_register 427 433 - #define TARGET_NR_open_tree 428 434 - #define TARGET_NR_move_mount 429 435 - #define TARGET_NR_fsopen 430 436 - #define TARGET_NR_fsconfig 431 437 - #define TARGET_NR_fsmount 432 438 - #define TARGET_NR_fspick 433 439 - #define TARGET_NR_pidfd_open 434 440 - #define TARGET_NR_clone3 435 441 - 442 - #endif
+32
linux-user/microblaze/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_MICROBLAZE_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+5
linux-user/mips/Makefile.objs
··· 1 + generated-files-y += linux-user/mips/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/mips/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/mips/syscall_o32.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI) "" 4000,"GEN","$@")
+1 -439
linux-user/mips/cpu_loop.c
··· 26 26 27 27 # ifdef TARGET_ABI_MIPSO32 28 28 # define MIPS_SYSCALL_NUMBER_UNUSED -1 29 - # define MIPS_SYS(name, args) args, 30 29 static const int8_t mips_syscall_args[] = { 31 - MIPS_SYS(sys_syscall , 8) /* 4000 */ 32 - MIPS_SYS(sys_exit , 1) 33 - MIPS_SYS(sys_fork , 0) 34 - MIPS_SYS(sys_read , 3) 35 - MIPS_SYS(sys_write , 3) 36 - MIPS_SYS(sys_open , 3) /* 4005 */ 37 - MIPS_SYS(sys_close , 1) 38 - MIPS_SYS(sys_waitpid , 3) 39 - MIPS_SYS(sys_creat , 2) 40 - MIPS_SYS(sys_link , 2) 41 - MIPS_SYS(sys_unlink , 1) /* 4010 */ 42 - MIPS_SYS(sys_execve , 0) 43 - MIPS_SYS(sys_chdir , 1) 44 - MIPS_SYS(sys_time , 1) 45 - MIPS_SYS(sys_mknod , 3) 46 - MIPS_SYS(sys_chmod , 2) /* 4015 */ 47 - MIPS_SYS(sys_lchown , 3) 48 - MIPS_SYS(sys_ni_syscall , 0) 49 - MIPS_SYS(sys_ni_syscall , 0) /* was sys_stat */ 50 - MIPS_SYS(sys_lseek , 3) 51 - MIPS_SYS(sys_getpid , 0) /* 4020 */ 52 - MIPS_SYS(sys_mount , 5) 53 - MIPS_SYS(sys_umount , 1) 54 - MIPS_SYS(sys_setuid , 1) 55 - MIPS_SYS(sys_getuid , 0) 56 - MIPS_SYS(sys_stime , 1) /* 4025 */ 57 - MIPS_SYS(sys_ptrace , 4) 58 - MIPS_SYS(sys_alarm , 1) 59 - MIPS_SYS(sys_ni_syscall , 0) /* was sys_fstat */ 60 - MIPS_SYS(sys_pause , 0) 61 - MIPS_SYS(sys_utime , 2) /* 4030 */ 62 - MIPS_SYS(sys_ni_syscall , 0) 63 - MIPS_SYS(sys_ni_syscall , 0) 64 - MIPS_SYS(sys_access , 2) 65 - MIPS_SYS(sys_nice , 1) 66 - MIPS_SYS(sys_ni_syscall , 0) /* 4035 */ 67 - MIPS_SYS(sys_sync , 0) 68 - MIPS_SYS(sys_kill , 2) 69 - MIPS_SYS(sys_rename , 2) 70 - MIPS_SYS(sys_mkdir , 2) 71 - MIPS_SYS(sys_rmdir , 1) /* 4040 */ 72 - MIPS_SYS(sys_dup , 1) 73 - MIPS_SYS(sys_pipe , 0) 74 - MIPS_SYS(sys_times , 1) 75 - MIPS_SYS(sys_ni_syscall , 0) 76 - MIPS_SYS(sys_brk , 1) /* 4045 */ 77 - MIPS_SYS(sys_setgid , 1) 78 - MIPS_SYS(sys_getgid , 0) 79 - MIPS_SYS(sys_ni_syscall , 0) /* was signal(2) */ 80 - MIPS_SYS(sys_geteuid , 0) 81 - MIPS_SYS(sys_getegid , 0) /* 4050 */ 82 - MIPS_SYS(sys_acct , 0) 83 - MIPS_SYS(sys_umount2 , 2) 84 - MIPS_SYS(sys_ni_syscall , 0) 85 - MIPS_SYS(sys_ioctl , 3) 86 - MIPS_SYS(sys_fcntl , 3) /* 4055 */ 87 - MIPS_SYS(sys_ni_syscall , 2) 88 - MIPS_SYS(sys_setpgid , 2) 89 - MIPS_SYS(sys_ni_syscall , 0) 90 - MIPS_SYS(sys_olduname , 1) 91 - MIPS_SYS(sys_umask , 1) /* 4060 */ 92 - MIPS_SYS(sys_chroot , 1) 93 - MIPS_SYS(sys_ustat , 2) 94 - MIPS_SYS(sys_dup2 , 2) 95 - MIPS_SYS(sys_getppid , 0) 96 - MIPS_SYS(sys_getpgrp , 0) /* 4065 */ 97 - MIPS_SYS(sys_setsid , 0) 98 - MIPS_SYS(sys_sigaction , 3) 99 - MIPS_SYS(sys_sgetmask , 0) 100 - MIPS_SYS(sys_ssetmask , 1) 101 - MIPS_SYS(sys_setreuid , 2) /* 4070 */ 102 - MIPS_SYS(sys_setregid , 2) 103 - MIPS_SYS(sys_sigsuspend , 0) 104 - MIPS_SYS(sys_sigpending , 1) 105 - MIPS_SYS(sys_sethostname , 2) 106 - MIPS_SYS(sys_setrlimit , 2) /* 4075 */ 107 - MIPS_SYS(sys_getrlimit , 2) 108 - MIPS_SYS(sys_getrusage , 2) 109 - MIPS_SYS(sys_gettimeofday, 2) 110 - MIPS_SYS(sys_settimeofday, 2) 111 - MIPS_SYS(sys_getgroups , 2) /* 4080 */ 112 - MIPS_SYS(sys_setgroups , 2) 113 - MIPS_SYS(sys_ni_syscall , 0) /* old_select */ 114 - MIPS_SYS(sys_symlink , 2) 115 - MIPS_SYS(sys_ni_syscall , 0) /* was sys_lstat */ 116 - MIPS_SYS(sys_readlink , 3) /* 4085 */ 117 - MIPS_SYS(sys_uselib , 1) 118 - MIPS_SYS(sys_swapon , 2) 119 - MIPS_SYS(sys_reboot , 3) 120 - MIPS_SYS(old_readdir , 3) 121 - MIPS_SYS(old_mmap , 6) /* 4090 */ 122 - MIPS_SYS(sys_munmap , 2) 123 - MIPS_SYS(sys_truncate , 2) 124 - MIPS_SYS(sys_ftruncate , 2) 125 - MIPS_SYS(sys_fchmod , 2) 126 - MIPS_SYS(sys_fchown , 3) /* 4095 */ 127 - MIPS_SYS(sys_getpriority , 2) 128 - MIPS_SYS(sys_setpriority , 3) 129 - MIPS_SYS(sys_ni_syscall , 0) 130 - MIPS_SYS(sys_statfs , 2) 131 - MIPS_SYS(sys_fstatfs , 2) /* 4100 */ 132 - MIPS_SYS(sys_ni_syscall , 0) /* was ioperm(2) */ 133 - MIPS_SYS(sys_socketcall , 2) 134 - MIPS_SYS(sys_syslog , 3) 135 - MIPS_SYS(sys_setitimer , 3) 136 - MIPS_SYS(sys_getitimer , 2) /* 4105 */ 137 - MIPS_SYS(sys_newstat , 2) 138 - MIPS_SYS(sys_newlstat , 2) 139 - MIPS_SYS(sys_newfstat , 2) 140 - MIPS_SYS(sys_uname , 1) 141 - MIPS_SYS(sys_ni_syscall , 0) /* 4110 was iopl(2) */ 142 - MIPS_SYS(sys_vhangup , 0) 143 - MIPS_SYS(sys_ni_syscall , 0) /* was sys_idle() */ 144 - MIPS_SYS(sys_ni_syscall , 0) /* was sys_vm86 */ 145 - MIPS_SYS(sys_wait4 , 4) 146 - MIPS_SYS(sys_swapoff , 1) /* 4115 */ 147 - MIPS_SYS(sys_sysinfo , 1) 148 - MIPS_SYS(sys_ipc , 6) 149 - MIPS_SYS(sys_fsync , 1) 150 - MIPS_SYS(sys_sigreturn , 0) 151 - MIPS_SYS(sys_clone , 6) /* 4120 */ 152 - MIPS_SYS(sys_setdomainname, 2) 153 - MIPS_SYS(sys_newuname , 1) 154 - MIPS_SYS(sys_ni_syscall , 0) /* sys_modify_ldt */ 155 - MIPS_SYS(sys_adjtimex , 1) 156 - MIPS_SYS(sys_mprotect , 3) /* 4125 */ 157 - MIPS_SYS(sys_sigprocmask , 3) 158 - MIPS_SYS(sys_ni_syscall , 0) /* was create_module */ 159 - MIPS_SYS(sys_init_module , 5) 160 - MIPS_SYS(sys_delete_module, 1) 161 - MIPS_SYS(sys_ni_syscall , 0) /* 4130 was get_kernel_syms */ 162 - MIPS_SYS(sys_quotactl , 0) 163 - MIPS_SYS(sys_getpgid , 1) 164 - MIPS_SYS(sys_fchdir , 1) 165 - MIPS_SYS(sys_bdflush , 2) 166 - MIPS_SYS(sys_sysfs , 3) /* 4135 */ 167 - MIPS_SYS(sys_personality , 1) 168 - MIPS_SYS(sys_ni_syscall , 0) /* for afs_syscall */ 169 - MIPS_SYS(sys_setfsuid , 1) 170 - MIPS_SYS(sys_setfsgid , 1) 171 - MIPS_SYS(sys_llseek , 5) /* 4140 */ 172 - MIPS_SYS(sys_getdents , 3) 173 - MIPS_SYS(sys_select , 5) 174 - MIPS_SYS(sys_flock , 2) 175 - MIPS_SYS(sys_msync , 3) 176 - MIPS_SYS(sys_readv , 3) /* 4145 */ 177 - MIPS_SYS(sys_writev , 3) 178 - MIPS_SYS(sys_cacheflush , 3) 179 - MIPS_SYS(sys_cachectl , 3) 180 - MIPS_SYS(sys_sysmips , 4) 181 - MIPS_SYS(sys_ni_syscall , 0) /* 4150 */ 182 - MIPS_SYS(sys_getsid , 1) 183 - MIPS_SYS(sys_fdatasync , 0) 184 - MIPS_SYS(sys_sysctl , 1) 185 - MIPS_SYS(sys_mlock , 2) 186 - MIPS_SYS(sys_munlock , 2) /* 4155 */ 187 - MIPS_SYS(sys_mlockall , 1) 188 - MIPS_SYS(sys_munlockall , 0) 189 - MIPS_SYS(sys_sched_setparam, 2) 190 - MIPS_SYS(sys_sched_getparam, 2) 191 - MIPS_SYS(sys_sched_setscheduler, 3) /* 4160 */ 192 - MIPS_SYS(sys_sched_getscheduler, 1) 193 - MIPS_SYS(sys_sched_yield , 0) 194 - MIPS_SYS(sys_sched_get_priority_max, 1) 195 - MIPS_SYS(sys_sched_get_priority_min, 1) 196 - MIPS_SYS(sys_sched_rr_get_interval, 2) /* 4165 */ 197 - MIPS_SYS(sys_nanosleep, 2) 198 - MIPS_SYS(sys_mremap , 5) 199 - MIPS_SYS(sys_accept , 3) 200 - MIPS_SYS(sys_bind , 3) 201 - MIPS_SYS(sys_connect , 3) /* 4170 */ 202 - MIPS_SYS(sys_getpeername , 3) 203 - MIPS_SYS(sys_getsockname , 3) 204 - MIPS_SYS(sys_getsockopt , 5) 205 - MIPS_SYS(sys_listen , 2) 206 - MIPS_SYS(sys_recv , 4) /* 4175 */ 207 - MIPS_SYS(sys_recvfrom , 6) 208 - MIPS_SYS(sys_recvmsg , 3) 209 - MIPS_SYS(sys_send , 4) 210 - MIPS_SYS(sys_sendmsg , 3) 211 - MIPS_SYS(sys_sendto , 6) /* 4180 */ 212 - MIPS_SYS(sys_setsockopt , 5) 213 - MIPS_SYS(sys_shutdown , 2) 214 - MIPS_SYS(sys_socket , 3) 215 - MIPS_SYS(sys_socketpair , 4) 216 - MIPS_SYS(sys_setresuid , 3) /* 4185 */ 217 - MIPS_SYS(sys_getresuid , 3) 218 - MIPS_SYS(sys_ni_syscall , 0) /* was sys_query_module */ 219 - MIPS_SYS(sys_poll , 3) 220 - MIPS_SYS(sys_nfsservctl , 3) 221 - MIPS_SYS(sys_setresgid , 3) /* 4190 */ 222 - MIPS_SYS(sys_getresgid , 3) 223 - MIPS_SYS(sys_prctl , 5) 224 - MIPS_SYS(sys_rt_sigreturn, 0) 225 - MIPS_SYS(sys_rt_sigaction, 4) 226 - MIPS_SYS(sys_rt_sigprocmask, 4) /* 4195 */ 227 - MIPS_SYS(sys_rt_sigpending, 2) 228 - MIPS_SYS(sys_rt_sigtimedwait, 4) 229 - MIPS_SYS(sys_rt_sigqueueinfo, 3) 230 - MIPS_SYS(sys_rt_sigsuspend, 0) 231 - MIPS_SYS(sys_pread64 , 6) /* 4200 */ 232 - MIPS_SYS(sys_pwrite64 , 6) 233 - MIPS_SYS(sys_chown , 3) 234 - MIPS_SYS(sys_getcwd , 2) 235 - MIPS_SYS(sys_capget , 2) 236 - MIPS_SYS(sys_capset , 2) /* 4205 */ 237 - MIPS_SYS(sys_sigaltstack , 2) 238 - MIPS_SYS(sys_sendfile , 4) 239 - MIPS_SYS(sys_ni_syscall , 0) 240 - MIPS_SYS(sys_ni_syscall , 0) 241 - MIPS_SYS(sys_mmap2 , 6) /* 4210 */ 242 - MIPS_SYS(sys_truncate64 , 4) 243 - MIPS_SYS(sys_ftruncate64 , 4) 244 - MIPS_SYS(sys_stat64 , 2) 245 - MIPS_SYS(sys_lstat64 , 2) 246 - MIPS_SYS(sys_fstat64 , 2) /* 4215 */ 247 - MIPS_SYS(sys_pivot_root , 2) 248 - MIPS_SYS(sys_mincore , 3) 249 - MIPS_SYS(sys_madvise , 3) 250 - MIPS_SYS(sys_getdents64 , 3) 251 - MIPS_SYS(sys_fcntl64 , 3) /* 4220 */ 252 - MIPS_SYS(sys_ni_syscall , 0) 253 - MIPS_SYS(sys_gettid , 0) 254 - MIPS_SYS(sys_readahead , 5) 255 - MIPS_SYS(sys_setxattr , 5) 256 - MIPS_SYS(sys_lsetxattr , 5) /* 4225 */ 257 - MIPS_SYS(sys_fsetxattr , 5) 258 - MIPS_SYS(sys_getxattr , 4) 259 - MIPS_SYS(sys_lgetxattr , 4) 260 - MIPS_SYS(sys_fgetxattr , 4) 261 - MIPS_SYS(sys_listxattr , 3) /* 4230 */ 262 - MIPS_SYS(sys_llistxattr , 3) 263 - MIPS_SYS(sys_flistxattr , 3) 264 - MIPS_SYS(sys_removexattr , 2) 265 - MIPS_SYS(sys_lremovexattr, 2) 266 - MIPS_SYS(sys_fremovexattr, 2) /* 4235 */ 267 - MIPS_SYS(sys_tkill , 2) 268 - MIPS_SYS(sys_sendfile64 , 5) 269 - MIPS_SYS(sys_futex , 6) 270 - MIPS_SYS(sys_sched_setaffinity, 3) 271 - MIPS_SYS(sys_sched_getaffinity, 3) /* 4240 */ 272 - MIPS_SYS(sys_io_setup , 2) 273 - MIPS_SYS(sys_io_destroy , 1) 274 - MIPS_SYS(sys_io_getevents, 5) 275 - MIPS_SYS(sys_io_submit , 3) 276 - MIPS_SYS(sys_io_cancel , 3) /* 4245 */ 277 - MIPS_SYS(sys_exit_group , 1) 278 - MIPS_SYS(sys_lookup_dcookie, 3) 279 - MIPS_SYS(sys_epoll_create, 1) 280 - MIPS_SYS(sys_epoll_ctl , 4) 281 - MIPS_SYS(sys_epoll_wait , 3) /* 4250 */ 282 - MIPS_SYS(sys_remap_file_pages, 5) 283 - MIPS_SYS(sys_set_tid_address, 1) 284 - MIPS_SYS(sys_restart_syscall, 0) 285 - MIPS_SYS(sys_fadvise64_64, 7) 286 - MIPS_SYS(sys_statfs64 , 3) /* 4255 */ 287 - MIPS_SYS(sys_fstatfs64 , 2) 288 - MIPS_SYS(sys_timer_create, 3) 289 - MIPS_SYS(sys_timer_settime, 4) 290 - MIPS_SYS(sys_timer_gettime, 2) 291 - MIPS_SYS(sys_timer_getoverrun, 1) /* 4260 */ 292 - MIPS_SYS(sys_timer_delete, 1) 293 - MIPS_SYS(sys_clock_settime, 2) 294 - MIPS_SYS(sys_clock_gettime, 2) 295 - MIPS_SYS(sys_clock_getres, 2) 296 - MIPS_SYS(sys_clock_nanosleep, 4) /* 4265 */ 297 - MIPS_SYS(sys_tgkill , 3) 298 - MIPS_SYS(sys_utimes , 2) 299 - MIPS_SYS(sys_mbind , 4) 300 - MIPS_SYS(sys_ni_syscall , 0) /* sys_get_mempolicy */ 301 - MIPS_SYS(sys_ni_syscall , 0) /* 4270 sys_set_mempolicy */ 302 - MIPS_SYS(sys_mq_open , 4) 303 - MIPS_SYS(sys_mq_unlink , 1) 304 - MIPS_SYS(sys_mq_timedsend, 5) 305 - MIPS_SYS(sys_mq_timedreceive, 5) 306 - MIPS_SYS(sys_mq_notify , 2) /* 4275 */ 307 - MIPS_SYS(sys_mq_getsetattr, 3) 308 - MIPS_SYS(sys_ni_syscall , 0) /* sys_vserver */ 309 - MIPS_SYS(sys_waitid , 4) 310 - MIPS_SYS(sys_ni_syscall , 0) /* available, was setaltroot */ 311 - MIPS_SYS(sys_add_key , 5) 312 - MIPS_SYS(sys_request_key, 4) 313 - MIPS_SYS(sys_keyctl , 5) 314 - MIPS_SYS(sys_set_thread_area, 1) 315 - MIPS_SYS(sys_inotify_init, 0) 316 - MIPS_SYS(sys_inotify_add_watch, 3) /* 4285 */ 317 - MIPS_SYS(sys_inotify_rm_watch, 2) 318 - MIPS_SYS(sys_migrate_pages, 4) 319 - MIPS_SYS(sys_openat, 4) 320 - MIPS_SYS(sys_mkdirat, 3) 321 - MIPS_SYS(sys_mknodat, 4) /* 4290 */ 322 - MIPS_SYS(sys_fchownat, 5) 323 - MIPS_SYS(sys_futimesat, 3) 324 - MIPS_SYS(sys_fstatat64, 4) 325 - MIPS_SYS(sys_unlinkat, 3) 326 - MIPS_SYS(sys_renameat, 4) /* 4295 */ 327 - MIPS_SYS(sys_linkat, 5) 328 - MIPS_SYS(sys_symlinkat, 3) 329 - MIPS_SYS(sys_readlinkat, 4) 330 - MIPS_SYS(sys_fchmodat, 3) 331 - MIPS_SYS(sys_faccessat, 3) /* 4300 */ 332 - MIPS_SYS(sys_pselect6, 6) 333 - MIPS_SYS(sys_ppoll, 5) 334 - MIPS_SYS(sys_unshare, 1) 335 - MIPS_SYS(sys_splice, 6) 336 - MIPS_SYS(sys_sync_file_range, 7) /* 4305 */ 337 - MIPS_SYS(sys_tee, 4) 338 - MIPS_SYS(sys_vmsplice, 4) 339 - MIPS_SYS(sys_move_pages, 6) 340 - MIPS_SYS(sys_set_robust_list, 2) 341 - MIPS_SYS(sys_get_robust_list, 3) /* 4310 */ 342 - MIPS_SYS(sys_kexec_load, 4) 343 - MIPS_SYS(sys_getcpu, 3) 344 - MIPS_SYS(sys_epoll_pwait, 6) 345 - MIPS_SYS(sys_ioprio_set, 3) 346 - MIPS_SYS(sys_ioprio_get, 2) 347 - MIPS_SYS(sys_utimensat, 4) 348 - MIPS_SYS(sys_signalfd, 3) 349 - MIPS_SYS(sys_ni_syscall, 0) /* was timerfd */ 350 - MIPS_SYS(sys_eventfd, 1) 351 - MIPS_SYS(sys_fallocate, 6) /* 4320 */ 352 - MIPS_SYS(sys_timerfd_create, 2) 353 - MIPS_SYS(sys_timerfd_gettime, 2) 354 - MIPS_SYS(sys_timerfd_settime, 4) 355 - MIPS_SYS(sys_signalfd4, 4) 356 - MIPS_SYS(sys_eventfd2, 2) /* 4325 */ 357 - MIPS_SYS(sys_epoll_create1, 1) 358 - MIPS_SYS(sys_dup3, 3) 359 - MIPS_SYS(sys_pipe2, 2) 360 - MIPS_SYS(sys_inotify_init1, 1) 361 - MIPS_SYS(sys_preadv, 5) /* 4330 */ 362 - MIPS_SYS(sys_pwritev, 5) 363 - MIPS_SYS(sys_rt_tgsigqueueinfo, 4) 364 - MIPS_SYS(sys_perf_event_open, 5) 365 - MIPS_SYS(sys_accept4, 4) 366 - MIPS_SYS(sys_recvmmsg, 5) /* 4335 */ 367 - MIPS_SYS(sys_fanotify_init, 2) 368 - MIPS_SYS(sys_fanotify_mark, 6) 369 - MIPS_SYS(sys_prlimit64, 4) 370 - MIPS_SYS(sys_name_to_handle_at, 5) 371 - MIPS_SYS(sys_open_by_handle_at, 3) /* 4340 */ 372 - MIPS_SYS(sys_clock_adjtime, 2) 373 - MIPS_SYS(sys_syncfs, 1) 374 - MIPS_SYS(sys_sendmmsg, 4) 375 - MIPS_SYS(sys_setns, 2) 376 - MIPS_SYS(sys_process_vm_readv, 6) /* 345 */ 377 - MIPS_SYS(sys_process_vm_writev, 6) 378 - MIPS_SYS(sys_kcmp, 5) 379 - MIPS_SYS(sys_finit_module, 3) 380 - MIPS_SYS(sys_sched_setattr, 2) 381 - MIPS_SYS(sys_sched_getattr, 3) /* 350 */ 382 - MIPS_SYS(sys_renameat2, 5) 383 - MIPS_SYS(sys_seccomp, 3) 384 - MIPS_SYS(sys_getrandom, 3) 385 - MIPS_SYS(sys_memfd_create, 2) 386 - MIPS_SYS(sys_bpf, 3) /* 355 */ 387 - MIPS_SYS(sys_execveat, 5) 388 - MIPS_SYS(sys_userfaultfd, 1) 389 - MIPS_SYS(sys_membarrier, 2) 390 - MIPS_SYS(sys_mlock2, 3) 391 - MIPS_SYS(sys_copy_file_range, 6) /* 360 */ 392 - MIPS_SYS(sys_preadv2, 6) 393 - MIPS_SYS(sys_pwritev2, 6) 394 - MIPS_SYS(sys_pkey_mprotect, 4) 395 - MIPS_SYS(sys_pkey_alloc, 2) 396 - MIPS_SYS(sys_pkey_free, 1) /* 365 */ 397 - MIPS_SYS(sys_statx, 5) 398 - MIPS_SYS(sys_rseq, 4) 399 - MIPS_SYS(sys_io_pgetevents, 6) 400 - MIPS_SYSCALL_NUMBER_UNUSED, 401 - MIPS_SYSCALL_NUMBER_UNUSED, /* 370 */ 402 - MIPS_SYSCALL_NUMBER_UNUSED, 403 - MIPS_SYSCALL_NUMBER_UNUSED, 404 - MIPS_SYSCALL_NUMBER_UNUSED, 405 - MIPS_SYSCALL_NUMBER_UNUSED, 406 - MIPS_SYSCALL_NUMBER_UNUSED, /* 375 */ 407 - MIPS_SYSCALL_NUMBER_UNUSED, 408 - MIPS_SYSCALL_NUMBER_UNUSED, 409 - MIPS_SYSCALL_NUMBER_UNUSED, 410 - MIPS_SYSCALL_NUMBER_UNUSED, 411 - MIPS_SYSCALL_NUMBER_UNUSED, /* 380 */ 412 - MIPS_SYSCALL_NUMBER_UNUSED, 413 - MIPS_SYSCALL_NUMBER_UNUSED, 414 - MIPS_SYSCALL_NUMBER_UNUSED, 415 - MIPS_SYSCALL_NUMBER_UNUSED, 416 - MIPS_SYSCALL_NUMBER_UNUSED, /* 385 */ 417 - MIPS_SYSCALL_NUMBER_UNUSED, 418 - MIPS_SYSCALL_NUMBER_UNUSED, 419 - MIPS_SYSCALL_NUMBER_UNUSED, 420 - MIPS_SYSCALL_NUMBER_UNUSED, 421 - MIPS_SYSCALL_NUMBER_UNUSED, /* 390 */ 422 - MIPS_SYSCALL_NUMBER_UNUSED, 423 - MIPS_SYSCALL_NUMBER_UNUSED, 424 - MIPS_SYS(sys_semget, 3) 425 - MIPS_SYS(sys_semctl, 4) 426 - MIPS_SYS(sys_shmget, 3) /* 395 */ 427 - MIPS_SYS(sys_shmctl, 3) 428 - MIPS_SYS(sys_shmat, 3) 429 - MIPS_SYS(sys_shmdt, 1) 430 - MIPS_SYS(sys_msgget, 2) 431 - MIPS_SYS(sys_msgsnd, 4) /* 400 */ 432 - MIPS_SYS(sys_msgrcv, 5) 433 - MIPS_SYS(sys_msgctl, 3) 434 - MIPS_SYS(sys_clock_gettime64, 2) 435 - MIPS_SYS(sys_clock_settime64, 2) 436 - MIPS_SYS(sys_clock_adjtime64, 2) /* 405 */ 437 - MIPS_SYS(sys_clock_getres_time64, 2) 438 - MIPS_SYS(sys_clock_nanosleep_time64, 4) 439 - MIPS_SYS(sys_timer_gettime64, 2) 440 - MIPS_SYS(sys_timer_settime64, 4) 441 - MIPS_SYS(sys_timerfd_gettime64, 2) /* 410 */ 442 - MIPS_SYS(sys_timerfd_settime64, 4) 443 - MIPS_SYS(sys_utimensat_time64, 4) 444 - MIPS_SYS(sys_pselect6_time64, 6) 445 - MIPS_SYS(sys_ppoll_time64, 5) 446 - MIPS_SYSCALL_NUMBER_UNUSED, /* 415 */ 447 - MIPS_SYS(sys_io_pgetevents_time64, 6) 448 - MIPS_SYS(sys_recvmmsg_time64, 5) 449 - MIPS_SYS(sys_mq_timedsend_time64, 5) 450 - MIPS_SYS(sys_mq_timedreceive_time64, 5) 451 - MIPS_SYS(sys_semtimedop_time64, 4) /* 420 */ 452 - MIPS_SYS(sys_rt_sigtimedwait_time64, 4) 453 - MIPS_SYS(sys_futex_time64, 6) 454 - MIPS_SYS(sys_sched_rr_get_interval_time64, 2) 455 - MIPS_SYS(sys_pidfd_send_signal, 4) 456 - MIPS_SYS(sys_io_uring_setup, 2) /* 425 */ 457 - MIPS_SYS(sys_io_uring_enter, 6) 458 - MIPS_SYS(sys_io_uring_register, 4) 459 - MIPS_SYS(sys_open_tree, 3) 460 - MIPS_SYS(sys_move_mount, 5) 461 - MIPS_SYS(sys_fsopen, 2) /* 430 */ 462 - MIPS_SYS(sys_fsconfig, 5) 463 - MIPS_SYS(sys_fsmount, 3) 464 - MIPS_SYS(sys_fspick, 3) 465 - MIPS_SYS(sys_pidfd_open, 2) 466 - MIPS_SYS(sys_clone3, 2) /* 435 */ 467 - 30 + #include "syscall-args-o32.c.inc" 468 31 }; 469 - # undef MIPS_SYS 470 32 # endif /* O32 */ 471 33 472 34 /* Break codes */
+436
linux-user/mips/syscall-args-o32.c.inc
··· 1 + [ 0] = 7, /* syscall */ 2 + [ 1] = 1, /* exit */ 3 + [ 2] = 0, /* fork */ 4 + [ 3] = 3, /* read */ 5 + [ 4] = 3, /* write */ 6 + [ 5] = 3, /* open */ 7 + [ 6] = 1, /* close */ 8 + [ 7] = 3, /* waitpid */ 9 + [ 8] = 2, /* creat */ 10 + [ 9] = 2, /* link */ 11 + [ 10] = 1, /* unlink */ 12 + [ 11] = 3, /* execve */ 13 + [ 12] = 1, /* chdir */ 14 + [ 13] = 1, /* time */ 15 + [ 14] = 3, /* mknod */ 16 + [ 15] = 2, /* chmod */ 17 + [ 16] = 3, /* lchown */ 18 + [ 17] = 0, /* break */ 19 + [ 18] = 2, /* oldstat */ 20 + [ 19] = 3, /* lseek */ 21 + [ 20] = 0, /* getpid */ 22 + [ 21] = 5, /* mount */ 23 + [ 22] = 1, /* umount */ 24 + [ 23] = 1, /* setuid */ 25 + [ 24] = 0, /* getuid */ 26 + [ 25] = 1, /* stime */ 27 + [ 26] = 4, /* ptrace */ 28 + [ 27] = 1, /* alarm */ 29 + [ 28] = 2, /* oldfstat */ 30 + [ 29] = 0, /* pause */ 31 + [ 30] = 2, /* utime */ 32 + [ 31] = 0, /* stty */ 33 + [ 32] = 0, /* gtty */ 34 + [ 33] = 2, /* access */ 35 + [ 34] = 1, /* nice */ 36 + [ 35] = 1, /* ftime */ 37 + [ 36] = 0, /* sync */ 38 + [ 37] = 2, /* kill */ 39 + [ 38] = 2, /* rename */ 40 + [ 39] = 2, /* mkdir */ 41 + [ 40] = 1, /* rmdir */ 42 + [ 41] = 1, /* dup */ 43 + [ 42] = 0, /* pipe */ 44 + [ 43] = 1, /* times */ 45 + [ 44] = 0, /* prof */ 46 + [ 45] = 1, /* brk */ 47 + [ 46] = 1, /* setgid */ 48 + [ 47] = 0, /* getgid */ 49 + [ 48] = 2, /* signal */ 50 + [ 49] = 0, /* geteuid */ 51 + [ 50] = 0, /* getegid */ 52 + [ 51] = 1, /* acct */ 53 + [ 52] = 2, /* umount2 */ 54 + [ 53] = 0, /* lock */ 55 + [ 54] = 3, /* ioctl */ 56 + [ 55] = 3, /* fcntl */ 57 + [ 56] = 0, /* mpx */ 58 + [ 57] = 2, /* setpgid */ 59 + [ 58] = 0, /* ulimit */ 60 + [ 59] = 1, /* oldolduname */ 61 + [ 60] = 1, /* umask */ 62 + [ 61] = 1, /* chroot */ 63 + [ 62] = 2, /* ustat */ 64 + [ 63] = 2, /* dup2 */ 65 + [ 64] = 0, /* getppid */ 66 + [ 65] = 0, /* getpgrp */ 67 + [ 66] = 0, /* setsid */ 68 + [ 67] = 3, /* sigaction */ 69 + [ 68] = 0, /* sgetmask */ 70 + [ 69] = 1, /* ssetmask */ 71 + [ 70] = 2, /* setreuid */ 72 + [ 71] = 2, /* setregid */ 73 + [ 72] = 1, /* sigsuspend */ 74 + [ 73] = 1, /* sigpending */ 75 + [ 74] = 2, /* sethostname */ 76 + [ 75] = 2, /* setrlimit */ 77 + [ 76] = 2, /* getrlimit */ 78 + [ 77] = 2, /* getrusage */ 79 + [ 78] = 2, /* gettimeofday */ 80 + [ 79] = 2, /* settimeofday */ 81 + [ 80] = 2, /* getgroups */ 82 + [ 81] = 2, /* setgroups */ 83 + [ 82] = 0, /* reserved82 */ 84 + [ 83] = 2, /* symlink */ 85 + [ 84] = 2, /* oldlstat */ 86 + [ 85] = 3, /* readlink */ 87 + [ 86] = 1, /* uselib */ 88 + [ 87] = 2, /* swapon */ 89 + [ 88] = 4, /* reboot */ 90 + [ 89] = 3, /* readdir */ 91 + [ 90] = 6, /* mmap */ 92 + [ 91] = 2, /* munmap */ 93 + [ 92] = 2, /* truncate */ 94 + [ 93] = 2, /* ftruncate */ 95 + [ 94] = 2, /* fchmod */ 96 + [ 95] = 3, /* fchown */ 97 + [ 96] = 2, /* getpriority */ 98 + [ 97] = 3, /* setpriority */ 99 + [ 98] = 0, /* profil */ 100 + [ 99] = 2, /* statfs */ 101 + [ 100] = 2, /* fstatfs */ 102 + [ 101] = 3, /* ioperm */ 103 + [ 102] = 2, /* socketcall */ 104 + [ 103] = 3, /* syslog */ 105 + [ 104] = 3, /* setitimer */ 106 + [ 105] = 2, /* getitimer */ 107 + [ 106] = 2, /* stat */ 108 + [ 107] = 2, /* lstat */ 109 + [ 108] = 2, /* fstat */ 110 + [ 109] = 1, /* olduname */ 111 + [ 110] = 1, /* iopl */ 112 + [ 111] = 0, /* vhangup */ 113 + [ 112] = 0, /* idle */ 114 + [ 113] = 5, /* vm86 */ 115 + [ 114] = 4, /* wait4 */ 116 + [ 115] = 1, /* swapoff */ 117 + [ 116] = 1, /* sysinfo */ 118 + [ 117] = 6, /* ipc */ 119 + [ 118] = 1, /* fsync */ 120 + [ 119] = 0, /* sigreturn */ 121 + [ 120] = 5, /* clone */ 122 + [ 121] = 2, /* setdomainname */ 123 + [ 122] = 1, /* uname */ 124 + [ 123] = 0, /* modify_ldt */ 125 + [ 124] = 1, /* adjtimex */ 126 + [ 125] = 3, /* mprotect */ 127 + [ 126] = 3, /* sigprocmask */ 128 + [ 127] = 2, /* create_module */ 129 + [ 128] = 3, /* init_module */ 130 + [ 129] = 2, /* delete_module */ 131 + [ 130] = 1, /* get_kernel_syms */ 132 + [ 131] = 4, /* quotactl */ 133 + [ 132] = 1, /* getpgid */ 134 + [ 133] = 1, /* fchdir */ 135 + [ 134] = 2, /* bdflush */ 136 + [ 135] = 3, /* sysfs */ 137 + [ 136] = 1, /* personality */ 138 + [ 137] = 0, /* afs_syscall */ 139 + [ 138] = 1, /* setfsuid */ 140 + [ 139] = 1, /* setfsgid */ 141 + [ 140] = 5, /* _llseek */ 142 + [ 141] = 3, /* getdents */ 143 + [ 142] = 5, /* _newselect */ 144 + [ 143] = 2, /* flock */ 145 + [ 144] = 3, /* msync */ 146 + [ 145] = 3, /* readv */ 147 + [ 146] = 3, /* writev */ 148 + [ 147] = 3, /* cacheflush */ 149 + [ 148] = 3, /* cachectl */ 150 + [ 149] = 4, /* sysmips */ 151 + [ 150] = 0, /* setup */ 152 + [ 151] = 1, /* getsid */ 153 + [ 152] = 1, /* fdatasync */ 154 + [ 153] = 1, /* _sysctl */ 155 + [ 154] = 2, /* mlock */ 156 + [ 155] = 2, /* munlock */ 157 + [ 156] = 1, /* mlockall */ 158 + [ 157] = 0, /* munlockall */ 159 + [ 158] = 2, /* sched_setparam */ 160 + [ 159] = 2, /* sched_getparam */ 161 + [ 160] = 3, /* sched_setscheduler */ 162 + [ 161] = 1, /* sched_getscheduler */ 163 + [ 162] = 0, /* sched_yield */ 164 + [ 163] = 1, /* sched_get_priority_max */ 165 + [ 164] = 1, /* sched_get_priority_min */ 166 + [ 165] = 2, /* sched_rr_get_interval */ 167 + [ 166] = 2, /* nanosleep */ 168 + [ 167] = 5, /* mremap */ 169 + [ 168] = 3, /* accept */ 170 + [ 169] = 3, /* bind */ 171 + [ 170] = 3, /* connect */ 172 + [ 171] = 3, /* getpeername */ 173 + [ 172] = 3, /* getsockname */ 174 + [ 173] = 5, /* getsockopt */ 175 + [ 174] = 2, /* listen */ 176 + [ 175] = 4, /* recv */ 177 + [ 176] = 6, /* recvfrom */ 178 + [ 177] = 3, /* recvmsg */ 179 + [ 178] = 4, /* send */ 180 + [ 179] = 3, /* sendmsg */ 181 + [ 180] = 6, /* sendto */ 182 + [ 181] = 5, /* setsockopt */ 183 + [ 182] = 2, /* shutdown */ 184 + [ 183] = 3, /* socket */ 185 + [ 184] = 4, /* socketpair */ 186 + [ 185] = 3, /* setresuid */ 187 + [ 186] = 3, /* getresuid */ 188 + [ 187] = 5, /* query_module */ 189 + [ 188] = 3, /* poll */ 190 + [ 189] = 3, /* nfsservctl */ 191 + [ 190] = 3, /* setresgid */ 192 + [ 191] = 3, /* getresgid */ 193 + [ 192] = 5, /* prctl */ 194 + [ 193] = 0, /* rt_sigreturn */ 195 + [ 194] = 4, /* rt_sigaction */ 196 + [ 195] = 4, /* rt_sigprocmask */ 197 + [ 196] = 2, /* rt_sigpending */ 198 + [ 197] = 4, /* rt_sigtimedwait */ 199 + [ 198] = 3, /* rt_sigqueueinfo */ 200 + [ 199] = 2, /* rt_sigsuspend */ 201 + [ 200] = 6, /* pread64 */ 202 + [ 201] = 6, /* pwrite64 */ 203 + [ 202] = 3, /* chown */ 204 + [ 203] = 2, /* getcwd */ 205 + [ 204] = 2, /* capget */ 206 + [ 205] = 2, /* capset */ 207 + [ 206] = 2, /* sigaltstack */ 208 + [ 207] = 4, /* sendfile */ 209 + [ 208] = 5, /* getpmsg */ 210 + [ 209] = 5, /* putpmsg */ 211 + [ 210] = 6, /* mmap2 */ 212 + [ 211] = 4, /* truncate64 */ 213 + [ 212] = 4, /* ftruncate64 */ 214 + [ 213] = 2, /* stat64 */ 215 + [ 214] = 2, /* lstat64 */ 216 + [ 215] = 2, /* fstat64 */ 217 + [ 216] = 2, /* pivot_root */ 218 + [ 217] = 3, /* mincore */ 219 + [ 218] = 3, /* madvise */ 220 + [ 219] = 3, /* getdents64 */ 221 + [ 220] = 3, /* fcntl64 */ 222 + [ 221] = 0, /* reserved221 */ 223 + [ 222] = 0, /* gettid */ 224 + [ 223] = 5, /* readahead */ 225 + [ 224] = 5, /* setxattr */ 226 + [ 225] = 5, /* lsetxattr */ 227 + [ 226] = 5, /* fsetxattr */ 228 + [ 227] = 4, /* getxattr */ 229 + [ 228] = 4, /* lgetxattr */ 230 + [ 229] = 4, /* fgetxattr */ 231 + [ 230] = 3, /* listxattr */ 232 + [ 231] = 3, /* llistxattr */ 233 + [ 232] = 3, /* flistxattr */ 234 + [ 233] = 2, /* removexattr */ 235 + [ 234] = 2, /* lremovexattr */ 236 + [ 235] = 2, /* fremovexattr */ 237 + [ 236] = 2, /* tkill */ 238 + [ 237] = 4, /* sendfile64 */ 239 + [ 238] = 6, /* futex */ 240 + [ 239] = 3, /* sched_setaffinity */ 241 + [ 240] = 3, /* sched_getaffinity */ 242 + [ 241] = 2, /* io_setup */ 243 + [ 242] = 1, /* io_destroy */ 244 + [ 243] = 5, /* io_getevents */ 245 + [ 244] = 3, /* io_submit */ 246 + [ 245] = 3, /* io_cancel */ 247 + [ 246] = 1, /* exit_group */ 248 + [ 247] = 4, /* lookup_dcookie */ 249 + [ 248] = 1, /* epoll_create */ 250 + [ 249] = 4, /* epoll_ctl */ 251 + [ 250] = 4, /* epoll_wait */ 252 + [ 251] = 5, /* remap_file_pages */ 253 + [ 252] = 1, /* set_tid_address */ 254 + [ 253] = 0, /* restart_syscall */ 255 + [ 254] = 7, /* fadvise64 */ 256 + [ 255] = 3, /* statfs64 */ 257 + [ 256] = 3, /* fstatfs64 */ 258 + [ 257] = 3, /* timer_create */ 259 + [ 258] = 4, /* timer_settime */ 260 + [ 259] = 2, /* timer_gettime */ 261 + [ 260] = 1, /* timer_getoverrun */ 262 + [ 261] = 1, /* timer_delete */ 263 + [ 262] = 2, /* clock_settime */ 264 + [ 263] = 2, /* clock_gettime */ 265 + [ 264] = 2, /* clock_getres */ 266 + [ 265] = 4, /* clock_nanosleep */ 267 + [ 266] = 3, /* tgkill */ 268 + [ 267] = 2, /* utimes */ 269 + [ 268] = 6, /* mbind */ 270 + [ 269] = 5, /* get_mempolicy */ 271 + [ 270] = 3, /* set_mempolicy */ 272 + [ 271] = 4, /* mq_open */ 273 + [ 272] = 1, /* mq_unlink */ 274 + [ 273] = 5, /* mq_timedsend */ 275 + [ 274] = 5, /* mq_timedreceive */ 276 + [ 275] = 2, /* mq_notify */ 277 + [ 276] = 3, /* mq_getsetattr */ 278 + [ 277] = 5, /* vserver */ 279 + [ 278] = 5, /* waitid */ 280 + [ 279] = MIPS_SYSCALL_NUMBER_UNUSED, 281 + [ 280] = 5, /* add_key */ 282 + [ 281] = 4, /* request_key */ 283 + [ 282] = 5, /* keyctl */ 284 + [ 283] = 1, /* set_thread_area */ 285 + [ 284] = 0, /* inotify_init */ 286 + [ 285] = 3, /* inotify_add_watch */ 287 + [ 286] = 2, /* inotify_rm_watch */ 288 + [ 287] = 4, /* migrate_pages */ 289 + [ 288] = 4, /* openat */ 290 + [ 289] = 3, /* mkdirat */ 291 + [ 290] = 4, /* mknodat */ 292 + [ 291] = 5, /* fchownat */ 293 + [ 292] = 3, /* futimesat */ 294 + [ 293] = 4, /* fstatat64 */ 295 + [ 294] = 3, /* unlinkat */ 296 + [ 295] = 4, /* renameat */ 297 + [ 296] = 5, /* linkat */ 298 + [ 297] = 3, /* symlinkat */ 299 + [ 298] = 4, /* readlinkat */ 300 + [ 299] = 3, /* fchmodat */ 301 + [ 300] = 3, /* faccessat */ 302 + [ 301] = 6, /* pselect6 */ 303 + [ 302] = 5, /* ppoll */ 304 + [ 303] = 1, /* unshare */ 305 + [ 304] = 6, /* splice */ 306 + [ 305] = 7, /* sync_file_range */ 307 + [ 306] = 4, /* tee */ 308 + [ 307] = 4, /* vmsplice */ 309 + [ 308] = 6, /* move_pages */ 310 + [ 309] = 2, /* set_robust_list */ 311 + [ 310] = 3, /* get_robust_list */ 312 + [ 311] = 4, /* kexec_load */ 313 + [ 312] = 3, /* getcpu */ 314 + [ 313] = 6, /* epoll_pwait */ 315 + [ 314] = 3, /* ioprio_set */ 316 + [ 315] = 2, /* ioprio_get */ 317 + [ 316] = 4, /* utimensat */ 318 + [ 317] = 3, /* signalfd */ 319 + [ 318] = 4, /* timerfd */ 320 + [ 319] = 1, /* eventfd */ 321 + [ 320] = 6, /* fallocate */ 322 + [ 321] = 2, /* timerfd_create */ 323 + [ 322] = 2, /* timerfd_gettime */ 324 + [ 323] = 4, /* timerfd_settime */ 325 + [ 324] = 4, /* signalfd4 */ 326 + [ 325] = 2, /* eventfd2 */ 327 + [ 326] = 1, /* epoll_create1 */ 328 + [ 327] = 3, /* dup3 */ 329 + [ 328] = 2, /* pipe2 */ 330 + [ 329] = 1, /* inotify_init1 */ 331 + [ 330] = 5, /* preadv */ 332 + [ 331] = 5, /* pwritev */ 333 + [ 332] = 4, /* rt_tgsigqueueinfo */ 334 + [ 333] = 5, /* perf_event_open */ 335 + [ 334] = 4, /* accept4 */ 336 + [ 335] = 5, /* recvmmsg */ 337 + [ 336] = 2, /* fanotify_init */ 338 + [ 337] = 6, /* fanotify_mark */ 339 + [ 338] = 4, /* prlimit64 */ 340 + [ 339] = 5, /* name_to_handle_at */ 341 + [ 340] = 3, /* open_by_handle_at */ 342 + [ 341] = 2, /* clock_adjtime */ 343 + [ 342] = 1, /* syncfs */ 344 + [ 343] = 4, /* sendmmsg */ 345 + [ 344] = 2, /* setns */ 346 + [ 345] = 6, /* process_vm_readv */ 347 + [ 346] = 6, /* process_vm_writev */ 348 + [ 347] = 5, /* kcmp */ 349 + [ 348] = 3, /* finit_module */ 350 + [ 349] = 3, /* sched_setattr */ 351 + [ 350] = 4, /* sched_getattr */ 352 + [ 351] = 5, /* renameat2 */ 353 + [ 352] = 3, /* seccomp */ 354 + [ 353] = 3, /* getrandom */ 355 + [ 354] = 2, /* memfd_create */ 356 + [ 355] = 3, /* bpf */ 357 + [ 356] = 5, /* execveat */ 358 + [ 357] = 1, /* userfaultfd */ 359 + [ 358] = 2, /* membarrier */ 360 + [ 359] = 3, /* mlock2 */ 361 + [ 360] = 6, /* copy_file_range */ 362 + [ 361] = 6, /* preadv2 */ 363 + [ 362] = 6, /* pwritev2 */ 364 + [ 363] = 4, /* pkey_mprotect */ 365 + [ 364] = 2, /* pkey_alloc */ 366 + [ 365] = 1, /* pkey_free */ 367 + [ 366] = 5, /* statx */ 368 + [ 367] = 4, /* rseq */ 369 + [ 368] = 6, /* io_pgetevents */ 370 + [ 369] = MIPS_SYSCALL_NUMBER_UNUSED, 371 + [ 370] = MIPS_SYSCALL_NUMBER_UNUSED, 372 + [ 371] = MIPS_SYSCALL_NUMBER_UNUSED, 373 + [ 372] = MIPS_SYSCALL_NUMBER_UNUSED, 374 + [ 373] = MIPS_SYSCALL_NUMBER_UNUSED, 375 + [ 374] = MIPS_SYSCALL_NUMBER_UNUSED, 376 + [ 375] = MIPS_SYSCALL_NUMBER_UNUSED, 377 + [ 376] = MIPS_SYSCALL_NUMBER_UNUSED, 378 + [ 377] = MIPS_SYSCALL_NUMBER_UNUSED, 379 + [ 378] = MIPS_SYSCALL_NUMBER_UNUSED, 380 + [ 379] = MIPS_SYSCALL_NUMBER_UNUSED, 381 + [ 380] = MIPS_SYSCALL_NUMBER_UNUSED, 382 + [ 381] = MIPS_SYSCALL_NUMBER_UNUSED, 383 + [ 382] = MIPS_SYSCALL_NUMBER_UNUSED, 384 + [ 383] = MIPS_SYSCALL_NUMBER_UNUSED, 385 + [ 384] = MIPS_SYSCALL_NUMBER_UNUSED, 386 + [ 385] = MIPS_SYSCALL_NUMBER_UNUSED, 387 + [ 386] = MIPS_SYSCALL_NUMBER_UNUSED, 388 + [ 387] = MIPS_SYSCALL_NUMBER_UNUSED, 389 + [ 388] = MIPS_SYSCALL_NUMBER_UNUSED, 390 + [ 389] = MIPS_SYSCALL_NUMBER_UNUSED, 391 + [ 390] = MIPS_SYSCALL_NUMBER_UNUSED, 392 + [ 391] = MIPS_SYSCALL_NUMBER_UNUSED, 393 + [ 392] = MIPS_SYSCALL_NUMBER_UNUSED, 394 + [ 393] = 3, /* semget */ 395 + [ 394] = 4, /* semctl */ 396 + [ 395] = 3, /* shmget */ 397 + [ 396] = 3, /* shmctl */ 398 + [ 397] = 3, /* shmat */ 399 + [ 398] = 1, /* shmdt */ 400 + [ 399] = 2, /* msgget */ 401 + [ 400] = 4, /* msgsnd */ 402 + [ 401] = 5, /* msgrcv */ 403 + [ 402] = 3, /* msgctl */ 404 + [ 403] = 2, /* clock_gettime64 */ 405 + [ 404] = 2, /* clock_settime64 */ 406 + [ 405] = 2, /* clock_adjtime64 */ 407 + [ 406] = 2, /* clock_getres_time64 */ 408 + [ 407] = 4, /* clock_nanosleep_time64 */ 409 + [ 408] = 2, /* timer_gettime64 */ 410 + [ 409] = 4, /* timer_settime64 */ 411 + [ 410] = 2, /* timerfd_gettime64 */ 412 + [ 411] = 4, /* timerfd_settime64 */ 413 + [ 412] = 4, /* utimensat_time64 */ 414 + [ 413] = 6, /* pselect6_time64 */ 415 + [ 414] = 5, /* ppoll_time64 */ 416 + [ 415] = MIPS_SYSCALL_NUMBER_UNUSED, 417 + [ 416] = 6, /* io_pgetevents_time64 */ 418 + [ 417] = 5, /* recvmmsg_time64 */ 419 + [ 418] = 5, /* mq_timedsend_time64 */ 420 + [ 419] = 5, /* mq_timedreceive_time64 */ 421 + [ 420] = 4, /* semtimedop_time64 */ 422 + [ 421] = 4, /* rt_sigtimedwait_time64 */ 423 + [ 422] = 6, /* futex_time64 */ 424 + [ 423] = 2, /* sched_rr_get_interval_time64 */ 425 + [ 424] = 4, /* pidfd_send_signal */ 426 + [ 425] = 2, /* io_uring_setup */ 427 + [ 426] = 6, /* io_uring_enter */ 428 + [ 427] = 4, /* io_uring_register */ 429 + [ 428] = 3, /* open_tree */ 430 + [ 429] = 5, /* move_mount */ 431 + [ 430] = 2, /* fsopen */ 432 + [ 431] = 5, /* fsconfig */ 433 + [ 432] = 3, /* fsmount */ 434 + [ 433] = 3, /* fspick */ 435 + [ 434] = 2, /* pidfd_open */ 436 + [ 435] = 2, /* clone3 */
-425
linux-user/mips/syscall_nr.h
··· 1 - /* 2 - * Linux o32 style syscalls are in the range from 4000 to 4999. 3 - */ 4 - 5 - #ifndef LINUX_USER_MIPS_SYSCALL_NR_H 6 - #define LINUX_USER_MIPS_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_Linux 4000 9 - #define TARGET_NR_syscall (TARGET_NR_Linux + 0) 10 - #define TARGET_NR_exit (TARGET_NR_Linux + 1) 11 - #define TARGET_NR_fork (TARGET_NR_Linux + 2) 12 - #define TARGET_NR_read (TARGET_NR_Linux + 3) 13 - #define TARGET_NR_write (TARGET_NR_Linux + 4) 14 - #define TARGET_NR_open (TARGET_NR_Linux + 5) 15 - #define TARGET_NR_close (TARGET_NR_Linux + 6) 16 - #define TARGET_NR_waitpid (TARGET_NR_Linux + 7) 17 - #define TARGET_NR_creat (TARGET_NR_Linux + 8) 18 - #define TARGET_NR_link (TARGET_NR_Linux + 9) 19 - #define TARGET_NR_unlink (TARGET_NR_Linux + 10) 20 - #define TARGET_NR_execve (TARGET_NR_Linux + 11) 21 - #define TARGET_NR_chdir (TARGET_NR_Linux + 12) 22 - #define TARGET_NR_time (TARGET_NR_Linux + 13) 23 - #define TARGET_NR_mknod (TARGET_NR_Linux + 14) 24 - #define TARGET_NR_chmod (TARGET_NR_Linux + 15) 25 - #define TARGET_NR_lchown (TARGET_NR_Linux + 16) 26 - #define TARGET_NR_break (TARGET_NR_Linux + 17) 27 - #define TARGET_NR_unused18 (TARGET_NR_Linux + 18) 28 - #define TARGET_NR_lseek (TARGET_NR_Linux + 19) 29 - #define TARGET_NR_getpid (TARGET_NR_Linux + 20) 30 - #define TARGET_NR_mount (TARGET_NR_Linux + 21) 31 - #define TARGET_NR_umount (TARGET_NR_Linux + 22) 32 - #define TARGET_NR_setuid (TARGET_NR_Linux + 23) 33 - #define TARGET_NR_getuid (TARGET_NR_Linux + 24) 34 - #define TARGET_NR_stime (TARGET_NR_Linux + 25) 35 - #define TARGET_NR_ptrace (TARGET_NR_Linux + 26) 36 - #define TARGET_NR_alarm (TARGET_NR_Linux + 27) 37 - #define TARGET_NR_unused28 (TARGET_NR_Linux + 28) 38 - #define TARGET_NR_pause (TARGET_NR_Linux + 29) 39 - #define TARGET_NR_utime (TARGET_NR_Linux + 30) 40 - #define TARGET_NR_stty (TARGET_NR_Linux + 31) 41 - #define TARGET_NR_gtty (TARGET_NR_Linux + 32) 42 - #define TARGET_NR_access (TARGET_NR_Linux + 33) 43 - #define TARGET_NR_nice (TARGET_NR_Linux + 34) 44 - #define TARGET_NR_ftime (TARGET_NR_Linux + 35) 45 - #define TARGET_NR_sync (TARGET_NR_Linux + 36) 46 - #define TARGET_NR_kill (TARGET_NR_Linux + 37) 47 - #define TARGET_NR_rename (TARGET_NR_Linux + 38) 48 - #define TARGET_NR_mkdir (TARGET_NR_Linux + 39) 49 - #define TARGET_NR_rmdir (TARGET_NR_Linux + 40) 50 - #define TARGET_NR_dup (TARGET_NR_Linux + 41) 51 - #define TARGET_NR_pipe (TARGET_NR_Linux + 42) 52 - #define TARGET_NR_times (TARGET_NR_Linux + 43) 53 - #define TARGET_NR_prof (TARGET_NR_Linux + 44) 54 - #define TARGET_NR_brk (TARGET_NR_Linux + 45) 55 - #define TARGET_NR_setgid (TARGET_NR_Linux + 46) 56 - #define TARGET_NR_getgid (TARGET_NR_Linux + 47) 57 - #define TARGET_NR_signal (TARGET_NR_Linux + 48) 58 - #define TARGET_NR_geteuid (TARGET_NR_Linux + 49) 59 - #define TARGET_NR_getegid (TARGET_NR_Linux + 50) 60 - #define TARGET_NR_acct (TARGET_NR_Linux + 51) 61 - #define TARGET_NR_umount2 (TARGET_NR_Linux + 52) 62 - #define TARGET_NR_lock (TARGET_NR_Linux + 53) 63 - #define TARGET_NR_ioctl (TARGET_NR_Linux + 54) 64 - #define TARGET_NR_fcntl (TARGET_NR_Linux + 55) 65 - #define TARGET_NR_mpx (TARGET_NR_Linux + 56) 66 - #define TARGET_NR_setpgid (TARGET_NR_Linux + 57) 67 - #define TARGET_NR_ulimit (TARGET_NR_Linux + 58) 68 - #define TARGET_NR_unused59 (TARGET_NR_Linux + 59) 69 - #define TARGET_NR_umask (TARGET_NR_Linux + 60) 70 - #define TARGET_NR_chroot (TARGET_NR_Linux + 61) 71 - #define TARGET_NR_ustat (TARGET_NR_Linux + 62) 72 - #define TARGET_NR_dup2 (TARGET_NR_Linux + 63) 73 - #define TARGET_NR_getppid (TARGET_NR_Linux + 64) 74 - #define TARGET_NR_getpgrp (TARGET_NR_Linux + 65) 75 - #define TARGET_NR_setsid (TARGET_NR_Linux + 66) 76 - #define TARGET_NR_sigaction (TARGET_NR_Linux + 67) 77 - #define TARGET_NR_sgetmask (TARGET_NR_Linux + 68) 78 - #define TARGET_NR_ssetmask (TARGET_NR_Linux + 69) 79 - #define TARGET_NR_setreuid (TARGET_NR_Linux + 70) 80 - #define TARGET_NR_setregid (TARGET_NR_Linux + 71) 81 - #define TARGET_NR_sigsuspend (TARGET_NR_Linux + 72) 82 - #define TARGET_NR_sigpending (TARGET_NR_Linux + 73) 83 - #define TARGET_NR_sethostname (TARGET_NR_Linux + 74) 84 - #define TARGET_NR_setrlimit (TARGET_NR_Linux + 75) 85 - #define TARGET_NR_getrlimit (TARGET_NR_Linux + 76) 86 - #define TARGET_NR_getrusage (TARGET_NR_Linux + 77) 87 - #define TARGET_NR_gettimeofday (TARGET_NR_Linux + 78) 88 - #define TARGET_NR_settimeofday (TARGET_NR_Linux + 79) 89 - #define TARGET_NR_getgroups (TARGET_NR_Linux + 80) 90 - #define TARGET_NR_setgroups (TARGET_NR_Linux + 81) 91 - #define TARGET_NR_reserved82 (TARGET_NR_Linux + 82) 92 - #define TARGET_NR_symlink (TARGET_NR_Linux + 83) 93 - #define TARGET_NR_unused84 (TARGET_NR_Linux + 84) 94 - #define TARGET_NR_readlink (TARGET_NR_Linux + 85) 95 - #define TARGET_NR_uselib (TARGET_NR_Linux + 86) 96 - #define TARGET_NR_swapon (TARGET_NR_Linux + 87) 97 - #define TARGET_NR_reboot (TARGET_NR_Linux + 88) 98 - #define TARGET_NR_readdir (TARGET_NR_Linux + 89) 99 - #define TARGET_NR_mmap (TARGET_NR_Linux + 90) 100 - #define TARGET_NR_munmap (TARGET_NR_Linux + 91) 101 - #define TARGET_NR_truncate (TARGET_NR_Linux + 92) 102 - #define TARGET_NR_ftruncate (TARGET_NR_Linux + 93) 103 - #define TARGET_NR_fchmod (TARGET_NR_Linux + 94) 104 - #define TARGET_NR_fchown (TARGET_NR_Linux + 95) 105 - #define TARGET_NR_getpriority (TARGET_NR_Linux + 96) 106 - #define TARGET_NR_setpriority (TARGET_NR_Linux + 97) 107 - #define TARGET_NR_profil (TARGET_NR_Linux + 98) 108 - #define TARGET_NR_statfs (TARGET_NR_Linux + 99) 109 - #define TARGET_NR_fstatfs (TARGET_NR_Linux + 100) 110 - #define TARGET_NR_ioperm (TARGET_NR_Linux + 101) 111 - #define TARGET_NR_socketcall (TARGET_NR_Linux + 102) 112 - #define TARGET_NR_syslog (TARGET_NR_Linux + 103) 113 - #define TARGET_NR_setitimer (TARGET_NR_Linux + 104) 114 - #define TARGET_NR_getitimer (TARGET_NR_Linux + 105) 115 - #define TARGET_NR_stat (TARGET_NR_Linux + 106) 116 - #define TARGET_NR_lstat (TARGET_NR_Linux + 107) 117 - #define TARGET_NR_fstat (TARGET_NR_Linux + 108) 118 - #define TARGET_NR_unused109 (TARGET_NR_Linux + 109) 119 - #define TARGET_NR_iopl (TARGET_NR_Linux + 110) 120 - #define TARGET_NR_vhangup (TARGET_NR_Linux + 111) 121 - #define TARGET_NR_idle (TARGET_NR_Linux + 112) 122 - #define TARGET_NR_vm86 (TARGET_NR_Linux + 113) 123 - #define TARGET_NR_wait4 (TARGET_NR_Linux + 114) 124 - #define TARGET_NR_swapoff (TARGET_NR_Linux + 115) 125 - #define TARGET_NR_sysinfo (TARGET_NR_Linux + 116) 126 - #define TARGET_NR_ipc (TARGET_NR_Linux + 117) 127 - #define TARGET_NR_fsync (TARGET_NR_Linux + 118) 128 - #define TARGET_NR_sigreturn (TARGET_NR_Linux + 119) 129 - #define TARGET_NR_clone (TARGET_NR_Linux + 120) 130 - #define TARGET_NR_setdomainname (TARGET_NR_Linux + 121) 131 - #define TARGET_NR_uname (TARGET_NR_Linux + 122) 132 - #define TARGET_NR_modify_ldt (TARGET_NR_Linux + 123) 133 - #define TARGET_NR_adjtimex (TARGET_NR_Linux + 124) 134 - #define TARGET_NR_mprotect (TARGET_NR_Linux + 125) 135 - #define TARGET_NR_sigprocmask (TARGET_NR_Linux + 126) 136 - #define TARGET_NR_create_module (TARGET_NR_Linux + 127) 137 - #define TARGET_NR_init_module (TARGET_NR_Linux + 128) 138 - #define TARGET_NR_delete_module (TARGET_NR_Linux + 129) 139 - #define TARGET_NR_get_kernel_syms (TARGET_NR_Linux + 130) 140 - #define TARGET_NR_quotactl (TARGET_NR_Linux + 131) 141 - #define TARGET_NR_getpgid (TARGET_NR_Linux + 132) 142 - #define TARGET_NR_fchdir (TARGET_NR_Linux + 133) 143 - #define TARGET_NR_bdflush (TARGET_NR_Linux + 134) 144 - #define TARGET_NR_sysfs (TARGET_NR_Linux + 135) 145 - #define TARGET_NR_personality (TARGET_NR_Linux + 136) 146 - #define TARGET_NR_afs_syscall (TARGET_NR_Linux + 137) /* Syscall for Andrew File System */ 147 - #define TARGET_NR_setfsuid (TARGET_NR_Linux + 138) 148 - #define TARGET_NR_setfsgid (TARGET_NR_Linux + 139) 149 - #define TARGET_NR__llseek (TARGET_NR_Linux + 140) 150 - #define TARGET_NR_getdents (TARGET_NR_Linux + 141) 151 - #define TARGET_NR__newselect (TARGET_NR_Linux + 142) 152 - #define TARGET_NR_flock (TARGET_NR_Linux + 143) 153 - #define TARGET_NR_msync (TARGET_NR_Linux + 144) 154 - #define TARGET_NR_readv (TARGET_NR_Linux + 145) 155 - #define TARGET_NR_writev (TARGET_NR_Linux + 146) 156 - #define TARGET_NR_cacheflush (TARGET_NR_Linux + 147) 157 - #define TARGET_NR_cachectl (TARGET_NR_Linux + 148) 158 - #define TARGET_NR_sysmips (TARGET_NR_Linux + 149) 159 - #define TARGET_NR_unused150 (TARGET_NR_Linux + 150) 160 - #define TARGET_NR_getsid (TARGET_NR_Linux + 151) 161 - #define TARGET_NR_fdatasync (TARGET_NR_Linux + 152) 162 - #define TARGET_NR__sysctl (TARGET_NR_Linux + 153) 163 - #define TARGET_NR_mlock (TARGET_NR_Linux + 154) 164 - #define TARGET_NR_munlock (TARGET_NR_Linux + 155) 165 - #define TARGET_NR_mlockall (TARGET_NR_Linux + 156) 166 - #define TARGET_NR_munlockall (TARGET_NR_Linux + 157) 167 - #define TARGET_NR_sched_setparam (TARGET_NR_Linux + 158) 168 - #define TARGET_NR_sched_getparam (TARGET_NR_Linux + 159) 169 - #define TARGET_NR_sched_setscheduler (TARGET_NR_Linux + 160) 170 - #define TARGET_NR_sched_getscheduler (TARGET_NR_Linux + 161) 171 - #define TARGET_NR_sched_yield (TARGET_NR_Linux + 162) 172 - #define TARGET_NR_sched_get_priority_max (TARGET_NR_Linux + 163) 173 - #define TARGET_NR_sched_get_priority_min (TARGET_NR_Linux + 164) 174 - #define TARGET_NR_sched_rr_get_interval (TARGET_NR_Linux + 165) 175 - #define TARGET_NR_nanosleep (TARGET_NR_Linux + 166) 176 - #define TARGET_NR_mremap (TARGET_NR_Linux + 167) 177 - #define TARGET_NR_accept (TARGET_NR_Linux + 168) 178 - #define TARGET_NR_bind (TARGET_NR_Linux + 169) 179 - #define TARGET_NR_connect (TARGET_NR_Linux + 170) 180 - #define TARGET_NR_getpeername (TARGET_NR_Linux + 171) 181 - #define TARGET_NR_getsockname (TARGET_NR_Linux + 172) 182 - #define TARGET_NR_getsockopt (TARGET_NR_Linux + 173) 183 - #define TARGET_NR_listen (TARGET_NR_Linux + 174) 184 - #define TARGET_NR_recv (TARGET_NR_Linux + 175) 185 - #define TARGET_NR_recvfrom (TARGET_NR_Linux + 176) 186 - #define TARGET_NR_recvmsg (TARGET_NR_Linux + 177) 187 - #define TARGET_NR_send (TARGET_NR_Linux + 178) 188 - #define TARGET_NR_sendmsg (TARGET_NR_Linux + 179) 189 - #define TARGET_NR_sendto (TARGET_NR_Linux + 180) 190 - #define TARGET_NR_setsockopt (TARGET_NR_Linux + 181) 191 - #define TARGET_NR_shutdown (TARGET_NR_Linux + 182) 192 - #define TARGET_NR_socket (TARGET_NR_Linux + 183) 193 - #define TARGET_NR_socketpair (TARGET_NR_Linux + 184) 194 - #define TARGET_NR_setresuid (TARGET_NR_Linux + 185) 195 - #define TARGET_NR_getresuid (TARGET_NR_Linux + 186) 196 - #define TARGET_NR_query_module (TARGET_NR_Linux + 187) 197 - #define TARGET_NR_poll (TARGET_NR_Linux + 188) 198 - #define TARGET_NR_nfsservctl (TARGET_NR_Linux + 189) 199 - #define TARGET_NR_setresgid (TARGET_NR_Linux + 190) 200 - #define TARGET_NR_getresgid (TARGET_NR_Linux + 191) 201 - #define TARGET_NR_prctl (TARGET_NR_Linux + 192) 202 - #define TARGET_NR_rt_sigreturn (TARGET_NR_Linux + 193) 203 - #define TARGET_NR_rt_sigaction (TARGET_NR_Linux + 194) 204 - #define TARGET_NR_rt_sigprocmask (TARGET_NR_Linux + 195) 205 - #define TARGET_NR_rt_sigpending (TARGET_NR_Linux + 196) 206 - #define TARGET_NR_rt_sigtimedwait (TARGET_NR_Linux + 197) 207 - #define TARGET_NR_rt_sigqueueinfo (TARGET_NR_Linux + 198) 208 - #define TARGET_NR_rt_sigsuspend (TARGET_NR_Linux + 199) 209 - #define TARGET_NR_pread64 (TARGET_NR_Linux + 200) 210 - #define TARGET_NR_pwrite64 (TARGET_NR_Linux + 201) 211 - #define TARGET_NR_chown (TARGET_NR_Linux + 202) 212 - #define TARGET_NR_getcwd (TARGET_NR_Linux + 203) 213 - #define TARGET_NR_capget (TARGET_NR_Linux + 204) 214 - #define TARGET_NR_capset (TARGET_NR_Linux + 205) 215 - #define TARGET_NR_sigaltstack (TARGET_NR_Linux + 206) 216 - #define TARGET_NR_sendfile (TARGET_NR_Linux + 207) 217 - #define TARGET_NR_getpmsg (TARGET_NR_Linux + 208) 218 - #define TARGET_NR_putpmsg (TARGET_NR_Linux + 209) 219 - #define TARGET_NR_mmap2 (TARGET_NR_Linux + 210) 220 - #define TARGET_NR_truncate64 (TARGET_NR_Linux + 211) 221 - #define TARGET_NR_ftruncate64 (TARGET_NR_Linux + 212) 222 - #define TARGET_NR_stat64 (TARGET_NR_Linux + 213) 223 - #define TARGET_NR_lstat64 (TARGET_NR_Linux + 214) 224 - #define TARGET_NR_fstat64 (TARGET_NR_Linux + 215) 225 - #define TARGET_NR_pivot_root (TARGET_NR_Linux + 216) 226 - #define TARGET_NR_mincore (TARGET_NR_Linux + 217) 227 - #define TARGET_NR_madvise (TARGET_NR_Linux + 218) 228 - #define TARGET_NR_getdents64 (TARGET_NR_Linux + 219) 229 - #define TARGET_NR_fcntl64 (TARGET_NR_Linux + 220) 230 - #define TARGET_NR_reserved221 (TARGET_NR_Linux + 221) 231 - #define TARGET_NR_gettid (TARGET_NR_Linux + 222) 232 - #define TARGET_NR_readahead (TARGET_NR_Linux + 223) 233 - #define TARGET_NR_setxattr (TARGET_NR_Linux + 224) 234 - #define TARGET_NR_lsetxattr (TARGET_NR_Linux + 225) 235 - #define TARGET_NR_fsetxattr (TARGET_NR_Linux + 226) 236 - #define TARGET_NR_getxattr (TARGET_NR_Linux + 227) 237 - #define TARGET_NR_lgetxattr (TARGET_NR_Linux + 228) 238 - #define TARGET_NR_fgetxattr (TARGET_NR_Linux + 229) 239 - #define TARGET_NR_listxattr (TARGET_NR_Linux + 230) 240 - #define TARGET_NR_llistxattr (TARGET_NR_Linux + 231) 241 - #define TARGET_NR_flistxattr (TARGET_NR_Linux + 232) 242 - #define TARGET_NR_removexattr (TARGET_NR_Linux + 233) 243 - #define TARGET_NR_lremovexattr (TARGET_NR_Linux + 234) 244 - #define TARGET_NR_fremovexattr (TARGET_NR_Linux + 235) 245 - #define TARGET_NR_tkill (TARGET_NR_Linux + 236) 246 - #define TARGET_NR_sendfile64 (TARGET_NR_Linux + 237) 247 - #define TARGET_NR_futex (TARGET_NR_Linux + 238) 248 - #define TARGET_NR_sched_setaffinity (TARGET_NR_Linux + 239) 249 - #define TARGET_NR_sched_getaffinity (TARGET_NR_Linux + 240) 250 - #define TARGET_NR_io_setup (TARGET_NR_Linux + 241) 251 - #define TARGET_NR_io_destroy (TARGET_NR_Linux + 242) 252 - #define TARGET_NR_io_getevents (TARGET_NR_Linux + 243) 253 - #define TARGET_NR_io_submit (TARGET_NR_Linux + 244) 254 - #define TARGET_NR_io_cancel (TARGET_NR_Linux + 245) 255 - #define TARGET_NR_exit_group (TARGET_NR_Linux + 246) 256 - #define TARGET_NR_lookup_dcookie (TARGET_NR_Linux + 247) 257 - #define TARGET_NR_epoll_create (TARGET_NR_Linux + 248) 258 - #define TARGET_NR_epoll_ctl (TARGET_NR_Linux + 249) 259 - #define TARGET_NR_epoll_wait (TARGET_NR_Linux + 250) 260 - #define TARGET_NR_remap_file_pages (TARGET_NR_Linux + 251) 261 - #define TARGET_NR_set_tid_address (TARGET_NR_Linux + 252) 262 - #define TARGET_NR_restart_syscall (TARGET_NR_Linux + 253) 263 - #define TARGET_NR_fadvise64_64 (TARGET_NR_Linux + 254) 264 - #define TARGET_NR_statfs64 (TARGET_NR_Linux + 255) 265 - #define TARGET_NR_fstatfs64 (TARGET_NR_Linux + 256) 266 - #define TARGET_NR_timer_create (TARGET_NR_Linux + 257) 267 - #define TARGET_NR_timer_settime (TARGET_NR_Linux + 258) 268 - #define TARGET_NR_timer_gettime (TARGET_NR_Linux + 259) 269 - #define TARGET_NR_timer_getoverrun (TARGET_NR_Linux + 260) 270 - #define TARGET_NR_timer_delete (TARGET_NR_Linux + 261) 271 - #define TARGET_NR_clock_settime (TARGET_NR_Linux + 262) 272 - #define TARGET_NR_clock_gettime (TARGET_NR_Linux + 263) 273 - #define TARGET_NR_clock_getres (TARGET_NR_Linux + 264) 274 - #define TARGET_NR_clock_nanosleep (TARGET_NR_Linux + 265) 275 - #define TARGET_NR_tgkill (TARGET_NR_Linux + 266) 276 - #define TARGET_NR_utimes (TARGET_NR_Linux + 267) 277 - #define TARGET_NR_mbind (TARGET_NR_Linux + 268) 278 - #define TARGET_NR_get_mempolicy (TARGET_NR_Linux + 269) 279 - #define TARGET_NR_set_mempolicy (TARGET_NR_Linux + 270) 280 - #define TARGET_NR_mq_open (TARGET_NR_Linux + 271) 281 - #define TARGET_NR_mq_unlink (TARGET_NR_Linux + 272) 282 - #define TARGET_NR_mq_timedsend (TARGET_NR_Linux + 273) 283 - #define TARGET_NR_mq_timedreceive (TARGET_NR_Linux + 274) 284 - #define TARGET_NR_mq_notify (TARGET_NR_Linux + 275) 285 - #define TARGET_NR_mq_getsetattr (TARGET_NR_Linux + 276) 286 - #define TARGET_NR_vserver (TARGET_NR_Linux + 277) 287 - #define TARGET_NR_waitid (TARGET_NR_Linux + 278) 288 - /* #define TARGET_NR_sys_setaltroot (TARGET_NR_Linux + 279) */ 289 - #define TARGET_NR_add_key (TARGET_NR_Linux + 280) 290 - #define TARGET_NR_request_key (TARGET_NR_Linux + 281) 291 - #define TARGET_NR_keyctl (TARGET_NR_Linux + 282) 292 - #define TARGET_NR_set_thread_area (TARGET_NR_Linux + 283) 293 - #define TARGET_NR_inotify_init (TARGET_NR_Linux + 284) 294 - #define TARGET_NR_inotify_add_watch (TARGET_NR_Linux + 285) 295 - #define TARGET_NR_inotify_rm_watch (TARGET_NR_Linux + 286) 296 - #define TARGET_NR_migrate_pages (TARGET_NR_Linux + 287) 297 - #define TARGET_NR_openat (TARGET_NR_Linux + 288) 298 - #define TARGET_NR_mkdirat (TARGET_NR_Linux + 289) 299 - #define TARGET_NR_mknodat (TARGET_NR_Linux + 290) 300 - #define TARGET_NR_fchownat (TARGET_NR_Linux + 291) 301 - #define TARGET_NR_futimesat (TARGET_NR_Linux + 292) 302 - #define TARGET_NR_fstatat64 (TARGET_NR_Linux + 293) 303 - #define TARGET_NR_unlinkat (TARGET_NR_Linux + 294) 304 - #define TARGET_NR_renameat (TARGET_NR_Linux + 295) 305 - #define TARGET_NR_linkat (TARGET_NR_Linux + 296) 306 - #define TARGET_NR_symlinkat (TARGET_NR_Linux + 297) 307 - #define TARGET_NR_readlinkat (TARGET_NR_Linux + 298) 308 - #define TARGET_NR_fchmodat (TARGET_NR_Linux + 299) 309 - #define TARGET_NR_faccessat (TARGET_NR_Linux + 300) 310 - #define TARGET_NR_pselect6 (TARGET_NR_Linux + 301) 311 - #define TARGET_NR_ppoll (TARGET_NR_Linux + 302) 312 - #define TARGET_NR_unshare (TARGET_NR_Linux + 303) 313 - #define TARGET_NR_splice (TARGET_NR_Linux + 304) 314 - #define TARGET_NR_sync_file_range (TARGET_NR_Linux + 305) 315 - #define TARGET_NR_tee (TARGET_NR_Linux + 306) 316 - #define TARGET_NR_vmsplice (TARGET_NR_Linux + 307) 317 - #define TARGET_NR_move_pages (TARGET_NR_Linux + 308) 318 - #define TARGET_NR_set_robust_list (TARGET_NR_Linux + 309) 319 - #define TARGET_NR_get_robust_list (TARGET_NR_Linux + 310) 320 - #define TARGET_NR_kexec_load (TARGET_NR_Linux + 311) 321 - #define TARGET_NR_getcpu (TARGET_NR_Linux + 312) 322 - #define TARGET_NR_epoll_pwait (TARGET_NR_Linux + 313) 323 - #define TARGET_NR_ioprio_set (TARGET_NR_Linux + 314) 324 - #define TARGET_NR_ioprio_get (TARGET_NR_Linux + 315) 325 - #define TARGET_NR_utimensat (TARGET_NR_Linux + 316) 326 - #define TARGET_NR_signalfd (TARGET_NR_Linux + 317) 327 - #define TARGET_NR_timerfd (TARGET_NR_Linux + 318) 328 - #define TARGET_NR_eventfd (TARGET_NR_Linux + 319) 329 - #define TARGET_NR_fallocate (TARGET_NR_Linux + 320) 330 - #define TARGET_NR_timerfd_create (TARGET_NR_Linux + 321) 331 - #define TARGET_NR_timerfd_gettime (TARGET_NR_Linux + 322) 332 - #define TARGET_NR_timerfd_settime (TARGET_NR_Linux + 323) 333 - #define TARGET_NR_signalfd4 (TARGET_NR_Linux + 324) 334 - #define TARGET_NR_eventfd2 (TARGET_NR_Linux + 325) 335 - #define TARGET_NR_epoll_create1 (TARGET_NR_Linux + 326) 336 - #define TARGET_NR_dup3 (TARGET_NR_Linux + 327) 337 - #define TARGET_NR_pipe2 (TARGET_NR_Linux + 328) 338 - #define TARGET_NR_inotify_init1 (TARGET_NR_Linux + 329) 339 - #define TARGET_NR_preadv (TARGET_NR_Linux + 330) 340 - #define TARGET_NR_pwritev (TARGET_NR_Linux + 331) 341 - #define TARGET_NR_rt_tgsigqueueinfo (TARGET_NR_Linux + 332) 342 - #define TARGET_NR_perf_event_open (TARGET_NR_Linux + 333) 343 - #define TARGET_NR_accept4 (TARGET_NR_Linux + 334) 344 - #define TARGET_NR_recvmmsg (TARGET_NR_Linux + 335) 345 - #define TARGET_NR_fanotify_init (TARGET_NR_Linux + 336) 346 - #define TARGET_NR_fanotify_mark (TARGET_NR_Linux + 337) 347 - #define TARGET_NR_prlimit64 (TARGET_NR_Linux + 338) 348 - #define TARGET_NR_name_to_handle_at (TARGET_NR_Linux + 339) 349 - #define TARGET_NR_open_by_handle_at (TARGET_NR_Linux + 340) 350 - #define TARGET_NR_clock_adjtime (TARGET_NR_Linux + 341) 351 - #define TARGET_NR_syncfs (TARGET_NR_Linux + 342) 352 - #define TARGET_NR_sendmmsg (TARGET_NR_Linux + 343) 353 - #define TARGET_NR_setns (TARGET_NR_Linux + 344) 354 - #define TARGET_NR_process_vm_readv (TARGET_NR_Linux + 345) 355 - #define TARGET_NR_process_vm_writev (TARGET_NR_Linux + 346) 356 - #define TARGET_NR_kcmp (TARGET_NR_Linux + 347) 357 - #define TARGET_NR_finit_module (TARGET_NR_Linux + 348) 358 - 359 - #define TARGET_NR_sched_setattr (TARGET_NR_Linux + 349) 360 - #define TARGET_NR_sched_getattr (TARGET_NR_Linux + 350) 361 - #define TARGET_NR_renameat2 (TARGET_NR_Linux + 351) 362 - #define TARGET_NR_seccomp (TARGET_NR_Linux + 352) 363 - #define TARGET_NR_getrandom (TARGET_NR_Linux + 353) 364 - #define TARGET_NR_memfd_create (TARGET_NR_Linux + 354) 365 - #define TARGET_NR_bpf (TARGET_NR_Linux + 355) 366 - #define TARGET_NR_execveat (TARGET_NR_Linux + 356) 367 - #define TARGET_NR_userfaultfd (TARGET_NR_Linux + 357) 368 - #define TARGET_NR_membarrier (TARGET_NR_Linux + 358) 369 - #define TARGET_NR_mlock2 (TARGET_NR_Linux + 359) 370 - #define TARGET_NR_copy_file_range (TARGET_NR_Linux + 360) 371 - #define TARGET_NR_preadv2 (TARGET_NR_Linux + 361) 372 - #define TARGET_NR_pwritev2 (TARGET_NR_Linux + 362) 373 - #define TARGET_NR_pkey_mprotect (TARGET_NR_Linux + 363) 374 - #define TARGET_NR_pkey_alloc (TARGET_NR_Linux + 364) 375 - #define TARGET_NR_pkey_free (TARGET_NR_Linux + 365) 376 - #define TARGET_NR_statx (TARGET_NR_Linux + 366) 377 - #define TARGET_NR_rseq (TARGET_NR_Linux + 367) 378 - #define TARGET_NR_io_pgetevents (TARGET_NR_Linux + 368) 379 - /* room for arch specific calls */ 380 - #define TARGET_NR_semget (TARGET_NR_Linux + 393) 381 - #define TARGET_NR_semctl (TARGET_NR_Linux + 394) 382 - #define TARGET_NR_shmget (TARGET_NR_Linux + 395) 383 - #define TARGET_NR_shmctl (TARGET_NR_Linux + 396) 384 - #define TARGET_NR_shmat (TARGET_NR_Linux + 397) 385 - #define TARGET_NR_shmdt (TARGET_NR_Linux + 398) 386 - #define TARGET_NR_msgget (TARGET_NR_Linux + 399) 387 - #define TARGET_NR_msgsnd (TARGET_NR_Linux + 400) 388 - #define TARGET_NR_msgrcv (TARGET_NR_Linux + 401) 389 - #define TARGET_NR_msgctl (TARGET_NR_Linux + 402) 390 - /* 403-423 common for 32-bit archs */ 391 - #define TARGET_NR_clock_gettime64 (TARGET_NR_Linux + 403) 392 - #define TARGET_NR_clock_settime64 (TARGET_NR_Linux + 404) 393 - #define TARGET_NR_clock_adjtime64 (TARGET_NR_Linux + 405) 394 - #define TARGET_NR_clock_getres_time64 (TARGET_NR_Linux + 406) 395 - #define TARGET_NR_clock_nanosleep_time64 (TARGET_NR_Linux + 407) 396 - #define TARGET_NR_timer_gettime64 (TARGET_NR_Linux + 408) 397 - #define TARGET_NR_timer_settime64 (TARGET_NR_Linux + 409) 398 - #define TARGET_NR_timerfd_gettime64 (TARGET_NR_Linux + 410) 399 - #define TARGET_NR_timerfd_settime64 (TARGET_NR_Linux + 411) 400 - #define TARGET_NR_utimensat_time64 (TARGET_NR_Linux + 412) 401 - #define TARGET_NR_pselect6_time64 (TARGET_NR_Linux + 413) 402 - #define TARGET_NR_ppoll_time64 (TARGET_NR_Linux + 414) 403 - #define TARGET_NR_io_pgetevents_time64 (TARGET_NR_Linux + 416) 404 - #define TARGET_NR_recvmmsg_time64 (TARGET_NR_Linux + 417) 405 - #define TARGET_NR_mq_timedsend_time64 (TARGET_NR_Linux + 418) 406 - #define TARGET_NR_mq_timedreceive_time64 (TARGET_NR_Linux + 419) 407 - #define TARGET_NR_semtimedop_time64 (TARGET_NR_Linux + 420) 408 - #define TARGET_NR_rt_sigtimedwait_time64 (TARGET_NR_Linux + 421) 409 - #define TARGET_NR_futex_time64 (TARGET_NR_Linux + 422) 410 - #define TARGET_NR_sched_rr_get_interval_time64 (TARGET_NR_Linux + 423) 411 - /* 424 onwards common for all archs */ 412 - #define TARGET_NR_pidfd_send_signal (TARGET_NR_Linux + 424) 413 - #define TARGET_NR_io_uring_setup (TARGET_NR_Linux + 425) 414 - #define TARGET_NR_io_uring_enter (TARGET_NR_Linux + 426) 415 - #define TARGET_NR_io_uring_register (TARGET_NR_Linux + 427) 416 - #define TARGET_NR_open_tree (TARGET_NR_Linux + 428) 417 - #define TARGET_NR_move_mount (TARGET_NR_Linux + 429) 418 - #define TARGET_NR_fsopen (TARGET_NR_Linux + 430) 419 - #define TARGET_NR_fsconfig (TARGET_NR_Linux + 431) 420 - #define TARGET_NR_fsmount (TARGET_NR_Linux + 432) 421 - #define TARGET_NR_fspick (TARGET_NR_Linux + 433) 422 - #define TARGET_NR_pidfd_open (TARGET_NR_Linux + 434) 423 - #define TARGET_NR_clone3 (TARGET_NR_Linux + 435) 424 - 425 - #endif
+427
linux-user/mips/syscall_o32.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for mips 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> <compat entry point> 7 + # 8 + # The <abi> is always "o32" for this file. 9 + # 10 + 0 o32 syscall sys_syscall sys32_syscall 11 + 1 o32 exit sys_exit 12 + 2 o32 fork __sys_fork 13 + 3 o32 read sys_read 14 + 4 o32 write sys_write 15 + 5 o32 open sys_open compat_sys_open 16 + 6 o32 close sys_close 17 + 7 o32 waitpid sys_waitpid 18 + 8 o32 creat sys_creat 19 + 9 o32 link sys_link 20 + 10 o32 unlink sys_unlink 21 + 11 o32 execve sys_execve compat_sys_execve 22 + 12 o32 chdir sys_chdir 23 + 13 o32 time sys_time32 24 + 14 o32 mknod sys_mknod 25 + 15 o32 chmod sys_chmod 26 + 16 o32 lchown sys_lchown 27 + 17 o32 break sys_ni_syscall 28 + # 18 was sys_stat 29 + 18 o32 unused18 sys_ni_syscall 30 + 19 o32 lseek sys_lseek 31 + 20 o32 getpid sys_getpid 32 + 21 o32 mount sys_mount compat_sys_mount 33 + 22 o32 umount sys_oldumount 34 + 23 o32 setuid sys_setuid 35 + 24 o32 getuid sys_getuid 36 + 25 o32 stime sys_stime32 37 + 26 o32 ptrace sys_ptrace compat_sys_ptrace 38 + 27 o32 alarm sys_alarm 39 + # 28 was sys_fstat 40 + 28 o32 unused28 sys_ni_syscall 41 + 29 o32 pause sys_pause 42 + 30 o32 utime sys_utime32 43 + 31 o32 stty sys_ni_syscall 44 + 32 o32 gtty sys_ni_syscall 45 + 33 o32 access sys_access 46 + 34 o32 nice sys_nice 47 + 35 o32 ftime sys_ni_syscall 48 + 36 o32 sync sys_sync 49 + 37 o32 kill sys_kill 50 + 38 o32 rename sys_rename 51 + 39 o32 mkdir sys_mkdir 52 + 40 o32 rmdir sys_rmdir 53 + 41 o32 dup sys_dup 54 + 42 o32 pipe sysm_pipe 55 + 43 o32 times sys_times compat_sys_times 56 + 44 o32 prof sys_ni_syscall 57 + 45 o32 brk sys_brk 58 + 46 o32 setgid sys_setgid 59 + 47 o32 getgid sys_getgid 60 + 48 o32 signal sys_ni_syscall 61 + 49 o32 geteuid sys_geteuid 62 + 50 o32 getegid sys_getegid 63 + 51 o32 acct sys_acct 64 + 52 o32 umount2 sys_umount 65 + 53 o32 lock sys_ni_syscall 66 + 54 o32 ioctl sys_ioctl compat_sys_ioctl 67 + 55 o32 fcntl sys_fcntl compat_sys_fcntl 68 + 56 o32 mpx sys_ni_syscall 69 + 57 o32 setpgid sys_setpgid 70 + 58 o32 ulimit sys_ni_syscall 71 + 59 o32 unused59 sys_olduname 72 + 60 o32 umask sys_umask 73 + 61 o32 chroot sys_chroot 74 + 62 o32 ustat sys_ustat compat_sys_ustat 75 + 63 o32 dup2 sys_dup2 76 + 64 o32 getppid sys_getppid 77 + 65 o32 getpgrp sys_getpgrp 78 + 66 o32 setsid sys_setsid 79 + 67 o32 sigaction sys_sigaction sys_32_sigaction 80 + 68 o32 sgetmask sys_sgetmask 81 + 69 o32 ssetmask sys_ssetmask 82 + 70 o32 setreuid sys_setreuid 83 + 71 o32 setregid sys_setregid 84 + 72 o32 sigsuspend sys_sigsuspend sys32_sigsuspend 85 + 73 o32 sigpending sys_sigpending compat_sys_sigpending 86 + 74 o32 sethostname sys_sethostname 87 + 75 o32 setrlimit sys_setrlimit compat_sys_setrlimit 88 + 76 o32 getrlimit sys_getrlimit compat_sys_getrlimit 89 + 77 o32 getrusage sys_getrusage compat_sys_getrusage 90 + 78 o32 gettimeofday sys_gettimeofday compat_sys_gettimeofday 91 + 79 o32 settimeofday sys_settimeofday compat_sys_settimeofday 92 + 80 o32 getgroups sys_getgroups 93 + 81 o32 setgroups sys_setgroups 94 + # 82 was old_select 95 + 82 o32 reserved82 sys_ni_syscall 96 + 83 o32 symlink sys_symlink 97 + # 84 was sys_lstat 98 + 84 o32 unused84 sys_ni_syscall 99 + 85 o32 readlink sys_readlink 100 + 86 o32 uselib sys_uselib 101 + 87 o32 swapon sys_swapon 102 + 88 o32 reboot sys_reboot 103 + 89 o32 readdir sys_old_readdir compat_sys_old_readdir 104 + 90 o32 mmap sys_mips_mmap 105 + 91 o32 munmap sys_munmap 106 + 92 o32 truncate sys_truncate compat_sys_truncate 107 + 93 o32 ftruncate sys_ftruncate compat_sys_ftruncate 108 + 94 o32 fchmod sys_fchmod 109 + 95 o32 fchown sys_fchown 110 + 96 o32 getpriority sys_getpriority 111 + 97 o32 setpriority sys_setpriority 112 + 98 o32 profil sys_ni_syscall 113 + 99 o32 statfs sys_statfs compat_sys_statfs 114 + 100 o32 fstatfs sys_fstatfs compat_sys_fstatfs 115 + 101 o32 ioperm sys_ni_syscall 116 + 102 o32 socketcall sys_socketcall compat_sys_socketcall 117 + 103 o32 syslog sys_syslog 118 + 104 o32 setitimer sys_setitimer compat_sys_setitimer 119 + 105 o32 getitimer sys_getitimer compat_sys_getitimer 120 + 106 o32 stat sys_newstat compat_sys_newstat 121 + 107 o32 lstat sys_newlstat compat_sys_newlstat 122 + 108 o32 fstat sys_newfstat compat_sys_newfstat 123 + 109 o32 unused109 sys_uname 124 + 110 o32 iopl sys_ni_syscall 125 + 111 o32 vhangup sys_vhangup 126 + 112 o32 idle sys_ni_syscall 127 + 113 o32 vm86 sys_ni_syscall 128 + 114 o32 wait4 sys_wait4 compat_sys_wait4 129 + 115 o32 swapoff sys_swapoff 130 + 116 o32 sysinfo sys_sysinfo compat_sys_sysinfo 131 + 117 o32 ipc sys_ipc compat_sys_ipc 132 + 118 o32 fsync sys_fsync 133 + 119 o32 sigreturn sys_sigreturn sys32_sigreturn 134 + 120 o32 clone __sys_clone 135 + 121 o32 setdomainname sys_setdomainname 136 + 122 o32 uname sys_newuname 137 + 123 o32 modify_ldt sys_ni_syscall 138 + 124 o32 adjtimex sys_adjtimex_time32 139 + 125 o32 mprotect sys_mprotect 140 + 126 o32 sigprocmask sys_sigprocmask compat_sys_sigprocmask 141 + 127 o32 create_module sys_ni_syscall 142 + 128 o32 init_module sys_init_module 143 + 129 o32 delete_module sys_delete_module 144 + 130 o32 get_kernel_syms sys_ni_syscall 145 + 131 o32 quotactl sys_quotactl 146 + 132 o32 getpgid sys_getpgid 147 + 133 o32 fchdir sys_fchdir 148 + 134 o32 bdflush sys_bdflush 149 + 135 o32 sysfs sys_sysfs 150 + 136 o32 personality sys_personality sys_32_personality 151 + 137 o32 afs_syscall sys_ni_syscall 152 + 138 o32 setfsuid sys_setfsuid 153 + 139 o32 setfsgid sys_setfsgid 154 + 140 o32 _llseek sys_llseek sys_32_llseek 155 + 141 o32 getdents sys_getdents compat_sys_getdents 156 + 142 o32 _newselect sys_select compat_sys_select 157 + 143 o32 flock sys_flock 158 + 144 o32 msync sys_msync 159 + 145 o32 readv sys_readv compat_sys_readv 160 + 146 o32 writev sys_writev compat_sys_writev 161 + 147 o32 cacheflush sys_cacheflush 162 + 148 o32 cachectl sys_cachectl 163 + 149 o32 sysmips __sys_sysmips 164 + 150 o32 unused150 sys_ni_syscall 165 + 151 o32 getsid sys_getsid 166 + 152 o32 fdatasync sys_fdatasync 167 + 153 o32 _sysctl sys_sysctl compat_sys_sysctl 168 + 154 o32 mlock sys_mlock 169 + 155 o32 munlock sys_munlock 170 + 156 o32 mlockall sys_mlockall 171 + 157 o32 munlockall sys_munlockall 172 + 158 o32 sched_setparam sys_sched_setparam 173 + 159 o32 sched_getparam sys_sched_getparam 174 + 160 o32 sched_setscheduler sys_sched_setscheduler 175 + 161 o32 sched_getscheduler sys_sched_getscheduler 176 + 162 o32 sched_yield sys_sched_yield 177 + 163 o32 sched_get_priority_max sys_sched_get_priority_max 178 + 164 o32 sched_get_priority_min sys_sched_get_priority_min 179 + 165 o32 sched_rr_get_interval sys_sched_rr_get_interval_time32 180 + 166 o32 nanosleep sys_nanosleep_time32 181 + 167 o32 mremap sys_mremap 182 + 168 o32 accept sys_accept 183 + 169 o32 bind sys_bind 184 + 170 o32 connect sys_connect 185 + 171 o32 getpeername sys_getpeername 186 + 172 o32 getsockname sys_getsockname 187 + 173 o32 getsockopt sys_getsockopt compat_sys_getsockopt 188 + 174 o32 listen sys_listen 189 + 175 o32 recv sys_recv compat_sys_recv 190 + 176 o32 recvfrom sys_recvfrom compat_sys_recvfrom 191 + 177 o32 recvmsg sys_recvmsg compat_sys_recvmsg 192 + 178 o32 send sys_send 193 + 179 o32 sendmsg sys_sendmsg compat_sys_sendmsg 194 + 180 o32 sendto sys_sendto 195 + 181 o32 setsockopt sys_setsockopt compat_sys_setsockopt 196 + 182 o32 shutdown sys_shutdown 197 + 183 o32 socket sys_socket 198 + 184 o32 socketpair sys_socketpair 199 + 185 o32 setresuid sys_setresuid 200 + 186 o32 getresuid sys_getresuid 201 + 187 o32 query_module sys_ni_syscall 202 + 188 o32 poll sys_poll 203 + 189 o32 nfsservctl sys_ni_syscall 204 + 190 o32 setresgid sys_setresgid 205 + 191 o32 getresgid sys_getresgid 206 + 192 o32 prctl sys_prctl 207 + 193 o32 rt_sigreturn sys_rt_sigreturn sys32_rt_sigreturn 208 + 194 o32 rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 209 + 195 o32 rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 210 + 196 o32 rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 211 + 197 o32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 212 + 198 o32 rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 213 + 199 o32 rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 214 + 200 o32 pread64 sys_pread64 sys_32_pread 215 + 201 o32 pwrite64 sys_pwrite64 sys_32_pwrite 216 + 202 o32 chown sys_chown 217 + 203 o32 getcwd sys_getcwd 218 + 204 o32 capget sys_capget 219 + 205 o32 capset sys_capset 220 + 206 o32 sigaltstack sys_sigaltstack compat_sys_sigaltstack 221 + 207 o32 sendfile sys_sendfile compat_sys_sendfile 222 + 208 o32 getpmsg sys_ni_syscall 223 + 209 o32 putpmsg sys_ni_syscall 224 + 210 o32 mmap2 sys_mips_mmap2 225 + 211 o32 truncate64 sys_truncate64 sys_32_truncate64 226 + 212 o32 ftruncate64 sys_ftruncate64 sys_32_ftruncate64 227 + 213 o32 stat64 sys_stat64 sys_newstat 228 + 214 o32 lstat64 sys_lstat64 sys_newlstat 229 + 215 o32 fstat64 sys_fstat64 sys_newfstat 230 + 216 o32 pivot_root sys_pivot_root 231 + 217 o32 mincore sys_mincore 232 + 218 o32 madvise sys_madvise 233 + 219 o32 getdents64 sys_getdents64 234 + 220 o32 fcntl64 sys_fcntl64 compat_sys_fcntl64 235 + 221 o32 reserved221 sys_ni_syscall 236 + 222 o32 gettid sys_gettid 237 + 223 o32 readahead sys_readahead sys32_readahead 238 + 224 o32 setxattr sys_setxattr 239 + 225 o32 lsetxattr sys_lsetxattr 240 + 226 o32 fsetxattr sys_fsetxattr 241 + 227 o32 getxattr sys_getxattr 242 + 228 o32 lgetxattr sys_lgetxattr 243 + 229 o32 fgetxattr sys_fgetxattr 244 + 230 o32 listxattr sys_listxattr 245 + 231 o32 llistxattr sys_llistxattr 246 + 232 o32 flistxattr sys_flistxattr 247 + 233 o32 removexattr sys_removexattr 248 + 234 o32 lremovexattr sys_lremovexattr 249 + 235 o32 fremovexattr sys_fremovexattr 250 + 236 o32 tkill sys_tkill 251 + 237 o32 sendfile64 sys_sendfile64 252 + 238 o32 futex sys_futex_time32 253 + 239 o32 sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 254 + 240 o32 sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 255 + 241 o32 io_setup sys_io_setup compat_sys_io_setup 256 + 242 o32 io_destroy sys_io_destroy 257 + 243 o32 io_getevents sys_io_getevents_time32 258 + 244 o32 io_submit sys_io_submit compat_sys_io_submit 259 + 245 o32 io_cancel sys_io_cancel 260 + 246 o32 exit_group sys_exit_group 261 + 247 o32 lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 262 + 248 o32 epoll_create sys_epoll_create 263 + 249 o32 epoll_ctl sys_epoll_ctl 264 + 250 o32 epoll_wait sys_epoll_wait 265 + 251 o32 remap_file_pages sys_remap_file_pages 266 + 252 o32 set_tid_address sys_set_tid_address 267 + 253 o32 restart_syscall sys_restart_syscall 268 + 254 o32 fadvise64 sys_fadvise64_64 sys32_fadvise64_64 269 + 255 o32 statfs64 sys_statfs64 compat_sys_statfs64 270 + 256 o32 fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 271 + 257 o32 timer_create sys_timer_create compat_sys_timer_create 272 + 258 o32 timer_settime sys_timer_settime32 273 + 259 o32 timer_gettime sys_timer_gettime32 274 + 260 o32 timer_getoverrun sys_timer_getoverrun 275 + 261 o32 timer_delete sys_timer_delete 276 + 262 o32 clock_settime sys_clock_settime32 277 + 263 o32 clock_gettime sys_clock_gettime32 278 + 264 o32 clock_getres sys_clock_getres_time32 279 + 265 o32 clock_nanosleep sys_clock_nanosleep_time32 280 + 266 o32 tgkill sys_tgkill 281 + 267 o32 utimes sys_utimes_time32 282 + 268 o32 mbind sys_mbind compat_sys_mbind 283 + 269 o32 get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 284 + 270 o32 set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 285 + 271 o32 mq_open sys_mq_open compat_sys_mq_open 286 + 272 o32 mq_unlink sys_mq_unlink 287 + 273 o32 mq_timedsend sys_mq_timedsend_time32 288 + 274 o32 mq_timedreceive sys_mq_timedreceive_time32 289 + 275 o32 mq_notify sys_mq_notify compat_sys_mq_notify 290 + 276 o32 mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 291 + 277 o32 vserver sys_ni_syscall 292 + 278 o32 waitid sys_waitid compat_sys_waitid 293 + # 279 was sys_setaltroot 294 + 280 o32 add_key sys_add_key 295 + 281 o32 request_key sys_request_key 296 + 282 o32 keyctl sys_keyctl compat_sys_keyctl 297 + 283 o32 set_thread_area sys_set_thread_area 298 + 284 o32 inotify_init sys_inotify_init 299 + 285 o32 inotify_add_watch sys_inotify_add_watch 300 + 286 o32 inotify_rm_watch sys_inotify_rm_watch 301 + 287 o32 migrate_pages sys_migrate_pages compat_sys_migrate_pages 302 + 288 o32 openat sys_openat compat_sys_openat 303 + 289 o32 mkdirat sys_mkdirat 304 + 290 o32 mknodat sys_mknodat 305 + 291 o32 fchownat sys_fchownat 306 + 292 o32 futimesat sys_futimesat_time32 307 + 293 o32 fstatat64 sys_fstatat64 sys_newfstatat 308 + 294 o32 unlinkat sys_unlinkat 309 + 295 o32 renameat sys_renameat 310 + 296 o32 linkat sys_linkat 311 + 297 o32 symlinkat sys_symlinkat 312 + 298 o32 readlinkat sys_readlinkat 313 + 299 o32 fchmodat sys_fchmodat 314 + 300 o32 faccessat sys_faccessat 315 + 301 o32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 316 + 302 o32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32 317 + 303 o32 unshare sys_unshare 318 + 304 o32 splice sys_splice 319 + 305 o32 sync_file_range sys_sync_file_range sys32_sync_file_range 320 + 306 o32 tee sys_tee 321 + 307 o32 vmsplice sys_vmsplice compat_sys_vmsplice 322 + 308 o32 move_pages sys_move_pages compat_sys_move_pages 323 + 309 o32 set_robust_list sys_set_robust_list compat_sys_set_robust_list 324 + 310 o32 get_robust_list sys_get_robust_list compat_sys_get_robust_list 325 + 311 o32 kexec_load sys_kexec_load compat_sys_kexec_load 326 + 312 o32 getcpu sys_getcpu 327 + 313 o32 epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 328 + 314 o32 ioprio_set sys_ioprio_set 329 + 315 o32 ioprio_get sys_ioprio_get 330 + 316 o32 utimensat sys_utimensat_time32 331 + 317 o32 signalfd sys_signalfd compat_sys_signalfd 332 + 318 o32 timerfd sys_ni_syscall 333 + 319 o32 eventfd sys_eventfd 334 + 320 o32 fallocate sys_fallocate sys32_fallocate 335 + 321 o32 timerfd_create sys_timerfd_create 336 + 322 o32 timerfd_gettime sys_timerfd_gettime32 337 + 323 o32 timerfd_settime sys_timerfd_settime32 338 + 324 o32 signalfd4 sys_signalfd4 compat_sys_signalfd4 339 + 325 o32 eventfd2 sys_eventfd2 340 + 326 o32 epoll_create1 sys_epoll_create1 341 + 327 o32 dup3 sys_dup3 342 + 328 o32 pipe2 sys_pipe2 343 + 329 o32 inotify_init1 sys_inotify_init1 344 + 330 o32 preadv sys_preadv compat_sys_preadv 345 + 331 o32 pwritev sys_pwritev compat_sys_pwritev 346 + 332 o32 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 347 + 333 o32 perf_event_open sys_perf_event_open 348 + 334 o32 accept4 sys_accept4 349 + 335 o32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 350 + 336 o32 fanotify_init sys_fanotify_init 351 + 337 o32 fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 352 + 338 o32 prlimit64 sys_prlimit64 353 + 339 o32 name_to_handle_at sys_name_to_handle_at 354 + 340 o32 open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 355 + 341 o32 clock_adjtime sys_clock_adjtime32 356 + 342 o32 syncfs sys_syncfs 357 + 343 o32 sendmmsg sys_sendmmsg compat_sys_sendmmsg 358 + 344 o32 setns sys_setns 359 + 345 o32 process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 360 + 346 o32 process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 361 + 347 o32 kcmp sys_kcmp 362 + 348 o32 finit_module sys_finit_module 363 + 349 o32 sched_setattr sys_sched_setattr 364 + 350 o32 sched_getattr sys_sched_getattr 365 + 351 o32 renameat2 sys_renameat2 366 + 352 o32 seccomp sys_seccomp 367 + 353 o32 getrandom sys_getrandom 368 + 354 o32 memfd_create sys_memfd_create 369 + 355 o32 bpf sys_bpf 370 + 356 o32 execveat sys_execveat compat_sys_execveat 371 + 357 o32 userfaultfd sys_userfaultfd 372 + 358 o32 membarrier sys_membarrier 373 + 359 o32 mlock2 sys_mlock2 374 + 360 o32 copy_file_range sys_copy_file_range 375 + 361 o32 preadv2 sys_preadv2 compat_sys_preadv2 376 + 362 o32 pwritev2 sys_pwritev2 compat_sys_pwritev2 377 + 363 o32 pkey_mprotect sys_pkey_mprotect 378 + 364 o32 pkey_alloc sys_pkey_alloc 379 + 365 o32 pkey_free sys_pkey_free 380 + 366 o32 statx sys_statx 381 + 367 o32 rseq sys_rseq 382 + 368 o32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 383 + # room for arch specific calls 384 + 393 o32 semget sys_semget 385 + 394 o32 semctl sys_semctl compat_sys_semctl 386 + 395 o32 shmget sys_shmget 387 + 396 o32 shmctl sys_shmctl compat_sys_shmctl 388 + 397 o32 shmat sys_shmat compat_sys_shmat 389 + 398 o32 shmdt sys_shmdt 390 + 399 o32 msgget sys_msgget 391 + 400 o32 msgsnd sys_msgsnd compat_sys_msgsnd 392 + 401 o32 msgrcv sys_msgrcv compat_sys_msgrcv 393 + 402 o32 msgctl sys_msgctl compat_sys_msgctl 394 + 403 o32 clock_gettime64 sys_clock_gettime sys_clock_gettime 395 + 404 o32 clock_settime64 sys_clock_settime sys_clock_settime 396 + 405 o32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime 397 + 406 o32 clock_getres_time64 sys_clock_getres sys_clock_getres 398 + 407 o32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep 399 + 408 o32 timer_gettime64 sys_timer_gettime sys_timer_gettime 400 + 409 o32 timer_settime64 sys_timer_settime sys_timer_settime 401 + 410 o32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime 402 + 411 o32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime 403 + 412 o32 utimensat_time64 sys_utimensat sys_utimensat 404 + 413 o32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 405 + 414 o32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 406 + 416 o32 io_pgetevents_time64 sys_io_pgetevents sys_io_pgetevents 407 + 417 o32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 408 + 418 o32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend 409 + 419 o32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive 410 + 420 o32 semtimedop_time64 sys_semtimedop sys_semtimedop 411 + 421 o32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 412 + 422 o32 futex_time64 sys_futex sys_futex 413 + 423 o32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval 414 + 424 o32 pidfd_send_signal sys_pidfd_send_signal 415 + 425 o32 io_uring_setup sys_io_uring_setup 416 + 426 o32 io_uring_enter sys_io_uring_enter 417 + 427 o32 io_uring_register sys_io_uring_register 418 + 428 o32 open_tree sys_open_tree 419 + 429 o32 move_mount sys_move_mount 420 + 430 o32 fsopen sys_fsopen 421 + 431 o32 fsconfig sys_fsconfig 422 + 432 o32 fsmount sys_fsmount 423 + 433 o32 fspick sys_fspick 424 + 434 o32 pidfd_open sys_pidfd_open 425 + 435 o32 clone3 __sys_clone3 426 + 437 o32 openat2 sys_openat2 427 + 438 o32 pidfd_getfd sys_pidfd_getfd
+36
linux-user/mips/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_MIPS_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry compat ; do 20 + if [ "$name" = "fadvise64" ] ; then 21 + name="fadvise64_64" 22 + fi 23 + if [ -z "$offset" ]; then 24 + printf "#define TARGET_NR_%s%s\t%s\n" \ 25 + "${prefix}" "${name}" "${nr}" 26 + else 27 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 28 + "${prefix}" "${name}" "${offset}" "${nr}" 29 + fi 30 + nxt=$((nr+1)) 31 + done 32 + 33 + printf "\n" 34 + printf "#endif /* %s */" "${fileguard}" 35 + printf "\n" 36 + ) > "$out"
+12
linux-user/mips64/Makefile.objs
··· 1 + generated-files-y += linux-user/$(TARGET_ABI_DIR)/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscallhdr.sh 4 + 5 + ifeq ($(TARGET_SYSTBL_ABI),n32) 6 + %/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall_n32.tbl $(syshdr) 7 + $(call quiet-command, sh $(syshdr) $< $@ n32 "" 6000,"GEN","$@") 8 + endif 9 + ifeq ($(TARGET_SYSTBL_ABI),n64) 10 + %/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall_n64.tbl $(syshdr) 11 + $(call quiet-command, sh $(syshdr) $< $@ n64 "" 5000,"GEN","$@") 12 + endif
+378
linux-user/mips64/syscall_n32.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for mips 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> <compat entry point> 7 + # 8 + # The <abi> is always "n32" for this file. 9 + # 10 + 0 n32 read sys_read 11 + 1 n32 write sys_write 12 + 2 n32 open sys_open 13 + 3 n32 close sys_close 14 + 4 n32 stat sys_newstat 15 + 5 n32 fstat sys_newfstat 16 + 6 n32 lstat sys_newlstat 17 + 7 n32 poll sys_poll 18 + 8 n32 lseek sys_lseek 19 + 9 n32 mmap sys_mips_mmap 20 + 10 n32 mprotect sys_mprotect 21 + 11 n32 munmap sys_munmap 22 + 12 n32 brk sys_brk 23 + 13 n32 rt_sigaction compat_sys_rt_sigaction 24 + 14 n32 rt_sigprocmask compat_sys_rt_sigprocmask 25 + 15 n32 ioctl compat_sys_ioctl 26 + 16 n32 pread64 sys_pread64 27 + 17 n32 pwrite64 sys_pwrite64 28 + 18 n32 readv compat_sys_readv 29 + 19 n32 writev compat_sys_writev 30 + 20 n32 access sys_access 31 + 21 n32 pipe sysm_pipe 32 + 22 n32 _newselect compat_sys_select 33 + 23 n32 sched_yield sys_sched_yield 34 + 24 n32 mremap sys_mremap 35 + 25 n32 msync sys_msync 36 + 26 n32 mincore sys_mincore 37 + 27 n32 madvise sys_madvise 38 + 28 n32 shmget sys_shmget 39 + 29 n32 shmat sys_shmat 40 + 30 n32 shmctl compat_sys_old_shmctl 41 + 31 n32 dup sys_dup 42 + 32 n32 dup2 sys_dup2 43 + 33 n32 pause sys_pause 44 + 34 n32 nanosleep sys_nanosleep_time32 45 + 35 n32 getitimer compat_sys_getitimer 46 + 36 n32 setitimer compat_sys_setitimer 47 + 37 n32 alarm sys_alarm 48 + 38 n32 getpid sys_getpid 49 + 39 n32 sendfile compat_sys_sendfile 50 + 40 n32 socket sys_socket 51 + 41 n32 connect sys_connect 52 + 42 n32 accept sys_accept 53 + 43 n32 sendto sys_sendto 54 + 44 n32 recvfrom compat_sys_recvfrom 55 + 45 n32 sendmsg compat_sys_sendmsg 56 + 46 n32 recvmsg compat_sys_recvmsg 57 + 47 n32 shutdown sys_shutdown 58 + 48 n32 bind sys_bind 59 + 49 n32 listen sys_listen 60 + 50 n32 getsockname sys_getsockname 61 + 51 n32 getpeername sys_getpeername 62 + 52 n32 socketpair sys_socketpair 63 + 53 n32 setsockopt compat_sys_setsockopt 64 + 54 n32 getsockopt compat_sys_getsockopt 65 + 55 n32 clone __sys_clone 66 + 56 n32 fork __sys_fork 67 + 57 n32 execve compat_sys_execve 68 + 58 n32 exit sys_exit 69 + 59 n32 wait4 compat_sys_wait4 70 + 60 n32 kill sys_kill 71 + 61 n32 uname sys_newuname 72 + 62 n32 semget sys_semget 73 + 63 n32 semop sys_semop 74 + 64 n32 semctl compat_sys_old_semctl 75 + 65 n32 shmdt sys_shmdt 76 + 66 n32 msgget sys_msgget 77 + 67 n32 msgsnd compat_sys_msgsnd 78 + 68 n32 msgrcv compat_sys_msgrcv 79 + 69 n32 msgctl compat_sys_old_msgctl 80 + 70 n32 fcntl compat_sys_fcntl 81 + 71 n32 flock sys_flock 82 + 72 n32 fsync sys_fsync 83 + 73 n32 fdatasync sys_fdatasync 84 + 74 n32 truncate sys_truncate 85 + 75 n32 ftruncate sys_ftruncate 86 + 76 n32 getdents compat_sys_getdents 87 + 77 n32 getcwd sys_getcwd 88 + 78 n32 chdir sys_chdir 89 + 79 n32 fchdir sys_fchdir 90 + 80 n32 rename sys_rename 91 + 81 n32 mkdir sys_mkdir 92 + 82 n32 rmdir sys_rmdir 93 + 83 n32 creat sys_creat 94 + 84 n32 link sys_link 95 + 85 n32 unlink sys_unlink 96 + 86 n32 symlink sys_symlink 97 + 87 n32 readlink sys_readlink 98 + 88 n32 chmod sys_chmod 99 + 89 n32 fchmod sys_fchmod 100 + 90 n32 chown sys_chown 101 + 91 n32 fchown sys_fchown 102 + 92 n32 lchown sys_lchown 103 + 93 n32 umask sys_umask 104 + 94 n32 gettimeofday compat_sys_gettimeofday 105 + 95 n32 getrlimit compat_sys_getrlimit 106 + 96 n32 getrusage compat_sys_getrusage 107 + 97 n32 sysinfo compat_sys_sysinfo 108 + 98 n32 times compat_sys_times 109 + 99 n32 ptrace compat_sys_ptrace 110 + 100 n32 getuid sys_getuid 111 + 101 n32 syslog sys_syslog 112 + 102 n32 getgid sys_getgid 113 + 103 n32 setuid sys_setuid 114 + 104 n32 setgid sys_setgid 115 + 105 n32 geteuid sys_geteuid 116 + 106 n32 getegid sys_getegid 117 + 107 n32 setpgid sys_setpgid 118 + 108 n32 getppid sys_getppid 119 + 109 n32 getpgrp sys_getpgrp 120 + 110 n32 setsid sys_setsid 121 + 111 n32 setreuid sys_setreuid 122 + 112 n32 setregid sys_setregid 123 + 113 n32 getgroups sys_getgroups 124 + 114 n32 setgroups sys_setgroups 125 + 115 n32 setresuid sys_setresuid 126 + 116 n32 getresuid sys_getresuid 127 + 117 n32 setresgid sys_setresgid 128 + 118 n32 getresgid sys_getresgid 129 + 119 n32 getpgid sys_getpgid 130 + 120 n32 setfsuid sys_setfsuid 131 + 121 n32 setfsgid sys_setfsgid 132 + 122 n32 getsid sys_getsid 133 + 123 n32 capget sys_capget 134 + 124 n32 capset sys_capset 135 + 125 n32 rt_sigpending compat_sys_rt_sigpending 136 + 126 n32 rt_sigtimedwait compat_sys_rt_sigtimedwait_time32 137 + 127 n32 rt_sigqueueinfo compat_sys_rt_sigqueueinfo 138 + 128 n32 rt_sigsuspend compat_sys_rt_sigsuspend 139 + 129 n32 sigaltstack compat_sys_sigaltstack 140 + 130 n32 utime sys_utime32 141 + 131 n32 mknod sys_mknod 142 + 132 n32 personality sys_32_personality 143 + 133 n32 ustat compat_sys_ustat 144 + 134 n32 statfs compat_sys_statfs 145 + 135 n32 fstatfs compat_sys_fstatfs 146 + 136 n32 sysfs sys_sysfs 147 + 137 n32 getpriority sys_getpriority 148 + 138 n32 setpriority sys_setpriority 149 + 139 n32 sched_setparam sys_sched_setparam 150 + 140 n32 sched_getparam sys_sched_getparam 151 + 141 n32 sched_setscheduler sys_sched_setscheduler 152 + 142 n32 sched_getscheduler sys_sched_getscheduler 153 + 143 n32 sched_get_priority_max sys_sched_get_priority_max 154 + 144 n32 sched_get_priority_min sys_sched_get_priority_min 155 + 145 n32 sched_rr_get_interval sys_sched_rr_get_interval_time32 156 + 146 n32 mlock sys_mlock 157 + 147 n32 munlock sys_munlock 158 + 148 n32 mlockall sys_mlockall 159 + 149 n32 munlockall sys_munlockall 160 + 150 n32 vhangup sys_vhangup 161 + 151 n32 pivot_root sys_pivot_root 162 + 152 n32 _sysctl compat_sys_sysctl 163 + 153 n32 prctl sys_prctl 164 + 154 n32 adjtimex sys_adjtimex_time32 165 + 155 n32 setrlimit compat_sys_setrlimit 166 + 156 n32 chroot sys_chroot 167 + 157 n32 sync sys_sync 168 + 158 n32 acct sys_acct 169 + 159 n32 settimeofday compat_sys_settimeofday 170 + 160 n32 mount compat_sys_mount 171 + 161 n32 umount2 sys_umount 172 + 162 n32 swapon sys_swapon 173 + 163 n32 swapoff sys_swapoff 174 + 164 n32 reboot sys_reboot 175 + 165 n32 sethostname sys_sethostname 176 + 166 n32 setdomainname sys_setdomainname 177 + 167 n32 create_module sys_ni_syscall 178 + 168 n32 init_module sys_init_module 179 + 169 n32 delete_module sys_delete_module 180 + 170 n32 get_kernel_syms sys_ni_syscall 181 + 171 n32 query_module sys_ni_syscall 182 + 172 n32 quotactl sys_quotactl 183 + 173 n32 nfsservctl sys_ni_syscall 184 + 174 n32 getpmsg sys_ni_syscall 185 + 175 n32 putpmsg sys_ni_syscall 186 + 176 n32 afs_syscall sys_ni_syscall 187 + # 177 reserved for security 188 + 177 n32 reserved177 sys_ni_syscall 189 + 178 n32 gettid sys_gettid 190 + 179 n32 readahead sys_readahead 191 + 180 n32 setxattr sys_setxattr 192 + 181 n32 lsetxattr sys_lsetxattr 193 + 182 n32 fsetxattr sys_fsetxattr 194 + 183 n32 getxattr sys_getxattr 195 + 184 n32 lgetxattr sys_lgetxattr 196 + 185 n32 fgetxattr sys_fgetxattr 197 + 186 n32 listxattr sys_listxattr 198 + 187 n32 llistxattr sys_llistxattr 199 + 188 n32 flistxattr sys_flistxattr 200 + 189 n32 removexattr sys_removexattr 201 + 190 n32 lremovexattr sys_lremovexattr 202 + 191 n32 fremovexattr sys_fremovexattr 203 + 192 n32 tkill sys_tkill 204 + 193 n32 reserved193 sys_ni_syscall 205 + 194 n32 futex sys_futex_time32 206 + 195 n32 sched_setaffinity compat_sys_sched_setaffinity 207 + 196 n32 sched_getaffinity compat_sys_sched_getaffinity 208 + 197 n32 cacheflush sys_cacheflush 209 + 198 n32 cachectl sys_cachectl 210 + 199 n32 sysmips __sys_sysmips 211 + 200 n32 io_setup compat_sys_io_setup 212 + 201 n32 io_destroy sys_io_destroy 213 + 202 n32 io_getevents sys_io_getevents_time32 214 + 203 n32 io_submit compat_sys_io_submit 215 + 204 n32 io_cancel sys_io_cancel 216 + 205 n32 exit_group sys_exit_group 217 + 206 n32 lookup_dcookie sys_lookup_dcookie 218 + 207 n32 epoll_create sys_epoll_create 219 + 208 n32 epoll_ctl sys_epoll_ctl 220 + 209 n32 epoll_wait sys_epoll_wait 221 + 210 n32 remap_file_pages sys_remap_file_pages 222 + 211 n32 rt_sigreturn sysn32_rt_sigreturn 223 + 212 n32 fcntl64 compat_sys_fcntl64 224 + 213 n32 set_tid_address sys_set_tid_address 225 + 214 n32 restart_syscall sys_restart_syscall 226 + 215 n32 semtimedop sys_semtimedop_time32 227 + 216 n32 fadvise64 sys_fadvise64_64 228 + 217 n32 statfs64 compat_sys_statfs64 229 + 218 n32 fstatfs64 compat_sys_fstatfs64 230 + 219 n32 sendfile64 sys_sendfile64 231 + 220 n32 timer_create compat_sys_timer_create 232 + 221 n32 timer_settime sys_timer_settime32 233 + 222 n32 timer_gettime sys_timer_gettime32 234 + 223 n32 timer_getoverrun sys_timer_getoverrun 235 + 224 n32 timer_delete sys_timer_delete 236 + 225 n32 clock_settime sys_clock_settime32 237 + 226 n32 clock_gettime sys_clock_gettime32 238 + 227 n32 clock_getres sys_clock_getres_time32 239 + 228 n32 clock_nanosleep sys_clock_nanosleep_time32 240 + 229 n32 tgkill sys_tgkill 241 + 230 n32 utimes sys_utimes_time32 242 + 231 n32 mbind compat_sys_mbind 243 + 232 n32 get_mempolicy compat_sys_get_mempolicy 244 + 233 n32 set_mempolicy compat_sys_set_mempolicy 245 + 234 n32 mq_open compat_sys_mq_open 246 + 235 n32 mq_unlink sys_mq_unlink 247 + 236 n32 mq_timedsend sys_mq_timedsend_time32 248 + 237 n32 mq_timedreceive sys_mq_timedreceive_time32 249 + 238 n32 mq_notify compat_sys_mq_notify 250 + 239 n32 mq_getsetattr compat_sys_mq_getsetattr 251 + 240 n32 vserver sys_ni_syscall 252 + 241 n32 waitid compat_sys_waitid 253 + # 242 was sys_setaltroot 254 + 243 n32 add_key sys_add_key 255 + 244 n32 request_key sys_request_key 256 + 245 n32 keyctl compat_sys_keyctl 257 + 246 n32 set_thread_area sys_set_thread_area 258 + 247 n32 inotify_init sys_inotify_init 259 + 248 n32 inotify_add_watch sys_inotify_add_watch 260 + 249 n32 inotify_rm_watch sys_inotify_rm_watch 261 + 250 n32 migrate_pages compat_sys_migrate_pages 262 + 251 n32 openat sys_openat 263 + 252 n32 mkdirat sys_mkdirat 264 + 253 n32 mknodat sys_mknodat 265 + 254 n32 fchownat sys_fchownat 266 + 255 n32 futimesat sys_futimesat_time32 267 + 256 n32 newfstatat sys_newfstatat 268 + 257 n32 unlinkat sys_unlinkat 269 + 258 n32 renameat sys_renameat 270 + 259 n32 linkat sys_linkat 271 + 260 n32 symlinkat sys_symlinkat 272 + 261 n32 readlinkat sys_readlinkat 273 + 262 n32 fchmodat sys_fchmodat 274 + 263 n32 faccessat sys_faccessat 275 + 264 n32 pselect6 compat_sys_pselect6_time32 276 + 265 n32 ppoll compat_sys_ppoll_time32 277 + 266 n32 unshare sys_unshare 278 + 267 n32 splice sys_splice 279 + 268 n32 sync_file_range sys_sync_file_range 280 + 269 n32 tee sys_tee 281 + 270 n32 vmsplice compat_sys_vmsplice 282 + 271 n32 move_pages compat_sys_move_pages 283 + 272 n32 set_robust_list compat_sys_set_robust_list 284 + 273 n32 get_robust_list compat_sys_get_robust_list 285 + 274 n32 kexec_load compat_sys_kexec_load 286 + 275 n32 getcpu sys_getcpu 287 + 276 n32 epoll_pwait compat_sys_epoll_pwait 288 + 277 n32 ioprio_set sys_ioprio_set 289 + 278 n32 ioprio_get sys_ioprio_get 290 + 279 n32 utimensat sys_utimensat_time32 291 + 280 n32 signalfd compat_sys_signalfd 292 + 281 n32 timerfd sys_ni_syscall 293 + 282 n32 eventfd sys_eventfd 294 + 283 n32 fallocate sys_fallocate 295 + 284 n32 timerfd_create sys_timerfd_create 296 + 285 n32 timerfd_gettime sys_timerfd_gettime32 297 + 286 n32 timerfd_settime sys_timerfd_settime32 298 + 287 n32 signalfd4 compat_sys_signalfd4 299 + 288 n32 eventfd2 sys_eventfd2 300 + 289 n32 epoll_create1 sys_epoll_create1 301 + 290 n32 dup3 sys_dup3 302 + 291 n32 pipe2 sys_pipe2 303 + 292 n32 inotify_init1 sys_inotify_init1 304 + 293 n32 preadv compat_sys_preadv 305 + 294 n32 pwritev compat_sys_pwritev 306 + 295 n32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 307 + 296 n32 perf_event_open sys_perf_event_open 308 + 297 n32 accept4 sys_accept4 309 + 298 n32 recvmmsg compat_sys_recvmmsg_time32 310 + 299 n32 getdents64 sys_getdents64 311 + 300 n32 fanotify_init sys_fanotify_init 312 + 301 n32 fanotify_mark sys_fanotify_mark 313 + 302 n32 prlimit64 sys_prlimit64 314 + 303 n32 name_to_handle_at sys_name_to_handle_at 315 + 304 n32 open_by_handle_at sys_open_by_handle_at 316 + 305 n32 clock_adjtime sys_clock_adjtime32 317 + 306 n32 syncfs sys_syncfs 318 + 307 n32 sendmmsg compat_sys_sendmmsg 319 + 308 n32 setns sys_setns 320 + 309 n32 process_vm_readv compat_sys_process_vm_readv 321 + 310 n32 process_vm_writev compat_sys_process_vm_writev 322 + 311 n32 kcmp sys_kcmp 323 + 312 n32 finit_module sys_finit_module 324 + 313 n32 sched_setattr sys_sched_setattr 325 + 314 n32 sched_getattr sys_sched_getattr 326 + 315 n32 renameat2 sys_renameat2 327 + 316 n32 seccomp sys_seccomp 328 + 317 n32 getrandom sys_getrandom 329 + 318 n32 memfd_create sys_memfd_create 330 + 319 n32 bpf sys_bpf 331 + 320 n32 execveat compat_sys_execveat 332 + 321 n32 userfaultfd sys_userfaultfd 333 + 322 n32 membarrier sys_membarrier 334 + 323 n32 mlock2 sys_mlock2 335 + 324 n32 copy_file_range sys_copy_file_range 336 + 325 n32 preadv2 compat_sys_preadv2 337 + 326 n32 pwritev2 compat_sys_pwritev2 338 + 327 n32 pkey_mprotect sys_pkey_mprotect 339 + 328 n32 pkey_alloc sys_pkey_alloc 340 + 329 n32 pkey_free sys_pkey_free 341 + 330 n32 statx sys_statx 342 + 331 n32 rseq sys_rseq 343 + 332 n32 io_pgetevents compat_sys_io_pgetevents 344 + # 333 through 402 are unassigned to sync up with generic numbers 345 + 403 n32 clock_gettime64 sys_clock_gettime 346 + 404 n32 clock_settime64 sys_clock_settime 347 + 405 n32 clock_adjtime64 sys_clock_adjtime 348 + 406 n32 clock_getres_time64 sys_clock_getres 349 + 407 n32 clock_nanosleep_time64 sys_clock_nanosleep 350 + 408 n32 timer_gettime64 sys_timer_gettime 351 + 409 n32 timer_settime64 sys_timer_settime 352 + 410 n32 timerfd_gettime64 sys_timerfd_gettime 353 + 411 n32 timerfd_settime64 sys_timerfd_settime 354 + 412 n32 utimensat_time64 sys_utimensat 355 + 413 n32 pselect6_time64 compat_sys_pselect6_time64 356 + 414 n32 ppoll_time64 compat_sys_ppoll_time64 357 + 416 n32 io_pgetevents_time64 sys_io_pgetevents 358 + 417 n32 recvmmsg_time64 compat_sys_recvmmsg_time64 359 + 418 n32 mq_timedsend_time64 sys_mq_timedsend 360 + 419 n32 mq_timedreceive_time64 sys_mq_timedreceive 361 + 420 n32 semtimedop_time64 sys_semtimedop 362 + 421 n32 rt_sigtimedwait_time64 compat_sys_rt_sigtimedwait_time64 363 + 422 n32 futex_time64 sys_futex 364 + 423 n32 sched_rr_get_interval_time64 sys_sched_rr_get_interval 365 + 424 n32 pidfd_send_signal sys_pidfd_send_signal 366 + 425 n32 io_uring_setup sys_io_uring_setup 367 + 426 n32 io_uring_enter sys_io_uring_enter 368 + 427 n32 io_uring_register sys_io_uring_register 369 + 428 n32 open_tree sys_open_tree 370 + 429 n32 move_mount sys_move_mount 371 + 430 n32 fsopen sys_fsopen 372 + 431 n32 fsconfig sys_fsconfig 373 + 432 n32 fsmount sys_fsmount 374 + 433 n32 fspick sys_fspick 375 + 434 n32 pidfd_open sys_pidfd_open 376 + 435 n32 clone3 __sys_clone3 377 + 437 n32 openat2 sys_openat2 378 + 438 n32 pidfd_getfd sys_pidfd_getfd
+354
linux-user/mips64/syscall_n64.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for mips 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> 7 + # 8 + # The <abi> is always "n64" for this file. 9 + # 10 + 0 n64 read sys_read 11 + 1 n64 write sys_write 12 + 2 n64 open sys_open 13 + 3 n64 close sys_close 14 + 4 n64 stat sys_newstat 15 + 5 n64 fstat sys_newfstat 16 + 6 n64 lstat sys_newlstat 17 + 7 n64 poll sys_poll 18 + 8 n64 lseek sys_lseek 19 + 9 n64 mmap sys_mips_mmap 20 + 10 n64 mprotect sys_mprotect 21 + 11 n64 munmap sys_munmap 22 + 12 n64 brk sys_brk 23 + 13 n64 rt_sigaction sys_rt_sigaction 24 + 14 n64 rt_sigprocmask sys_rt_sigprocmask 25 + 15 n64 ioctl sys_ioctl 26 + 16 n64 pread64 sys_pread64 27 + 17 n64 pwrite64 sys_pwrite64 28 + 18 n64 readv sys_readv 29 + 19 n64 writev sys_writev 30 + 20 n64 access sys_access 31 + 21 n64 pipe sysm_pipe 32 + 22 n64 _newselect sys_select 33 + 23 n64 sched_yield sys_sched_yield 34 + 24 n64 mremap sys_mremap 35 + 25 n64 msync sys_msync 36 + 26 n64 mincore sys_mincore 37 + 27 n64 madvise sys_madvise 38 + 28 n64 shmget sys_shmget 39 + 29 n64 shmat sys_shmat 40 + 30 n64 shmctl sys_old_shmctl 41 + 31 n64 dup sys_dup 42 + 32 n64 dup2 sys_dup2 43 + 33 n64 pause sys_pause 44 + 34 n64 nanosleep sys_nanosleep 45 + 35 n64 getitimer sys_getitimer 46 + 36 n64 setitimer sys_setitimer 47 + 37 n64 alarm sys_alarm 48 + 38 n64 getpid sys_getpid 49 + 39 n64 sendfile sys_sendfile64 50 + 40 n64 socket sys_socket 51 + 41 n64 connect sys_connect 52 + 42 n64 accept sys_accept 53 + 43 n64 sendto sys_sendto 54 + 44 n64 recvfrom sys_recvfrom 55 + 45 n64 sendmsg sys_sendmsg 56 + 46 n64 recvmsg sys_recvmsg 57 + 47 n64 shutdown sys_shutdown 58 + 48 n64 bind sys_bind 59 + 49 n64 listen sys_listen 60 + 50 n64 getsockname sys_getsockname 61 + 51 n64 getpeername sys_getpeername 62 + 52 n64 socketpair sys_socketpair 63 + 53 n64 setsockopt sys_setsockopt 64 + 54 n64 getsockopt sys_getsockopt 65 + 55 n64 clone __sys_clone 66 + 56 n64 fork __sys_fork 67 + 57 n64 execve sys_execve 68 + 58 n64 exit sys_exit 69 + 59 n64 wait4 sys_wait4 70 + 60 n64 kill sys_kill 71 + 61 n64 uname sys_newuname 72 + 62 n64 semget sys_semget 73 + 63 n64 semop sys_semop 74 + 64 n64 semctl sys_old_semctl 75 + 65 n64 shmdt sys_shmdt 76 + 66 n64 msgget sys_msgget 77 + 67 n64 msgsnd sys_msgsnd 78 + 68 n64 msgrcv sys_msgrcv 79 + 69 n64 msgctl sys_old_msgctl 80 + 70 n64 fcntl sys_fcntl 81 + 71 n64 flock sys_flock 82 + 72 n64 fsync sys_fsync 83 + 73 n64 fdatasync sys_fdatasync 84 + 74 n64 truncate sys_truncate 85 + 75 n64 ftruncate sys_ftruncate 86 + 76 n64 getdents sys_getdents 87 + 77 n64 getcwd sys_getcwd 88 + 78 n64 chdir sys_chdir 89 + 79 n64 fchdir sys_fchdir 90 + 80 n64 rename sys_rename 91 + 81 n64 mkdir sys_mkdir 92 + 82 n64 rmdir sys_rmdir 93 + 83 n64 creat sys_creat 94 + 84 n64 link sys_link 95 + 85 n64 unlink sys_unlink 96 + 86 n64 symlink sys_symlink 97 + 87 n64 readlink sys_readlink 98 + 88 n64 chmod sys_chmod 99 + 89 n64 fchmod sys_fchmod 100 + 90 n64 chown sys_chown 101 + 91 n64 fchown sys_fchown 102 + 92 n64 lchown sys_lchown 103 + 93 n64 umask sys_umask 104 + 94 n64 gettimeofday sys_gettimeofday 105 + 95 n64 getrlimit sys_getrlimit 106 + 96 n64 getrusage sys_getrusage 107 + 97 n64 sysinfo sys_sysinfo 108 + 98 n64 times sys_times 109 + 99 n64 ptrace sys_ptrace 110 + 100 n64 getuid sys_getuid 111 + 101 n64 syslog sys_syslog 112 + 102 n64 getgid sys_getgid 113 + 103 n64 setuid sys_setuid 114 + 104 n64 setgid sys_setgid 115 + 105 n64 geteuid sys_geteuid 116 + 106 n64 getegid sys_getegid 117 + 107 n64 setpgid sys_setpgid 118 + 108 n64 getppid sys_getppid 119 + 109 n64 getpgrp sys_getpgrp 120 + 110 n64 setsid sys_setsid 121 + 111 n64 setreuid sys_setreuid 122 + 112 n64 setregid sys_setregid 123 + 113 n64 getgroups sys_getgroups 124 + 114 n64 setgroups sys_setgroups 125 + 115 n64 setresuid sys_setresuid 126 + 116 n64 getresuid sys_getresuid 127 + 117 n64 setresgid sys_setresgid 128 + 118 n64 getresgid sys_getresgid 129 + 119 n64 getpgid sys_getpgid 130 + 120 n64 setfsuid sys_setfsuid 131 + 121 n64 setfsgid sys_setfsgid 132 + 122 n64 getsid sys_getsid 133 + 123 n64 capget sys_capget 134 + 124 n64 capset sys_capset 135 + 125 n64 rt_sigpending sys_rt_sigpending 136 + 126 n64 rt_sigtimedwait sys_rt_sigtimedwait 137 + 127 n64 rt_sigqueueinfo sys_rt_sigqueueinfo 138 + 128 n64 rt_sigsuspend sys_rt_sigsuspend 139 + 129 n64 sigaltstack sys_sigaltstack 140 + 130 n64 utime sys_utime 141 + 131 n64 mknod sys_mknod 142 + 132 n64 personality sys_personality 143 + 133 n64 ustat sys_ustat 144 + 134 n64 statfs sys_statfs 145 + 135 n64 fstatfs sys_fstatfs 146 + 136 n64 sysfs sys_sysfs 147 + 137 n64 getpriority sys_getpriority 148 + 138 n64 setpriority sys_setpriority 149 + 139 n64 sched_setparam sys_sched_setparam 150 + 140 n64 sched_getparam sys_sched_getparam 151 + 141 n64 sched_setscheduler sys_sched_setscheduler 152 + 142 n64 sched_getscheduler sys_sched_getscheduler 153 + 143 n64 sched_get_priority_max sys_sched_get_priority_max 154 + 144 n64 sched_get_priority_min sys_sched_get_priority_min 155 + 145 n64 sched_rr_get_interval sys_sched_rr_get_interval 156 + 146 n64 mlock sys_mlock 157 + 147 n64 munlock sys_munlock 158 + 148 n64 mlockall sys_mlockall 159 + 149 n64 munlockall sys_munlockall 160 + 150 n64 vhangup sys_vhangup 161 + 151 n64 pivot_root sys_pivot_root 162 + 152 n64 _sysctl sys_sysctl 163 + 153 n64 prctl sys_prctl 164 + 154 n64 adjtimex sys_adjtimex 165 + 155 n64 setrlimit sys_setrlimit 166 + 156 n64 chroot sys_chroot 167 + 157 n64 sync sys_sync 168 + 158 n64 acct sys_acct 169 + 159 n64 settimeofday sys_settimeofday 170 + 160 n64 mount sys_mount 171 + 161 n64 umount2 sys_umount 172 + 162 n64 swapon sys_swapon 173 + 163 n64 swapoff sys_swapoff 174 + 164 n64 reboot sys_reboot 175 + 165 n64 sethostname sys_sethostname 176 + 166 n64 setdomainname sys_setdomainname 177 + 167 n64 create_module sys_ni_syscall 178 + 168 n64 init_module sys_init_module 179 + 169 n64 delete_module sys_delete_module 180 + 170 n64 get_kernel_syms sys_ni_syscall 181 + 171 n64 query_module sys_ni_syscall 182 + 172 n64 quotactl sys_quotactl 183 + 173 n64 nfsservctl sys_ni_syscall 184 + 174 n64 getpmsg sys_ni_syscall 185 + 175 n64 putpmsg sys_ni_syscall 186 + 176 n64 afs_syscall sys_ni_syscall 187 + # 177 reserved for security 188 + 177 n64 reserved177 sys_ni_syscall 189 + 178 n64 gettid sys_gettid 190 + 179 n64 readahead sys_readahead 191 + 180 n64 setxattr sys_setxattr 192 + 181 n64 lsetxattr sys_lsetxattr 193 + 182 n64 fsetxattr sys_fsetxattr 194 + 183 n64 getxattr sys_getxattr 195 + 184 n64 lgetxattr sys_lgetxattr 196 + 185 n64 fgetxattr sys_fgetxattr 197 + 186 n64 listxattr sys_listxattr 198 + 187 n64 llistxattr sys_llistxattr 199 + 188 n64 flistxattr sys_flistxattr 200 + 189 n64 removexattr sys_removexattr 201 + 190 n64 lremovexattr sys_lremovexattr 202 + 191 n64 fremovexattr sys_fremovexattr 203 + 192 n64 tkill sys_tkill 204 + 193 n64 reserved193 sys_ni_syscall 205 + 194 n64 futex sys_futex 206 + 195 n64 sched_setaffinity sys_sched_setaffinity 207 + 196 n64 sched_getaffinity sys_sched_getaffinity 208 + 197 n64 cacheflush sys_cacheflush 209 + 198 n64 cachectl sys_cachectl 210 + 199 n64 sysmips __sys_sysmips 211 + 200 n64 io_setup sys_io_setup 212 + 201 n64 io_destroy sys_io_destroy 213 + 202 n64 io_getevents sys_io_getevents 214 + 203 n64 io_submit sys_io_submit 215 + 204 n64 io_cancel sys_io_cancel 216 + 205 n64 exit_group sys_exit_group 217 + 206 n64 lookup_dcookie sys_lookup_dcookie 218 + 207 n64 epoll_create sys_epoll_create 219 + 208 n64 epoll_ctl sys_epoll_ctl 220 + 209 n64 epoll_wait sys_epoll_wait 221 + 210 n64 remap_file_pages sys_remap_file_pages 222 + 211 n64 rt_sigreturn sys_rt_sigreturn 223 + 212 n64 set_tid_address sys_set_tid_address 224 + 213 n64 restart_syscall sys_restart_syscall 225 + 214 n64 semtimedop sys_semtimedop 226 + 215 n64 fadvise64 sys_fadvise64_64 227 + 216 n64 timer_create sys_timer_create 228 + 217 n64 timer_settime sys_timer_settime 229 + 218 n64 timer_gettime sys_timer_gettime 230 + 219 n64 timer_getoverrun sys_timer_getoverrun 231 + 220 n64 timer_delete sys_timer_delete 232 + 221 n64 clock_settime sys_clock_settime 233 + 222 n64 clock_gettime sys_clock_gettime 234 + 223 n64 clock_getres sys_clock_getres 235 + 224 n64 clock_nanosleep sys_clock_nanosleep 236 + 225 n64 tgkill sys_tgkill 237 + 226 n64 utimes sys_utimes 238 + 227 n64 mbind sys_mbind 239 + 228 n64 get_mempolicy sys_get_mempolicy 240 + 229 n64 set_mempolicy sys_set_mempolicy 241 + 230 n64 mq_open sys_mq_open 242 + 231 n64 mq_unlink sys_mq_unlink 243 + 232 n64 mq_timedsend sys_mq_timedsend 244 + 233 n64 mq_timedreceive sys_mq_timedreceive 245 + 234 n64 mq_notify sys_mq_notify 246 + 235 n64 mq_getsetattr sys_mq_getsetattr 247 + 236 n64 vserver sys_ni_syscall 248 + 237 n64 waitid sys_waitid 249 + # 238 was sys_setaltroot 250 + 239 n64 add_key sys_add_key 251 + 240 n64 request_key sys_request_key 252 + 241 n64 keyctl sys_keyctl 253 + 242 n64 set_thread_area sys_set_thread_area 254 + 243 n64 inotify_init sys_inotify_init 255 + 244 n64 inotify_add_watch sys_inotify_add_watch 256 + 245 n64 inotify_rm_watch sys_inotify_rm_watch 257 + 246 n64 migrate_pages sys_migrate_pages 258 + 247 n64 openat sys_openat 259 + 248 n64 mkdirat sys_mkdirat 260 + 249 n64 mknodat sys_mknodat 261 + 250 n64 fchownat sys_fchownat 262 + 251 n64 futimesat sys_futimesat 263 + 252 n64 newfstatat sys_newfstatat 264 + 253 n64 unlinkat sys_unlinkat 265 + 254 n64 renameat sys_renameat 266 + 255 n64 linkat sys_linkat 267 + 256 n64 symlinkat sys_symlinkat 268 + 257 n64 readlinkat sys_readlinkat 269 + 258 n64 fchmodat sys_fchmodat 270 + 259 n64 faccessat sys_faccessat 271 + 260 n64 pselect6 sys_pselect6 272 + 261 n64 ppoll sys_ppoll 273 + 262 n64 unshare sys_unshare 274 + 263 n64 splice sys_splice 275 + 264 n64 sync_file_range sys_sync_file_range 276 + 265 n64 tee sys_tee 277 + 266 n64 vmsplice sys_vmsplice 278 + 267 n64 move_pages sys_move_pages 279 + 268 n64 set_robust_list sys_set_robust_list 280 + 269 n64 get_robust_list sys_get_robust_list 281 + 270 n64 kexec_load sys_kexec_load 282 + 271 n64 getcpu sys_getcpu 283 + 272 n64 epoll_pwait sys_epoll_pwait 284 + 273 n64 ioprio_set sys_ioprio_set 285 + 274 n64 ioprio_get sys_ioprio_get 286 + 275 n64 utimensat sys_utimensat 287 + 276 n64 signalfd sys_signalfd 288 + 277 n64 timerfd sys_ni_syscall 289 + 278 n64 eventfd sys_eventfd 290 + 279 n64 fallocate sys_fallocate 291 + 280 n64 timerfd_create sys_timerfd_create 292 + 281 n64 timerfd_gettime sys_timerfd_gettime 293 + 282 n64 timerfd_settime sys_timerfd_settime 294 + 283 n64 signalfd4 sys_signalfd4 295 + 284 n64 eventfd2 sys_eventfd2 296 + 285 n64 epoll_create1 sys_epoll_create1 297 + 286 n64 dup3 sys_dup3 298 + 287 n64 pipe2 sys_pipe2 299 + 288 n64 inotify_init1 sys_inotify_init1 300 + 289 n64 preadv sys_preadv 301 + 290 n64 pwritev sys_pwritev 302 + 291 n64 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 303 + 292 n64 perf_event_open sys_perf_event_open 304 + 293 n64 accept4 sys_accept4 305 + 294 n64 recvmmsg sys_recvmmsg 306 + 295 n64 fanotify_init sys_fanotify_init 307 + 296 n64 fanotify_mark sys_fanotify_mark 308 + 297 n64 prlimit64 sys_prlimit64 309 + 298 n64 name_to_handle_at sys_name_to_handle_at 310 + 299 n64 open_by_handle_at sys_open_by_handle_at 311 + 300 n64 clock_adjtime sys_clock_adjtime 312 + 301 n64 syncfs sys_syncfs 313 + 302 n64 sendmmsg sys_sendmmsg 314 + 303 n64 setns sys_setns 315 + 304 n64 process_vm_readv sys_process_vm_readv 316 + 305 n64 process_vm_writev sys_process_vm_writev 317 + 306 n64 kcmp sys_kcmp 318 + 307 n64 finit_module sys_finit_module 319 + 308 n64 getdents64 sys_getdents64 320 + 309 n64 sched_setattr sys_sched_setattr 321 + 310 n64 sched_getattr sys_sched_getattr 322 + 311 n64 renameat2 sys_renameat2 323 + 312 n64 seccomp sys_seccomp 324 + 313 n64 getrandom sys_getrandom 325 + 314 n64 memfd_create sys_memfd_create 326 + 315 n64 bpf sys_bpf 327 + 316 n64 execveat sys_execveat 328 + 317 n64 userfaultfd sys_userfaultfd 329 + 318 n64 membarrier sys_membarrier 330 + 319 n64 mlock2 sys_mlock2 331 + 320 n64 copy_file_range sys_copy_file_range 332 + 321 n64 preadv2 sys_preadv2 333 + 322 n64 pwritev2 sys_pwritev2 334 + 323 n64 pkey_mprotect sys_pkey_mprotect 335 + 324 n64 pkey_alloc sys_pkey_alloc 336 + 325 n64 pkey_free sys_pkey_free 337 + 326 n64 statx sys_statx 338 + 327 n64 rseq sys_rseq 339 + 328 n64 io_pgetevents sys_io_pgetevents 340 + # 329 through 423 are reserved to sync up with other architectures 341 + 424 n64 pidfd_send_signal sys_pidfd_send_signal 342 + 425 n64 io_uring_setup sys_io_uring_setup 343 + 426 n64 io_uring_enter sys_io_uring_enter 344 + 427 n64 io_uring_register sys_io_uring_register 345 + 428 n64 open_tree sys_open_tree 346 + 429 n64 move_mount sys_move_mount 347 + 430 n64 fsopen sys_fsopen 348 + 431 n64 fsconfig sys_fsconfig 349 + 432 n64 fsmount sys_fsmount 350 + 433 n64 fspick sys_fspick 351 + 434 n64 pidfd_open sys_pidfd_open 352 + 435 n64 clone3 __sys_clone3 353 + 437 n64 openat2 sys_openat2 354 + 438 n64 pidfd_getfd sys_pidfd_getfd
-725
linux-user/mips64/syscall_nr.h
··· 1 - #ifndef LINUX_USER_MIPS64_SYSCALL_NR_H 2 - #define LINUX_USER_MIPS64_SYSCALL_NR_H 3 - 4 - #ifdef TARGET_ABI32 5 - /* 6 - * Linux N32 syscalls are in the range from 6000 to 6999. 7 - */ 8 - #define TARGET_NR_Linux 6000 9 - #define TARGET_NR_read (TARGET_NR_Linux + 0) 10 - #define TARGET_NR_write (TARGET_NR_Linux + 1) 11 - #define TARGET_NR_open (TARGET_NR_Linux + 2) 12 - #define TARGET_NR_close (TARGET_NR_Linux + 3) 13 - #define TARGET_NR_stat (TARGET_NR_Linux + 4) 14 - #define TARGET_NR_fstat (TARGET_NR_Linux + 5) 15 - #define TARGET_NR_lstat (TARGET_NR_Linux + 6) 16 - #define TARGET_NR_poll (TARGET_NR_Linux + 7) 17 - #define TARGET_NR_lseek (TARGET_NR_Linux + 8) 18 - #define TARGET_NR_mmap (TARGET_NR_Linux + 9) 19 - #define TARGET_NR_mprotect (TARGET_NR_Linux + 10) 20 - #define TARGET_NR_munmap (TARGET_NR_Linux + 11) 21 - #define TARGET_NR_brk (TARGET_NR_Linux + 12) 22 - #define TARGET_NR_rt_sigaction (TARGET_NR_Linux + 13) 23 - #define TARGET_NR_rt_sigprocmask (TARGET_NR_Linux + 14) 24 - #define TARGET_NR_ioctl (TARGET_NR_Linux + 15) 25 - #define TARGET_NR_pread64 (TARGET_NR_Linux + 16) 26 - #define TARGET_NR_pwrite64 (TARGET_NR_Linux + 17) 27 - #define TARGET_NR_readv (TARGET_NR_Linux + 18) 28 - #define TARGET_NR_writev (TARGET_NR_Linux + 19) 29 - #define TARGET_NR_access (TARGET_NR_Linux + 20) 30 - #define TARGET_NR_pipe (TARGET_NR_Linux + 21) 31 - #define TARGET_NR__newselect (TARGET_NR_Linux + 22) 32 - #define TARGET_NR_sched_yield (TARGET_NR_Linux + 23) 33 - #define TARGET_NR_mremap (TARGET_NR_Linux + 24) 34 - #define TARGET_NR_msync (TARGET_NR_Linux + 25) 35 - #define TARGET_NR_mincore (TARGET_NR_Linux + 26) 36 - #define TARGET_NR_madvise (TARGET_NR_Linux + 27) 37 - #define TARGET_NR_shmget (TARGET_NR_Linux + 28) 38 - #define TARGET_NR_shmat (TARGET_NR_Linux + 29) 39 - #define TARGET_NR_shmctl (TARGET_NR_Linux + 30) 40 - #define TARGET_NR_dup (TARGET_NR_Linux + 31) 41 - #define TARGET_NR_dup2 (TARGET_NR_Linux + 32) 42 - #define TARGET_NR_pause (TARGET_NR_Linux + 33) 43 - #define TARGET_NR_nanosleep (TARGET_NR_Linux + 34) 44 - #define TARGET_NR_getitimer (TARGET_NR_Linux + 35) 45 - #define TARGET_NR_setitimer (TARGET_NR_Linux + 36) 46 - #define TARGET_NR_alarm (TARGET_NR_Linux + 37) 47 - #define TARGET_NR_getpid (TARGET_NR_Linux + 38) 48 - #define TARGET_NR_sendfile (TARGET_NR_Linux + 39) 49 - #define TARGET_NR_socket (TARGET_NR_Linux + 40) 50 - #define TARGET_NR_connect (TARGET_NR_Linux + 41) 51 - #define TARGET_NR_accept (TARGET_NR_Linux + 42) 52 - #define TARGET_NR_sendto (TARGET_NR_Linux + 43) 53 - #define TARGET_NR_recvfrom (TARGET_NR_Linux + 44) 54 - #define TARGET_NR_sendmsg (TARGET_NR_Linux + 45) 55 - #define TARGET_NR_recvmsg (TARGET_NR_Linux + 46) 56 - #define TARGET_NR_shutdown (TARGET_NR_Linux + 47) 57 - #define TARGET_NR_bind (TARGET_NR_Linux + 48) 58 - #define TARGET_NR_listen (TARGET_NR_Linux + 49) 59 - #define TARGET_NR_getsockname (TARGET_NR_Linux + 50) 60 - #define TARGET_NR_getpeername (TARGET_NR_Linux + 51) 61 - #define TARGET_NR_socketpair (TARGET_NR_Linux + 52) 62 - #define TARGET_NR_setsockopt (TARGET_NR_Linux + 53) 63 - #define TARGET_NR_getsockopt (TARGET_NR_Linux + 54) 64 - #define TARGET_NR_clone (TARGET_NR_Linux + 55) 65 - #define TARGET_NR_fork (TARGET_NR_Linux + 56) 66 - #define TARGET_NR_execve (TARGET_NR_Linux + 57) 67 - #define TARGET_NR_exit (TARGET_NR_Linux + 58) 68 - #define TARGET_NR_wait4 (TARGET_NR_Linux + 59) 69 - #define TARGET_NR_kill (TARGET_NR_Linux + 60) 70 - #define TARGET_NR_uname (TARGET_NR_Linux + 61) 71 - #define TARGET_NR_semget (TARGET_NR_Linux + 62) 72 - #define TARGET_NR_semop (TARGET_NR_Linux + 63) 73 - #define TARGET_NR_semctl (TARGET_NR_Linux + 64) 74 - #define TARGET_NR_shmdt (TARGET_NR_Linux + 65) 75 - #define TARGET_NR_msgget (TARGET_NR_Linux + 66) 76 - #define TARGET_NR_msgsnd (TARGET_NR_Linux + 67) 77 - #define TARGET_NR_msgrcv (TARGET_NR_Linux + 68) 78 - #define TARGET_NR_msgctl (TARGET_NR_Linux + 69) 79 - #define TARGET_NR_fcntl (TARGET_NR_Linux + 70) 80 - #define TARGET_NR_flock (TARGET_NR_Linux + 71) 81 - #define TARGET_NR_fsync (TARGET_NR_Linux + 72) 82 - #define TARGET_NR_fdatasync (TARGET_NR_Linux + 73) 83 - #define TARGET_NR_truncate (TARGET_NR_Linux + 74) 84 - #define TARGET_NR_ftruncate (TARGET_NR_Linux + 75) 85 - #define TARGET_NR_getdents (TARGET_NR_Linux + 76) 86 - #define TARGET_NR_getcwd (TARGET_NR_Linux + 77) 87 - #define TARGET_NR_chdir (TARGET_NR_Linux + 78) 88 - #define TARGET_NR_fchdir (TARGET_NR_Linux + 79) 89 - #define TARGET_NR_rename (TARGET_NR_Linux + 80) 90 - #define TARGET_NR_mkdir (TARGET_NR_Linux + 81) 91 - #define TARGET_NR_rmdir (TARGET_NR_Linux + 82) 92 - #define TARGET_NR_creat (TARGET_NR_Linux + 83) 93 - #define TARGET_NR_link (TARGET_NR_Linux + 84) 94 - #define TARGET_NR_unlink (TARGET_NR_Linux + 85) 95 - #define TARGET_NR_symlink (TARGET_NR_Linux + 86) 96 - #define TARGET_NR_readlink (TARGET_NR_Linux + 87) 97 - #define TARGET_NR_chmod (TARGET_NR_Linux + 88) 98 - #define TARGET_NR_fchmod (TARGET_NR_Linux + 89) 99 - #define TARGET_NR_chown (TARGET_NR_Linux + 90) 100 - #define TARGET_NR_fchown (TARGET_NR_Linux + 91) 101 - #define TARGET_NR_lchown (TARGET_NR_Linux + 92) 102 - #define TARGET_NR_umask (TARGET_NR_Linux + 93) 103 - #define TARGET_NR_gettimeofday (TARGET_NR_Linux + 94) 104 - #define TARGET_NR_getrlimit (TARGET_NR_Linux + 95) 105 - #define TARGET_NR_getrusage (TARGET_NR_Linux + 96) 106 - #define TARGET_NR_sysinfo (TARGET_NR_Linux + 97) 107 - #define TARGET_NR_times (TARGET_NR_Linux + 98) 108 - #define TARGET_NR_ptrace (TARGET_NR_Linux + 99) 109 - #define TARGET_NR_getuid (TARGET_NR_Linux + 100) 110 - #define TARGET_NR_syslog (TARGET_NR_Linux + 101) 111 - #define TARGET_NR_getgid (TARGET_NR_Linux + 102) 112 - #define TARGET_NR_setuid (TARGET_NR_Linux + 103) 113 - #define TARGET_NR_setgid (TARGET_NR_Linux + 104) 114 - #define TARGET_NR_geteuid (TARGET_NR_Linux + 105) 115 - #define TARGET_NR_getegid (TARGET_NR_Linux + 106) 116 - #define TARGET_NR_setpgid (TARGET_NR_Linux + 107) 117 - #define TARGET_NR_getppid (TARGET_NR_Linux + 108) 118 - #define TARGET_NR_getpgrp (TARGET_NR_Linux + 109) 119 - #define TARGET_NR_setsid (TARGET_NR_Linux + 110) 120 - #define TARGET_NR_setreuid (TARGET_NR_Linux + 111) 121 - #define TARGET_NR_setregid (TARGET_NR_Linux + 112) 122 - #define TARGET_NR_getgroups (TARGET_NR_Linux + 113) 123 - #define TARGET_NR_setgroups (TARGET_NR_Linux + 114) 124 - #define TARGET_NR_setresuid (TARGET_NR_Linux + 115) 125 - #define TARGET_NR_getresuid (TARGET_NR_Linux + 116) 126 - #define TARGET_NR_setresgid (TARGET_NR_Linux + 117) 127 - #define TARGET_NR_getresgid (TARGET_NR_Linux + 118) 128 - #define TARGET_NR_getpgid (TARGET_NR_Linux + 119) 129 - #define TARGET_NR_setfsuid (TARGET_NR_Linux + 120) 130 - #define TARGET_NR_setfsgid (TARGET_NR_Linux + 121) 131 - #define TARGET_NR_getsid (TARGET_NR_Linux + 122) 132 - #define TARGET_NR_capget (TARGET_NR_Linux + 123) 133 - #define TARGET_NR_capset (TARGET_NR_Linux + 124) 134 - #define TARGET_NR_rt_sigpending (TARGET_NR_Linux + 125) 135 - #define TARGET_NR_rt_sigtimedwait (TARGET_NR_Linux + 126) 136 - #define TARGET_NR_rt_sigqueueinfo (TARGET_NR_Linux + 127) 137 - #define TARGET_NR_rt_sigsuspend (TARGET_NR_Linux + 128) 138 - #define TARGET_NR_sigaltstack (TARGET_NR_Linux + 129) 139 - #define TARGET_NR_utime (TARGET_NR_Linux + 130) 140 - #define TARGET_NR_mknod (TARGET_NR_Linux + 131) 141 - #define TARGET_NR_personality (TARGET_NR_Linux + 132) 142 - #define TARGET_NR_ustat (TARGET_NR_Linux + 133) 143 - #define TARGET_NR_statfs (TARGET_NR_Linux + 134) 144 - #define TARGET_NR_fstatfs (TARGET_NR_Linux + 135) 145 - #define TARGET_NR_sysfs (TARGET_NR_Linux + 136) 146 - #define TARGET_NR_getpriority (TARGET_NR_Linux + 137) 147 - #define TARGET_NR_setpriority (TARGET_NR_Linux + 138) 148 - #define TARGET_NR_sched_setparam (TARGET_NR_Linux + 139) 149 - #define TARGET_NR_sched_getparam (TARGET_NR_Linux + 140) 150 - #define TARGET_NR_sched_setscheduler (TARGET_NR_Linux + 141) 151 - #define TARGET_NR_sched_getscheduler (TARGET_NR_Linux + 142) 152 - #define TARGET_NR_sched_get_priority_max (TARGET_NR_Linux + 143) 153 - #define TARGET_NR_sched_get_priority_min (TARGET_NR_Linux + 144) 154 - #define TARGET_NR_sched_rr_get_interval (TARGET_NR_Linux + 145) 155 - #define TARGET_NR_mlock (TARGET_NR_Linux + 146) 156 - #define TARGET_NR_munlock (TARGET_NR_Linux + 147) 157 - #define TARGET_NR_mlockall (TARGET_NR_Linux + 148) 158 - #define TARGET_NR_munlockall (TARGET_NR_Linux + 149) 159 - #define TARGET_NR_vhangup (TARGET_NR_Linux + 150) 160 - #define TARGET_NR_pivot_root (TARGET_NR_Linux + 151) 161 - #define TARGET_NR__sysctl (TARGET_NR_Linux + 152) 162 - #define TARGET_NR_prctl (TARGET_NR_Linux + 153) 163 - #define TARGET_NR_adjtimex (TARGET_NR_Linux + 154) 164 - #define TARGET_NR_setrlimit (TARGET_NR_Linux + 155) 165 - #define TARGET_NR_chroot (TARGET_NR_Linux + 156) 166 - #define TARGET_NR_sync (TARGET_NR_Linux + 157) 167 - #define TARGET_NR_acct (TARGET_NR_Linux + 158) 168 - #define TARGET_NR_settimeofday (TARGET_NR_Linux + 159) 169 - #define TARGET_NR_mount (TARGET_NR_Linux + 160) 170 - #define TARGET_NR_umount2 (TARGET_NR_Linux + 161) 171 - #define TARGET_NR_swapon (TARGET_NR_Linux + 162) 172 - #define TARGET_NR_swapoff (TARGET_NR_Linux + 163) 173 - #define TARGET_NR_reboot (TARGET_NR_Linux + 164) 174 - #define TARGET_NR_sethostname (TARGET_NR_Linux + 165) 175 - #define TARGET_NR_setdomainname (TARGET_NR_Linux + 166) 176 - #define TARGET_NR_create_module (TARGET_NR_Linux + 167) 177 - #define TARGET_NR_init_module (TARGET_NR_Linux + 168) 178 - #define TARGET_NR_delete_module (TARGET_NR_Linux + 169) 179 - #define TARGET_NR_get_kernel_syms (TARGET_NR_Linux + 170) 180 - #define TARGET_NR_query_module (TARGET_NR_Linux + 171) 181 - #define TARGET_NR_quotactl (TARGET_NR_Linux + 172) 182 - #define TARGET_NR_nfsservctl (TARGET_NR_Linux + 173) 183 - #define TARGET_NR_getpmsg (TARGET_NR_Linux + 174) 184 - #define TARGET_NR_putpmsg (TARGET_NR_Linux + 175) 185 - #define TARGET_NR_afs_syscall (TARGET_NR_Linux + 176) 186 - #define TARGET_NR_reserved177 (TARGET_NR_Linux + 177) 187 - #define TARGET_NR_gettid (TARGET_NR_Linux + 178) 188 - #define TARGET_NR_readahead (TARGET_NR_Linux + 179) 189 - #define TARGET_NR_setxattr (TARGET_NR_Linux + 180) 190 - #define TARGET_NR_lsetxattr (TARGET_NR_Linux + 181) 191 - #define TARGET_NR_fsetxattr (TARGET_NR_Linux + 182) 192 - #define TARGET_NR_getxattr (TARGET_NR_Linux + 183) 193 - #define TARGET_NR_lgetxattr (TARGET_NR_Linux + 184) 194 - #define TARGET_NR_fgetxattr (TARGET_NR_Linux + 185) 195 - #define TARGET_NR_listxattr (TARGET_NR_Linux + 186) 196 - #define TARGET_NR_llistxattr (TARGET_NR_Linux + 187) 197 - #define TARGET_NR_flistxattr (TARGET_NR_Linux + 188) 198 - #define TARGET_NR_removexattr (TARGET_NR_Linux + 189) 199 - #define TARGET_NR_lremovexattr (TARGET_NR_Linux + 190) 200 - #define TARGET_NR_fremovexattr (TARGET_NR_Linux + 191) 201 - #define TARGET_NR_tkill (TARGET_NR_Linux + 192) 202 - #define TARGET_NR_reserved193 (TARGET_NR_Linux + 193) 203 - #define TARGET_NR_futex (TARGET_NR_Linux + 194) 204 - #define TARGET_NR_sched_setaffinity (TARGET_NR_Linux + 195) 205 - #define TARGET_NR_sched_getaffinity (TARGET_NR_Linux + 196) 206 - #define TARGET_NR_cacheflush (TARGET_NR_Linux + 197) 207 - #define TARGET_NR_cachectl (TARGET_NR_Linux + 198) 208 - #define TARGET_NR_sysmips (TARGET_NR_Linux + 199) 209 - #define TARGET_NR_io_setup (TARGET_NR_Linux + 200) 210 - #define TARGET_NR_io_destroy (TARGET_NR_Linux + 201) 211 - #define TARGET_NR_io_getevents (TARGET_NR_Linux + 202) 212 - #define TARGET_NR_io_submit (TARGET_NR_Linux + 203) 213 - #define TARGET_NR_io_cancel (TARGET_NR_Linux + 204) 214 - #define TARGET_NR_exit_group (TARGET_NR_Linux + 205) 215 - #define TARGET_NR_lookup_dcookie (TARGET_NR_Linux + 206) 216 - #define TARGET_NR_epoll_create (TARGET_NR_Linux + 207) 217 - #define TARGET_NR_epoll_ctl (TARGET_NR_Linux + 208) 218 - #define TARGET_NR_epoll_wait (TARGET_NR_Linux + 209) 219 - #define TARGET_NR_remap_file_pages (TARGET_NR_Linux + 210) 220 - #define TARGET_NR_rt_sigreturn (TARGET_NR_Linux + 211) 221 - #define TARGET_NR_fcntl64 (TARGET_NR_Linux + 212) 222 - #define TARGET_NR_set_tid_address (TARGET_NR_Linux + 213) 223 - #define TARGET_NR_restart_syscall (TARGET_NR_Linux + 214) 224 - #define TARGET_NR_semtimedop (TARGET_NR_Linux + 215) 225 - #define TARGET_NR_fadvise64 (TARGET_NR_Linux + 216) 226 - #define TARGET_NR_statfs64 (TARGET_NR_Linux + 217) 227 - #define TARGET_NR_fstatfs64 (TARGET_NR_Linux + 218) 228 - #define TARGET_NR_sendfile64 (TARGET_NR_Linux + 219) 229 - #define TARGET_NR_timer_create (TARGET_NR_Linux + 220) 230 - #define TARGET_NR_timer_settime (TARGET_NR_Linux + 221) 231 - #define TARGET_NR_timer_gettime (TARGET_NR_Linux + 222) 232 - #define TARGET_NR_timer_getoverrun (TARGET_NR_Linux + 223) 233 - #define TARGET_NR_timer_delete (TARGET_NR_Linux + 224) 234 - #define TARGET_NR_clock_settime (TARGET_NR_Linux + 225) 235 - #define TARGET_NR_clock_gettime (TARGET_NR_Linux + 226) 236 - #define TARGET_NR_clock_getres (TARGET_NR_Linux + 227) 237 - #define TARGET_NR_clock_nanosleep (TARGET_NR_Linux + 228) 238 - #define TARGET_NR_tgkill (TARGET_NR_Linux + 229) 239 - #define TARGET_NR_utimes (TARGET_NR_Linux + 230) 240 - #define TARGET_NR_mbind (TARGET_NR_Linux + 231) 241 - #define TARGET_NR_get_mempolicy (TARGET_NR_Linux + 232) 242 - #define TARGET_NR_set_mempolicy (TARGET_NR_Linux + 233) 243 - #define TARGET_NR_mq_open (TARGET_NR_Linux + 234) 244 - #define TARGET_NR_mq_unlink (TARGET_NR_Linux + 235) 245 - #define TARGET_NR_mq_timedsend (TARGET_NR_Linux + 236) 246 - #define TARGET_NR_mq_timedreceive (TARGET_NR_Linux + 237) 247 - #define TARGET_NR_mq_notify (TARGET_NR_Linux + 238) 248 - #define TARGET_NR_mq_getsetattr (TARGET_NR_Linux + 239) 249 - #define TARGET_NR_vserver (TARGET_NR_Linux + 240) 250 - #define TARGET_NR_waitid (TARGET_NR_Linux + 241) 251 - /* #define TARGET_NR_sys_setaltroot (TARGET_NR_Linux + 242) */ 252 - #define TARGET_NR_add_key (TARGET_NR_Linux + 243) 253 - #define TARGET_NR_request_key (TARGET_NR_Linux + 244) 254 - #define TARGET_NR_keyctl (TARGET_NR_Linux + 245) 255 - #define TARGET_NR_set_thread_area (TARGET_NR_Linux + 246) 256 - #define TARGET_NR_inotify_init (TARGET_NR_Linux + 247) 257 - #define TARGET_NR_inotify_add_watch (TARGET_NR_Linux + 248) 258 - #define TARGET_NR_inotify_rm_watch (TARGET_NR_Linux + 249) 259 - #define TARGET_NR_migrate_pages (TARGET_NR_Linux + 250) 260 - #define TARGET_NR_openat (TARGET_NR_Linux + 251) 261 - #define TARGET_NR_mkdirat (TARGET_NR_Linux + 252) 262 - #define TARGET_NR_mknodat (TARGET_NR_Linux + 253) 263 - #define TARGET_NR_fchownat (TARGET_NR_Linux + 254) 264 - #define TARGET_NR_futimesat (TARGET_NR_Linux + 255) 265 - #define TARGET_NR_newfstatat (TARGET_NR_Linux + 256) 266 - #define TARGET_NR_unlinkat (TARGET_NR_Linux + 257) 267 - #define TARGET_NR_renameat (TARGET_NR_Linux + 258) 268 - #define TARGET_NR_linkat (TARGET_NR_Linux + 259) 269 - #define TARGET_NR_symlinkat (TARGET_NR_Linux + 260) 270 - #define TARGET_NR_readlinkat (TARGET_NR_Linux + 261) 271 - #define TARGET_NR_fchmodat (TARGET_NR_Linux + 262) 272 - #define TARGET_NR_faccessat (TARGET_NR_Linux + 263) 273 - #define TARGET_NR_pselect6 (TARGET_NR_Linux + 264) 274 - #define TARGET_NR_ppoll (TARGET_NR_Linux + 265) 275 - #define TARGET_NR_unshare (TARGET_NR_Linux + 266) 276 - #define TARGET_NR_splice (TARGET_NR_Linux + 267) 277 - #define TARGET_NR_sync_file_range (TARGET_NR_Linux + 268) 278 - #define TARGET_NR_tee (TARGET_NR_Linux + 269) 279 - #define TARGET_NR_vmsplice (TARGET_NR_Linux + 270) 280 - #define TARGET_NR_move_pages (TARGET_NR_Linux + 271) 281 - #define TARGET_NR_set_robust_list (TARGET_NR_Linux + 272) 282 - #define TARGET_NR_get_robust_list (TARGET_NR_Linux + 273) 283 - #define TARGET_NR_kexec_load (TARGET_NR_Linux + 274) 284 - #define TARGET_NR_getcpu (TARGET_NR_Linux + 275) 285 - #define TARGET_NR_epoll_pwait (TARGET_NR_Linux + 276) 286 - #define TARGET_NR_ioprio_set (TARGET_NR_Linux + 277) 287 - #define TARGET_NR_ioprio_get (TARGET_NR_Linux + 278) 288 - #define TARGET_NR_utimensat (TARGET_NR_Linux + 279) 289 - #define TARGET_NR_signalfd (TARGET_NR_Linux + 280) 290 - #define TARGET_NR_timerfd (TARGET_NR_Linux + 281) 291 - #define TARGET_NR_eventfd (TARGET_NR_Linux + 282) 292 - #define TARGET_NR_fallocate (TARGET_NR_Linux + 283) 293 - #define TARGET_NR_timerfd_create (TARGET_NR_Linux + 284) 294 - #define TARGET_NR_timerfd_gettime (TARGET_NR_Linux + 285) 295 - #define TARGET_NR_timerfd_settime (TARGET_NR_Linux + 286) 296 - #define TARGET_NR_signalfd4 (TARGET_NR_Linux + 287) 297 - #define TARGET_NR_eventfd2 (TARGET_NR_Linux + 288) 298 - #define TARGET_NR_epoll_create1 (TARGET_NR_Linux + 289) 299 - #define TARGET_NR_dup3 (TARGET_NR_Linux + 290) 300 - #define TARGET_NR_pipe2 (TARGET_NR_Linux + 291) 301 - #define TARGET_NR_inotify_init1 (TARGET_NR_Linux + 292) 302 - #define TARGET_NR_preadv (TARGET_NR_Linux + 293) 303 - #define TARGET_NR_pwritev (TARGET_NR_Linux + 294) 304 - #define TARGET_NR_rt_tgsigqueueinfo (TARGET_NR_Linux + 295) 305 - #define TARGET_NR_perf_event_open (TARGET_NR_Linux + 296) 306 - #define TARGET_NR_accept4 (TARGET_NR_Linux + 297) 307 - #define TARGET_NR_recvmmsg (TARGET_NR_Linux + 298) 308 - #define TARGET_NR_getdents64 (TARGET_NR_Linux + 299) 309 - #define TARGET_NR_fanotify_init (TARGET_NR_Linux + 300) 310 - #define TARGET_NR_fanotify_mark (TARGET_NR_Linux + 301) 311 - #define TARGET_NR_prlimit64 (TARGET_NR_Linux + 302) 312 - #define TARGET_NR_name_to_handle_at (TARGET_NR_Linux + 303) 313 - #define TARGET_NR_open_by_handle_at (TARGET_NR_Linux + 304) 314 - #define TARGET_NR_clock_adjtime (TARGET_NR_Linux + 305) 315 - #define TARGET_NR_syncfs (TARGET_NR_Linux + 306) 316 - #define TARGET_NR_sendmmsg (TARGET_NR_Linux + 307) 317 - #define TARGET_NR_setns (TARGET_NR_Linux + 308) 318 - #define TARGET_NR_process_vm_readv (TARGET_NR_Linux + 309) 319 - #define TARGET_NR_process_vm_writev (TARGET_NR_Linux + 310) 320 - #define TARGET_NR_kcmp (TARGET_NR_Linux + 311) 321 - #define TARGET_NR_finit_module (TARGET_NR_Linux + 312) 322 - #define TARGET_NR_sched_setattr (TARGET_NR_Linux + 313) 323 - #define TARGET_NR_sched_getattr (TARGET_NR_Linux + 314) 324 - #define TARGET_NR_renameat2 (TARGET_NR_Linux + 315) 325 - #define TARGET_NR_seccomp (TARGET_NR_Linux + 316) 326 - #define TARGET_NR_getrandom (TARGET_NR_Linux + 317) 327 - #define TARGET_NR_memfd_create (TARGET_NR_Linux + 318) 328 - #define TARGET_NR_bpf (TARGET_NR_Linux + 319) 329 - #define TARGET_NR_execveat (TARGET_NR_Linux + 320) 330 - #define TARGET_NR_userfaultfd (TARGET_NR_Linux + 321) 331 - #define TARGET_NR_membarrier (TARGET_NR_Linux + 322) 332 - #define TARGET_NR_mlock2 (TARGET_NR_Linux + 323) 333 - #define TARGET_NR_copy_file_range (TARGET_NR_Linux + 324) 334 - #define TARGET_NR_preadv2 (TARGET_NR_Linux + 325) 335 - #define TARGET_NR_pwritev2 (TARGET_NR_Linux + 326) 336 - #define TARGET_NR_pkey_mprotect (TARGET_NR_Linux + 327) 337 - #define TARGET_NR_pkey_alloc (TARGET_NR_Linux + 328) 338 - #define TARGET_NR_pkey_free (TARGET_NR_Linux + 329) 339 - #define TARGET_NR_statx (TARGET_NR_Linux + 330) 340 - #define TARGET_NR_rseq (TARGET_NR_Linux + 331) 341 - #define TARGET_NR_io_pgetevents (TARGET_NR_Linux + 332) 342 - /* 333 through 402 are unassigned to sync up with generic numbers */ 343 - #define TARGET_NR_clock_gettime64 (TARGET_NR_Linux + 403) 344 - #define TARGET_NR_clock_settime64 (TARGET_NR_Linux + 404) 345 - #define TARGET_NR_clock_adjtime64 (TARGET_NR_Linux + 405) 346 - #define TARGET_NR_clock_getres_time64 (TARGET_NR_Linux + 406) 347 - #define TARGET_NR_clock_nanosleep_time64 (TARGET_NR_Linux + 407) 348 - #define TARGET_NR_timer_gettime64 (TARGET_NR_Linux + 408) 349 - #define TARGET_NR_timer_settime64 (TARGET_NR_Linux + 409) 350 - #define TARGET_NR_timerfd_gettime64 (TARGET_NR_Linux + 410) 351 - #define TARGET_NR_timerfd_settime64 (TARGET_NR_Linux + 411) 352 - #define TARGET_NR_utimensat_time64 (TARGET_NR_Linux + 412) 353 - #define TARGET_NR_pselect6_time64 (TARGET_NR_Linux + 413) 354 - #define TARGET_NR_ppoll_time64 (TARGET_NR_Linux + 414) 355 - #define TARGET_NR_io_pgetevents_time64 (TARGET_NR_Linux + 416) 356 - #define TARGET_NR_recvmmsg_time64 (TARGET_NR_Linux + 417) 357 - #define TARGET_NR_mq_timedsend_time64 (TARGET_NR_Linux + 418) 358 - #define TARGET_NR_mq_timedreceive_time64 (TARGET_NR_Linux + 419) 359 - #define TARGET_NR_semtimedop_time64 (TARGET_NR_Linux + 420) 360 - #define TARGET_NR_rt_sigtimedwait_time64 (TARGET_NR_Linux + 421) 361 - #define TARGET_NR_futex_time64 (TARGET_NR_Linux + 422) 362 - #define TARGET_NR_sched_rr_get_interval_time64 (TARGET_NR_Linux + 423) 363 - #define TARGET_NR_pidfd_send_signal (TARGET_NR_Linux + 424) 364 - #define TARGET_NR_io_uring_setup (TARGET_NR_Linux + 425) 365 - #define TARGET_NR_io_uring_enter (TARGET_NR_Linux + 426) 366 - #define TARGET_NR_io_uring_register (TARGET_NR_Linux + 427) 367 - #define TARGET_NR_open_tree (TARGET_NR_Linux + 428) 368 - #define TARGET_NR_move_mount (TARGET_NR_Linux + 429) 369 - #define TARGET_NR_fsopen (TARGET_NR_Linux + 430) 370 - #define TARGET_NR_fsconfig (TARGET_NR_Linux + 431) 371 - #define TARGET_NR_fsmount (TARGET_NR_Linux + 432) 372 - #define TARGET_NR_fspick (TARGET_NR_Linux + 433) 373 - #define TARGET_NR_pidfd_open (TARGET_NR_Linux + 434) 374 - #define TARGET_NR_clone3 (TARGET_NR_Linux + 435) 375 - 376 - #else 377 - /* 378 - * Linux 64-bit syscalls are in the range from 5000 to 5999. 379 - */ 380 - #define TARGET_NR_Linux 5000 381 - #define TARGET_NR_read (TARGET_NR_Linux + 0) 382 - #define TARGET_NR_write (TARGET_NR_Linux + 1) 383 - #define TARGET_NR_open (TARGET_NR_Linux + 2) 384 - #define TARGET_NR_close (TARGET_NR_Linux + 3) 385 - #define TARGET_NR_stat (TARGET_NR_Linux + 4) 386 - #define TARGET_NR_fstat (TARGET_NR_Linux + 5) 387 - #define TARGET_NR_lstat (TARGET_NR_Linux + 6) 388 - #define TARGET_NR_poll (TARGET_NR_Linux + 7) 389 - #define TARGET_NR_lseek (TARGET_NR_Linux + 8) 390 - #define TARGET_NR_mmap (TARGET_NR_Linux + 9) 391 - #define TARGET_NR_mprotect (TARGET_NR_Linux + 10) 392 - #define TARGET_NR_munmap (TARGET_NR_Linux + 11) 393 - #define TARGET_NR_brk (TARGET_NR_Linux + 12) 394 - #define TARGET_NR_rt_sigaction (TARGET_NR_Linux + 13) 395 - #define TARGET_NR_rt_sigprocmask (TARGET_NR_Linux + 14) 396 - #define TARGET_NR_ioctl (TARGET_NR_Linux + 15) 397 - #define TARGET_NR_pread64 (TARGET_NR_Linux + 16) 398 - #define TARGET_NR_pwrite64 (TARGET_NR_Linux + 17) 399 - #define TARGET_NR_readv (TARGET_NR_Linux + 18) 400 - #define TARGET_NR_writev (TARGET_NR_Linux + 19) 401 - #define TARGET_NR_access (TARGET_NR_Linux + 20) 402 - #define TARGET_NR_pipe (TARGET_NR_Linux + 21) 403 - #define TARGET_NR__newselect (TARGET_NR_Linux + 22) 404 - #define TARGET_NR_sched_yield (TARGET_NR_Linux + 23) 405 - #define TARGET_NR_mremap (TARGET_NR_Linux + 24) 406 - #define TARGET_NR_msync (TARGET_NR_Linux + 25) 407 - #define TARGET_NR_mincore (TARGET_NR_Linux + 26) 408 - #define TARGET_NR_madvise (TARGET_NR_Linux + 27) 409 - #define TARGET_NR_shmget (TARGET_NR_Linux + 28) 410 - #define TARGET_NR_shmat (TARGET_NR_Linux + 29) 411 - #define TARGET_NR_shmctl (TARGET_NR_Linux + 30) 412 - #define TARGET_NR_dup (TARGET_NR_Linux + 31) 413 - #define TARGET_NR_dup2 (TARGET_NR_Linux + 32) 414 - #define TARGET_NR_pause (TARGET_NR_Linux + 33) 415 - #define TARGET_NR_nanosleep (TARGET_NR_Linux + 34) 416 - #define TARGET_NR_getitimer (TARGET_NR_Linux + 35) 417 - #define TARGET_NR_setitimer (TARGET_NR_Linux + 36) 418 - #define TARGET_NR_alarm (TARGET_NR_Linux + 37) 419 - #define TARGET_NR_getpid (TARGET_NR_Linux + 38) 420 - #define TARGET_NR_sendfile (TARGET_NR_Linux + 39) 421 - #define TARGET_NR_socket (TARGET_NR_Linux + 40) 422 - #define TARGET_NR_connect (TARGET_NR_Linux + 41) 423 - #define TARGET_NR_accept (TARGET_NR_Linux + 42) 424 - #define TARGET_NR_sendto (TARGET_NR_Linux + 43) 425 - #define TARGET_NR_recvfrom (TARGET_NR_Linux + 44) 426 - #define TARGET_NR_sendmsg (TARGET_NR_Linux + 45) 427 - #define TARGET_NR_recvmsg (TARGET_NR_Linux + 46) 428 - #define TARGET_NR_shutdown (TARGET_NR_Linux + 47) 429 - #define TARGET_NR_bind (TARGET_NR_Linux + 48) 430 - #define TARGET_NR_listen (TARGET_NR_Linux + 49) 431 - #define TARGET_NR_getsockname (TARGET_NR_Linux + 50) 432 - #define TARGET_NR_getpeername (TARGET_NR_Linux + 51) 433 - #define TARGET_NR_socketpair (TARGET_NR_Linux + 52) 434 - #define TARGET_NR_setsockopt (TARGET_NR_Linux + 53) 435 - #define TARGET_NR_getsockopt (TARGET_NR_Linux + 54) 436 - #define TARGET_NR_clone (TARGET_NR_Linux + 55) 437 - #define TARGET_NR_fork (TARGET_NR_Linux + 56) 438 - #define TARGET_NR_execve (TARGET_NR_Linux + 57) 439 - #define TARGET_NR_exit (TARGET_NR_Linux + 58) 440 - #define TARGET_NR_wait4 (TARGET_NR_Linux + 59) 441 - #define TARGET_NR_kill (TARGET_NR_Linux + 60) 442 - #define TARGET_NR_uname (TARGET_NR_Linux + 61) 443 - #define TARGET_NR_semget (TARGET_NR_Linux + 62) 444 - #define TARGET_NR_semop (TARGET_NR_Linux + 63) 445 - #define TARGET_NR_semctl (TARGET_NR_Linux + 64) 446 - #define TARGET_NR_shmdt (TARGET_NR_Linux + 65) 447 - #define TARGET_NR_msgget (TARGET_NR_Linux + 66) 448 - #define TARGET_NR_msgsnd (TARGET_NR_Linux + 67) 449 - #define TARGET_NR_msgrcv (TARGET_NR_Linux + 68) 450 - #define TARGET_NR_msgctl (TARGET_NR_Linux + 69) 451 - #define TARGET_NR_fcntl (TARGET_NR_Linux + 70) 452 - #define TARGET_NR_flock (TARGET_NR_Linux + 71) 453 - #define TARGET_NR_fsync (TARGET_NR_Linux + 72) 454 - #define TARGET_NR_fdatasync (TARGET_NR_Linux + 73) 455 - #define TARGET_NR_truncate (TARGET_NR_Linux + 74) 456 - #define TARGET_NR_ftruncate (TARGET_NR_Linux + 75) 457 - #define TARGET_NR_getdents (TARGET_NR_Linux + 76) 458 - #define TARGET_NR_getcwd (TARGET_NR_Linux + 77) 459 - #define TARGET_NR_chdir (TARGET_NR_Linux + 78) 460 - #define TARGET_NR_fchdir (TARGET_NR_Linux + 79) 461 - #define TARGET_NR_rename (TARGET_NR_Linux + 80) 462 - #define TARGET_NR_mkdir (TARGET_NR_Linux + 81) 463 - #define TARGET_NR_rmdir (TARGET_NR_Linux + 82) 464 - #define TARGET_NR_creat (TARGET_NR_Linux + 83) 465 - #define TARGET_NR_link (TARGET_NR_Linux + 84) 466 - #define TARGET_NR_unlink (TARGET_NR_Linux + 85) 467 - #define TARGET_NR_symlink (TARGET_NR_Linux + 86) 468 - #define TARGET_NR_readlink (TARGET_NR_Linux + 87) 469 - #define TARGET_NR_chmod (TARGET_NR_Linux + 88) 470 - #define TARGET_NR_fchmod (TARGET_NR_Linux + 89) 471 - #define TARGET_NR_chown (TARGET_NR_Linux + 90) 472 - #define TARGET_NR_fchown (TARGET_NR_Linux + 91) 473 - #define TARGET_NR_lchown (TARGET_NR_Linux + 92) 474 - #define TARGET_NR_umask (TARGET_NR_Linux + 93) 475 - #define TARGET_NR_gettimeofday (TARGET_NR_Linux + 94) 476 - #define TARGET_NR_getrlimit (TARGET_NR_Linux + 95) 477 - #define TARGET_NR_getrusage (TARGET_NR_Linux + 96) 478 - #define TARGET_NR_sysinfo (TARGET_NR_Linux + 97) 479 - #define TARGET_NR_times (TARGET_NR_Linux + 98) 480 - #define TARGET_NR_ptrace (TARGET_NR_Linux + 99) 481 - #define TARGET_NR_getuid (TARGET_NR_Linux + 100) 482 - #define TARGET_NR_syslog (TARGET_NR_Linux + 101) 483 - #define TARGET_NR_getgid (TARGET_NR_Linux + 102) 484 - #define TARGET_NR_setuid (TARGET_NR_Linux + 103) 485 - #define TARGET_NR_setgid (TARGET_NR_Linux + 104) 486 - #define TARGET_NR_geteuid (TARGET_NR_Linux + 105) 487 - #define TARGET_NR_getegid (TARGET_NR_Linux + 106) 488 - #define TARGET_NR_setpgid (TARGET_NR_Linux + 107) 489 - #define TARGET_NR_getppid (TARGET_NR_Linux + 108) 490 - #define TARGET_NR_getpgrp (TARGET_NR_Linux + 109) 491 - #define TARGET_NR_setsid (TARGET_NR_Linux + 110) 492 - #define TARGET_NR_setreuid (TARGET_NR_Linux + 111) 493 - #define TARGET_NR_setregid (TARGET_NR_Linux + 112) 494 - #define TARGET_NR_getgroups (TARGET_NR_Linux + 113) 495 - #define TARGET_NR_setgroups (TARGET_NR_Linux + 114) 496 - #define TARGET_NR_setresuid (TARGET_NR_Linux + 115) 497 - #define TARGET_NR_getresuid (TARGET_NR_Linux + 116) 498 - #define TARGET_NR_setresgid (TARGET_NR_Linux + 117) 499 - #define TARGET_NR_getresgid (TARGET_NR_Linux + 118) 500 - #define TARGET_NR_getpgid (TARGET_NR_Linux + 119) 501 - #define TARGET_NR_setfsuid (TARGET_NR_Linux + 120) 502 - #define TARGET_NR_setfsgid (TARGET_NR_Linux + 121) 503 - #define TARGET_NR_getsid (TARGET_NR_Linux + 122) 504 - #define TARGET_NR_capget (TARGET_NR_Linux + 123) 505 - #define TARGET_NR_capset (TARGET_NR_Linux + 124) 506 - #define TARGET_NR_rt_sigpending (TARGET_NR_Linux + 125) 507 - #define TARGET_NR_rt_sigtimedwait (TARGET_NR_Linux + 126) 508 - #define TARGET_NR_rt_sigqueueinfo (TARGET_NR_Linux + 127) 509 - #define TARGET_NR_rt_sigsuspend (TARGET_NR_Linux + 128) 510 - #define TARGET_NR_sigaltstack (TARGET_NR_Linux + 129) 511 - #define TARGET_NR_utime (TARGET_NR_Linux + 130) 512 - #define TARGET_NR_mknod (TARGET_NR_Linux + 131) 513 - #define TARGET_NR_personality (TARGET_NR_Linux + 132) 514 - #define TARGET_NR_ustat (TARGET_NR_Linux + 133) 515 - #define TARGET_NR_statfs (TARGET_NR_Linux + 134) 516 - #define TARGET_NR_fstatfs (TARGET_NR_Linux + 135) 517 - #define TARGET_NR_sysfs (TARGET_NR_Linux + 136) 518 - #define TARGET_NR_getpriority (TARGET_NR_Linux + 137) 519 - #define TARGET_NR_setpriority (TARGET_NR_Linux + 138) 520 - #define TARGET_NR_sched_setparam (TARGET_NR_Linux + 139) 521 - #define TARGET_NR_sched_getparam (TARGET_NR_Linux + 140) 522 - #define TARGET_NR_sched_setscheduler (TARGET_NR_Linux + 141) 523 - #define TARGET_NR_sched_getscheduler (TARGET_NR_Linux + 142) 524 - #define TARGET_NR_sched_get_priority_max (TARGET_NR_Linux + 143) 525 - #define TARGET_NR_sched_get_priority_min (TARGET_NR_Linux + 144) 526 - #define TARGET_NR_sched_rr_get_interval (TARGET_NR_Linux + 145) 527 - #define TARGET_NR_mlock (TARGET_NR_Linux + 146) 528 - #define TARGET_NR_munlock (TARGET_NR_Linux + 147) 529 - #define TARGET_NR_mlockall (TARGET_NR_Linux + 148) 530 - #define TARGET_NR_munlockall (TARGET_NR_Linux + 149) 531 - #define TARGET_NR_vhangup (TARGET_NR_Linux + 150) 532 - #define TARGET_NR_pivot_root (TARGET_NR_Linux + 151) 533 - #define TARGET_NR__sysctl (TARGET_NR_Linux + 152) 534 - #define TARGET_NR_prctl (TARGET_NR_Linux + 153) 535 - #define TARGET_NR_adjtimex (TARGET_NR_Linux + 154) 536 - #define TARGET_NR_setrlimit (TARGET_NR_Linux + 155) 537 - #define TARGET_NR_chroot (TARGET_NR_Linux + 156) 538 - #define TARGET_NR_sync (TARGET_NR_Linux + 157) 539 - #define TARGET_NR_acct (TARGET_NR_Linux + 158) 540 - #define TARGET_NR_settimeofday (TARGET_NR_Linux + 159) 541 - #define TARGET_NR_mount (TARGET_NR_Linux + 160) 542 - #define TARGET_NR_umount2 (TARGET_NR_Linux + 161) 543 - #define TARGET_NR_swapon (TARGET_NR_Linux + 162) 544 - #define TARGET_NR_swapoff (TARGET_NR_Linux + 163) 545 - #define TARGET_NR_reboot (TARGET_NR_Linux + 164) 546 - #define TARGET_NR_sethostname (TARGET_NR_Linux + 165) 547 - #define TARGET_NR_setdomainname (TARGET_NR_Linux + 166) 548 - #define TARGET_NR_create_module (TARGET_NR_Linux + 167) 549 - #define TARGET_NR_init_module (TARGET_NR_Linux + 168) 550 - #define TARGET_NR_delete_module (TARGET_NR_Linux + 169) 551 - #define TARGET_NR_get_kernel_syms (TARGET_NR_Linux + 170) 552 - #define TARGET_NR_query_module (TARGET_NR_Linux + 171) 553 - #define TARGET_NR_quotactl (TARGET_NR_Linux + 172) 554 - #define TARGET_NR_nfsservctl (TARGET_NR_Linux + 173) 555 - #define TARGET_NR_getpmsg (TARGET_NR_Linux + 174) 556 - #define TARGET_NR_putpmsg (TARGET_NR_Linux + 175) 557 - #define TARGET_NR_afs_syscall (TARGET_NR_Linux + 176) 558 - #define TARGET_NR_reserved177 (TARGET_NR_Linux + 177) 559 - #define TARGET_NR_gettid (TARGET_NR_Linux + 178) 560 - #define TARGET_NR_readahead (TARGET_NR_Linux + 179) 561 - #define TARGET_NR_setxattr (TARGET_NR_Linux + 180) 562 - #define TARGET_NR_lsetxattr (TARGET_NR_Linux + 181) 563 - #define TARGET_NR_fsetxattr (TARGET_NR_Linux + 182) 564 - #define TARGET_NR_getxattr (TARGET_NR_Linux + 183) 565 - #define TARGET_NR_lgetxattr (TARGET_NR_Linux + 184) 566 - #define TARGET_NR_fgetxattr (TARGET_NR_Linux + 185) 567 - #define TARGET_NR_listxattr (TARGET_NR_Linux + 186) 568 - #define TARGET_NR_llistxattr (TARGET_NR_Linux + 187) 569 - #define TARGET_NR_flistxattr (TARGET_NR_Linux + 188) 570 - #define TARGET_NR_removexattr (TARGET_NR_Linux + 189) 571 - #define TARGET_NR_lremovexattr (TARGET_NR_Linux + 190) 572 - #define TARGET_NR_fremovexattr (TARGET_NR_Linux + 191) 573 - #define TARGET_NR_tkill (TARGET_NR_Linux + 192) 574 - #define TARGET_NR_reserved193 (TARGET_NR_Linux + 193) 575 - #define TARGET_NR_futex (TARGET_NR_Linux + 194) 576 - #define TARGET_NR_sched_setaffinity (TARGET_NR_Linux + 195) 577 - #define TARGET_NR_sched_getaffinity (TARGET_NR_Linux + 196) 578 - #define TARGET_NR_cacheflush (TARGET_NR_Linux + 197) 579 - #define TARGET_NR_cachectl (TARGET_NR_Linux + 198) 580 - #define TARGET_NR_sysmips (TARGET_NR_Linux + 199) 581 - #define TARGET_NR_io_setup (TARGET_NR_Linux + 200) 582 - #define TARGET_NR_io_destroy (TARGET_NR_Linux + 201) 583 - #define TARGET_NR_io_getevents (TARGET_NR_Linux + 202) 584 - #define TARGET_NR_io_submit (TARGET_NR_Linux + 203) 585 - #define TARGET_NR_io_cancel (TARGET_NR_Linux + 204) 586 - #define TARGET_NR_exit_group (TARGET_NR_Linux + 205) 587 - #define TARGET_NR_lookup_dcookie (TARGET_NR_Linux + 206) 588 - #define TARGET_NR_epoll_create (TARGET_NR_Linux + 207) 589 - #define TARGET_NR_epoll_ctl (TARGET_NR_Linux + 208) 590 - #define TARGET_NR_epoll_wait (TARGET_NR_Linux + 209) 591 - #define TARGET_NR_remap_file_pages (TARGET_NR_Linux + 210) 592 - #define TARGET_NR_rt_sigreturn (TARGET_NR_Linux + 211) 593 - #define TARGET_NR_set_tid_address (TARGET_NR_Linux + 212) 594 - #define TARGET_NR_restart_syscall (TARGET_NR_Linux + 213) 595 - #define TARGET_NR_semtimedop (TARGET_NR_Linux + 214) 596 - #define TARGET_NR_fadvise64 (TARGET_NR_Linux + 215) 597 - #define TARGET_NR_timer_create (TARGET_NR_Linux + 216) 598 - #define TARGET_NR_timer_settime (TARGET_NR_Linux + 217) 599 - #define TARGET_NR_timer_gettime (TARGET_NR_Linux + 218) 600 - #define TARGET_NR_timer_getoverrun (TARGET_NR_Linux + 219) 601 - #define TARGET_NR_timer_delete (TARGET_NR_Linux + 220) 602 - #define TARGET_NR_clock_settime (TARGET_NR_Linux + 221) 603 - #define TARGET_NR_clock_gettime (TARGET_NR_Linux + 222) 604 - #define TARGET_NR_clock_getres (TARGET_NR_Linux + 223) 605 - #define TARGET_NR_clock_nanosleep (TARGET_NR_Linux + 224) 606 - #define TARGET_NR_tgkill (TARGET_NR_Linux + 225) 607 - #define TARGET_NR_utimes (TARGET_NR_Linux + 226) 608 - #define TARGET_NR_mbind (TARGET_NR_Linux + 227) 609 - #define TARGET_NR_get_mempolicy (TARGET_NR_Linux + 228) 610 - #define TARGET_NR_set_mempolicy (TARGET_NR_Linux + 229) 611 - #define TARGET_NR_mq_open (TARGET_NR_Linux + 230) 612 - #define TARGET_NR_mq_unlink (TARGET_NR_Linux + 231) 613 - #define TARGET_NR_mq_timedsend (TARGET_NR_Linux + 232) 614 - #define TARGET_NR_mq_timedreceive (TARGET_NR_Linux + 233) 615 - #define TARGET_NR_mq_notify (TARGET_NR_Linux + 234) 616 - #define TARGET_NR_mq_getsetattr (TARGET_NR_Linux + 235) 617 - #define TARGET_NR_vserver (TARGET_NR_Linux + 236) 618 - #define TARGET_NR_waitid (TARGET_NR_Linux + 237) 619 - /* #define TARGET_NR_sys_setaltroot (TARGET_NR_Linux + 238) */ 620 - #define TARGET_NR_add_key (TARGET_NR_Linux + 239) 621 - #define TARGET_NR_request_key (TARGET_NR_Linux + 240) 622 - #define TARGET_NR_keyctl (TARGET_NR_Linux + 241) 623 - #define TARGET_NR_set_thread_area (TARGET_NR_Linux + 242) 624 - #define TARGET_NR_inotify_init (TARGET_NR_Linux + 243) 625 - #define TARGET_NR_inotify_add_watch (TARGET_NR_Linux + 244) 626 - #define TARGET_NR_inotify_rm_watch (TARGET_NR_Linux + 245) 627 - #define TARGET_NR_migrate_pages (TARGET_NR_Linux + 246) 628 - #define TARGET_NR_openat (TARGET_NR_Linux + 247) 629 - #define TARGET_NR_mkdirat (TARGET_NR_Linux + 248) 630 - #define TARGET_NR_mknodat (TARGET_NR_Linux + 249) 631 - #define TARGET_NR_fchownat (TARGET_NR_Linux + 250) 632 - #define TARGET_NR_futimesat (TARGET_NR_Linux + 251) 633 - #define TARGET_NR_newfstatat (TARGET_NR_Linux + 252) 634 - #define TARGET_NR_unlinkat (TARGET_NR_Linux + 253) 635 - #define TARGET_NR_renameat (TARGET_NR_Linux + 254) 636 - #define TARGET_NR_linkat (TARGET_NR_Linux + 255) 637 - #define TARGET_NR_symlinkat (TARGET_NR_Linux + 256) 638 - #define TARGET_NR_readlinkat (TARGET_NR_Linux + 257) 639 - #define TARGET_NR_fchmodat (TARGET_NR_Linux + 258) 640 - #define TARGET_NR_faccessat (TARGET_NR_Linux + 259) 641 - #define TARGET_NR_pselect6 (TARGET_NR_Linux + 260) 642 - #define TARGET_NR_ppoll (TARGET_NR_Linux + 261) 643 - #define TARGET_NR_unshare (TARGET_NR_Linux + 262) 644 - #define TARGET_NR_splice (TARGET_NR_Linux + 263) 645 - #define TARGET_NR_sync_file_range (TARGET_NR_Linux + 264) 646 - #define TARGET_NR_tee (TARGET_NR_Linux + 265) 647 - #define TARGET_NR_vmsplice (TARGET_NR_Linux + 266) 648 - #define TARGET_NR_move_pages (TARGET_NR_Linux + 267) 649 - #define TARGET_NR_set_robust_list (TARGET_NR_Linux + 268) 650 - #define TARGET_NR_get_robust_list (TARGET_NR_Linux + 269) 651 - #define TARGET_NR_kexec_load (TARGET_NR_Linux + 270) 652 - #define TARGET_NR_getcpu (TARGET_NR_Linux + 271) 653 - #define TARGET_NR_epoll_pwait (TARGET_NR_Linux + 272) 654 - #define TARGET_NR_ioprio_set (TARGET_NR_Linux + 273) 655 - #define TARGET_NR_ioprio_get (TARGET_NR_Linux + 274) 656 - #define TARGET_NR_utimensat (TARGET_NR_Linux + 275) 657 - #define TARGET_NR_signalfd (TARGET_NR_Linux + 276) 658 - #define TARGET_NR_timerfd (TARGET_NR_Linux + 277) 659 - #define TARGET_NR_eventfd (TARGET_NR_Linux + 278) 660 - #define TARGET_NR_fallocate (TARGET_NR_Linux + 279) 661 - #define TARGET_NR_timerfd_create (TARGET_NR_Linux + 280) 662 - #define TARGET_NR_timerfd_gettime (TARGET_NR_Linux + 281) 663 - #define TARGET_NR_timerfd_settime (TARGET_NR_Linux + 282) 664 - #define TARGET_NR_signalfd4 (TARGET_NR_Linux + 283) 665 - #define TARGET_NR_eventfd2 (TARGET_NR_Linux + 284) 666 - #define TARGET_NR_epoll_create1 (TARGET_NR_Linux + 285) 667 - #define TARGET_NR_dup3 (TARGET_NR_Linux + 286) 668 - #define TARGET_NR_pipe2 (TARGET_NR_Linux + 287) 669 - #define TARGET_NR_inotify_init1 (TARGET_NR_Linux + 288) 670 - #define TARGET_NR_preadv (TARGET_NR_Linux + 289) 671 - #define TARGET_NR_pwritev (TARGET_NR_Linux + 290) 672 - #define TARGET_NR_rt_tgsigqueueinfo (TARGET_NR_Linux + 291) 673 - #define TARGET_NR_perf_event_open (TARGET_NR_Linux + 292) 674 - #define TARGET_NR_accept4 (TARGET_NR_Linux + 293) 675 - #define TARGET_NR_recvmmsg (TARGET_NR_Linux + 294) 676 - #define TARGET_NR_fanotify_init (TARGET_NR_Linux + 295) 677 - #define TARGET_NR_fanotify_mark (TARGET_NR_Linux + 296) 678 - #define TARGET_NR_prlimit64 (TARGET_NR_Linux + 297) 679 - #define TARGET_NR_name_to_handle_at (TARGET_NR_Linux + 298) 680 - #define TARGET_NR_open_by_handle_at (TARGET_NR_Linux + 299) 681 - #define TARGET_NR_clock_adjtime (TARGET_NR_Linux + 300) 682 - #define TARGET_NR_syncfs (TARGET_NR_Linux + 301) 683 - #define TARGET_NR_sendmmsg (TARGET_NR_Linux + 302) 684 - #define TARGET_NR_setns (TARGET_NR_Linux + 303) 685 - #define TARGET_NR_process_vm_readv (TARGET_NR_Linux + 304) 686 - #define TARGET_NR_process_vm_writev (TARGET_NR_Linux + 305) 687 - #define TARGET_NR_kcmp (TARGET_NR_Linux + 306) 688 - #define TARGET_NR_finit_module (TARGET_NR_Linux + 307) 689 - #define TARGET_NR_getdents64 (TARGET_NR_Linux + 308) 690 - #define TARGET_NR_sched_setattr (TARGET_NR_Linux + 309) 691 - #define TARGET_NR_sched_getattr (TARGET_NR_Linux + 310) 692 - #define TARGET_NR_renameat2 (TARGET_NR_Linux + 311) 693 - #define TARGET_NR_seccomp (TARGET_NR_Linux + 312) 694 - #define TARGET_NR_getrandom (TARGET_NR_Linux + 313) 695 - #define TARGET_NR_memfd_create (TARGET_NR_Linux + 314) 696 - #define TARGET_NR_bpf (TARGET_NR_Linux + 315) 697 - #define TARGET_NR_execveat (TARGET_NR_Linux + 316) 698 - #define TARGET_NR_userfaultfd (TARGET_NR_Linux + 317) 699 - #define TARGET_NR_membarrier (TARGET_NR_Linux + 318) 700 - #define TARGET_NR_mlock2 (TARGET_NR_Linux + 319) 701 - #define TARGET_NR_copy_file_range (TARGET_NR_Linux + 320) 702 - #define TARGET_NR_preadv2 (TARGET_NR_Linux + 321) 703 - #define TARGET_NR_pwritev2 (TARGET_NR_Linux + 322) 704 - #define TARGET_NR_pkey_mprotect (TARGET_NR_Linux + 323) 705 - #define TARGET_NR_pkey_alloc (TARGET_NR_Linux + 324) 706 - #define TARGET_NR_pkey_free (TARGET_NR_Linux + 325) 707 - #define TARGET_NR_statx (TARGET_NR_Linux + 326) 708 - #define TARGET_NR_rseq (TARGET_NR_Linux + 327) 709 - #define TARGET_NR_io_pgetevents (TARGET_NR_Linux + 328) 710 - /* 329 through 423 are reserved to sync up with other architectures */ 711 - #define TARGET_NR_pidfd_send_signal (TARGET_NR_Linux + 424) 712 - #define TARGET_NR_io_uring_setup (TARGET_NR_Linux + 425) 713 - #define TARGET_NR_io_uring_enter (TARGET_NR_Linux + 426) 714 - #define TARGET_NR_io_uring_register (TARGET_NR_Linux + 427) 715 - #define TARGET_NR_open_tree (TARGET_NR_Linux + 428) 716 - #define TARGET_NR_move_mount (TARGET_NR_Linux + 429) 717 - #define TARGET_NR_fsopen (TARGET_NR_Linux + 430) 718 - #define TARGET_NR_fsconfig (TARGET_NR_Linux + 431) 719 - #define TARGET_NR_fsmount (TARGET_NR_Linux + 432) 720 - #define TARGET_NR_fspick (TARGET_NR_Linux + 433) 721 - #define TARGET_NR_pidfd_open (TARGET_NR_Linux + 434) 722 - #define TARGET_NR_clone3 (TARGET_NR_Linux + 435) 723 - #endif 724 - 725 - #endif
+33
linux-user/mips64/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_MIPS64_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry compat ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + printf "\n" 33 + ) > "$out"
+4
linux-user/mmap.c
··· 184 184 } 185 185 186 186 #if HOST_LONG_BITS == 64 && TARGET_ABI_BITS == 64 187 + #ifdef TARGET_AARCH64 188 + # define TASK_UNMAPPED_BASE 0x5500000000 189 + #else 187 190 # define TASK_UNMAPPED_BASE (1ul << 38) 191 + #endif 188 192 #else 189 193 # define TASK_UNMAPPED_BASE 0x40000000 190 194 #endif
+320 -330
linux-user/nios2/syscall_nr.h
··· 1 + /* 2 + * This file contains the system call numbers. 3 + * Do not modify. 4 + * This file is generated by scripts/gensyscalls.sh 5 + */ 1 6 #ifndef LINUX_USER_NIOS2_SYSCALL_NR_H 2 7 #define LINUX_USER_NIOS2_SYSCALL_NR_H 3 8 4 - #define TARGET_NR_io_setup 0 5 - #define TARGET_NR_io_destroy 1 6 - #define TARGET_NR_io_submit 2 7 - #define TARGET_NR_io_cancel 3 8 - #define TARGET_NR_io_getevents 4 9 - #define TARGET_NR_setxattr 5 10 - #define TARGET_NR_lsetxattr 6 11 - #define TARGET_NR_fsetxattr 7 12 - #define TARGET_NR_getxattr 8 13 - #define TARGET_NR_lgetxattr 9 14 - #define TARGET_NR_fgetxattr 10 15 - #define TARGET_NR_listxattr 11 16 - #define TARGET_NR_llistxattr 12 17 - #define TARGET_NR_flistxattr 13 18 - #define TARGET_NR_removexattr 14 19 - #define TARGET_NR_lremovexattr 15 20 - #define TARGET_NR_fremovexattr 16 21 - #define TARGET_NR_getcwd 17 22 - #define TARGET_NR_lookup_dcookie 18 23 - #define TARGET_NR_eventfd2 19 24 - #define TARGET_NR_epoll_create1 20 25 - #define TARGET_NR_epoll_ctl 21 26 - #define TARGET_NR_epoll_pwait 22 27 - #define TARGET_NR_dup 23 28 - #define TARGET_NR_dup3 24 29 - #define TARGET_NR_fcntl64 25 30 - #define TARGET_NR_inotify_init1 26 31 - #define TARGET_NR_inotify_add_watch 27 32 - #define TARGET_NR_inotify_rm_watch 28 33 - #define TARGET_NR_ioctl 29 34 - #define TARGET_NR_ioprio_set 30 35 - #define TARGET_NR_ioprio_get 31 36 - #define TARGET_NR_flock 32 37 - #define TARGET_NR_mknodat 33 38 - #define TARGET_NR_mkdirat 34 39 - #define TARGET_NR_unlinkat 35 40 - #define TARGET_NR_symlinkat 36 41 - #define TARGET_NR_linkat 37 42 - #define TARGET_NR_renameat 38 43 - #define TARGET_NR_umount2 39 44 - #define TARGET_NR_mount 40 45 - #define TARGET_NR_pivot_root 41 46 - #define TARGET_NR_nfsservctl 42 47 - #define TARGET_NR_statfs64 43 48 - #define TARGET_NR_fstatfs64 44 49 - #define TARGET_NR_truncate64 45 50 - #define TARGET_NR_ftruncate64 46 51 - #define TARGET_NR_fallocate 47 52 - #define TARGET_NR_faccessat 48 53 - #define TARGET_NR_chdir 49 54 - #define TARGET_NR_fchdir 50 55 - #define TARGET_NR_chroot 51 56 - #define TARGET_NR_fchmod 52 57 - #define TARGET_NR_fchmodat 53 58 - #define TARGET_NR_fchownat 54 59 - #define TARGET_NR_fchown 55 60 - #define TARGET_NR_openat 56 61 - #define TARGET_NR_close 57 62 - #define TARGET_NR_vhangup 58 63 - #define TARGET_NR_pipe2 59 64 - #define TARGET_NR_quotactl 60 65 - #define TARGET_NR_getdents64 61 66 - #define TARGET_NR_read 63 67 - #define TARGET_NR_write 64 68 - #define TARGET_NR_readv 65 69 - #define TARGET_NR_writev 66 70 - #define TARGET_NR_pread64 67 71 - #define TARGET_NR_pwrite64 68 72 - #define TARGET_NR_preadv 69 73 - #define TARGET_NR_pwritev 70 74 - #define TARGET_NR_sendfile64 71 75 - #define TARGET_NR_pselect6 72 76 - #define TARGET_NR_ppoll 73 77 - #define TARGET_NR_signalfd4 74 78 - #define TARGET_NR_vmsplice 75 79 - #define TARGET_NR_splice 76 80 - #define TARGET_NR_tee 77 81 - #define TARGET_NR_readlinkat 78 82 - #define TARGET_NR_fstatat64 79 83 - #define TARGET_NR_fstat64 80 84 - #define TARGET_NR_sync 81 85 - #define TARGET_NR_fsync 82 86 - #define TARGET_NR_fdatasync 83 87 - #define TARGET_NR_sync_file_range 84 88 - #define TARGET_NR_timerfd_create 85 89 - #define TARGET_NR_timerfd_settime 86 90 - #define TARGET_NR_timerfd_gettime 87 91 - #define TARGET_NR_utimensat 88 92 - #define TARGET_NR_acct 89 93 - #define TARGET_NR_capget 90 94 - #define TARGET_NR_capset 91 95 - #define TARGET_NR_personality 92 96 - #define TARGET_NR_exit 93 97 - #define TARGET_NR_exit_group 94 98 - #define TARGET_NR_waitid 95 99 - #define TARGET_NR_set_tid_address 96 100 - #define TARGET_NR_unshare 97 101 - #define TARGET_NR_futex 98 102 - #define TARGET_NR_set_robust_list 99 103 - #define TARGET_NR_get_robust_list 100 104 - #define TARGET_NR_nanosleep 101 105 - #define TARGET_NR_getitimer 102 106 - #define TARGET_NR_setitimer 103 107 - #define TARGET_NR_kexec_load 104 108 - #define TARGET_NR_init_module 105 109 - #define TARGET_NR_delete_module 106 110 - #define TARGET_NR_timer_create 107 111 - #define TARGET_NR_timer_gettime 108 112 - #define TARGET_NR_timer_getoverrun 109 113 - #define TARGET_NR_timer_settime 110 114 - #define TARGET_NR_timer_delete 111 115 - #define TARGET_NR_clock_settime 112 116 - #define TARGET_NR_clock_gettime 113 117 - #define TARGET_NR_clock_getres 114 118 - #define TARGET_NR_clock_nanosleep 115 119 - #define TARGET_NR_syslog 116 120 - #define TARGET_NR_ptrace 117 121 - #define TARGET_NR_sched_setparam 118 122 - #define TARGET_NR_sched_setscheduler 119 123 - #define TARGET_NR_sched_getscheduler 120 124 - #define TARGET_NR_sched_getparam 121 125 - #define TARGET_NR_sched_setaffinity 122 126 - #define TARGET_NR_sched_getaffinity 123 127 - #define TARGET_NR_sched_yield 124 128 - #define TARGET_NR_sched_get_priority_max 125 129 - #define TARGET_NR_sched_get_priority_min 126 130 - #define TARGET_NR_sched_rr_get_interval 127 131 - #define TARGET_NR_restart_syscall 128 132 - #define TARGET_NR_kill 129 133 - #define TARGET_NR_tkill 130 134 - #define TARGET_NR_tgkill 131 135 - #define TARGET_NR_sigaltstack 132 136 - #define TARGET_NR_rt_sigsuspend 133 137 - #define TARGET_NR_rt_sigaction 134 138 - #define TARGET_NR_rt_sigprocmask 135 139 - #define TARGET_NR_rt_sigpending 136 140 - #define TARGET_NR_rt_sigtimedwait 137 141 - #define TARGET_NR_rt_sigqueueinfo 138 142 - #define TARGET_NR_rt_sigreturn 139 143 - #define TARGET_NR_setpriority 140 144 - #define TARGET_NR_getpriority 141 145 - #define TARGET_NR_reboot 142 146 - #define TARGET_NR_setregid 143 147 - #define TARGET_NR_setgid 144 148 - #define TARGET_NR_setreuid 145 149 - #define TARGET_NR_setuid 146 150 - #define TARGET_NR_setresuid 147 151 - #define TARGET_NR_getresuid 148 152 - #define TARGET_NR_setresgid 149 153 - #define TARGET_NR_getresgid 150 154 - #define TARGET_NR_setfsuid 151 155 - #define TARGET_NR_setfsgid 152 156 - #define TARGET_NR_times 153 157 - #define TARGET_NR_setpgid 154 158 - #define TARGET_NR_getpgid 155 159 - #define TARGET_NR_getsid 156 160 - #define TARGET_NR_setsid 157 161 - #define TARGET_NR_getgroups 158 162 - #define TARGET_NR_setgroups 159 163 - #define TARGET_NR_uname 160 164 - #define TARGET_NR_sethostname 161 165 - #define TARGET_NR_setdomainname 162 166 - #define TARGET_NR_getrlimit 163 167 - #define TARGET_NR_setrlimit 164 168 - #define TARGET_NR_getrusage 165 169 - #define TARGET_NR_umask 166 170 - #define TARGET_NR_prctl 167 171 - #define TARGET_NR_getcpu 168 172 - #define TARGET_NR_gettimeofday 169 173 - #define TARGET_NR_settimeofday 170 174 - #define TARGET_NR_adjtimex 171 175 - #define TARGET_NR_getpid 172 176 - #define TARGET_NR_getppid 173 177 - #define TARGET_NR_getuid 174 178 - #define TARGET_NR_geteuid 175 179 - #define TARGET_NR_getgid 176 180 - #define TARGET_NR_getegid 177 181 - #define TARGET_NR_gettid 178 182 - #define TARGET_NR_sysinfo 179 183 - #define TARGET_NR_mq_open 180 184 - #define TARGET_NR_mq_unlink 181 185 - #define TARGET_NR_mq_timedsend 182 186 - #define TARGET_NR_mq_timedreceive 183 187 - #define TARGET_NR_mq_notify 184 188 - #define TARGET_NR_mq_getsetattr 185 189 - #define TARGET_NR_msgget 186 190 - #define TARGET_NR_msgctl 187 191 - #define TARGET_NR_msgrcv 188 192 - #define TARGET_NR_msgsnd 189 193 - #define TARGET_NR_semget 190 194 - #define TARGET_NR_semctl 191 195 - #define TARGET_NR_semtimedop 192 196 - #define TARGET_NR_semop 193 197 - #define TARGET_NR_shmget 194 198 - #define TARGET_NR_shmctl 195 199 - #define TARGET_NR_shmat 196 200 - #define TARGET_NR_shmdt 197 201 - #define TARGET_NR_socket 198 202 - #define TARGET_NR_socketpair 199 203 - #define TARGET_NR_bind 200 204 - #define TARGET_NR_listen 201 205 - #define TARGET_NR_accept 202 206 - #define TARGET_NR_connect 203 207 - #define TARGET_NR_getsockname 204 208 - #define TARGET_NR_getpeername 205 209 - #define TARGET_NR_sendto 206 210 - #define TARGET_NR_recvfrom 207 211 - #define TARGET_NR_setsockopt 208 212 - #define TARGET_NR_getsockopt 209 213 - #define TARGET_NR_shutdown 210 214 - #define TARGET_NR_sendmsg 211 215 - #define TARGET_NR_recvmsg 212 216 - #define TARGET_NR_readahead 213 217 - #define TARGET_NR_brk 214 218 - #define TARGET_NR_munmap 215 219 - #define TARGET_NR_mremap 216 220 - #define TARGET_NR_add_key 217 221 - #define TARGET_NR_request_key 218 222 - #define TARGET_NR_keyctl 219 223 - #define TARGET_NR_clone 220 224 - #define TARGET_NR_execve 221 225 - #define TARGET_NR_mmap2 222 226 - #define TARGET_NR_fadvise64_64 223 227 - #define TARGET_NR_swapon 224 228 - #define TARGET_NR_swapoff 225 229 - #define TARGET_NR_mprotect 226 230 - #define TARGET_NR_msync 227 231 - #define TARGET_NR_mlock 228 232 - #define TARGET_NR_munlock 229 233 - #define TARGET_NR_mlockall 230 234 - #define TARGET_NR_munlockall 231 235 - #define TARGET_NR_mincore 232 236 - #define TARGET_NR_madvise 233 237 - #define TARGET_NR_remap_file_pages 234 238 - #define TARGET_NR_mbind 235 239 - #define TARGET_NR_get_mempolicy 236 240 - #define TARGET_NR_set_mempolicy 237 241 - #define TARGET_NR_migrate_pages 238 242 - #define TARGET_NR_move_pages 239 243 - #define TARGET_NR_rt_tgsigqueueinfo 240 244 - #define TARGET_NR_perf_event_open 241 245 - #define TARGET_NR_accept4 242 246 - #define TARGET_NR_recvmmsg 243 247 - #define TARGET_NR_cacheflush 244 248 - #define TARGET_NR_arch_specific_syscall 244 249 - #define TARGET_NR_wait4 260 250 - #define TARGET_NR_prlimit64 261 251 - #define TARGET_NR_fanotify_init 262 252 - #define TARGET_NR_fanotify_mark 263 253 - #define TARGET_NR_name_to_handle_at 264 254 - #define TARGET_NR_open_by_handle_at 265 255 - #define TARGET_NR_clock_adjtime 266 256 - #define TARGET_NR_syncfs 267 257 - #define TARGET_NR_setns 268 258 - #define TARGET_NR_sendmmsg 269 259 - #define TARGET_NR_process_vm_readv 270 260 - #define TARGET_NR_process_vm_writev 271 261 - #define TARGET_NR_kcmp 272 262 - #define TARGET_NR_finit_module 273 263 - #define TARGET_NR_sched_setattr 274 264 - #define TARGET_NR_sched_getattr 275 265 - #define TARGET_NR_renameat2 276 266 - #define TARGET_NR_seccomp 277 267 - #define TARGET_NR_getrandom 278 268 - #define TARGET_NR_memfd_create 279 269 - #define TARGET_NR_bpf 280 270 - #define TARGET_NR_execveat 281 271 - #define TARGET_NR_userfaultfd 282 272 - #define TARGET_NR_membarrier 283 273 - #define TARGET_NR_mlock2 284 274 - #define TARGET_NR_copy_file_range 285 275 - #define TARGET_NR_preadv2 286 276 - #define TARGET_NR_pwritev2 287 277 - #define TARGET_NR_open 1024 278 - #define TARGET_NR_link 1025 279 - #define TARGET_NR_unlink 1026 280 - #define TARGET_NR_mknod 1027 281 - #define TARGET_NR_chmod 1028 282 - #define TARGET_NR_chown 1029 283 - #define TARGET_NR_mkdir 1030 284 - #define TARGET_NR_rmdir 1031 285 - #define TARGET_NR_lchown 1032 286 - #define TARGET_NR_access 1033 287 - #define TARGET_NR_rename 1034 288 - #define TARGET_NR_readlink 1035 289 - #define TARGET_NR_symlink 1036 290 - #define TARGET_NR_utimes 1037 291 - #define TARGET_NR_3264_stat 1038 292 - #define TARGET_NR_3264_lstat 1039 293 - #define TARGET_NR_pipe 1040 294 - #define TARGET_NR_dup2 1041 295 - #define TARGET_NR_epoll_create 1042 296 - #define TARGET_NR_inotify_init 1043 297 - #define TARGET_NR_eventfd 1044 298 - #define TARGET_NR_signalfd 1045 299 - #define TARGET_NR_sendfile 1046 300 - #define TARGET_NR_ftruncate 1047 301 - #define TARGET_NR_truncate 1048 302 - #define TARGET_NR_stat 1049 303 - #define TARGET_NR_lstat 1050 304 - #define TARGET_NR_fstat 1051 305 - #define TARGET_NR_fcntl 1052 306 - #define TARGET_NR_fadvise64 1053 307 - #define TARGET_NR_newfstatat 1054 308 - #define TARGET_NR_fstatfs 1055 309 - #define TARGET_NR_statfs 1056 310 - #define TARGET_NR_lseek 1057 311 - #define TARGET_NR_mmap 1058 312 - #define TARGET_NR_alarm 1059 313 - #define TARGET_NR_getpgrp 1060 314 - #define TARGET_NR_pause 1061 315 - #define TARGET_NR_time 1062 316 - #define TARGET_NR_utime 1063 317 - #define TARGET_NR_creat 1064 318 - #define TARGET_NR_getdents 1065 319 - #define TARGET_NR_futimesat 1066 320 - #define TARGET_NR_select 1067 321 - #define TARGET_NR_poll 1068 322 - #define TARGET_NR_epoll_wait 1069 323 - #define TARGET_NR_ustat 1070 324 - #define TARGET_NR_vfork 1071 325 - #define TARGET_NR_oldwait4 1072 326 - #define TARGET_NR_recv 1073 327 - #define TARGET_NR_send 1074 328 - #define TARGET_NR_bdflush 1075 329 - #define TARGET_NR_umount 1076 330 - #define TARGET_NR_uselib 1077 331 - #define TARGET_NR__sysctl 1078 332 - #define TARGET_NR_fork 1079 9 + #define TARGET_NR_cacheflush (TARGET_NR_arch_specific_syscall) 10 + #define TARGET_NR_io_setup 0 11 + #define TARGET_NR_io_destroy 1 12 + #define TARGET_NR_io_submit 2 13 + #define TARGET_NR_io_cancel 3 14 + #define TARGET_NR_io_getevents 4 15 + #define TARGET_NR_setxattr 5 16 + #define TARGET_NR_lsetxattr 6 17 + #define TARGET_NR_fsetxattr 7 18 + #define TARGET_NR_getxattr 8 19 + #define TARGET_NR_lgetxattr 9 20 + #define TARGET_NR_fgetxattr 10 21 + #define TARGET_NR_listxattr 11 22 + #define TARGET_NR_llistxattr 12 23 + #define TARGET_NR_flistxattr 13 24 + #define TARGET_NR_removexattr 14 25 + #define TARGET_NR_lremovexattr 15 26 + #define TARGET_NR_fremovexattr 16 27 + #define TARGET_NR_getcwd 17 28 + #define TARGET_NR_lookup_dcookie 18 29 + #define TARGET_NR_eventfd2 19 30 + #define TARGET_NR_epoll_create1 20 31 + #define TARGET_NR_epoll_ctl 21 32 + #define TARGET_NR_epoll_pwait 22 33 + #define TARGET_NR_dup 23 34 + #define TARGET_NR_dup3 24 35 + #define TARGET_NR_fcntl64 25 36 + #define TARGET_NR_inotify_init1 26 37 + #define TARGET_NR_inotify_add_watch 27 38 + #define TARGET_NR_inotify_rm_watch 28 39 + #define TARGET_NR_ioctl 29 40 + #define TARGET_NR_ioprio_set 30 41 + #define TARGET_NR_ioprio_get 31 42 + #define TARGET_NR_flock 32 43 + #define TARGET_NR_mknodat 33 44 + #define TARGET_NR_mkdirat 34 45 + #define TARGET_NR_unlinkat 35 46 + #define TARGET_NR_symlinkat 36 47 + #define TARGET_NR_linkat 37 48 + #define TARGET_NR_renameat 38 49 + #define TARGET_NR_umount2 39 50 + #define TARGET_NR_mount 40 51 + #define TARGET_NR_pivot_root 41 52 + #define TARGET_NR_nfsservctl 42 53 + #define TARGET_NR_statfs64 43 54 + #define TARGET_NR_fstatfs64 44 55 + #define TARGET_NR_truncate64 45 56 + #define TARGET_NR_ftruncate64 46 57 + #define TARGET_NR_fallocate 47 58 + #define TARGET_NR_faccessat 48 59 + #define TARGET_NR_chdir 49 60 + #define TARGET_NR_fchdir 50 61 + #define TARGET_NR_chroot 51 62 + #define TARGET_NR_fchmod 52 63 + #define TARGET_NR_fchmodat 53 64 + #define TARGET_NR_fchownat 54 65 + #define TARGET_NR_fchown 55 66 + #define TARGET_NR_openat 56 67 + #define TARGET_NR_close 57 68 + #define TARGET_NR_vhangup 58 69 + #define TARGET_NR_pipe2 59 70 + #define TARGET_NR_quotactl 60 71 + #define TARGET_NR_getdents64 61 72 + #define TARGET_NR_llseek 62 73 + #define TARGET_NR_read 63 74 + #define TARGET_NR_write 64 75 + #define TARGET_NR_readv 65 76 + #define TARGET_NR_writev 66 77 + #define TARGET_NR_pread64 67 78 + #define TARGET_NR_pwrite64 68 79 + #define TARGET_NR_preadv 69 80 + #define TARGET_NR_pwritev 70 81 + #define TARGET_NR_sendfile64 71 82 + #define TARGET_NR_pselect6 72 83 + #define TARGET_NR_ppoll 73 84 + #define TARGET_NR_signalfd4 74 85 + #define TARGET_NR_vmsplice 75 86 + #define TARGET_NR_splice 76 87 + #define TARGET_NR_tee 77 88 + #define TARGET_NR_readlinkat 78 89 + #define TARGET_NR_fstatat64 79 90 + #define TARGET_NR_fstat64 80 91 + #define TARGET_NR_sync 81 92 + #define TARGET_NR_fsync 82 93 + #define TARGET_NR_fdatasync 83 94 + #define TARGET_NR_sync_file_range 84 95 + #define TARGET_NR_timerfd_create 85 96 + #define TARGET_NR_timerfd_settime 86 97 + #define TARGET_NR_timerfd_gettime 87 98 + #define TARGET_NR_utimensat 88 99 + #define TARGET_NR_acct 89 100 + #define TARGET_NR_capget 90 101 + #define TARGET_NR_capset 91 102 + #define TARGET_NR_personality 92 103 + #define TARGET_NR_exit 93 104 + #define TARGET_NR_exit_group 94 105 + #define TARGET_NR_waitid 95 106 + #define TARGET_NR_set_tid_address 96 107 + #define TARGET_NR_unshare 97 108 + #define TARGET_NR_futex 98 109 + #define TARGET_NR_set_robust_list 99 110 + #define TARGET_NR_get_robust_list 100 111 + #define TARGET_NR_nanosleep 101 112 + #define TARGET_NR_getitimer 102 113 + #define TARGET_NR_setitimer 103 114 + #define TARGET_NR_kexec_load 104 115 + #define TARGET_NR_init_module 105 116 + #define TARGET_NR_delete_module 106 117 + #define TARGET_NR_timer_create 107 118 + #define TARGET_NR_timer_gettime 108 119 + #define TARGET_NR_timer_getoverrun 109 120 + #define TARGET_NR_timer_settime 110 121 + #define TARGET_NR_timer_delete 111 122 + #define TARGET_NR_clock_settime 112 123 + #define TARGET_NR_clock_gettime 113 124 + #define TARGET_NR_clock_getres 114 125 + #define TARGET_NR_clock_nanosleep 115 126 + #define TARGET_NR_syslog 116 127 + #define TARGET_NR_ptrace 117 128 + #define TARGET_NR_sched_setparam 118 129 + #define TARGET_NR_sched_setscheduler 119 130 + #define TARGET_NR_sched_getscheduler 120 131 + #define TARGET_NR_sched_getparam 121 132 + #define TARGET_NR_sched_setaffinity 122 133 + #define TARGET_NR_sched_getaffinity 123 134 + #define TARGET_NR_sched_yield 124 135 + #define TARGET_NR_sched_get_priority_max 125 136 + #define TARGET_NR_sched_get_priority_min 126 137 + #define TARGET_NR_sched_rr_get_interval 127 138 + #define TARGET_NR_restart_syscall 128 139 + #define TARGET_NR_kill 129 140 + #define TARGET_NR_tkill 130 141 + #define TARGET_NR_tgkill 131 142 + #define TARGET_NR_sigaltstack 132 143 + #define TARGET_NR_rt_sigsuspend 133 144 + #define TARGET_NR_rt_sigaction 134 145 + #define TARGET_NR_rt_sigprocmask 135 146 + #define TARGET_NR_rt_sigpending 136 147 + #define TARGET_NR_rt_sigtimedwait 137 148 + #define TARGET_NR_rt_sigqueueinfo 138 149 + #define TARGET_NR_rt_sigreturn 139 150 + #define TARGET_NR_setpriority 140 151 + #define TARGET_NR_getpriority 141 152 + #define TARGET_NR_reboot 142 153 + #define TARGET_NR_setregid 143 154 + #define TARGET_NR_setgid 144 155 + #define TARGET_NR_setreuid 145 156 + #define TARGET_NR_setuid 146 157 + #define TARGET_NR_setresuid 147 158 + #define TARGET_NR_getresuid 148 159 + #define TARGET_NR_setresgid 149 160 + #define TARGET_NR_getresgid 150 161 + #define TARGET_NR_setfsuid 151 162 + #define TARGET_NR_setfsgid 152 163 + #define TARGET_NR_times 153 164 + #define TARGET_NR_setpgid 154 165 + #define TARGET_NR_getpgid 155 166 + #define TARGET_NR_getsid 156 167 + #define TARGET_NR_setsid 157 168 + #define TARGET_NR_getgroups 158 169 + #define TARGET_NR_setgroups 159 170 + #define TARGET_NR_uname 160 171 + #define TARGET_NR_sethostname 161 172 + #define TARGET_NR_setdomainname 162 173 + #define TARGET_NR_getrlimit 163 174 + #define TARGET_NR_setrlimit 164 175 + #define TARGET_NR_getrusage 165 176 + #define TARGET_NR_umask 166 177 + #define TARGET_NR_prctl 167 178 + #define TARGET_NR_getcpu 168 179 + #define TARGET_NR_gettimeofday 169 180 + #define TARGET_NR_settimeofday 170 181 + #define TARGET_NR_adjtimex 171 182 + #define TARGET_NR_getpid 172 183 + #define TARGET_NR_getppid 173 184 + #define TARGET_NR_getuid 174 185 + #define TARGET_NR_geteuid 175 186 + #define TARGET_NR_getgid 176 187 + #define TARGET_NR_getegid 177 188 + #define TARGET_NR_gettid 178 189 + #define TARGET_NR_sysinfo 179 190 + #define TARGET_NR_mq_open 180 191 + #define TARGET_NR_mq_unlink 181 192 + #define TARGET_NR_mq_timedsend 182 193 + #define TARGET_NR_mq_timedreceive 183 194 + #define TARGET_NR_mq_notify 184 195 + #define TARGET_NR_mq_getsetattr 185 196 + #define TARGET_NR_msgget 186 197 + #define TARGET_NR_msgctl 187 198 + #define TARGET_NR_msgrcv 188 199 + #define TARGET_NR_msgsnd 189 200 + #define TARGET_NR_semget 190 201 + #define TARGET_NR_semctl 191 202 + #define TARGET_NR_semtimedop 192 203 + #define TARGET_NR_semop 193 204 + #define TARGET_NR_shmget 194 205 + #define TARGET_NR_shmctl 195 206 + #define TARGET_NR_shmat 196 207 + #define TARGET_NR_shmdt 197 208 + #define TARGET_NR_socket 198 209 + #define TARGET_NR_socketpair 199 210 + #define TARGET_NR_bind 200 211 + #define TARGET_NR_listen 201 212 + #define TARGET_NR_accept 202 213 + #define TARGET_NR_connect 203 214 + #define TARGET_NR_getsockname 204 215 + #define TARGET_NR_getpeername 205 216 + #define TARGET_NR_sendto 206 217 + #define TARGET_NR_recvfrom 207 218 + #define TARGET_NR_setsockopt 208 219 + #define TARGET_NR_getsockopt 209 220 + #define TARGET_NR_shutdown 210 221 + #define TARGET_NR_sendmsg 211 222 + #define TARGET_NR_recvmsg 212 223 + #define TARGET_NR_readahead 213 224 + #define TARGET_NR_brk 214 225 + #define TARGET_NR_munmap 215 226 + #define TARGET_NR_mremap 216 227 + #define TARGET_NR_add_key 217 228 + #define TARGET_NR_request_key 218 229 + #define TARGET_NR_keyctl 219 230 + #define TARGET_NR_clone 220 231 + #define TARGET_NR_execve 221 232 + #define TARGET_NR_mmap2 222 233 + #define TARGET_NR_fadvise64_64 223 234 + #define TARGET_NR_swapon 224 235 + #define TARGET_NR_swapoff 225 236 + #define TARGET_NR_mprotect 226 237 + #define TARGET_NR_msync 227 238 + #define TARGET_NR_mlock 228 239 + #define TARGET_NR_munlock 229 240 + #define TARGET_NR_mlockall 230 241 + #define TARGET_NR_munlockall 231 242 + #define TARGET_NR_mincore 232 243 + #define TARGET_NR_madvise 233 244 + #define TARGET_NR_remap_file_pages 234 245 + #define TARGET_NR_mbind 235 246 + #define TARGET_NR_get_mempolicy 236 247 + #define TARGET_NR_set_mempolicy 237 248 + #define TARGET_NR_migrate_pages 238 249 + #define TARGET_NR_move_pages 239 250 + #define TARGET_NR_rt_tgsigqueueinfo 240 251 + #define TARGET_NR_perf_event_open 241 252 + #define TARGET_NR_accept4 242 253 + #define TARGET_NR_recvmmsg 243 254 + #define TARGET_NR_arch_specific_syscall 244 255 + #define TARGET_NR_wait4 260 256 + #define TARGET_NR_prlimit64 261 257 + #define TARGET_NR_fanotify_init 262 258 + #define TARGET_NR_fanotify_mark 263 259 + #define TARGET_NR_name_to_handle_at 264 260 + #define TARGET_NR_open_by_handle_at 265 261 + #define TARGET_NR_clock_adjtime 266 262 + #define TARGET_NR_syncfs 267 263 + #define TARGET_NR_setns 268 264 + #define TARGET_NR_sendmmsg 269 265 + #define TARGET_NR_process_vm_readv 270 266 + #define TARGET_NR_process_vm_writev 271 267 + #define TARGET_NR_kcmp 272 268 + #define TARGET_NR_finit_module 273 269 + #define TARGET_NR_sched_setattr 274 270 + #define TARGET_NR_sched_getattr 275 271 + #define TARGET_NR_renameat2 276 272 + #define TARGET_NR_seccomp 277 273 + #define TARGET_NR_getrandom 278 274 + #define TARGET_NR_memfd_create 279 275 + #define TARGET_NR_bpf 280 276 + #define TARGET_NR_execveat 281 277 + #define TARGET_NR_userfaultfd 282 278 + #define TARGET_NR_membarrier 283 279 + #define TARGET_NR_mlock2 284 280 + #define TARGET_NR_copy_file_range 285 281 + #define TARGET_NR_preadv2 286 282 + #define TARGET_NR_pwritev2 287 283 + #define TARGET_NR_pkey_mprotect 288 284 + #define TARGET_NR_pkey_alloc 289 285 + #define TARGET_NR_pkey_free 290 286 + #define TARGET_NR_statx 291 287 + #define TARGET_NR_io_pgetevents 292 288 + #define TARGET_NR_rseq 293 289 + #define TARGET_NR_kexec_file_load 294 290 + #define TARGET_NR_clock_gettime64 403 291 + #define TARGET_NR_clock_settime64 404 292 + #define TARGET_NR_clock_adjtime64 405 293 + #define TARGET_NR_clock_getres_time64 406 294 + #define TARGET_NR_clock_nanosleep_time64 407 295 + #define TARGET_NR_timer_gettime64 408 296 + #define TARGET_NR_timer_settime64 409 297 + #define TARGET_NR_timerfd_gettime64 410 298 + #define TARGET_NR_timerfd_settime64 411 299 + #define TARGET_NR_utimensat_time64 412 300 + #define TARGET_NR_pselect6_time64 413 301 + #define TARGET_NR_ppoll_time64 414 302 + #define TARGET_NR_io_pgetevents_time64 416 303 + #define TARGET_NR_recvmmsg_time64 417 304 + #define TARGET_NR_mq_timedsend_time64 418 305 + #define TARGET_NR_mq_timedreceive_time64 419 306 + #define TARGET_NR_semtimedop_time64 420 307 + #define TARGET_NR_rt_sigtimedwait_time64 421 308 + #define TARGET_NR_futex_time64 422 309 + #define TARGET_NR_sched_rr_get_interval_time64 423 310 + #define TARGET_NR_pidfd_send_signal 424 311 + #define TARGET_NR_io_uring_setup 425 312 + #define TARGET_NR_io_uring_enter 426 313 + #define TARGET_NR_io_uring_register 427 314 + #define TARGET_NR_open_tree 428 315 + #define TARGET_NR_move_mount 429 316 + #define TARGET_NR_fsopen 430 317 + #define TARGET_NR_fsconfig 431 318 + #define TARGET_NR_fsmount 432 319 + #define TARGET_NR_fspick 433 320 + #define TARGET_NR_pidfd_open 434 321 + #define TARGET_NR_syscalls 436 333 322 334 - #endif 323 + #endif /* LINUX_USER_NIOS2_SYSCALL_NR_H */ 324 +
+61 -246
linux-user/openrisc/syscall_nr.h
··· 1 + /* 2 + * This file contains the system call numbers. 3 + * Do not modify. 4 + * This file is generated by scripts/gensyscalls.sh 5 + */ 1 6 #ifndef LINUX_USER_OPENRISC_SYSCALL_NR_H 2 7 #define LINUX_USER_OPENRISC_SYSCALL_NR_H 3 8 4 9 #define TARGET_NR_io_setup 0 10 + #define TARGET_NR_or1k_atomic TARGET_NR_arch_specific_syscall 5 11 #define TARGET_NR_io_destroy 1 6 12 #define TARGET_NR_io_submit 2 7 13 #define TARGET_NR_io_cancel 3 8 14 #define TARGET_NR_io_getevents 4 9 - 10 - /* fs/xattr.c */ 11 15 #define TARGET_NR_setxattr 5 12 16 #define TARGET_NR_lsetxattr 6 13 17 #define TARGET_NR_fsetxattr 7 ··· 20 24 #define TARGET_NR_removexattr 14 21 25 #define TARGET_NR_lremovexattr 15 22 26 #define TARGET_NR_fremovexattr 16 23 - 24 - /* fs/dcache.c */ 25 27 #define TARGET_NR_getcwd 17 26 - 27 - /* fs/cookies.c */ 28 28 #define TARGET_NR_lookup_dcookie 18 29 - 30 - /* fs/eventfd.c */ 31 29 #define TARGET_NR_eventfd2 19 32 - 33 - /* fs/eventpoll.c */ 34 30 #define TARGET_NR_epoll_create1 20 35 31 #define TARGET_NR_epoll_ctl 21 36 32 #define TARGET_NR_epoll_pwait 22 37 - 38 - /* fs/fcntl.c */ 39 33 #define TARGET_NR_dup 23 40 34 #define TARGET_NR_dup3 24 41 - #define TARGET_NR_3264_fcntl 25 42 - 43 - /* fs/inotify_user.c */ 35 + #define TARGET_NR_fcntl64 25 44 36 #define TARGET_NR_inotify_init1 26 45 37 #define TARGET_NR_inotify_add_watch 27 46 38 #define TARGET_NR_inotify_rm_watch 28 47 - 48 - /* fs/ioctl.c */ 49 39 #define TARGET_NR_ioctl 29 50 - 51 - /* fs/ioprio.c */ 52 40 #define TARGET_NR_ioprio_set 30 53 41 #define TARGET_NR_ioprio_get 31 54 - 55 - /* fs/locks.c */ 56 42 #define TARGET_NR_flock 32 57 - 58 - /* fs/namei.c */ 59 43 #define TARGET_NR_mknodat 33 60 44 #define TARGET_NR_mkdirat 34 61 45 #define TARGET_NR_unlinkat 35 62 46 #define TARGET_NR_symlinkat 36 63 47 #define TARGET_NR_linkat 37 64 48 #define TARGET_NR_renameat 38 65 - 66 - /* fs/namespace.c */ 67 49 #define TARGET_NR_umount2 39 68 50 #define TARGET_NR_mount 40 69 51 #define TARGET_NR_pivot_root 41 70 - 71 - /* fs/nfsctl.c */ 72 52 #define TARGET_NR_nfsservctl 42 73 - 74 - /* fs/open.c */ 75 - #define TARGET_NR_3264_statfs 43 76 - #define TARGET_NR_3264_fstatfs 44 77 - #define TARGET_NR_3264_truncate 45 78 - #define TARGET_NR_3264_ftruncate 46 79 - 53 + #define TARGET_NR_statfs64 43 54 + #define TARGET_NR_fstatfs64 44 55 + #define TARGET_NR_truncate64 45 56 + #define TARGET_NR_ftruncate64 46 80 57 #define TARGET_NR_fallocate 47 81 58 #define TARGET_NR_faccessat 48 82 59 #define TARGET_NR_chdir 49 ··· 89 66 #define TARGET_NR_openat 56 90 67 #define TARGET_NR_close 57 91 68 #define TARGET_NR_vhangup 58 92 - 93 - /* fs/pipe.c */ 94 69 #define TARGET_NR_pipe2 59 95 - 96 - /* fs/quota.c */ 97 70 #define TARGET_NR_quotactl 60 98 - 99 - /* fs/readdir.c */ 100 71 #define TARGET_NR_getdents64 61 101 - 102 - /* fs/read_write.c */ 103 - #define TARGET_NR_3264_lseek 62 72 + #define TARGET_NR_llseek 62 104 73 #define TARGET_NR_read 63 105 74 #define TARGET_NR_write 64 106 75 #define TARGET_NR_readv 65 ··· 109 78 #define TARGET_NR_pwrite64 68 110 79 #define TARGET_NR_preadv 69 111 80 #define TARGET_NR_pwritev 70 112 - 113 - /* fs/sendfile.c */ 114 - #define TARGET_NR_3264_sendfile 71 115 - 116 - /* fs/select.c */ 81 + #define TARGET_NR_sendfile64 71 117 82 #define TARGET_NR_pselect6 72 118 83 #define TARGET_NR_ppoll 73 119 - 120 - /* fs/signalfd.c */ 121 84 #define TARGET_NR_signalfd4 74 122 - 123 - /* fs/splice.c */ 124 85 #define TARGET_NR_vmsplice 75 125 86 #define TARGET_NR_splice 76 126 87 #define TARGET_NR_tee 77 127 - 128 - /* fs/stat.c */ 129 88 #define TARGET_NR_readlinkat 78 130 - #define TARGET_NR_3264_fstatat 79 131 - #define TARGET_NR_3264_fstat 80 132 - 133 - /* fs/sync.c */ 89 + #define TARGET_NR_fstatat64 79 90 + #define TARGET_NR_fstat64 80 134 91 #define TARGET_NR_sync 81 135 92 #define TARGET_NR_fsync 82 136 93 #define TARGET_NR_fdatasync 83 137 - 138 - #ifdef __ARCH_WANT_SYNC_FILE_RANGE2 139 - #define TARGET_NR_sync_file_range2 84 140 - #else 141 94 #define TARGET_NR_sync_file_range 84 142 - #endif 143 - 144 - /* fs/timerfd.c */ 145 95 #define TARGET_NR_timerfd_create 85 146 96 #define TARGET_NR_timerfd_settime 86 147 97 #define TARGET_NR_timerfd_gettime 87 148 - 149 - /* fs/utimes.c */ 150 98 #define TARGET_NR_utimensat 88 151 - 152 - /* kernel/acct.c */ 153 99 #define TARGET_NR_acct 89 154 - 155 - /* kernel/capability.c */ 156 100 #define TARGET_NR_capget 90 157 101 #define TARGET_NR_capset 91 158 - 159 - /* kernel/exec_domain.c */ 160 102 #define TARGET_NR_personality 92 161 - 162 - /* kernel/exit.c */ 163 103 #define TARGET_NR_exit 93 164 104 #define TARGET_NR_exit_group 94 165 105 #define TARGET_NR_waitid 95 166 - 167 - /* kernel/fork.c */ 168 106 #define TARGET_NR_set_tid_address 96 169 107 #define TARGET_NR_unshare 97 170 - 171 - /* kernel/futex.c */ 172 108 #define TARGET_NR_futex 98 173 109 #define TARGET_NR_set_robust_list 99 174 110 #define TARGET_NR_get_robust_list 100 175 - 176 - /* kernel/hrtimer.c */ 177 111 #define TARGET_NR_nanosleep 101 178 - 179 - /* kernel/itimer.c */ 180 112 #define TARGET_NR_getitimer 102 181 113 #define TARGET_NR_setitimer 103 182 - 183 - /* kernel/kexec.c */ 184 114 #define TARGET_NR_kexec_load 104 185 - 186 - /* kernel/module.c */ 187 115 #define TARGET_NR_init_module 105 188 116 #define TARGET_NR_delete_module 106 189 - 190 - /* kernel/posix-timers.c */ 191 117 #define TARGET_NR_timer_create 107 192 118 #define TARGET_NR_timer_gettime 108 193 119 #define TARGET_NR_timer_getoverrun 109 ··· 197 123 #define TARGET_NR_clock_gettime 113 198 124 #define TARGET_NR_clock_getres 114 199 125 #define TARGET_NR_clock_nanosleep 115 200 - 201 - /* kernel/printk.c */ 202 126 #define TARGET_NR_syslog 116 203 - 204 - /* kernel/ptrace.c */ 205 127 #define TARGET_NR_ptrace 117 206 - 207 - /* kernel/sched.c */ 208 128 #define TARGET_NR_sched_setparam 118 209 129 #define TARGET_NR_sched_setscheduler 119 210 130 #define TARGET_NR_sched_getscheduler 120 ··· 215 135 #define TARGET_NR_sched_get_priority_max 125 216 136 #define TARGET_NR_sched_get_priority_min 126 217 137 #define TARGET_NR_sched_rr_get_interval 127 218 - 219 - /* kernel/signal.c */ 220 138 #define TARGET_NR_restart_syscall 128 221 139 #define TARGET_NR_kill 129 222 140 #define TARGET_NR_tkill 130 ··· 229 147 #define TARGET_NR_rt_sigtimedwait 137 230 148 #define TARGET_NR_rt_sigqueueinfo 138 231 149 #define TARGET_NR_rt_sigreturn 139 232 - 233 - /* kernel/sys.c */ 234 150 #define TARGET_NR_setpriority 140 235 151 #define TARGET_NR_getpriority 141 236 152 #define TARGET_NR_reboot 142 ··· 260 176 #define TARGET_NR_umask 166 261 177 #define TARGET_NR_prctl 167 262 178 #define TARGET_NR_getcpu 168 263 - 264 - /* kernel/time.c */ 265 179 #define TARGET_NR_gettimeofday 169 266 180 #define TARGET_NR_settimeofday 170 267 181 #define TARGET_NR_adjtimex 171 268 - 269 - /* kernel/timer.c */ 270 182 #define TARGET_NR_getpid 172 271 183 #define TARGET_NR_getppid 173 272 184 #define TARGET_NR_getuid 174 ··· 275 187 #define TARGET_NR_getegid 177 276 188 #define TARGET_NR_gettid 178 277 189 #define TARGET_NR_sysinfo 179 278 - 279 - /* ipc/mqueue.c */ 280 190 #define TARGET_NR_mq_open 180 281 191 #define TARGET_NR_mq_unlink 181 282 192 #define TARGET_NR_mq_timedsend 182 283 193 #define TARGET_NR_mq_timedreceive 183 284 194 #define TARGET_NR_mq_notify 184 285 195 #define TARGET_NR_mq_getsetattr 185 286 - 287 - /* ipc/msg.c */ 288 196 #define TARGET_NR_msgget 186 289 197 #define TARGET_NR_msgctl 187 290 198 #define TARGET_NR_msgrcv 188 291 199 #define TARGET_NR_msgsnd 189 292 - 293 - /* ipc/sem.c */ 294 200 #define TARGET_NR_semget 190 295 201 #define TARGET_NR_semctl 191 296 202 #define TARGET_NR_semtimedop 192 297 203 #define TARGET_NR_semop 193 298 - 299 - /* ipc/shm.c */ 300 204 #define TARGET_NR_shmget 194 301 205 #define TARGET_NR_shmctl 195 302 206 #define TARGET_NR_shmat 196 303 207 #define TARGET_NR_shmdt 197 304 - 305 - /* net/socket.c */ 306 208 #define TARGET_NR_socket 198 307 209 #define TARGET_NR_socketpair 199 308 210 #define TARGET_NR_bind 200 ··· 318 220 #define TARGET_NR_shutdown 210 319 221 #define TARGET_NR_sendmsg 211 320 222 #define TARGET_NR_recvmsg 212 321 - 322 - /* mm/filemap.c */ 323 223 #define TARGET_NR_readahead 213 324 - 325 - /* mm/nommu.c, also with MMU */ 326 224 #define TARGET_NR_brk 214 327 225 #define TARGET_NR_munmap 215 328 226 #define TARGET_NR_mremap 216 329 - 330 - /* security/keys/keyctl.c */ 331 227 #define TARGET_NR_add_key 217 332 228 #define TARGET_NR_request_key 218 333 229 #define TARGET_NR_keyctl 219 334 - 335 - /* arch/example/kernel/sys_example.c */ 336 230 #define TARGET_NR_clone 220 337 231 #define TARGET_NR_execve 221 338 - 339 - #define TARGET_NR_3264_mmap 222 340 - /* mm/fadvise.c */ 341 - #define TARGET_NR_3264_fadvise64 223 342 - 343 - /* mm/, CONFIG_MMU only */ 344 - #ifndef __ARCH_NOMMU 232 + #define TARGET_NR_mmap2 222 233 + #define TARGET_NR_fadvise64_64 223 345 234 #define TARGET_NR_swapon 224 346 235 #define TARGET_NR_swapoff 225 347 236 #define TARGET_NR_mprotect 226 ··· 358 247 #define TARGET_NR_set_mempolicy 237 359 248 #define TARGET_NR_migrate_pages 238 360 249 #define TARGET_NR_move_pages 239 361 - #endif 362 - 363 250 #define TARGET_NR_rt_tgsigqueueinfo 240 364 251 #define TARGET_NR_perf_event_open 241 365 252 #define TARGET_NR_accept4 242 366 253 #define TARGET_NR_recvmmsg 243 367 - 368 - /* 369 - * Architectures may provide up to 16 syscalls of their own 370 - * starting with this value. 371 - */ 372 254 #define TARGET_NR_arch_specific_syscall 244 373 - 374 255 #define TARGET_NR_wait4 260 375 256 #define TARGET_NR_prlimit64 261 376 257 #define TARGET_NR_fanotify_init 262 377 258 #define TARGET_NR_fanotify_mark 263 378 - #define TARGET_NR_name_to_handle_at 264 379 - #define TARGET_NR_open_by_handle_at 265 259 + #define TARGET_NR_name_to_handle_at 264 260 + #define TARGET_NR_open_by_handle_at 265 380 261 #define TARGET_NR_clock_adjtime 266 381 262 #define TARGET_NR_syncfs 267 382 263 #define TARGET_NR_setns 268 ··· 397 278 #define TARGET_NR_membarrier 283 398 279 #define TARGET_NR_mlock2 284 399 280 #define TARGET_NR_copy_file_range 285 400 - 401 - /* 402 - * All syscalls below here should go away really, 403 - * these are provided for both review and as a porting 404 - * help for the C library version. 405 - * 406 - * Last chance: are any of these important enough to 407 - * enable by default? 408 - */ 409 - #define TARGET_NR_open 1024 410 - #define TARGET_NR_link 1025 411 - #define TARGET_NR_unlink 1026 412 - #define TARGET_NR_mknod 1027 413 - #define TARGET_NR_chmod 1028 414 - #define TARGET_NR_chown 1029 415 - #define TARGET_NR_mkdir 1030 416 - #define TARGET_NR_rmdir 1031 417 - #define TARGET_NR_lchown 1032 418 - #define TARGET_NR_access 1033 419 - #define TARGET_NR_rename 1034 420 - #define TARGET_NR_readlink 1035 421 - #define TARGET_NR_symlink 1036 422 - #define TARGET_NR_utimes 1037 423 - #define TARGET_NR_3264_stat 1038 424 - #define TARGET_NR_3264_lstat 1039 281 + #define TARGET_NR_preadv2 286 282 + #define TARGET_NR_pwritev2 287 283 + #define TARGET_NR_pkey_mprotect 288 284 + #define TARGET_NR_pkey_alloc 289 285 + #define TARGET_NR_pkey_free 290 286 + #define TARGET_NR_statx 291 287 + #define TARGET_NR_io_pgetevents 292 288 + #define TARGET_NR_rseq 293 289 + #define TARGET_NR_kexec_file_load 294 290 + #define TARGET_NR_clock_gettime64 403 291 + #define TARGET_NR_clock_settime64 404 292 + #define TARGET_NR_clock_adjtime64 405 293 + #define TARGET_NR_clock_getres_time64 406 294 + #define TARGET_NR_clock_nanosleep_time64 407 295 + #define TARGET_NR_timer_gettime64 408 296 + #define TARGET_NR_timer_settime64 409 297 + #define TARGET_NR_timerfd_gettime64 410 298 + #define TARGET_NR_timerfd_settime64 411 299 + #define TARGET_NR_utimensat_time64 412 300 + #define TARGET_NR_pselect6_time64 413 301 + #define TARGET_NR_ppoll_time64 414 302 + #define TARGET_NR_io_pgetevents_time64 416 303 + #define TARGET_NR_recvmmsg_time64 417 304 + #define TARGET_NR_mq_timedsend_time64 418 305 + #define TARGET_NR_mq_timedreceive_time64 419 306 + #define TARGET_NR_semtimedop_time64 420 307 + #define TARGET_NR_rt_sigtimedwait_time64 421 308 + #define TARGET_NR_futex_time64 422 309 + #define TARGET_NR_sched_rr_get_interval_time64 423 310 + #define TARGET_NR_pidfd_send_signal 424 311 + #define TARGET_NR_io_uring_setup 425 312 + #define TARGET_NR_io_uring_enter 426 313 + #define TARGET_NR_io_uring_register 427 314 + #define TARGET_NR_open_tree 428 315 + #define TARGET_NR_move_mount 429 316 + #define TARGET_NR_fsopen 430 317 + #define TARGET_NR_fsconfig 431 318 + #define TARGET_NR_fsmount 432 319 + #define TARGET_NR_fspick 433 320 + #define TARGET_NR_pidfd_open 434 321 + #define TARGET_NR_syscalls 436 425 322 426 - #define TARGET_NR_pipe 1040 427 - #define TARGET_NR_dup2 1041 428 - #define TARGET_NR_epoll_create 1042 429 - #define TARGET_NR_inotify_init 1043 430 - #define TARGET_NR_eventfd 1044 431 - #define TARGET_NR_signalfd 1045 323 + #endif /* LINUX_USER_OPENRISC_SYSCALL_NR_H */ 432 324 433 - #define TARGET_NR_sendfile 1046 434 - #define TARGET_NR_ftruncate 1047 435 - #define TARGET_NR_truncate 1048 436 - #define TARGET_NR_stat 1049 437 - #define TARGET_NR_lstat 1050 438 - #define TARGET_NR_fstat 1051 439 - #define TARGET_NR_fcntl 1052 440 - #define TARGET_NR_fadvise64 1053 441 - #define __ARCH_WANT_SYS_FADVISE64 442 - #define TARGET_NR_newfstatat 1054 443 - #define __ARCH_WANT_SYS_NEWFSTATAT 444 - #define TARGET_NR_fstatfs 1055 445 - #define TARGET_NR_statfs 1056 446 - #define TARGET_NR_lseek 1057 447 - #define TARGET_NR_mmap 1058 448 - 449 - #define TARGET_NR_alarm 1059 450 - #define __ARCH_WANT_SYS_ALARM 451 - #define TARGET_NR_getpgrp 1060 452 - #define __ARCH_WANT_SYS_GETPGRP 453 - #define TARGET_NR_pause 1061 454 - #define __ARCH_WANT_SYS_PAUSE 455 - #define TARGET_NR_time 1062 456 - #define __ARCH_WANT_SYS_TIME 457 - #define __ARCH_WANT_COMPAT_SYS_TIME 458 - #define TARGET_NR_utime 1063 459 - #define __ARCH_WANT_SYS_UTIME 460 - 461 - #define TARGET_NR_creat 1064 462 - #define TARGET_NR_getdents 1065 463 - #define __ARCH_WANT_SYS_GETDENTS 464 - #define TARGET_NR_futimesat 1066 465 - #define TARGET_NR_poll 1068 466 - #define TARGET_NR_epoll_wait 1069 467 - #define TARGET_NR_ustat 1070 468 - #define TARGET_NR_vfork 1071 469 - #define TARGET_NR_oldwait4 1072 470 - #define TARGET_NR_recv 1073 471 - #define TARGET_NR_send 1074 472 - #define TARGET_NR_bdflush 1075 473 - #define TARGET_NR_umount 1076 474 - #define __ARCH_WANT_SYS_OLDUMOUNT 475 - #define TARGET_NR_uselib 1077 476 - #define TARGET_NR__sysctl 1078 477 - 478 - #define TARGET_NR_fork 1079 479 - 480 - 481 - /* 482 - * 32 bit systems traditionally used different 483 - * syscalls for off_t and loff_t arguments, while 484 - * 64 bit systems only need the off_t version. 485 - * For new 32 bit platforms, there is no need to 486 - * implement the old 32 bit off_t syscalls, so 487 - * they take different names. 488 - * Here we map the numbers so that both versions 489 - * use the same syscall table layout. 490 - */ 491 - 492 - #define TARGET_NR_fcntl64 TARGET_NR_3264_fcntl 493 - #define TARGET_NR_statfs64 TARGET_NR_3264_statfs 494 - #define TARGET_NR_fstatfs64 TARGET_NR_3264_fstatfs 495 - #define TARGET_NR_truncate64 TARGET_NR_3264_truncate 496 - #define TARGET_NR_ftruncate64 TARGET_NR_3264_ftruncate 497 - #define TARGET_NR_llseek TARGET_NR_3264_lseek 498 - #define TARGET_NR_sendfile64 TARGET_NR_3264_sendfile 499 - #define TARGET_NR_fstatat64 TARGET_NR_3264_fstatat 500 - #define TARGET_NR_fstat64 TARGET_NR_3264_fstat 501 - #define TARGET_NR_mmap2 TARGET_NR_3264_mmap 502 - #define TARGET_NR_fadvise64_64 TARGET_NR_3264_fadvise64 503 - 504 - #ifdef TARGET_NR_3264_stat 505 - #define TARGET_NR_stat64 TARGET_NR_3264_stat 506 - #define TARGET_NR_lstat64 TARGET_NR_3264_lstat 507 - #endif 508 - 509 - #endif
+6
linux-user/ppc/Makefile.objs
··· 1 + generated-files-y += linux-user/$(TARGET_ABI_DIR)/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscallhdr.sh 4 + 5 + %/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall.tbl $(syshdr) 6 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+1 -1
linux-user/ppc/signal.c
··· 588 588 589 589 } 590 590 591 - #if !defined(TARGET_PPC64) 591 + #if !defined(TARGET_PPC64) || defined(TARGET_ABI32) 592 592 long do_sigreturn(CPUPPCState *env) 593 593 { 594 594 struct target_sigcontext *sc = NULL;
+521
linux-user/ppc/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for powerpc 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> <compat entry point> 7 + # 8 + # The <abi> can be common, spu, nospu, 64, or 32 for this file. 9 + # 10 + 0 nospu restart_syscall sys_restart_syscall 11 + 1 nospu exit sys_exit 12 + 2 nospu fork ppc_fork 13 + 3 common read sys_read 14 + 4 common write sys_write 15 + 5 common open sys_open compat_sys_open 16 + 6 common close sys_close 17 + 7 common waitpid sys_waitpid 18 + 8 common creat sys_creat 19 + 9 common link sys_link 20 + 10 common unlink sys_unlink 21 + 11 nospu execve sys_execve compat_sys_execve 22 + 12 common chdir sys_chdir 23 + 13 32 time sys_time32 24 + 13 64 time sys_time 25 + 13 spu time sys_time 26 + 14 common mknod sys_mknod 27 + 15 common chmod sys_chmod 28 + 16 common lchown sys_lchown 29 + 17 common break sys_ni_syscall 30 + 18 32 oldstat sys_stat sys_ni_syscall 31 + 18 64 oldstat sys_ni_syscall 32 + 18 spu oldstat sys_ni_syscall 33 + 19 common lseek sys_lseek compat_sys_lseek 34 + 20 common getpid sys_getpid 35 + 21 nospu mount sys_mount compat_sys_mount 36 + 22 32 umount sys_oldumount 37 + 22 64 umount sys_ni_syscall 38 + 22 spu umount sys_ni_syscall 39 + 23 common setuid sys_setuid 40 + 24 common getuid sys_getuid 41 + 25 32 stime sys_stime32 42 + 25 64 stime sys_stime 43 + 25 spu stime sys_stime 44 + 26 nospu ptrace sys_ptrace compat_sys_ptrace 45 + 27 common alarm sys_alarm 46 + 28 32 oldfstat sys_fstat sys_ni_syscall 47 + 28 64 oldfstat sys_ni_syscall 48 + 28 spu oldfstat sys_ni_syscall 49 + 29 nospu pause sys_pause 50 + 30 32 utime sys_utime32 51 + 30 64 utime sys_utime 52 + 31 common stty sys_ni_syscall 53 + 32 common gtty sys_ni_syscall 54 + 33 common access sys_access 55 + 34 common nice sys_nice 56 + 35 common ftime sys_ni_syscall 57 + 36 common sync sys_sync 58 + 37 common kill sys_kill 59 + 38 common rename sys_rename 60 + 39 common mkdir sys_mkdir 61 + 40 common rmdir sys_rmdir 62 + 41 common dup sys_dup 63 + 42 common pipe sys_pipe 64 + 43 common times sys_times compat_sys_times 65 + 44 common prof sys_ni_syscall 66 + 45 common brk sys_brk 67 + 46 common setgid sys_setgid 68 + 47 common getgid sys_getgid 69 + 48 nospu signal sys_signal 70 + 49 common geteuid sys_geteuid 71 + 50 common getegid sys_getegid 72 + 51 nospu acct sys_acct 73 + 52 nospu umount2 sys_umount 74 + 53 common lock sys_ni_syscall 75 + 54 common ioctl sys_ioctl compat_sys_ioctl 76 + 55 common fcntl sys_fcntl compat_sys_fcntl 77 + 56 common mpx sys_ni_syscall 78 + 57 common setpgid sys_setpgid 79 + 58 common ulimit sys_ni_syscall 80 + 59 32 oldolduname sys_olduname 81 + 59 64 oldolduname sys_ni_syscall 82 + 59 spu oldolduname sys_ni_syscall 83 + 60 common umask sys_umask 84 + 61 common chroot sys_chroot 85 + 62 nospu ustat sys_ustat compat_sys_ustat 86 + 63 common dup2 sys_dup2 87 + 64 common getppid sys_getppid 88 + 65 common getpgrp sys_getpgrp 89 + 66 common setsid sys_setsid 90 + 67 32 sigaction sys_sigaction compat_sys_sigaction 91 + 67 64 sigaction sys_ni_syscall 92 + 67 spu sigaction sys_ni_syscall 93 + 68 common sgetmask sys_sgetmask 94 + 69 common ssetmask sys_ssetmask 95 + 70 common setreuid sys_setreuid 96 + 71 common setregid sys_setregid 97 + 72 32 sigsuspend sys_sigsuspend 98 + 72 64 sigsuspend sys_ni_syscall 99 + 72 spu sigsuspend sys_ni_syscall 100 + 73 32 sigpending sys_sigpending compat_sys_sigpending 101 + 73 64 sigpending sys_ni_syscall 102 + 73 spu sigpending sys_ni_syscall 103 + 74 common sethostname sys_sethostname 104 + 75 common setrlimit sys_setrlimit compat_sys_setrlimit 105 + 76 32 getrlimit sys_old_getrlimit compat_sys_old_getrlimit 106 + 76 64 getrlimit sys_ni_syscall 107 + 76 spu getrlimit sys_ni_syscall 108 + 77 common getrusage sys_getrusage compat_sys_getrusage 109 + 78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 110 + 79 common settimeofday sys_settimeofday compat_sys_settimeofday 111 + 80 common getgroups sys_getgroups 112 + 81 common setgroups sys_setgroups 113 + 82 32 select ppc_select sys_ni_syscall 114 + 82 64 select sys_ni_syscall 115 + 82 spu select sys_ni_syscall 116 + 83 common symlink sys_symlink 117 + 84 32 oldlstat sys_lstat sys_ni_syscall 118 + 84 64 oldlstat sys_ni_syscall 119 + 84 spu oldlstat sys_ni_syscall 120 + 85 common readlink sys_readlink 121 + 86 nospu uselib sys_uselib 122 + 87 nospu swapon sys_swapon 123 + 88 nospu reboot sys_reboot 124 + 89 32 readdir sys_old_readdir compat_sys_old_readdir 125 + 89 64 readdir sys_ni_syscall 126 + 89 spu readdir sys_ni_syscall 127 + 90 common mmap sys_mmap 128 + 91 common munmap sys_munmap 129 + 92 common truncate sys_truncate compat_sys_truncate 130 + 93 common ftruncate sys_ftruncate compat_sys_ftruncate 131 + 94 common fchmod sys_fchmod 132 + 95 common fchown sys_fchown 133 + 96 common getpriority sys_getpriority 134 + 97 common setpriority sys_setpriority 135 + 98 common profil sys_ni_syscall 136 + 99 nospu statfs sys_statfs compat_sys_statfs 137 + 100 nospu fstatfs sys_fstatfs compat_sys_fstatfs 138 + 101 common ioperm sys_ni_syscall 139 + 102 common socketcall sys_socketcall compat_sys_socketcall 140 + 103 common syslog sys_syslog 141 + 104 common setitimer sys_setitimer compat_sys_setitimer 142 + 105 common getitimer sys_getitimer compat_sys_getitimer 143 + 106 common stat sys_newstat compat_sys_newstat 144 + 107 common lstat sys_newlstat compat_sys_newlstat 145 + 108 common fstat sys_newfstat compat_sys_newfstat 146 + 109 32 olduname sys_uname 147 + 109 64 olduname sys_ni_syscall 148 + 109 spu olduname sys_ni_syscall 149 + 110 common iopl sys_ni_syscall 150 + 111 common vhangup sys_vhangup 151 + 112 common idle sys_ni_syscall 152 + 113 common vm86 sys_ni_syscall 153 + 114 common wait4 sys_wait4 compat_sys_wait4 154 + 115 nospu swapoff sys_swapoff 155 + 116 common sysinfo sys_sysinfo compat_sys_sysinfo 156 + 117 nospu ipc sys_ipc compat_sys_ipc 157 + 118 common fsync sys_fsync 158 + 119 32 sigreturn sys_sigreturn compat_sys_sigreturn 159 + 119 64 sigreturn sys_ni_syscall 160 + 119 spu sigreturn sys_ni_syscall 161 + 120 nospu clone ppc_clone 162 + 121 common setdomainname sys_setdomainname 163 + 122 common uname sys_newuname 164 + 123 common modify_ldt sys_ni_syscall 165 + 124 32 adjtimex sys_adjtimex_time32 166 + 124 64 adjtimex sys_adjtimex 167 + 124 spu adjtimex sys_adjtimex 168 + 125 common mprotect sys_mprotect 169 + 126 32 sigprocmask sys_sigprocmask compat_sys_sigprocmask 170 + 126 64 sigprocmask sys_ni_syscall 171 + 126 spu sigprocmask sys_ni_syscall 172 + 127 common create_module sys_ni_syscall 173 + 128 nospu init_module sys_init_module 174 + 129 nospu delete_module sys_delete_module 175 + 130 common get_kernel_syms sys_ni_syscall 176 + 131 nospu quotactl sys_quotactl 177 + 132 common getpgid sys_getpgid 178 + 133 common fchdir sys_fchdir 179 + 134 common bdflush sys_bdflush 180 + 135 common sysfs sys_sysfs 181 + 136 32 personality sys_personality ppc64_personality 182 + 136 64 personality ppc64_personality 183 + 136 spu personality ppc64_personality 184 + 137 common afs_syscall sys_ni_syscall 185 + 138 common setfsuid sys_setfsuid 186 + 139 common setfsgid sys_setfsgid 187 + 140 common _llseek sys_llseek 188 + 141 common getdents sys_getdents compat_sys_getdents 189 + 142 common _newselect sys_select compat_sys_select 190 + 143 common flock sys_flock 191 + 144 common msync sys_msync 192 + 145 common readv sys_readv compat_sys_readv 193 + 146 common writev sys_writev compat_sys_writev 194 + 147 common getsid sys_getsid 195 + 148 common fdatasync sys_fdatasync 196 + 149 nospu _sysctl sys_sysctl compat_sys_sysctl 197 + 150 common mlock sys_mlock 198 + 151 common munlock sys_munlock 199 + 152 common mlockall sys_mlockall 200 + 153 common munlockall sys_munlockall 201 + 154 common sched_setparam sys_sched_setparam 202 + 155 common sched_getparam sys_sched_getparam 203 + 156 common sched_setscheduler sys_sched_setscheduler 204 + 157 common sched_getscheduler sys_sched_getscheduler 205 + 158 common sched_yield sys_sched_yield 206 + 159 common sched_get_priority_max sys_sched_get_priority_max 207 + 160 common sched_get_priority_min sys_sched_get_priority_min 208 + 161 32 sched_rr_get_interval sys_sched_rr_get_interval_time32 209 + 161 64 sched_rr_get_interval sys_sched_rr_get_interval 210 + 161 spu sched_rr_get_interval sys_sched_rr_get_interval 211 + 162 32 nanosleep sys_nanosleep_time32 212 + 162 64 nanosleep sys_nanosleep 213 + 162 spu nanosleep sys_nanosleep 214 + 163 common mremap sys_mremap 215 + 164 common setresuid sys_setresuid 216 + 165 common getresuid sys_getresuid 217 + 166 common query_module sys_ni_syscall 218 + 167 common poll sys_poll 219 + 168 common nfsservctl sys_ni_syscall 220 + 169 common setresgid sys_setresgid 221 + 170 common getresgid sys_getresgid 222 + 171 common prctl sys_prctl 223 + 172 nospu rt_sigreturn sys_rt_sigreturn compat_sys_rt_sigreturn 224 + 173 nospu rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 225 + 174 nospu rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 226 + 175 nospu rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 227 + 176 32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 228 + 176 64 rt_sigtimedwait sys_rt_sigtimedwait 229 + 177 nospu rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 230 + 178 nospu rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 231 + 179 common pread64 sys_pread64 compat_sys_pread64 232 + 180 common pwrite64 sys_pwrite64 compat_sys_pwrite64 233 + 181 common chown sys_chown 234 + 182 common getcwd sys_getcwd 235 + 183 common capget sys_capget 236 + 184 common capset sys_capset 237 + 185 nospu sigaltstack sys_sigaltstack compat_sys_sigaltstack 238 + 186 32 sendfile sys_sendfile compat_sys_sendfile 239 + 186 64 sendfile sys_sendfile64 240 + 186 spu sendfile sys_sendfile64 241 + 187 common getpmsg sys_ni_syscall 242 + 188 common putpmsg sys_ni_syscall 243 + 189 nospu vfork ppc_vfork 244 + 190 common ugetrlimit sys_getrlimit compat_sys_getrlimit 245 + 191 common readahead sys_readahead compat_sys_readahead 246 + 192 32 mmap2 sys_mmap2 compat_sys_mmap2 247 + 193 32 truncate64 sys_truncate64 compat_sys_truncate64 248 + 194 32 ftruncate64 sys_ftruncate64 compat_sys_ftruncate64 249 + 195 32 stat64 sys_stat64 250 + 196 32 lstat64 sys_lstat64 251 + 197 32 fstat64 sys_fstat64 252 + 198 nospu pciconfig_read sys_pciconfig_read 253 + 199 nospu pciconfig_write sys_pciconfig_write 254 + 200 nospu pciconfig_iobase sys_pciconfig_iobase 255 + 201 common multiplexer sys_ni_syscall 256 + 202 common getdents64 sys_getdents64 257 + 203 common pivot_root sys_pivot_root 258 + 204 32 fcntl64 sys_fcntl64 compat_sys_fcntl64 259 + 205 common madvise sys_madvise 260 + 206 common mincore sys_mincore 261 + 207 common gettid sys_gettid 262 + 208 common tkill sys_tkill 263 + 209 common setxattr sys_setxattr 264 + 210 common lsetxattr sys_lsetxattr 265 + 211 common fsetxattr sys_fsetxattr 266 + 212 common getxattr sys_getxattr 267 + 213 common lgetxattr sys_lgetxattr 268 + 214 common fgetxattr sys_fgetxattr 269 + 215 common listxattr sys_listxattr 270 + 216 common llistxattr sys_llistxattr 271 + 217 common flistxattr sys_flistxattr 272 + 218 common removexattr sys_removexattr 273 + 219 common lremovexattr sys_lremovexattr 274 + 220 common fremovexattr sys_fremovexattr 275 + 221 32 futex sys_futex_time32 276 + 221 64 futex sys_futex 277 + 221 spu futex sys_futex 278 + 222 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 279 + 223 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 280 + # 224 unused 281 + 225 common tuxcall sys_ni_syscall 282 + 226 32 sendfile64 sys_sendfile64 compat_sys_sendfile64 283 + 227 common io_setup sys_io_setup compat_sys_io_setup 284 + 228 common io_destroy sys_io_destroy 285 + 229 32 io_getevents sys_io_getevents_time32 286 + 229 64 io_getevents sys_io_getevents 287 + 229 spu io_getevents sys_io_getevents 288 + 230 common io_submit sys_io_submit compat_sys_io_submit 289 + 231 common io_cancel sys_io_cancel 290 + 232 nospu set_tid_address sys_set_tid_address 291 + 233 common fadvise64 sys_fadvise64 ppc32_fadvise64 292 + 234 nospu exit_group sys_exit_group 293 + 235 nospu lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 294 + 236 common epoll_create sys_epoll_create 295 + 237 common epoll_ctl sys_epoll_ctl 296 + 238 common epoll_wait sys_epoll_wait 297 + 239 common remap_file_pages sys_remap_file_pages 298 + 240 common timer_create sys_timer_create compat_sys_timer_create 299 + 241 32 timer_settime sys_timer_settime32 300 + 241 64 timer_settime sys_timer_settime 301 + 241 spu timer_settime sys_timer_settime 302 + 242 32 timer_gettime sys_timer_gettime32 303 + 242 64 timer_gettime sys_timer_gettime 304 + 242 spu timer_gettime sys_timer_gettime 305 + 243 common timer_getoverrun sys_timer_getoverrun 306 + 244 common timer_delete sys_timer_delete 307 + 245 32 clock_settime sys_clock_settime32 308 + 245 64 clock_settime sys_clock_settime 309 + 245 spu clock_settime sys_clock_settime 310 + 246 32 clock_gettime sys_clock_gettime32 311 + 246 64 clock_gettime sys_clock_gettime 312 + 246 spu clock_gettime sys_clock_gettime 313 + 247 32 clock_getres sys_clock_getres_time32 314 + 247 64 clock_getres sys_clock_getres 315 + 247 spu clock_getres sys_clock_getres 316 + 248 32 clock_nanosleep sys_clock_nanosleep_time32 317 + 248 64 clock_nanosleep sys_clock_nanosleep 318 + 248 spu clock_nanosleep sys_clock_nanosleep 319 + 249 32 swapcontext ppc_swapcontext ppc32_swapcontext 320 + 249 64 swapcontext ppc64_swapcontext 321 + 249 spu swapcontext sys_ni_syscall 322 + 250 common tgkill sys_tgkill 323 + 251 32 utimes sys_utimes_time32 324 + 251 64 utimes sys_utimes 325 + 251 spu utimes sys_utimes 326 + 252 common statfs64 sys_statfs64 compat_sys_statfs64 327 + 253 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 328 + 254 32 fadvise64_64 ppc_fadvise64_64 329 + 254 spu fadvise64_64 sys_ni_syscall 330 + 255 common rtas sys_rtas 331 + 256 32 sys_debug_setcontext sys_debug_setcontext sys_ni_syscall 332 + 256 64 sys_debug_setcontext sys_ni_syscall 333 + 256 spu sys_debug_setcontext sys_ni_syscall 334 + # 257 reserved for vserver 335 + 258 nospu migrate_pages sys_migrate_pages compat_sys_migrate_pages 336 + 259 nospu mbind sys_mbind compat_sys_mbind 337 + 260 nospu get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 338 + 261 nospu set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 339 + 262 nospu mq_open sys_mq_open compat_sys_mq_open 340 + 263 nospu mq_unlink sys_mq_unlink 341 + 264 32 mq_timedsend sys_mq_timedsend_time32 342 + 264 64 mq_timedsend sys_mq_timedsend 343 + 265 32 mq_timedreceive sys_mq_timedreceive_time32 344 + 265 64 mq_timedreceive sys_mq_timedreceive 345 + 266 nospu mq_notify sys_mq_notify compat_sys_mq_notify 346 + 267 nospu mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 347 + 268 nospu kexec_load sys_kexec_load compat_sys_kexec_load 348 + 269 nospu add_key sys_add_key 349 + 270 nospu request_key sys_request_key 350 + 271 nospu keyctl sys_keyctl compat_sys_keyctl 351 + 272 nospu waitid sys_waitid compat_sys_waitid 352 + 273 nospu ioprio_set sys_ioprio_set 353 + 274 nospu ioprio_get sys_ioprio_get 354 + 275 nospu inotify_init sys_inotify_init 355 + 276 nospu inotify_add_watch sys_inotify_add_watch 356 + 277 nospu inotify_rm_watch sys_inotify_rm_watch 357 + 278 nospu spu_run sys_spu_run 358 + 279 nospu spu_create sys_spu_create 359 + 280 32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 360 + 280 64 pselect6 sys_pselect6 361 + 281 32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32 362 + 281 64 ppoll sys_ppoll 363 + 282 common unshare sys_unshare 364 + 283 common splice sys_splice 365 + 284 common tee sys_tee 366 + 285 common vmsplice sys_vmsplice compat_sys_vmsplice 367 + 286 common openat sys_openat compat_sys_openat 368 + 287 common mkdirat sys_mkdirat 369 + 288 common mknodat sys_mknodat 370 + 289 common fchownat sys_fchownat 371 + 290 32 futimesat sys_futimesat_time32 372 + 290 64 futimesat sys_futimesat 373 + 290 spu utimesat sys_futimesat 374 + 291 32 fstatat64 sys_fstatat64 375 + 291 64 newfstatat sys_newfstatat 376 + 291 spu newfstatat sys_newfstatat 377 + 292 common unlinkat sys_unlinkat 378 + 293 common renameat sys_renameat 379 + 294 common linkat sys_linkat 380 + 295 common symlinkat sys_symlinkat 381 + 296 common readlinkat sys_readlinkat 382 + 297 common fchmodat sys_fchmodat 383 + 298 common faccessat sys_faccessat 384 + 299 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 385 + 300 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 386 + 301 common move_pages sys_move_pages compat_sys_move_pages 387 + 302 common getcpu sys_getcpu 388 + 303 nospu epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 389 + 304 32 utimensat sys_utimensat_time32 390 + 304 64 utimensat sys_utimensat 391 + 304 spu utimensat sys_utimensat 392 + 305 common signalfd sys_signalfd compat_sys_signalfd 393 + 306 common timerfd_create sys_timerfd_create 394 + 307 common eventfd sys_eventfd 395 + 308 common sync_file_range2 sys_sync_file_range2 compat_sys_sync_file_range2 396 + 309 nospu fallocate sys_fallocate compat_sys_fallocate 397 + 310 nospu subpage_prot sys_subpage_prot 398 + 311 32 timerfd_settime sys_timerfd_settime32 399 + 311 64 timerfd_settime sys_timerfd_settime 400 + 311 spu timerfd_settime sys_timerfd_settime 401 + 312 32 timerfd_gettime sys_timerfd_gettime32 402 + 312 64 timerfd_gettime sys_timerfd_gettime 403 + 312 spu timerfd_gettime sys_timerfd_gettime 404 + 313 common signalfd4 sys_signalfd4 compat_sys_signalfd4 405 + 314 common eventfd2 sys_eventfd2 406 + 315 common epoll_create1 sys_epoll_create1 407 + 316 common dup3 sys_dup3 408 + 317 common pipe2 sys_pipe2 409 + 318 nospu inotify_init1 sys_inotify_init1 410 + 319 common perf_event_open sys_perf_event_open 411 + 320 common preadv sys_preadv compat_sys_preadv 412 + 321 common pwritev sys_pwritev compat_sys_pwritev 413 + 322 nospu rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 414 + 323 nospu fanotify_init sys_fanotify_init 415 + 324 nospu fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 416 + 325 common prlimit64 sys_prlimit64 417 + 326 common socket sys_socket 418 + 327 common bind sys_bind 419 + 328 common connect sys_connect 420 + 329 common listen sys_listen 421 + 330 common accept sys_accept 422 + 331 common getsockname sys_getsockname 423 + 332 common getpeername sys_getpeername 424 + 333 common socketpair sys_socketpair 425 + 334 common send sys_send 426 + 335 common sendto sys_sendto 427 + 336 common recv sys_recv compat_sys_recv 428 + 337 common recvfrom sys_recvfrom compat_sys_recvfrom 429 + 338 common shutdown sys_shutdown 430 + 339 common setsockopt sys_setsockopt compat_sys_setsockopt 431 + 340 common getsockopt sys_getsockopt compat_sys_getsockopt 432 + 341 common sendmsg sys_sendmsg compat_sys_sendmsg 433 + 342 common recvmsg sys_recvmsg compat_sys_recvmsg 434 + 343 32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 435 + 343 64 recvmmsg sys_recvmmsg 436 + 343 spu recvmmsg sys_recvmmsg 437 + 344 common accept4 sys_accept4 438 + 345 common name_to_handle_at sys_name_to_handle_at 439 + 346 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 440 + 347 32 clock_adjtime sys_clock_adjtime32 441 + 347 64 clock_adjtime sys_clock_adjtime 442 + 347 spu clock_adjtime sys_clock_adjtime 443 + 348 common syncfs sys_syncfs 444 + 349 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 445 + 350 common setns sys_setns 446 + 351 nospu process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 447 + 352 nospu process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 448 + 353 nospu finit_module sys_finit_module 449 + 354 nospu kcmp sys_kcmp 450 + 355 common sched_setattr sys_sched_setattr 451 + 356 common sched_getattr sys_sched_getattr 452 + 357 common renameat2 sys_renameat2 453 + 358 common seccomp sys_seccomp 454 + 359 common getrandom sys_getrandom 455 + 360 common memfd_create sys_memfd_create 456 + 361 common bpf sys_bpf 457 + 362 nospu execveat sys_execveat compat_sys_execveat 458 + 363 32 switch_endian sys_ni_syscall 459 + 363 64 switch_endian ppc_switch_endian 460 + 363 spu switch_endian sys_ni_syscall 461 + 364 common userfaultfd sys_userfaultfd 462 + 365 common membarrier sys_membarrier 463 + # 366-377 originally left for IPC, now unused 464 + 378 nospu mlock2 sys_mlock2 465 + 379 nospu copy_file_range sys_copy_file_range 466 + 380 common preadv2 sys_preadv2 compat_sys_preadv2 467 + 381 common pwritev2 sys_pwritev2 compat_sys_pwritev2 468 + 382 nospu kexec_file_load sys_kexec_file_load 469 + 383 nospu statx sys_statx 470 + 384 nospu pkey_alloc sys_pkey_alloc 471 + 385 nospu pkey_free sys_pkey_free 472 + 386 nospu pkey_mprotect sys_pkey_mprotect 473 + 387 nospu rseq sys_rseq 474 + 388 32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 475 + 388 64 io_pgetevents sys_io_pgetevents 476 + # room for arch specific syscalls 477 + 392 64 semtimedop sys_semtimedop 478 + 393 common semget sys_semget 479 + 394 common semctl sys_semctl compat_sys_semctl 480 + 395 common shmget sys_shmget 481 + 396 common shmctl sys_shmctl compat_sys_shmctl 482 + 397 common shmat sys_shmat compat_sys_shmat 483 + 398 common shmdt sys_shmdt 484 + 399 common msgget sys_msgget 485 + 400 common msgsnd sys_msgsnd compat_sys_msgsnd 486 + 401 common msgrcv sys_msgrcv compat_sys_msgrcv 487 + 402 common msgctl sys_msgctl compat_sys_msgctl 488 + 403 32 clock_gettime64 sys_clock_gettime sys_clock_gettime 489 + 404 32 clock_settime64 sys_clock_settime sys_clock_settime 490 + 405 32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime 491 + 406 32 clock_getres_time64 sys_clock_getres sys_clock_getres 492 + 407 32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep 493 + 408 32 timer_gettime64 sys_timer_gettime sys_timer_gettime 494 + 409 32 timer_settime64 sys_timer_settime sys_timer_settime 495 + 410 32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime 496 + 411 32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime 497 + 412 32 utimensat_time64 sys_utimensat sys_utimensat 498 + 413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 499 + 414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 500 + 416 32 io_pgetevents_time64 sys_io_pgetevents sys_io_pgetevents 501 + 417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 502 + 418 32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend 503 + 419 32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive 504 + 420 32 semtimedop_time64 sys_semtimedop sys_semtimedop 505 + 421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 506 + 422 32 futex_time64 sys_futex sys_futex 507 + 423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval 508 + 424 common pidfd_send_signal sys_pidfd_send_signal 509 + 425 common io_uring_setup sys_io_uring_setup 510 + 426 common io_uring_enter sys_io_uring_enter 511 + 427 common io_uring_register sys_io_uring_register 512 + 428 common open_tree sys_open_tree 513 + 429 common move_mount sys_move_mount 514 + 430 common fsopen sys_fsopen 515 + 431 common fsconfig sys_fsconfig 516 + 432 common fsmount sys_fsmount 517 + 433 common fspick sys_fspick 518 + 434 common pidfd_open sys_pidfd_open 519 + 435 nospu clone3 ppc_clone3 520 + 437 common openat2 sys_openat2 521 + 438 common pidfd_getfd sys_pidfd_getfd
-402
linux-user/ppc/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_PPC_SYSCALL_NR_H 6 - #define LINUX_USER_PPC_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_restart_syscall 0 9 - #define TARGET_NR_exit 1 10 - #define TARGET_NR_fork 2 11 - #define TARGET_NR_read 3 12 - #define TARGET_NR_write 4 13 - #define TARGET_NR_open 5 14 - #define TARGET_NR_close 6 15 - #define TARGET_NR_waitpid 7 16 - #define TARGET_NR_creat 8 17 - #define TARGET_NR_link 9 18 - #define TARGET_NR_unlink 10 19 - #define TARGET_NR_execve 11 20 - #define TARGET_NR_chdir 12 21 - #define TARGET_NR_time 13 22 - #define TARGET_NR_mknod 14 23 - #define TARGET_NR_chmod 15 24 - #define TARGET_NR_lchown 16 25 - #define TARGET_NR_break 17 26 - #define TARGET_NR_oldstat 18 27 - #define TARGET_NR_lseek 19 28 - #define TARGET_NR_getpid 20 29 - #define TARGET_NR_mount 21 30 - #define TARGET_NR_umount 22 31 - #define TARGET_NR_setuid 23 32 - #define TARGET_NR_getuid 24 33 - #define TARGET_NR_stime 25 34 - #define TARGET_NR_ptrace 26 35 - #define TARGET_NR_alarm 27 36 - #define TARGET_NR_oldfstat 28 37 - #define TARGET_NR_pause 29 38 - #define TARGET_NR_utime 30 39 - #define TARGET_NR_stty 31 40 - #define TARGET_NR_gtty 32 41 - #define TARGET_NR_access 33 42 - #define TARGET_NR_nice 34 43 - #define TARGET_NR_ftime 35 44 - #define TARGET_NR_sync 36 45 - #define TARGET_NR_kill 37 46 - #define TARGET_NR_rename 38 47 - #define TARGET_NR_mkdir 39 48 - #define TARGET_NR_rmdir 40 49 - #define TARGET_NR_dup 41 50 - #define TARGET_NR_pipe 42 51 - #define TARGET_NR_times 43 52 - #define TARGET_NR_prof 44 53 - #define TARGET_NR_brk 45 54 - #define TARGET_NR_setgid 46 55 - #define TARGET_NR_getgid 47 56 - #define TARGET_NR_signal 48 57 - #define TARGET_NR_geteuid 49 58 - #define TARGET_NR_getegid 50 59 - #define TARGET_NR_acct 51 60 - #define TARGET_NR_umount2 52 61 - #define TARGET_NR_lock 53 62 - #define TARGET_NR_ioctl 54 63 - #define TARGET_NR_fcntl 55 64 - #define TARGET_NR_mpx 56 65 - #define TARGET_NR_setpgid 57 66 - #define TARGET_NR_ulimit 58 67 - #define TARGET_NR_oldolduname 59 68 - #define TARGET_NR_umask 60 69 - #define TARGET_NR_chroot 61 70 - #define TARGET_NR_ustat 62 71 - #define TARGET_NR_dup2 63 72 - #define TARGET_NR_getppid 64 73 - #define TARGET_NR_getpgrp 65 74 - #define TARGET_NR_setsid 66 75 - #define TARGET_NR_sigaction 67 76 - #define TARGET_NR_sgetmask 68 77 - #define TARGET_NR_ssetmask 69 78 - #define TARGET_NR_setreuid 70 79 - #define TARGET_NR_setregid 71 80 - #define TARGET_NR_sigsuspend 72 81 - #define TARGET_NR_sigpending 73 82 - #define TARGET_NR_sethostname 74 83 - #define TARGET_NR_setrlimit 75 84 - #define TARGET_NR_getrlimit 76 85 - #define TARGET_NR_getrusage 77 86 - #define TARGET_NR_gettimeofday 78 87 - #define TARGET_NR_settimeofday 79 88 - #define TARGET_NR_getgroups 80 89 - #define TARGET_NR_setgroups 81 90 - #define TARGET_NR_select 82 91 - #define TARGET_NR_symlink 83 92 - #define TARGET_NR_oldlstat 84 93 - #define TARGET_NR_readlink 85 94 - #define TARGET_NR_uselib 86 95 - #define TARGET_NR_swapon 87 96 - #define TARGET_NR_reboot 88 97 - #define TARGET_NR_readdir 89 98 - #define TARGET_NR_mmap 90 99 - #define TARGET_NR_munmap 91 100 - #define TARGET_NR_truncate 92 101 - #define TARGET_NR_ftruncate 93 102 - #define TARGET_NR_fchmod 94 103 - #define TARGET_NR_fchown 95 104 - #define TARGET_NR_getpriority 96 105 - #define TARGET_NR_setpriority 97 106 - #define TARGET_NR_profil 98 107 - #define TARGET_NR_statfs 99 108 - #define TARGET_NR_fstatfs 100 109 - #define TARGET_NR_ioperm 101 110 - #define TARGET_NR_socketcall 102 111 - #define TARGET_NR_syslog 103 112 - #define TARGET_NR_setitimer 104 113 - #define TARGET_NR_getitimer 105 114 - #define TARGET_NR_stat 106 115 - #define TARGET_NR_lstat 107 116 - #define TARGET_NR_fstat 108 117 - #define TARGET_NR_olduname 109 118 - #define TARGET_NR_iopl 110 119 - #define TARGET_NR_vhangup 111 120 - #define TARGET_NR_idle 112 121 - #define TARGET_NR_vm86 113 122 - #define TARGET_NR_wait4 114 123 - #define TARGET_NR_swapoff 115 124 - #define TARGET_NR_sysinfo 116 125 - #define TARGET_NR_ipc 117 126 - #define TARGET_NR_fsync 118 127 - #if !defined(TARGET_PPC64) 128 - #define TARGET_NR_sigreturn 119 129 - #endif 130 - #define TARGET_NR_clone 120 131 - #define TARGET_NR_setdomainname 121 132 - #define TARGET_NR_uname 122 133 - #define TARGET_NR_modify_ldt 123 134 - #define TARGET_NR_adjtimex 124 135 - #define TARGET_NR_mprotect 125 136 - #define TARGET_NR_sigprocmask 126 137 - #define TARGET_NR_create_module 127 138 - #define TARGET_NR_init_module 128 139 - #define TARGET_NR_delete_module 129 140 - #define TARGET_NR_get_kernel_syms 130 141 - #define TARGET_NR_quotactl 131 142 - #define TARGET_NR_getpgid 132 143 - #define TARGET_NR_fchdir 133 144 - #define TARGET_NR_bdflush 134 145 - #define TARGET_NR_sysfs 135 146 - #define TARGET_NR_personality 136 147 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 148 - #define TARGET_NR_setfsuid 138 149 - #define TARGET_NR_setfsgid 139 150 - #define TARGET_NR__llseek 140 151 - #define TARGET_NR_getdents 141 152 - #define TARGET_NR__newselect 142 153 - #define TARGET_NR_flock 143 154 - #define TARGET_NR_msync 144 155 - #define TARGET_NR_readv 145 156 - #define TARGET_NR_writev 146 157 - #define TARGET_NR_getsid 147 158 - #define TARGET_NR_fdatasync 148 159 - #define TARGET_NR__sysctl 149 160 - #define TARGET_NR_mlock 150 161 - #define TARGET_NR_munlock 151 162 - #define TARGET_NR_mlockall 152 163 - #define TARGET_NR_munlockall 153 164 - #define TARGET_NR_sched_setparam 154 165 - #define TARGET_NR_sched_getparam 155 166 - #define TARGET_NR_sched_setscheduler 156 167 - #define TARGET_NR_sched_getscheduler 157 168 - #define TARGET_NR_sched_yield 158 169 - #define TARGET_NR_sched_get_priority_max 159 170 - #define TARGET_NR_sched_get_priority_min 160 171 - #define TARGET_NR_sched_rr_get_interval 161 172 - #define TARGET_NR_nanosleep 162 173 - #define TARGET_NR_mremap 163 174 - #define TARGET_NR_setresuid32 164 175 - #define TARGET_NR_getresuid32 165 176 - #define TARGET_NR_query_module 166 177 - #define TARGET_NR_poll 167 178 - #define TARGET_NR_nfsservctl 168 179 - #define TARGET_NR_setresgid32 169 180 - #define TARGET_NR_getresgid32 170 181 - #define TARGET_NR_prctl 171 182 - #define TARGET_NR_rt_sigreturn 172 183 - #define TARGET_NR_rt_sigaction 173 184 - #define TARGET_NR_rt_sigprocmask 174 185 - #define TARGET_NR_rt_sigpending 175 186 - #define TARGET_NR_rt_sigtimedwait 176 187 - #define TARGET_NR_rt_sigqueueinfo 177 188 - #define TARGET_NR_rt_sigsuspend 178 189 - #define TARGET_NR_pread64 179 190 - #define TARGET_NR_pwrite64 180 191 - #define TARGET_NR_chown 181 192 - #define TARGET_NR_getcwd 182 193 - #define TARGET_NR_capget 183 194 - #define TARGET_NR_capset 184 195 - #define TARGET_NR_sigaltstack 185 196 - #define TARGET_NR_sendfile 186 197 - #define TARGET_NR_getpmsg 187 /* some people actually want streams */ 198 - #define TARGET_NR_putpmsg 188 /* some people actually want streams */ 199 - #define TARGET_NR_vfork 189 200 - #define TARGET_NR_ugetrlimit 190 /* SuS compliant getrlimit */ 201 - #define TARGET_NR_readahead 191 202 - #if !defined(TARGET_PPC64) || defined(TARGET_ABI32) 203 - #define TARGET_NR_mmap2 192 204 - #define TARGET_NR_truncate64 193 205 - #define TARGET_NR_ftruncate64 194 206 - #define TARGET_NR_stat64 195 207 - #define TARGET_NR_lstat64 196 208 - #define TARGET_NR_fstat64 197 209 - #endif 210 - #define TARGET_NR_pciconfig_read 198 211 - #define TARGET_NR_pciconfig_write 199 212 - #define TARGET_NR_pciconfig_iobase 200 213 - #define TARGET_NR_multiplexer 201 214 - #define TARGET_NR_getdents64 202 215 - #define TARGET_NR_pivot_root 203 216 - #if !defined(TARGET_PPC64) || defined(TARGET_ABI32) 217 - #define TARGET_NR_fcntl64 204 218 - #endif 219 - #define TARGET_NR_madvise 205 220 - #define TARGET_NR_mincore 206 221 - #define TARGET_NR_gettid 207 222 - #define TARGET_NR_tkill 208 223 - #define TARGET_NR_setxattr 209 224 - #define TARGET_NR_lsetxattr 210 225 - #define TARGET_NR_fsetxattr 211 226 - #define TARGET_NR_getxattr 212 227 - #define TARGET_NR_lgetxattr 213 228 - #define TARGET_NR_fgetxattr 214 229 - #define TARGET_NR_listxattr 215 230 - #define TARGET_NR_llistxattr 216 231 - #define TARGET_NR_flistxattr 217 232 - #define TARGET_NR_removexattr 218 233 - #define TARGET_NR_lremovexattr 219 234 - #define TARGET_NR_fremovexattr 220 235 - #define TARGET_NR_futex 221 236 - #define TARGET_NR_sched_setaffinity 222 237 - #define TARGET_NR_sched_getaffinity 223 238 - /* 224 currently unused */ 239 - #define TARGET_NR_tuxcall 225 240 - #if !defined(TARGET_PPC64) || defined(TARGET_ABI32) 241 - #define TARGET_NR_sendfile64 226 242 - #endif 243 - #define TARGET_NR_io_setup 227 244 - #define TARGET_NR_io_destroy 228 245 - #define TARGET_NR_io_getevents 229 246 - #define TARGET_NR_io_submit 230 247 - #define TARGET_NR_io_cancel 231 248 - #define TARGET_NR_set_tid_address 232 249 - #define TARGET_NR_fadvise64 233 250 - #define TARGET_NR_exit_group 234 251 - #define TARGET_NR_lookup_dcookie 235 252 - #define TARGET_NR_epoll_create 236 253 - #define TARGET_NR_epoll_ctl 237 254 - #define TARGET_NR_epoll_wait 238 255 - #define TARGET_NR_remap_file_pages 239 256 - #define TARGET_NR_timer_create 240 257 - #define TARGET_NR_timer_settime 241 258 - #define TARGET_NR_timer_gettime 242 259 - #define TARGET_NR_timer_getoverrun 243 260 - #define TARGET_NR_timer_delete 244 261 - #define TARGET_NR_clock_settime 245 262 - #define TARGET_NR_clock_gettime 246 263 - #define TARGET_NR_clock_getres 247 264 - #define TARGET_NR_clock_nanosleep 248 265 - #define TARGET_NR_swapcontext 249 266 - #define TARGET_NR_tgkill 250 267 - #define TARGET_NR_utimes 251 268 - #define TARGET_NR_statfs64 252 269 - #define TARGET_NR_fstatfs64 253 270 - #if !defined(TARGET_PPC64) || defined(TARGET_ABI32) 271 - #define TARGET_NR_fadvise64_64 254 272 - #endif 273 - #define TARGET_NR_rtas 255 274 - #define TARGET_NR_sys_debug_setcontext 256 275 - /* Number 257 is reserved for vserver */ 276 - #define TARGET_NR_migrate_pages 258 277 - #define TARGET_NR_mbind 259 278 - #define TARGET_NR_get_mempolicy 260 279 - #define TARGET_NR_set_mempolicy 261 280 - #define TARGET_NR_mq_open 262 281 - #define TARGET_NR_mq_unlink 263 282 - #define TARGET_NR_mq_timedsend 264 283 - #define TARGET_NR_mq_timedreceive 265 284 - #define TARGET_NR_mq_notify 266 285 - #define TARGET_NR_mq_getsetattr 267 286 - #define TARGET_NR_kexec_load 268 287 - #define TARGET_NR_add_key 269 288 - #define TARGET_NR_request_key 270 289 - #define TARGET_NR_keyctl 271 290 - #define TARGET_NR_waitid 272 291 - #define TARGET_NR_ioprio_set 273 292 - #define TARGET_NR_ioprio_get 274 293 - #define TARGET_NR_inotify_init 275 294 - #define TARGET_NR_inotify_add_watch 276 295 - #define TARGET_NR_inotify_rm_watch 277 296 - #define TARGET_NR_spu_run 278 297 - #define TARGET_NR_spu_create 279 298 - #define TARGET_NR_pselect6 280 299 - #define TARGET_NR_ppoll 281 300 - #define TARGET_NR_unshare 282 301 - #define TARGET_NR_splice 283 302 - #define TARGET_NR_tee 284 303 - #define TARGET_NR_vmsplice 285 304 - #define TARGET_NR_openat 286 305 - #define TARGET_NR_mkdirat 287 306 - #define TARGET_NR_mknodat 288 307 - #define TARGET_NR_fchownat 289 308 - #define TARGET_NR_futimesat 290 309 - #if defined(TARGET_PPC64) && !defined(TARGET_ABI32) 310 - #define TARGET_NR_newfstatat 291 311 - #else 312 - #define TARGET_NR_fstatat64 291 313 - #endif 314 - #define TARGET_NR_unlinkat 292 315 - #define TARGET_NR_renameat 293 316 - #define TARGET_NR_linkat 294 317 - #define TARGET_NR_symlinkat 295 318 - #define TARGET_NR_readlinkat 296 319 - #define TARGET_NR_fchmodat 297 320 - #define TARGET_NR_faccessat 298 321 - #define TARGET_NR_get_robust_list 299 322 - #define TARGET_NR_set_robust_list 300 323 - #define TARGET_NR_move_pages 301 324 - #define TARGET_NR_getcpu 302 325 - #define TARGET_NR_epoll_pwait 303 326 - #define TARGET_NR_utimensat 304 327 - #define TARGET_NR_signalfd 305 328 - #define TARGET_NR_timerfd_create 306 329 - #define TARGET_NR_eventfd 307 330 - #define TARGET_NR_sync_file_range2 308 331 - #define TARGET_NR_fallocate 309 332 - #define TARGET_NR_subpage_prot 310 333 - #define TARGET_NR_timerfd_settime 311 334 - #define TARGET_NR_timerfd_gettime 312 335 - #define TARGET_NR_signalfd4 313 336 - #define TARGET_NR_eventfd2 314 337 - #define TARGET_NR_epoll_create1 315 338 - #define TARGET_NR_dup3 316 339 - #define TARGET_NR_pipe2 317 340 - #define TARGET_NR_inotify_init1 318 341 - #define TARGET_NR_perf_event_open 319 342 - #define TARGET_NR_preadv 320 343 - #define TARGET_NR_pwritev 321 344 - #define TARGET_NR_rt_tgsigqueueinfo 322 345 - #define TARGET_NR_fanotify_init 323 346 - #define TARGET_NR_fanotify_mark 324 347 - #define TARGET_NR_prlimit64 325 348 - #define TARGET_NR_socket 326 349 - #define TARGET_NR_bind 327 350 - #define TARGET_NR_connect 328 351 - #define TARGET_NR_listen 329 352 - #define TARGET_NR_accept 330 353 - #define TARGET_NR_getsockname 331 354 - #define TARGET_NR_getpeername 332 355 - #define TARGET_NR_socketpair 333 356 - #define TARGET_NR_send 334 357 - #define TARGET_NR_sendto 335 358 - #define TARGET_NR_recv 336 359 - #define TARGET_NR_recvfrom 337 360 - #define TARGET_NR_shutdown 338 361 - #define TARGET_NR_setsockopt 339 362 - #define TARGET_NR_getsockopt 340 363 - #define TARGET_NR_sendmsg 341 364 - #define TARGET_NR_recvmsg 342 365 - #define TARGET_NR_recvmmsg 343 366 - #define TARGET_NR_accept4 344 367 - #define TARGET_NR_name_to_handle_at 345 368 - #define TARGET_NR_open_by_handle_at 346 369 - #define TARGET_NR_clock_adjtime 347 370 - #define TARGET_NR_syncfs 348 371 - #define TARGET_NR_sendmmsg 349 372 - #define TARGET_NR_setns 350 373 - #define TARGET_NR_process_vm_readv 351 374 - #define TARGET_NR_process_vm_writev 352 375 - #define TARGET_NR_finit_module 353 376 - #define TARGET_NR_kcmp 354 377 - #define TARGET_NR_sched_setattr 355 378 - #define TARGET_NR_sched_getattr 356 379 - #define TARGET_NR_renameat2 357 380 - #define TARGET_NR_seccomp 358 381 - #define TARGET_NR_getrandom 359 382 - #define TARGET_NR_memfd_create 360 383 - #define TARGET_NR_bpf 361 384 - #define TARGET_NR_execveat 362 385 - #define TARGET_NR_switch_endian 363 386 - #define TARGET_NR_userfaultfd 364 387 - #define TARGET_NR_membarrier 365 388 - #define TARGET_NR_semop 366 389 - #define TARGET_NR_semget 367 390 - #define TARGET_NR_semctl 368 391 - #define TARGET_NR_semtimedop 369 392 - #define TARGET_NR_msgsnd 370 393 - #define TARGET_NR_msgrcv 371 394 - #define TARGET_NR_msgget 372 395 - #define TARGET_NR_msgctl 373 396 - #define TARGET_NR_shmat 374 397 - #define TARGET_NR_shmdt 375 398 - #define TARGET_NR_shmget 376 399 - #define TARGET_NR_shmctl 377 400 - #define TARGET_NR_mlock2 378 401 - 402 - #endif
+34
linux-user/ppc/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_PPC_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + while read nr abi name entry compat ; do 19 + if [ "$entry" = "sys_ni_syscall" ] ; then 20 + continue 21 + fi 22 + if [ -z "$offset" ]; then 23 + printf "#define TARGET_NR_%s%s\t%s\n" \ 24 + "${prefix}" "${name}" "${nr}" 25 + else 26 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 27 + "${prefix}" "${name}" "${offset}" "${nr}" 28 + fi 29 + done 30 + 31 + printf "\n" 32 + printf "#endif /* %s */" "${fileguard}" 33 + printf "\n" 34 + ) > "$out"
+295
linux-user/riscv/syscall32_nr.h
··· 1 + /* 2 + * This file contains the system call numbers. 3 + */ 4 + #ifndef LINUX_USER_RISCV_SYSCALL32_NR_H 5 + #define LINUX_USER_RISCV_SYSCALL32_NR_H 6 + 7 + #define TARGET_NR_io_setup 0 8 + #define TARGET_NR_io_destroy 1 9 + #define TARGET_NR_io_submit 2 10 + #define TARGET_NR_io_cancel 3 11 + #define TARGET_NR_setxattr 5 12 + #define TARGET_NR_lsetxattr 6 13 + #define TARGET_NR_fsetxattr 7 14 + #define TARGET_NR_getxattr 8 15 + #define TARGET_NR_lgetxattr 9 16 + #define TARGET_NR_fgetxattr 10 17 + #define TARGET_NR_listxattr 11 18 + #define TARGET_NR_llistxattr 12 19 + #define TARGET_NR_flistxattr 13 20 + #define TARGET_NR_removexattr 14 21 + #define TARGET_NR_lremovexattr 15 22 + #define TARGET_NR_fremovexattr 16 23 + #define TARGET_NR_getcwd 17 24 + #define TARGET_NR_lookup_dcookie 18 25 + #define TARGET_NR_eventfd2 19 26 + #define TARGET_NR_epoll_create1 20 27 + #define TARGET_NR_epoll_ctl 21 28 + #define TARGET_NR_epoll_pwait 22 29 + #define TARGET_NR_dup 23 30 + #define TARGET_NR_dup3 24 31 + #define TARGET_NR_fcntl64 25 32 + #define TARGET_NR_inotify_init1 26 33 + #define TARGET_NR_inotify_add_watch 27 34 + #define TARGET_NR_inotify_rm_watch 28 35 + #define TARGET_NR_ioctl 29 36 + #define TARGET_NR_ioprio_set 30 37 + #define TARGET_NR_ioprio_get 31 38 + #define TARGET_NR_flock 32 39 + #define TARGET_NR_mknodat 33 40 + #define TARGET_NR_mkdirat 34 41 + #define TARGET_NR_unlinkat 35 42 + #define TARGET_NR_symlinkat 36 43 + #define TARGET_NR_linkat 37 44 + #define TARGET_NR_umount2 39 45 + #define TARGET_NR_mount 40 46 + #define TARGET_NR_pivot_root 41 47 + #define TARGET_NR_nfsservctl 42 48 + #define TARGET_NR_statfs64 43 49 + #define TARGET_NR_fstatfs64 44 50 + #define TARGET_NR_truncate64 45 51 + #define TARGET_NR_ftruncate64 46 52 + #define TARGET_NR_fallocate 47 53 + #define TARGET_NR_faccessat 48 54 + #define TARGET_NR_chdir 49 55 + #define TARGET_NR_fchdir 50 56 + #define TARGET_NR_chroot 51 57 + #define TARGET_NR_fchmod 52 58 + #define TARGET_NR_fchmodat 53 59 + #define TARGET_NR_fchownat 54 60 + #define TARGET_NR_fchown 55 61 + #define TARGET_NR_openat 56 62 + #define TARGET_NR_close 57 63 + #define TARGET_NR_vhangup 58 64 + #define TARGET_NR_pipe2 59 65 + #define TARGET_NR_quotactl 60 66 + #define TARGET_NR_getdents64 61 67 + #define TARGET_NR_llseek 62 68 + #define TARGET_NR_read 63 69 + #define TARGET_NR_write 64 70 + #define TARGET_NR_readv 65 71 + #define TARGET_NR_writev 66 72 + #define TARGET_NR_pread64 67 73 + #define TARGET_NR_pwrite64 68 74 + #define TARGET_NR_preadv 69 75 + #define TARGET_NR_pwritev 70 76 + #define TARGET_NR_sendfile64 71 77 + #define TARGET_NR_signalfd4 74 78 + #define TARGET_NR_vmsplice 75 79 + #define TARGET_NR_splice 76 80 + #define TARGET_NR_tee 77 81 + #define TARGET_NR_readlinkat 78 82 + #define TARGET_NR_fstatat64 79 83 + #define TARGET_NR_fstat64 80 84 + #define TARGET_NR_sync 81 85 + #define TARGET_NR_fsync 82 86 + #define TARGET_NR_fdatasync 83 87 + #define TARGET_NR_sync_file_range 84 88 + #define TARGET_NR_timerfd_create 85 89 + #define TARGET_NR_acct 89 90 + #define TARGET_NR_capget 90 91 + #define TARGET_NR_capset 91 92 + #define TARGET_NR_personality 92 93 + #define TARGET_NR_exit 93 94 + #define TARGET_NR_exit_group 94 95 + #define TARGET_NR_waitid 95 96 + #define TARGET_NR_set_tid_address 96 97 + #define TARGET_NR_unshare 97 98 + #define TARGET_NR_set_robust_list 99 99 + #define TARGET_NR_get_robust_list 100 100 + #define TARGET_NR_getitimer 102 101 + #define TARGET_NR_setitimer 103 102 + #define TARGET_NR_kexec_load 104 103 + #define TARGET_NR_init_module 105 104 + #define TARGET_NR_delete_module 106 105 + #define TARGET_NR_timer_create 107 106 + #define TARGET_NR_timer_getoverrun 109 107 + #define TARGET_NR_timer_delete 111 108 + #define TARGET_NR_syslog 116 109 + #define TARGET_NR_ptrace 117 110 + #define TARGET_NR_sched_setparam 118 111 + #define TARGET_NR_sched_setscheduler 119 112 + #define TARGET_NR_sched_getscheduler 120 113 + #define TARGET_NR_sched_getparam 121 114 + #define TARGET_NR_sched_setaffinity 122 115 + #define TARGET_NR_sched_getaffinity 123 116 + #define TARGET_NR_sched_yield 124 117 + #define TARGET_NR_sched_get_priority_max 125 118 + #define TARGET_NR_sched_get_priority_min 126 119 + #define TARGET_NR_restart_syscall 128 120 + #define TARGET_NR_kill 129 121 + #define TARGET_NR_tkill 130 122 + #define TARGET_NR_tgkill 131 123 + #define TARGET_NR_sigaltstack 132 124 + #define TARGET_NR_rt_sigsuspend 133 125 + #define TARGET_NR_rt_sigaction 134 126 + #define TARGET_NR_rt_sigprocmask 135 127 + #define TARGET_NR_rt_sigpending 136 128 + #define TARGET_NR_rt_sigqueueinfo 138 129 + #define TARGET_NR_rt_sigreturn 139 130 + #define TARGET_NR_setpriority 140 131 + #define TARGET_NR_getpriority 141 132 + #define TARGET_NR_reboot 142 133 + #define TARGET_NR_setregid 143 134 + #define TARGET_NR_setgid 144 135 + #define TARGET_NR_setreuid 145 136 + #define TARGET_NR_setuid 146 137 + #define TARGET_NR_setresuid 147 138 + #define TARGET_NR_getresuid 148 139 + #define TARGET_NR_setresgid 149 140 + #define TARGET_NR_getresgid 150 141 + #define TARGET_NR_setfsuid 151 142 + #define TARGET_NR_setfsgid 152 143 + #define TARGET_NR_times 153 144 + #define TARGET_NR_setpgid 154 145 + #define TARGET_NR_getpgid 155 146 + #define TARGET_NR_getsid 156 147 + #define TARGET_NR_setsid 157 148 + #define TARGET_NR_getgroups 158 149 + #define TARGET_NR_setgroups 159 150 + #define TARGET_NR_uname 160 151 + #define TARGET_NR_sethostname 161 152 + #define TARGET_NR_setdomainname 162 153 + #define TARGET_NR_getrlimit 163 154 + #define TARGET_NR_setrlimit 164 155 + #define TARGET_NR_getrusage 165 156 + #define TARGET_NR_umask 166 157 + #define TARGET_NR_prctl 167 158 + #define TARGET_NR_getcpu 168 159 + #define TARGET_NR_getpid 172 160 + #define TARGET_NR_getppid 173 161 + #define TARGET_NR_getuid 174 162 + #define TARGET_NR_geteuid 175 163 + #define TARGET_NR_getgid 176 164 + #define TARGET_NR_getegid 177 165 + #define TARGET_NR_gettid 178 166 + #define TARGET_NR_sysinfo 179 167 + #define TARGET_NR_mq_open 180 168 + #define TARGET_NR_mq_unlink 181 169 + #define TARGET_NR_mq_notify 184 170 + #define TARGET_NR_mq_getsetattr 185 171 + #define TARGET_NR_msgget 186 172 + #define TARGET_NR_msgctl 187 173 + #define TARGET_NR_msgrcv 188 174 + #define TARGET_NR_msgsnd 189 175 + #define TARGET_NR_semget 190 176 + #define TARGET_NR_semctl 191 177 + #define TARGET_NR_semop 193 178 + #define TARGET_NR_shmget 194 179 + #define TARGET_NR_shmctl 195 180 + #define TARGET_NR_shmat 196 181 + #define TARGET_NR_shmdt 197 182 + #define TARGET_NR_socket 198 183 + #define TARGET_NR_socketpair 199 184 + #define TARGET_NR_bind 200 185 + #define TARGET_NR_listen 201 186 + #define TARGET_NR_accept 202 187 + #define TARGET_NR_connect 203 188 + #define TARGET_NR_getsockname 204 189 + #define TARGET_NR_getpeername 205 190 + #define TARGET_NR_sendto 206 191 + #define TARGET_NR_recvfrom 207 192 + #define TARGET_NR_setsockopt 208 193 + #define TARGET_NR_getsockopt 209 194 + #define TARGET_NR_shutdown 210 195 + #define TARGET_NR_sendmsg 211 196 + #define TARGET_NR_recvmsg 212 197 + #define TARGET_NR_readahead 213 198 + #define TARGET_NR_brk 214 199 + #define TARGET_NR_munmap 215 200 + #define TARGET_NR_mremap 216 201 + #define TARGET_NR_add_key 217 202 + #define TARGET_NR_request_key 218 203 + #define TARGET_NR_keyctl 219 204 + #define TARGET_NR_clone 220 205 + #define TARGET_NR_execve 221 206 + #define TARGET_NR_mmap2 222 207 + #define TARGET_NR_fadvise64_64 223 208 + #define TARGET_NR_swapon 224 209 + #define TARGET_NR_swapoff 225 210 + #define TARGET_NR_mprotect 226 211 + #define TARGET_NR_msync 227 212 + #define TARGET_NR_mlock 228 213 + #define TARGET_NR_munlock 229 214 + #define TARGET_NR_mlockall 230 215 + #define TARGET_NR_munlockall 231 216 + #define TARGET_NR_mincore 232 217 + #define TARGET_NR_madvise 233 218 + #define TARGET_NR_remap_file_pages 234 219 + #define TARGET_NR_mbind 235 220 + #define TARGET_NR_get_mempolicy 236 221 + #define TARGET_NR_set_mempolicy 237 222 + #define TARGET_NR_migrate_pages 238 223 + #define TARGET_NR_move_pages 239 224 + #define TARGET_NR_rt_tgsigqueueinfo 240 225 + #define TARGET_NR_perf_event_open 241 226 + #define TARGET_NR_accept4 242 227 + #define TARGET_NR_arch_specific_syscall 244 228 + #define TARGET_NR_riscv_flush_icache (TARGET_NR_arch_specific_syscall + 15) 229 + #define TARGET_NR_prlimit64 261 230 + #define TARGET_NR_fanotify_init 262 231 + #define TARGET_NR_fanotify_mark 263 232 + #define TARGET_NR_name_to_handle_at 264 233 + #define TARGET_NR_open_by_handle_at 265 234 + #define TARGET_NR_syncfs 267 235 + #define TARGET_NR_setns 268 236 + #define TARGET_NR_sendmmsg 269 237 + #define TARGET_NR_process_vm_readv 270 238 + #define TARGET_NR_process_vm_writev 271 239 + #define TARGET_NR_kcmp 272 240 + #define TARGET_NR_finit_module 273 241 + #define TARGET_NR_sched_setattr 274 242 + #define TARGET_NR_sched_getattr 275 243 + #define TARGET_NR_renameat2 276 244 + #define TARGET_NR_seccomp 277 245 + #define TARGET_NR_getrandom 278 246 + #define TARGET_NR_memfd_create 279 247 + #define TARGET_NR_bpf 280 248 + #define TARGET_NR_execveat 281 249 + #define TARGET_NR_userfaultfd 282 250 + #define TARGET_NR_membarrier 283 251 + #define TARGET_NR_mlock2 284 252 + #define TARGET_NR_copy_file_range 285 253 + #define TARGET_NR_preadv2 286 254 + #define TARGET_NR_pwritev2 287 255 + #define TARGET_NR_pkey_mprotect 288 256 + #define TARGET_NR_pkey_alloc 289 257 + #define TARGET_NR_pkey_free 290 258 + #define TARGET_NR_statx 291 259 + #define TARGET_NR_rseq 293 260 + #define TARGET_NR_kexec_file_load 294 261 + #define TARGET_NR_clock_gettime64 403 262 + #define TARGET_NR_clock_settime64 404 263 + #define TARGET_NR_clock_adjtime64 405 264 + #define TARGET_NR_clock_getres_time64 406 265 + #define TARGET_NR_clock_nanosleep_time64 407 266 + #define TARGET_NR_timer_gettime64 408 267 + #define TARGET_NR_timer_settime64 409 268 + #define TARGET_NR_timerfd_gettime64 410 269 + #define TARGET_NR_timerfd_settime64 411 270 + #define TARGET_NR_utimensat_time64 412 271 + #define TARGET_NR_pselect6_time64 413 272 + #define TARGET_NR_ppoll_time64 414 273 + #define TARGET_NR_io_pgetevents_time64 416 274 + #define TARGET_NR_recvmmsg_time64 417 275 + #define TARGET_NR_mq_timedsend_time64 418 276 + #define TARGET_NR_mq_timedreceive_time64 419 277 + #define TARGET_NR_semtimedop_time64 420 278 + #define TARGET_NR_rt_sigtimedwait_time64 421 279 + #define TARGET_NR_futex_time64 422 280 + #define TARGET_NR_sched_rr_get_interval_time64 423 281 + #define TARGET_NR_pidfd_send_signal 424 282 + #define TARGET_NR_io_uring_setup 425 283 + #define TARGET_NR_io_uring_enter 426 284 + #define TARGET_NR_io_uring_register 427 285 + #define TARGET_NR_open_tree 428 286 + #define TARGET_NR_move_mount 429 287 + #define TARGET_NR_fsopen 430 288 + #define TARGET_NR_fsconfig 431 289 + #define TARGET_NR_fsmount 432 290 + #define TARGET_NR_fspick 433 291 + #define TARGET_NR_pidfd_open 434 292 + #define TARGET_NR_clone3 435 293 + #define TARGET_NR_syscalls 436 294 + 295 + #endif /* LINUX_USER_RISCV_SYSCALL32_NR_H */
+301
linux-user/riscv/syscall64_nr.h
··· 1 + /* 2 + * This file contains the system call numbers. 3 + */ 4 + #ifndef LINUX_USER_RISCV_SYSCALL64_NR_H 5 + #define LINUX_USER_RISCV_SYSCALL64_NR_H 6 + 7 + #define TARGET_NR_io_setup 0 8 + #define TARGET_NR_io_destroy 1 9 + #define TARGET_NR_io_submit 2 10 + #define TARGET_NR_io_cancel 3 11 + #define TARGET_NR_io_getevents 4 12 + #define TARGET_NR_setxattr 5 13 + #define TARGET_NR_lsetxattr 6 14 + #define TARGET_NR_fsetxattr 7 15 + #define TARGET_NR_getxattr 8 16 + #define TARGET_NR_lgetxattr 9 17 + #define TARGET_NR_fgetxattr 10 18 + #define TARGET_NR_listxattr 11 19 + #define TARGET_NR_llistxattr 12 20 + #define TARGET_NR_flistxattr 13 21 + #define TARGET_NR_removexattr 14 22 + #define TARGET_NR_lremovexattr 15 23 + #define TARGET_NR_fremovexattr 16 24 + #define TARGET_NR_getcwd 17 25 + #define TARGET_NR_lookup_dcookie 18 26 + #define TARGET_NR_eventfd2 19 27 + #define TARGET_NR_epoll_create1 20 28 + #define TARGET_NR_epoll_ctl 21 29 + #define TARGET_NR_epoll_pwait 22 30 + #define TARGET_NR_dup 23 31 + #define TARGET_NR_dup3 24 32 + #define TARGET_NR_fcntl 25 33 + #define TARGET_NR_inotify_init1 26 34 + #define TARGET_NR_inotify_add_watch 27 35 + #define TARGET_NR_inotify_rm_watch 28 36 + #define TARGET_NR_ioctl 29 37 + #define TARGET_NR_ioprio_set 30 38 + #define TARGET_NR_ioprio_get 31 39 + #define TARGET_NR_flock 32 40 + #define TARGET_NR_mknodat 33 41 + #define TARGET_NR_mkdirat 34 42 + #define TARGET_NR_unlinkat 35 43 + #define TARGET_NR_symlinkat 36 44 + #define TARGET_NR_linkat 37 45 + #define TARGET_NR_umount2 39 46 + #define TARGET_NR_mount 40 47 + #define TARGET_NR_pivot_root 41 48 + #define TARGET_NR_nfsservctl 42 49 + #define TARGET_NR_statfs 43 50 + #define TARGET_NR_fstatfs 44 51 + #define TARGET_NR_truncate 45 52 + #define TARGET_NR_ftruncate 46 53 + #define TARGET_NR_fallocate 47 54 + #define TARGET_NR_faccessat 48 55 + #define TARGET_NR_chdir 49 56 + #define TARGET_NR_fchdir 50 57 + #define TARGET_NR_chroot 51 58 + #define TARGET_NR_fchmod 52 59 + #define TARGET_NR_fchmodat 53 60 + #define TARGET_NR_fchownat 54 61 + #define TARGET_NR_fchown 55 62 + #define TARGET_NR_openat 56 63 + #define TARGET_NR_close 57 64 + #define TARGET_NR_vhangup 58 65 + #define TARGET_NR_pipe2 59 66 + #define TARGET_NR_quotactl 60 67 + #define TARGET_NR_getdents64 61 68 + #define TARGET_NR_lseek 62 69 + #define TARGET_NR_read 63 70 + #define TARGET_NR_write 64 71 + #define TARGET_NR_readv 65 72 + #define TARGET_NR_writev 66 73 + #define TARGET_NR_pread64 67 74 + #define TARGET_NR_pwrite64 68 75 + #define TARGET_NR_preadv 69 76 + #define TARGET_NR_pwritev 70 77 + #define TARGET_NR_sendfile 71 78 + #define TARGET_NR_pselect6 72 79 + #define TARGET_NR_ppoll 73 80 + #define TARGET_NR_signalfd4 74 81 + #define TARGET_NR_vmsplice 75 82 + #define TARGET_NR_splice 76 83 + #define TARGET_NR_tee 77 84 + #define TARGET_NR_readlinkat 78 85 + #define TARGET_NR_newfstatat 79 86 + #define TARGET_NR_fstat 80 87 + #define TARGET_NR_sync 81 88 + #define TARGET_NR_fsync 82 89 + #define TARGET_NR_fdatasync 83 90 + #define TARGET_NR_sync_file_range 84 91 + #define TARGET_NR_timerfd_create 85 92 + #define TARGET_NR_timerfd_settime 86 93 + #define TARGET_NR_timerfd_gettime 87 94 + #define TARGET_NR_utimensat 88 95 + #define TARGET_NR_acct 89 96 + #define TARGET_NR_capget 90 97 + #define TARGET_NR_capset 91 98 + #define TARGET_NR_personality 92 99 + #define TARGET_NR_exit 93 100 + #define TARGET_NR_exit_group 94 101 + #define TARGET_NR_waitid 95 102 + #define TARGET_NR_set_tid_address 96 103 + #define TARGET_NR_unshare 97 104 + #define TARGET_NR_futex 98 105 + #define TARGET_NR_set_robust_list 99 106 + #define TARGET_NR_get_robust_list 100 107 + #define TARGET_NR_nanosleep 101 108 + #define TARGET_NR_getitimer 102 109 + #define TARGET_NR_setitimer 103 110 + #define TARGET_NR_kexec_load 104 111 + #define TARGET_NR_init_module 105 112 + #define TARGET_NR_delete_module 106 113 + #define TARGET_NR_timer_create 107 114 + #define TARGET_NR_timer_gettime 108 115 + #define TARGET_NR_timer_getoverrun 109 116 + #define TARGET_NR_timer_settime 110 117 + #define TARGET_NR_timer_delete 111 118 + #define TARGET_NR_clock_settime 112 119 + #define TARGET_NR_clock_gettime 113 120 + #define TARGET_NR_clock_getres 114 121 + #define TARGET_NR_clock_nanosleep 115 122 + #define TARGET_NR_syslog 116 123 + #define TARGET_NR_ptrace 117 124 + #define TARGET_NR_sched_setparam 118 125 + #define TARGET_NR_sched_setscheduler 119 126 + #define TARGET_NR_sched_getscheduler 120 127 + #define TARGET_NR_sched_getparam 121 128 + #define TARGET_NR_sched_setaffinity 122 129 + #define TARGET_NR_sched_getaffinity 123 130 + #define TARGET_NR_sched_yield 124 131 + #define TARGET_NR_sched_get_priority_max 125 132 + #define TARGET_NR_sched_get_priority_min 126 133 + #define TARGET_NR_sched_rr_get_interval 127 134 + #define TARGET_NR_restart_syscall 128 135 + #define TARGET_NR_kill 129 136 + #define TARGET_NR_tkill 130 137 + #define TARGET_NR_tgkill 131 138 + #define TARGET_NR_sigaltstack 132 139 + #define TARGET_NR_rt_sigsuspend 133 140 + #define TARGET_NR_rt_sigaction 134 141 + #define TARGET_NR_rt_sigprocmask 135 142 + #define TARGET_NR_rt_sigpending 136 143 + #define TARGET_NR_rt_sigtimedwait 137 144 + #define TARGET_NR_rt_sigqueueinfo 138 145 + #define TARGET_NR_rt_sigreturn 139 146 + #define TARGET_NR_setpriority 140 147 + #define TARGET_NR_getpriority 141 148 + #define TARGET_NR_reboot 142 149 + #define TARGET_NR_setregid 143 150 + #define TARGET_NR_setgid 144 151 + #define TARGET_NR_setreuid 145 152 + #define TARGET_NR_setuid 146 153 + #define TARGET_NR_setresuid 147 154 + #define TARGET_NR_getresuid 148 155 + #define TARGET_NR_setresgid 149 156 + #define TARGET_NR_getresgid 150 157 + #define TARGET_NR_setfsuid 151 158 + #define TARGET_NR_setfsgid 152 159 + #define TARGET_NR_times 153 160 + #define TARGET_NR_setpgid 154 161 + #define TARGET_NR_getpgid 155 162 + #define TARGET_NR_getsid 156 163 + #define TARGET_NR_setsid 157 164 + #define TARGET_NR_getgroups 158 165 + #define TARGET_NR_setgroups 159 166 + #define TARGET_NR_uname 160 167 + #define TARGET_NR_sethostname 161 168 + #define TARGET_NR_setdomainname 162 169 + #define TARGET_NR_getrlimit 163 170 + #define TARGET_NR_setrlimit 164 171 + #define TARGET_NR_getrusage 165 172 + #define TARGET_NR_umask 166 173 + #define TARGET_NR_prctl 167 174 + #define TARGET_NR_getcpu 168 175 + #define TARGET_NR_gettimeofday 169 176 + #define TARGET_NR_settimeofday 170 177 + #define TARGET_NR_adjtimex 171 178 + #define TARGET_NR_getpid 172 179 + #define TARGET_NR_getppid 173 180 + #define TARGET_NR_getuid 174 181 + #define TARGET_NR_geteuid 175 182 + #define TARGET_NR_getgid 176 183 + #define TARGET_NR_getegid 177 184 + #define TARGET_NR_gettid 178 185 + #define TARGET_NR_sysinfo 179 186 + #define TARGET_NR_mq_open 180 187 + #define TARGET_NR_mq_unlink 181 188 + #define TARGET_NR_mq_timedsend 182 189 + #define TARGET_NR_mq_timedreceive 183 190 + #define TARGET_NR_mq_notify 184 191 + #define TARGET_NR_mq_getsetattr 185 192 + #define TARGET_NR_msgget 186 193 + #define TARGET_NR_msgctl 187 194 + #define TARGET_NR_msgrcv 188 195 + #define TARGET_NR_msgsnd 189 196 + #define TARGET_NR_semget 190 197 + #define TARGET_NR_semctl 191 198 + #define TARGET_NR_semtimedop 192 199 + #define TARGET_NR_semop 193 200 + #define TARGET_NR_shmget 194 201 + #define TARGET_NR_shmctl 195 202 + #define TARGET_NR_shmat 196 203 + #define TARGET_NR_shmdt 197 204 + #define TARGET_NR_socket 198 205 + #define TARGET_NR_socketpair 199 206 + #define TARGET_NR_bind 200 207 + #define TARGET_NR_listen 201 208 + #define TARGET_NR_accept 202 209 + #define TARGET_NR_connect 203 210 + #define TARGET_NR_getsockname 204 211 + #define TARGET_NR_getpeername 205 212 + #define TARGET_NR_sendto 206 213 + #define TARGET_NR_recvfrom 207 214 + #define TARGET_NR_setsockopt 208 215 + #define TARGET_NR_getsockopt 209 216 + #define TARGET_NR_shutdown 210 217 + #define TARGET_NR_sendmsg 211 218 + #define TARGET_NR_recvmsg 212 219 + #define TARGET_NR_readahead 213 220 + #define TARGET_NR_brk 214 221 + #define TARGET_NR_munmap 215 222 + #define TARGET_NR_mremap 216 223 + #define TARGET_NR_add_key 217 224 + #define TARGET_NR_request_key 218 225 + #define TARGET_NR_keyctl 219 226 + #define TARGET_NR_clone 220 227 + #define TARGET_NR_execve 221 228 + #define TARGET_NR_mmap 222 229 + #define TARGET_NR_fadvise64 223 230 + #define TARGET_NR_swapon 224 231 + #define TARGET_NR_swapoff 225 232 + #define TARGET_NR_mprotect 226 233 + #define TARGET_NR_msync 227 234 + #define TARGET_NR_mlock 228 235 + #define TARGET_NR_munlock 229 236 + #define TARGET_NR_mlockall 230 237 + #define TARGET_NR_munlockall 231 238 + #define TARGET_NR_mincore 232 239 + #define TARGET_NR_madvise 233 240 + #define TARGET_NR_remap_file_pages 234 241 + #define TARGET_NR_mbind 235 242 + #define TARGET_NR_get_mempolicy 236 243 + #define TARGET_NR_set_mempolicy 237 244 + #define TARGET_NR_migrate_pages 238 245 + #define TARGET_NR_move_pages 239 246 + #define TARGET_NR_rt_tgsigqueueinfo 240 247 + #define TARGET_NR_perf_event_open 241 248 + #define TARGET_NR_accept4 242 249 + #define TARGET_NR_recvmmsg 243 250 + #define TARGET_NR_arch_specific_syscall 244 251 + #define TARGET_NR_riscv_flush_icache (TARGET_NR_arch_specific_syscall + 15) 252 + #define TARGET_NR_wait4 260 253 + #define TARGET_NR_prlimit64 261 254 + #define TARGET_NR_fanotify_init 262 255 + #define TARGET_NR_fanotify_mark 263 256 + #define TARGET_NR_name_to_handle_at 264 257 + #define TARGET_NR_open_by_handle_at 265 258 + #define TARGET_NR_clock_adjtime 266 259 + #define TARGET_NR_syncfs 267 260 + #define TARGET_NR_setns 268 261 + #define TARGET_NR_sendmmsg 269 262 + #define TARGET_NR_process_vm_readv 270 263 + #define TARGET_NR_process_vm_writev 271 264 + #define TARGET_NR_kcmp 272 265 + #define TARGET_NR_finit_module 273 266 + #define TARGET_NR_sched_setattr 274 267 + #define TARGET_NR_sched_getattr 275 268 + #define TARGET_NR_renameat2 276 269 + #define TARGET_NR_seccomp 277 270 + #define TARGET_NR_getrandom 278 271 + #define TARGET_NR_memfd_create 279 272 + #define TARGET_NR_bpf 280 273 + #define TARGET_NR_execveat 281 274 + #define TARGET_NR_userfaultfd 282 275 + #define TARGET_NR_membarrier 283 276 + #define TARGET_NR_mlock2 284 277 + #define TARGET_NR_copy_file_range 285 278 + #define TARGET_NR_preadv2 286 279 + #define TARGET_NR_pwritev2 287 280 + #define TARGET_NR_pkey_mprotect 288 281 + #define TARGET_NR_pkey_alloc 289 282 + #define TARGET_NR_pkey_free 290 283 + #define TARGET_NR_statx 291 284 + #define TARGET_NR_io_pgetevents 292 285 + #define TARGET_NR_rseq 293 286 + #define TARGET_NR_kexec_file_load 294 287 + #define TARGET_NR_pidfd_send_signal 424 288 + #define TARGET_NR_io_uring_setup 425 289 + #define TARGET_NR_io_uring_enter 426 290 + #define TARGET_NR_io_uring_register 427 291 + #define TARGET_NR_open_tree 428 292 + #define TARGET_NR_move_mount 429 293 + #define TARGET_NR_fsopen 430 294 + #define TARGET_NR_fsconfig 431 295 + #define TARGET_NR_fsmount 432 296 + #define TARGET_NR_fspick 433 297 + #define TARGET_NR_pidfd_open 434 298 + #define TARGET_NR_clone3 435 299 + #define TARGET_NR_syscalls 436 300 + 301 + #endif /* LINUX_USER_RISCV_SYSCALL64_NR_H */
+2 -292
linux-user/riscv/syscall_nr.h
··· 6 6 #ifndef LINUX_USER_RISCV_SYSCALL_NR_H 7 7 #define LINUX_USER_RISCV_SYSCALL_NR_H 8 8 9 - #define TARGET_NR_io_setup 0 10 - #define TARGET_NR_io_destroy 1 11 - #define TARGET_NR_io_submit 2 12 - #define TARGET_NR_io_cancel 3 13 - #define TARGET_NR_io_getevents 4 14 - #define TARGET_NR_setxattr 5 15 - #define TARGET_NR_lsetxattr 6 16 - #define TARGET_NR_fsetxattr 7 17 - #define TARGET_NR_getxattr 8 18 - #define TARGET_NR_lgetxattr 9 19 - #define TARGET_NR_fgetxattr 10 20 - #define TARGET_NR_listxattr 11 21 - #define TARGET_NR_llistxattr 12 22 - #define TARGET_NR_flistxattr 13 23 - #define TARGET_NR_removexattr 14 24 - #define TARGET_NR_lremovexattr 15 25 - #define TARGET_NR_fremovexattr 16 26 - #define TARGET_NR_getcwd 17 27 - #define TARGET_NR_lookup_dcookie 18 28 - #define TARGET_NR_eventfd2 19 29 - #define TARGET_NR_epoll_create1 20 30 - #define TARGET_NR_epoll_ctl 21 31 - #define TARGET_NR_epoll_pwait 22 32 - #define TARGET_NR_dup 23 33 - #define TARGET_NR_dup3 24 34 9 #ifdef TARGET_RISCV32 35 - #define TARGET_NR_fcntl64 25 36 - #else 37 - #define TARGET_NR_fcntl 25 38 - #endif 39 - #define TARGET_NR_inotify_init1 26 40 - #define TARGET_NR_inotify_add_watch 27 41 - #define TARGET_NR_inotify_rm_watch 28 42 - #define TARGET_NR_ioctl 29 43 - #define TARGET_NR_ioprio_set 30 44 - #define TARGET_NR_ioprio_get 31 45 - #define TARGET_NR_flock 32 46 - #define TARGET_NR_mknodat 33 47 - #define TARGET_NR_mkdirat 34 48 - #define TARGET_NR_unlinkat 35 49 - #define TARGET_NR_symlinkat 36 50 - #define TARGET_NR_linkat 37 51 - #define TARGET_NR_renameat 38 52 - #define TARGET_NR_umount2 39 53 - #define TARGET_NR_mount 40 54 - #define TARGET_NR_pivot_root 41 55 - #define TARGET_NR_nfsservctl 42 56 - #define TARGET_NR_statfs 43 57 - #define TARGET_NR_fstatfs 44 58 - #define TARGET_NR_truncate 45 59 - #define TARGET_NR_ftruncate 46 60 - #define TARGET_NR_fallocate 47 61 - #define TARGET_NR_faccessat 48 62 - #define TARGET_NR_chdir 49 63 - #define TARGET_NR_fchdir 50 64 - #define TARGET_NR_chroot 51 65 - #define TARGET_NR_fchmod 52 66 - #define TARGET_NR_fchmodat 53 67 - #define TARGET_NR_fchownat 54 68 - #define TARGET_NR_fchown 55 69 - #define TARGET_NR_openat 56 70 - #define TARGET_NR_close 57 71 - #define TARGET_NR_vhangup 58 72 - #define TARGET_NR_pipe2 59 73 - #define TARGET_NR_quotactl 60 74 - #define TARGET_NR_getdents64 61 75 - #ifdef TARGET_RISCV32 76 - #define TARGET_NR__llseek 62 77 - #else 78 - #define TARGET_NR_lseek 62 79 - #endif 80 - #define TARGET_NR_read 63 81 - #define TARGET_NR_write 64 82 - #define TARGET_NR_readv 65 83 - #define TARGET_NR_writev 66 84 - #define TARGET_NR_pread64 67 85 - #define TARGET_NR_pwrite64 68 86 - #define TARGET_NR_preadv 69 87 - #define TARGET_NR_pwritev 70 88 - #define TARGET_NR_sendfile 71 89 - #define TARGET_NR_pselect6 72 90 - #define TARGET_NR_ppoll 73 91 - #define TARGET_NR_signalfd4 74 92 - #define TARGET_NR_vmsplice 75 93 - #define TARGET_NR_splice 76 94 - #define TARGET_NR_tee 77 95 - #define TARGET_NR_readlinkat 78 96 - #define TARGET_NR_newfstatat 79 97 - #define TARGET_NR_fstat 80 98 - #define TARGET_NR_sync 81 99 - #define TARGET_NR_fsync 82 100 - #define TARGET_NR_fdatasync 83 101 - #define TARGET_NR_sync_file_range 84 102 - #define TARGET_NR_timerfd_create 85 103 - #define TARGET_NR_timerfd_settime 86 104 - #define TARGET_NR_timerfd_gettime 87 105 - #define TARGET_NR_utimensat 88 106 - #define TARGET_NR_acct 89 107 - #define TARGET_NR_capget 90 108 - #define TARGET_NR_capset 91 109 - #define TARGET_NR_personality 92 110 - #define TARGET_NR_exit 93 111 - #define TARGET_NR_exit_group 94 112 - #define TARGET_NR_waitid 95 113 - #define TARGET_NR_set_tid_address 96 114 - #define TARGET_NR_unshare 97 115 - #define TARGET_NR_futex 98 116 - #define TARGET_NR_set_robust_list 99 117 - #define TARGET_NR_get_robust_list 100 118 - #define TARGET_NR_nanosleep 101 119 - #define TARGET_NR_getitimer 102 120 - #define TARGET_NR_setitimer 103 121 - #define TARGET_NR_kexec_load 104 122 - #define TARGET_NR_init_module 105 123 - #define TARGET_NR_delete_module 106 124 - #define TARGET_NR_timer_create 107 125 - #define TARGET_NR_timer_gettime 108 126 - #define TARGET_NR_timer_getoverrun 109 127 - #define TARGET_NR_timer_settime 110 128 - #define TARGET_NR_timer_delete 111 129 - #define TARGET_NR_clock_settime 112 130 - #define TARGET_NR_clock_gettime 113 131 - #define TARGET_NR_clock_getres 114 132 - #define TARGET_NR_clock_nanosleep 115 133 - #define TARGET_NR_syslog 116 134 - #define TARGET_NR_ptrace 117 135 - #define TARGET_NR_sched_setparam 118 136 - #define TARGET_NR_sched_setscheduler 119 137 - #define TARGET_NR_sched_getscheduler 120 138 - #define TARGET_NR_sched_getparam 121 139 - #define TARGET_NR_sched_setaffinity 122 140 - #define TARGET_NR_sched_getaffinity 123 141 - #define TARGET_NR_sched_yield 124 142 - #define TARGET_NR_sched_get_priority_max 125 143 - #define TARGET_NR_sched_get_priority_min 126 144 - #define TARGET_NR_sched_rr_get_interval 127 145 - #define TARGET_NR_restart_syscall 128 146 - #define TARGET_NR_kill 129 147 - #define TARGET_NR_tkill 130 148 - #define TARGET_NR_tgkill 131 149 - #define TARGET_NR_sigaltstack 132 150 - #define TARGET_NR_rt_sigsuspend 133 151 - #define TARGET_NR_rt_sigaction 134 152 - #define TARGET_NR_rt_sigprocmask 135 153 - #define TARGET_NR_rt_sigpending 136 154 - #define TARGET_NR_rt_sigtimedwait 137 155 - #define TARGET_NR_rt_sigqueueinfo 138 156 - #define TARGET_NR_rt_sigreturn 139 157 - #define TARGET_NR_setpriority 140 158 - #define TARGET_NR_getpriority 141 159 - #define TARGET_NR_reboot 142 160 - #define TARGET_NR_setregid 143 161 - #define TARGET_NR_setgid 144 162 - #define TARGET_NR_setreuid 145 163 - #define TARGET_NR_setuid 146 164 - #define TARGET_NR_setresuid 147 165 - #define TARGET_NR_getresuid 148 166 - #define TARGET_NR_setresgid 149 167 - #define TARGET_NR_getresgid 150 168 - #define TARGET_NR_setfsuid 151 169 - #define TARGET_NR_setfsgid 152 170 - #define TARGET_NR_times 153 171 - #define TARGET_NR_setpgid 154 172 - #define TARGET_NR_getpgid 155 173 - #define TARGET_NR_getsid 156 174 - #define TARGET_NR_setsid 157 175 - #define TARGET_NR_getgroups 158 176 - #define TARGET_NR_setgroups 159 177 - #define TARGET_NR_uname 160 178 - #define TARGET_NR_sethostname 161 179 - #define TARGET_NR_setdomainname 162 180 - #define TARGET_NR_getrlimit 163 181 - #define TARGET_NR_setrlimit 164 182 - #define TARGET_NR_getrusage 165 183 - #define TARGET_NR_umask 166 184 - #define TARGET_NR_prctl 167 185 - #define TARGET_NR_getcpu 168 186 - #define TARGET_NR_gettimeofday 169 187 - #define TARGET_NR_settimeofday 170 188 - #define TARGET_NR_adjtimex 171 189 - #define TARGET_NR_getpid 172 190 - #define TARGET_NR_getppid 173 191 - #define TARGET_NR_getuid 174 192 - #define TARGET_NR_geteuid 175 193 - #define TARGET_NR_getgid 176 194 - #define TARGET_NR_getegid 177 195 - #define TARGET_NR_gettid 178 196 - #define TARGET_NR_sysinfo 179 197 - #define TARGET_NR_mq_open 180 198 - #define TARGET_NR_mq_unlink 181 199 - #define TARGET_NR_mq_timedsend 182 200 - #define TARGET_NR_mq_timedreceive 183 201 - #define TARGET_NR_mq_notify 184 202 - #define TARGET_NR_mq_getsetattr 185 203 - #define TARGET_NR_msgget 186 204 - #define TARGET_NR_msgctl 187 205 - #define TARGET_NR_msgrcv 188 206 - #define TARGET_NR_msgsnd 189 207 - #define TARGET_NR_semget 190 208 - #define TARGET_NR_semctl 191 209 - #define TARGET_NR_semtimedop 192 210 - #define TARGET_NR_semop 193 211 - #define TARGET_NR_shmget 194 212 - #define TARGET_NR_shmctl 195 213 - #define TARGET_NR_shmat 196 214 - #define TARGET_NR_shmdt 197 215 - #define TARGET_NR_socket 198 216 - #define TARGET_NR_socketpair 199 217 - #define TARGET_NR_bind 200 218 - #define TARGET_NR_listen 201 219 - #define TARGET_NR_accept 202 220 - #define TARGET_NR_connect 203 221 - #define TARGET_NR_getsockname 204 222 - #define TARGET_NR_getpeername 205 223 - #define TARGET_NR_sendto 206 224 - #define TARGET_NR_recvfrom 207 225 - #define TARGET_NR_setsockopt 208 226 - #define TARGET_NR_getsockopt 209 227 - #define TARGET_NR_shutdown 210 228 - #define TARGET_NR_sendmsg 211 229 - #define TARGET_NR_recvmsg 212 230 - #define TARGET_NR_readahead 213 231 - #define TARGET_NR_brk 214 232 - #define TARGET_NR_munmap 215 233 - #define TARGET_NR_mremap 216 234 - #define TARGET_NR_add_key 217 235 - #define TARGET_NR_request_key 218 236 - #define TARGET_NR_keyctl 219 237 - #define TARGET_NR_clone 220 238 - #define TARGET_NR_execve 221 239 - #ifdef TARGET_RISCV32 240 - #define TARGET_NR_mmap2 222 241 - #define TARGET_NR_fadvise64_64 223 10 + # include "syscall32_nr.h" 242 11 #else 243 - #define TARGET_NR_mmap 222 244 - #define TARGET_NR_fadvise64 223 12 + # include "syscall64_nr.h" 245 13 #endif 246 - #define TARGET_NR_swapon 224 247 - #define TARGET_NR_swapoff 225 248 - #define TARGET_NR_mprotect 226 249 - #define TARGET_NR_msync 227 250 - #define TARGET_NR_mlock 228 251 - #define TARGET_NR_munlock 229 252 - #define TARGET_NR_mlockall 230 253 - #define TARGET_NR_munlockall 231 254 - #define TARGET_NR_mincore 232 255 - #define TARGET_NR_madvise 233 256 - #define TARGET_NR_remap_file_pages 234 257 - #define TARGET_NR_mbind 235 258 - #define TARGET_NR_get_mempolicy 236 259 - #define TARGET_NR_set_mempolicy 237 260 - #define TARGET_NR_migrate_pages 238 261 - #define TARGET_NR_move_pages 239 262 - #define TARGET_NR_rt_tgsigqueueinfo 240 263 - #define TARGET_NR_perf_event_open 241 264 - #define TARGET_NR_accept4 242 265 - #define TARGET_NR_recvmmsg 243 266 - #define TARGET_NR_arch_specific_syscall 244 267 - #define TARGET_NR_wait4 260 268 - #define TARGET_NR_prlimit64 261 269 - #define TARGET_NR_fanotify_init 262 270 - #define TARGET_NR_fanotify_mark 263 271 - #define TARGET_NR_name_to_handle_at 264 272 - #define TARGET_NR_open_by_handle_at 265 273 - #define TARGET_NR_clock_adjtime 266 274 - #define TARGET_NR_syncfs 267 275 - #define TARGET_NR_setns 268 276 - #define TARGET_NR_sendmmsg 269 277 - #define TARGET_NR_process_vm_readv 270 278 - #define TARGET_NR_process_vm_writev 271 279 - #define TARGET_NR_kcmp 272 280 - #define TARGET_NR_finit_module 273 281 - #define TARGET_NR_sched_setattr 274 282 - #define TARGET_NR_sched_getattr 275 283 - #define TARGET_NR_renameat2 276 284 - #define TARGET_NR_seccomp 277 285 - #define TARGET_NR_getrandom 278 286 - #define TARGET_NR_memfd_create 279 287 - #define TARGET_NR_bpf 280 288 - #define TARGET_NR_execveat 281 289 - #define TARGET_NR_userfaultfd 282 290 - #define TARGET_NR_membarrier 283 291 - #define TARGET_NR_mlock2 284 292 - #define TARGET_NR_copy_file_range 285 293 - #define TARGET_NR_preadv2 286 294 - #define TARGET_NR_pwritev2 287 295 - #define TARGET_NR_pkey_mprotect 288 296 - #define TARGET_NR_pkey_alloc 289 297 - #define TARGET_NR_pkey_free 290 298 - #define TARGET_NR_statx 291 299 - #define TARGET_NR_io_pgetevents 292 300 - #define TARGET_NR_rseq 293 301 - #define TARGET_NR_kexec_file_load 294 302 - 303 - #define TARGET_NR_syscalls (TARGET_NR_kexec_file_load + 1) 304 14 305 15 #endif
+5
linux-user/s390x/Makefile.objs
··· 1 + generated-files-y += linux-user/s390x/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/s390x/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/s390x/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+442
linux-user/s390x/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # System call table for s390 4 + # 5 + # Format: 6 + # 7 + # <nr> <abi> <syscall> <entry-64bit> <compat-entry> 8 + # 9 + # where <abi> can be common, 64, or 32 10 + 11 + 1 common exit sys_exit sys_exit 12 + 2 common fork sys_fork sys_fork 13 + 3 common read sys_read compat_sys_s390_read 14 + 4 common write sys_write compat_sys_s390_write 15 + 5 common open sys_open compat_sys_open 16 + 6 common close sys_close sys_close 17 + 7 common restart_syscall sys_restart_syscall sys_restart_syscall 18 + 8 common creat sys_creat sys_creat 19 + 9 common link sys_link sys_link 20 + 10 common unlink sys_unlink sys_unlink 21 + 11 common execve sys_execve compat_sys_execve 22 + 12 common chdir sys_chdir sys_chdir 23 + 13 32 time - sys_time32 24 + 14 common mknod sys_mknod sys_mknod 25 + 15 common chmod sys_chmod sys_chmod 26 + 16 32 lchown - sys_lchown16 27 + 19 common lseek sys_lseek compat_sys_lseek 28 + 20 common getpid sys_getpid sys_getpid 29 + 21 common mount sys_mount compat_sys_mount 30 + 22 common umount sys_oldumount sys_oldumount 31 + 23 32 setuid - sys_setuid16 32 + 24 32 getuid - sys_getuid16 33 + 25 32 stime - sys_stime32 34 + 26 common ptrace sys_ptrace compat_sys_ptrace 35 + 27 common alarm sys_alarm sys_alarm 36 + 29 common pause sys_pause sys_pause 37 + 30 common utime sys_utime sys_utime32 38 + 33 common access sys_access sys_access 39 + 34 common nice sys_nice sys_nice 40 + 36 common sync sys_sync sys_sync 41 + 37 common kill sys_kill sys_kill 42 + 38 common rename sys_rename sys_rename 43 + 39 common mkdir sys_mkdir sys_mkdir 44 + 40 common rmdir sys_rmdir sys_rmdir 45 + 41 common dup sys_dup sys_dup 46 + 42 common pipe sys_pipe sys_pipe 47 + 43 common times sys_times compat_sys_times 48 + 45 common brk sys_brk sys_brk 49 + 46 32 setgid - sys_setgid16 50 + 47 32 getgid - sys_getgid16 51 + 48 common signal sys_signal sys_signal 52 + 49 32 geteuid - sys_geteuid16 53 + 50 32 getegid - sys_getegid16 54 + 51 common acct sys_acct sys_acct 55 + 52 common umount2 sys_umount sys_umount 56 + 54 common ioctl sys_ioctl compat_sys_ioctl 57 + 55 common fcntl sys_fcntl compat_sys_fcntl 58 + 57 common setpgid sys_setpgid sys_setpgid 59 + 60 common umask sys_umask sys_umask 60 + 61 common chroot sys_chroot sys_chroot 61 + 62 common ustat sys_ustat compat_sys_ustat 62 + 63 common dup2 sys_dup2 sys_dup2 63 + 64 common getppid sys_getppid sys_getppid 64 + 65 common getpgrp sys_getpgrp sys_getpgrp 65 + 66 common setsid sys_setsid sys_setsid 66 + 67 common sigaction sys_sigaction compat_sys_sigaction 67 + 70 32 setreuid - sys_setreuid16 68 + 71 32 setregid - sys_setregid16 69 + 72 common sigsuspend sys_sigsuspend sys_sigsuspend 70 + 73 common sigpending sys_sigpending compat_sys_sigpending 71 + 74 common sethostname sys_sethostname sys_sethostname 72 + 75 common setrlimit sys_setrlimit compat_sys_setrlimit 73 + 76 32 getrlimit - compat_sys_old_getrlimit 74 + 77 common getrusage sys_getrusage compat_sys_getrusage 75 + 78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 76 + 79 common settimeofday sys_settimeofday compat_sys_settimeofday 77 + 80 32 getgroups - sys_getgroups16 78 + 81 32 setgroups - sys_setgroups16 79 + 83 common symlink sys_symlink sys_symlink 80 + 85 common readlink sys_readlink sys_readlink 81 + 86 common uselib sys_uselib sys_uselib 82 + 87 common swapon sys_swapon sys_swapon 83 + 88 common reboot sys_reboot sys_reboot 84 + 89 common readdir - compat_sys_old_readdir 85 + 90 common mmap sys_old_mmap compat_sys_s390_old_mmap 86 + 91 common munmap sys_munmap sys_munmap 87 + 92 common truncate sys_truncate compat_sys_truncate 88 + 93 common ftruncate sys_ftruncate compat_sys_ftruncate 89 + 94 common fchmod sys_fchmod sys_fchmod 90 + 95 32 fchown - sys_fchown16 91 + 96 common getpriority sys_getpriority sys_getpriority 92 + 97 common setpriority sys_setpriority sys_setpriority 93 + 99 common statfs sys_statfs compat_sys_statfs 94 + 100 common fstatfs sys_fstatfs compat_sys_fstatfs 95 + 101 32 ioperm - - 96 + 102 common socketcall sys_socketcall compat_sys_socketcall 97 + 103 common syslog sys_syslog sys_syslog 98 + 104 common setitimer sys_setitimer compat_sys_setitimer 99 + 105 common getitimer sys_getitimer compat_sys_getitimer 100 + 106 common stat sys_newstat compat_sys_newstat 101 + 107 common lstat sys_newlstat compat_sys_newlstat 102 + 108 common fstat sys_newfstat compat_sys_newfstat 103 + 110 common lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 104 + 111 common vhangup sys_vhangup sys_vhangup 105 + 112 common idle - - 106 + 114 common wait4 sys_wait4 compat_sys_wait4 107 + 115 common swapoff sys_swapoff sys_swapoff 108 + 116 common sysinfo sys_sysinfo compat_sys_sysinfo 109 + 117 common ipc sys_s390_ipc compat_sys_s390_ipc 110 + 118 common fsync sys_fsync sys_fsync 111 + 119 common sigreturn sys_sigreturn compat_sys_sigreturn 112 + 120 common clone sys_clone sys_clone 113 + 121 common setdomainname sys_setdomainname sys_setdomainname 114 + 122 common uname sys_newuname sys_newuname 115 + 124 common adjtimex sys_adjtimex sys_adjtimex_time32 116 + 125 common mprotect sys_mprotect sys_mprotect 117 + 126 common sigprocmask sys_sigprocmask compat_sys_sigprocmask 118 + 127 common create_module - - 119 + 128 common init_module sys_init_module sys_init_module 120 + 129 common delete_module sys_delete_module sys_delete_module 121 + 130 common get_kernel_syms - - 122 + 131 common quotactl sys_quotactl sys_quotactl 123 + 132 common getpgid sys_getpgid sys_getpgid 124 + 133 common fchdir sys_fchdir sys_fchdir 125 + 134 common bdflush sys_bdflush sys_bdflush 126 + 135 common sysfs sys_sysfs sys_sysfs 127 + 136 common personality sys_s390_personality sys_s390_personality 128 + 137 common afs_syscall - - 129 + 138 32 setfsuid - sys_setfsuid16 130 + 139 32 setfsgid - sys_setfsgid16 131 + 140 32 _llseek - sys_llseek 132 + 141 common getdents sys_getdents compat_sys_getdents 133 + 142 32 _newselect - compat_sys_select 134 + 142 64 select sys_select - 135 + 143 common flock sys_flock sys_flock 136 + 144 common msync sys_msync sys_msync 137 + 145 common readv sys_readv compat_sys_readv 138 + 146 common writev sys_writev compat_sys_writev 139 + 147 common getsid sys_getsid sys_getsid 140 + 148 common fdatasync sys_fdatasync sys_fdatasync 141 + 149 common _sysctl sys_sysctl compat_sys_sysctl 142 + 150 common mlock sys_mlock sys_mlock 143 + 151 common munlock sys_munlock sys_munlock 144 + 152 common mlockall sys_mlockall sys_mlockall 145 + 153 common munlockall sys_munlockall sys_munlockall 146 + 154 common sched_setparam sys_sched_setparam sys_sched_setparam 147 + 155 common sched_getparam sys_sched_getparam sys_sched_getparam 148 + 156 common sched_setscheduler sys_sched_setscheduler sys_sched_setscheduler 149 + 157 common sched_getscheduler sys_sched_getscheduler sys_sched_getscheduler 150 + 158 common sched_yield sys_sched_yield sys_sched_yield 151 + 159 common sched_get_priority_max sys_sched_get_priority_max sys_sched_get_priority_max 152 + 160 common sched_get_priority_min sys_sched_get_priority_min sys_sched_get_priority_min 153 + 161 common sched_rr_get_interval sys_sched_rr_get_interval sys_sched_rr_get_interval_time32 154 + 162 common nanosleep sys_nanosleep sys_nanosleep_time32 155 + 163 common mremap sys_mremap sys_mremap 156 + 164 32 setresuid - sys_setresuid16 157 + 165 32 getresuid - sys_getresuid16 158 + 167 common query_module - - 159 + 168 common poll sys_poll sys_poll 160 + 169 common nfsservctl - - 161 + 170 32 setresgid - sys_setresgid16 162 + 171 32 getresgid - sys_getresgid16 163 + 172 common prctl sys_prctl sys_prctl 164 + 173 common rt_sigreturn sys_rt_sigreturn compat_sys_rt_sigreturn 165 + 174 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 166 + 175 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 167 + 176 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 168 + 177 common rt_sigtimedwait sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time32 169 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 170 + 179 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 171 + 180 common pread64 sys_pread64 compat_sys_s390_pread64 172 + 181 common pwrite64 sys_pwrite64 compat_sys_s390_pwrite64 173 + 182 32 chown - sys_chown16 174 + 183 common getcwd sys_getcwd sys_getcwd 175 + 184 common capget sys_capget sys_capget 176 + 185 common capset sys_capset sys_capset 177 + 186 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 178 + 187 common sendfile sys_sendfile64 compat_sys_sendfile 179 + 188 common getpmsg - - 180 + 189 common putpmsg - - 181 + 190 common vfork sys_vfork sys_vfork 182 + 191 32 ugetrlimit - compat_sys_getrlimit 183 + 191 64 getrlimit sys_getrlimit - 184 + 192 32 mmap2 - compat_sys_s390_mmap2 185 + 193 32 truncate64 - compat_sys_s390_truncate64 186 + 194 32 ftruncate64 - compat_sys_s390_ftruncate64 187 + 195 32 stat64 - compat_sys_s390_stat64 188 + 196 32 lstat64 - compat_sys_s390_lstat64 189 + 197 32 fstat64 - compat_sys_s390_fstat64 190 + 198 32 lchown32 - sys_lchown 191 + 198 64 lchown sys_lchown - 192 + 199 32 getuid32 - sys_getuid 193 + 199 64 getuid sys_getuid - 194 + 200 32 getgid32 - sys_getgid 195 + 200 64 getgid sys_getgid - 196 + 201 32 geteuid32 - sys_geteuid 197 + 201 64 geteuid sys_geteuid - 198 + 202 32 getegid32 - sys_getegid 199 + 202 64 getegid sys_getegid - 200 + 203 32 setreuid32 - sys_setreuid 201 + 203 64 setreuid sys_setreuid - 202 + 204 32 setregid32 - sys_setregid 203 + 204 64 setregid sys_setregid - 204 + 205 32 getgroups32 - sys_getgroups 205 + 205 64 getgroups sys_getgroups - 206 + 206 32 setgroups32 - sys_setgroups 207 + 206 64 setgroups sys_setgroups - 208 + 207 32 fchown32 - sys_fchown 209 + 207 64 fchown sys_fchown - 210 + 208 32 setresuid32 - sys_setresuid 211 + 208 64 setresuid sys_setresuid - 212 + 209 32 getresuid32 - sys_getresuid 213 + 209 64 getresuid sys_getresuid - 214 + 210 32 setresgid32 - sys_setresgid 215 + 210 64 setresgid sys_setresgid - 216 + 211 32 getresgid32 - sys_getresgid 217 + 211 64 getresgid sys_getresgid - 218 + 212 32 chown32 - sys_chown 219 + 212 64 chown sys_chown - 220 + 213 32 setuid32 - sys_setuid 221 + 213 64 setuid sys_setuid - 222 + 214 32 setgid32 - sys_setgid 223 + 214 64 setgid sys_setgid - 224 + 215 32 setfsuid32 - sys_setfsuid 225 + 215 64 setfsuid sys_setfsuid - 226 + 216 32 setfsgid32 - sys_setfsgid 227 + 216 64 setfsgid sys_setfsgid - 228 + 217 common pivot_root sys_pivot_root sys_pivot_root 229 + 218 common mincore sys_mincore sys_mincore 230 + 219 common madvise sys_madvise sys_madvise 231 + 220 common getdents64 sys_getdents64 sys_getdents64 232 + 221 32 fcntl64 - compat_sys_fcntl64 233 + 222 common readahead sys_readahead compat_sys_s390_readahead 234 + 223 32 sendfile64 - compat_sys_sendfile64 235 + 224 common setxattr sys_setxattr sys_setxattr 236 + 225 common lsetxattr sys_lsetxattr sys_lsetxattr 237 + 226 common fsetxattr sys_fsetxattr sys_fsetxattr 238 + 227 common getxattr sys_getxattr sys_getxattr 239 + 228 common lgetxattr sys_lgetxattr sys_lgetxattr 240 + 229 common fgetxattr sys_fgetxattr sys_fgetxattr 241 + 230 common listxattr sys_listxattr sys_listxattr 242 + 231 common llistxattr sys_llistxattr sys_llistxattr 243 + 232 common flistxattr sys_flistxattr sys_flistxattr 244 + 233 common removexattr sys_removexattr sys_removexattr 245 + 234 common lremovexattr sys_lremovexattr sys_lremovexattr 246 + 235 common fremovexattr sys_fremovexattr sys_fremovexattr 247 + 236 common gettid sys_gettid sys_gettid 248 + 237 common tkill sys_tkill sys_tkill 249 + 238 common futex sys_futex sys_futex_time32 250 + 239 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 251 + 240 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 252 + 241 common tgkill sys_tgkill sys_tgkill 253 + 243 common io_setup sys_io_setup compat_sys_io_setup 254 + 244 common io_destroy sys_io_destroy sys_io_destroy 255 + 245 common io_getevents sys_io_getevents sys_io_getevents_time32 256 + 246 common io_submit sys_io_submit compat_sys_io_submit 257 + 247 common io_cancel sys_io_cancel sys_io_cancel 258 + 248 common exit_group sys_exit_group sys_exit_group 259 + 249 common epoll_create sys_epoll_create sys_epoll_create 260 + 250 common epoll_ctl sys_epoll_ctl sys_epoll_ctl 261 + 251 common epoll_wait sys_epoll_wait sys_epoll_wait 262 + 252 common set_tid_address sys_set_tid_address sys_set_tid_address 263 + 253 common fadvise64 sys_fadvise64_64 compat_sys_s390_fadvise64 264 + 254 common timer_create sys_timer_create compat_sys_timer_create 265 + 255 common timer_settime sys_timer_settime sys_timer_settime32 266 + 256 common timer_gettime sys_timer_gettime sys_timer_gettime32 267 + 257 common timer_getoverrun sys_timer_getoverrun sys_timer_getoverrun 268 + 258 common timer_delete sys_timer_delete sys_timer_delete 269 + 259 common clock_settime sys_clock_settime sys_clock_settime32 270 + 260 common clock_gettime sys_clock_gettime sys_clock_gettime32 271 + 261 common clock_getres sys_clock_getres sys_clock_getres_time32 272 + 262 common clock_nanosleep sys_clock_nanosleep sys_clock_nanosleep_time32 273 + 264 32 fadvise64_64 - compat_sys_s390_fadvise64_64 274 + 265 common statfs64 sys_statfs64 compat_sys_statfs64 275 + 266 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 276 + 267 common remap_file_pages sys_remap_file_pages sys_remap_file_pages 277 + 268 common mbind sys_mbind compat_sys_mbind 278 + 269 common get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 279 + 270 common set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 280 + 271 common mq_open sys_mq_open compat_sys_mq_open 281 + 272 common mq_unlink sys_mq_unlink sys_mq_unlink 282 + 273 common mq_timedsend sys_mq_timedsend sys_mq_timedsend_time32 283 + 274 common mq_timedreceive sys_mq_timedreceive sys_mq_timedreceive_time32 284 + 275 common mq_notify sys_mq_notify compat_sys_mq_notify 285 + 276 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 286 + 277 common kexec_load sys_kexec_load compat_sys_kexec_load 287 + 278 common add_key sys_add_key sys_add_key 288 + 279 common request_key sys_request_key sys_request_key 289 + 280 common keyctl sys_keyctl compat_sys_keyctl 290 + 281 common waitid sys_waitid compat_sys_waitid 291 + 282 common ioprio_set sys_ioprio_set sys_ioprio_set 292 + 283 common ioprio_get sys_ioprio_get sys_ioprio_get 293 + 284 common inotify_init sys_inotify_init sys_inotify_init 294 + 285 common inotify_add_watch sys_inotify_add_watch sys_inotify_add_watch 295 + 286 common inotify_rm_watch sys_inotify_rm_watch sys_inotify_rm_watch 296 + 287 common migrate_pages sys_migrate_pages compat_sys_migrate_pages 297 + 288 common openat sys_openat compat_sys_openat 298 + 289 common mkdirat sys_mkdirat sys_mkdirat 299 + 290 common mknodat sys_mknodat sys_mknodat 300 + 291 common fchownat sys_fchownat sys_fchownat 301 + 292 common futimesat sys_futimesat sys_futimesat_time32 302 + 293 32 fstatat64 - compat_sys_s390_fstatat64 303 + 293 64 newfstatat sys_newfstatat - 304 + 294 common unlinkat sys_unlinkat sys_unlinkat 305 + 295 common renameat sys_renameat sys_renameat 306 + 296 common linkat sys_linkat sys_linkat 307 + 297 common symlinkat sys_symlinkat sys_symlinkat 308 + 298 common readlinkat sys_readlinkat sys_readlinkat 309 + 299 common fchmodat sys_fchmodat sys_fchmodat 310 + 300 common faccessat sys_faccessat sys_faccessat 311 + 301 common pselect6 sys_pselect6 compat_sys_pselect6_time32 312 + 302 common ppoll sys_ppoll compat_sys_ppoll_time32 313 + 303 common unshare sys_unshare sys_unshare 314 + 304 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 315 + 305 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 316 + 306 common splice sys_splice sys_splice 317 + 307 common sync_file_range sys_sync_file_range compat_sys_s390_sync_file_range 318 + 308 common tee sys_tee sys_tee 319 + 309 common vmsplice sys_vmsplice compat_sys_vmsplice 320 + 310 common move_pages sys_move_pages compat_sys_move_pages 321 + 311 common getcpu sys_getcpu sys_getcpu 322 + 312 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 323 + 313 common utimes sys_utimes sys_utimes_time32 324 + 314 common fallocate sys_fallocate compat_sys_s390_fallocate 325 + 315 common utimensat sys_utimensat sys_utimensat_time32 326 + 316 common signalfd sys_signalfd compat_sys_signalfd 327 + 317 common timerfd - - 328 + 318 common eventfd sys_eventfd sys_eventfd 329 + 319 common timerfd_create sys_timerfd_create sys_timerfd_create 330 + 320 common timerfd_settime sys_timerfd_settime sys_timerfd_settime32 331 + 321 common timerfd_gettime sys_timerfd_gettime sys_timerfd_gettime32 332 + 322 common signalfd4 sys_signalfd4 compat_sys_signalfd4 333 + 323 common eventfd2 sys_eventfd2 sys_eventfd2 334 + 324 common inotify_init1 sys_inotify_init1 sys_inotify_init1 335 + 325 common pipe2 sys_pipe2 sys_pipe2 336 + 326 common dup3 sys_dup3 sys_dup3 337 + 327 common epoll_create1 sys_epoll_create1 sys_epoll_create1 338 + 328 common preadv sys_preadv compat_sys_preadv 339 + 329 common pwritev sys_pwritev compat_sys_pwritev 340 + 330 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 341 + 331 common perf_event_open sys_perf_event_open sys_perf_event_open 342 + 332 common fanotify_init sys_fanotify_init sys_fanotify_init 343 + 333 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 344 + 334 common prlimit64 sys_prlimit64 sys_prlimit64 345 + 335 common name_to_handle_at sys_name_to_handle_at sys_name_to_handle_at 346 + 336 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 347 + 337 common clock_adjtime sys_clock_adjtime sys_clock_adjtime32 348 + 338 common syncfs sys_syncfs sys_syncfs 349 + 339 common setns sys_setns sys_setns 350 + 340 common process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 351 + 341 common process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 352 + 342 common s390_runtime_instr sys_s390_runtime_instr sys_s390_runtime_instr 353 + 343 common kcmp sys_kcmp sys_kcmp 354 + 344 common finit_module sys_finit_module sys_finit_module 355 + 345 common sched_setattr sys_sched_setattr sys_sched_setattr 356 + 346 common sched_getattr sys_sched_getattr sys_sched_getattr 357 + 347 common renameat2 sys_renameat2 sys_renameat2 358 + 348 common seccomp sys_seccomp sys_seccomp 359 + 349 common getrandom sys_getrandom sys_getrandom 360 + 350 common memfd_create sys_memfd_create sys_memfd_create 361 + 351 common bpf sys_bpf sys_bpf 362 + 352 common s390_pci_mmio_write sys_s390_pci_mmio_write sys_s390_pci_mmio_write 363 + 353 common s390_pci_mmio_read sys_s390_pci_mmio_read sys_s390_pci_mmio_read 364 + 354 common execveat sys_execveat compat_sys_execveat 365 + 355 common userfaultfd sys_userfaultfd sys_userfaultfd 366 + 356 common membarrier sys_membarrier sys_membarrier 367 + 357 common recvmmsg sys_recvmmsg compat_sys_recvmmsg_time32 368 + 358 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 369 + 359 common socket sys_socket sys_socket 370 + 360 common socketpair sys_socketpair sys_socketpair 371 + 361 common bind sys_bind sys_bind 372 + 362 common connect sys_connect sys_connect 373 + 363 common listen sys_listen sys_listen 374 + 364 common accept4 sys_accept4 sys_accept4 375 + 365 common getsockopt sys_getsockopt compat_sys_getsockopt 376 + 366 common setsockopt sys_setsockopt compat_sys_setsockopt 377 + 367 common getsockname sys_getsockname sys_getsockname 378 + 368 common getpeername sys_getpeername sys_getpeername 379 + 369 common sendto sys_sendto sys_sendto 380 + 370 common sendmsg sys_sendmsg compat_sys_sendmsg 381 + 371 common recvfrom sys_recvfrom compat_sys_recvfrom 382 + 372 common recvmsg sys_recvmsg compat_sys_recvmsg 383 + 373 common shutdown sys_shutdown sys_shutdown 384 + 374 common mlock2 sys_mlock2 sys_mlock2 385 + 375 common copy_file_range sys_copy_file_range sys_copy_file_range 386 + 376 common preadv2 sys_preadv2 compat_sys_preadv2 387 + 377 common pwritev2 sys_pwritev2 compat_sys_pwritev2 388 + 378 common s390_guarded_storage sys_s390_guarded_storage sys_s390_guarded_storage 389 + 379 common statx sys_statx sys_statx 390 + 380 common s390_sthyi sys_s390_sthyi sys_s390_sthyi 391 + 381 common kexec_file_load sys_kexec_file_load sys_kexec_file_load 392 + 382 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents 393 + 383 common rseq sys_rseq sys_rseq 394 + 384 common pkey_mprotect sys_pkey_mprotect sys_pkey_mprotect 395 + 385 common pkey_alloc sys_pkey_alloc sys_pkey_alloc 396 + 386 common pkey_free sys_pkey_free sys_pkey_free 397 + # room for arch specific syscalls 398 + 392 64 semtimedop sys_semtimedop - 399 + 393 common semget sys_semget sys_semget 400 + 394 common semctl sys_semctl compat_sys_semctl 401 + 395 common shmget sys_shmget sys_shmget 402 + 396 common shmctl sys_shmctl compat_sys_shmctl 403 + 397 common shmat sys_shmat compat_sys_shmat 404 + 398 common shmdt sys_shmdt sys_shmdt 405 + 399 common msgget sys_msgget sys_msgget 406 + 400 common msgsnd sys_msgsnd compat_sys_msgsnd 407 + 401 common msgrcv sys_msgrcv compat_sys_msgrcv 408 + 402 common msgctl sys_msgctl compat_sys_msgctl 409 + 403 32 clock_gettime64 - sys_clock_gettime 410 + 404 32 clock_settime64 - sys_clock_settime 411 + 405 32 clock_adjtime64 - sys_clock_adjtime 412 + 406 32 clock_getres_time64 - sys_clock_getres 413 + 407 32 clock_nanosleep_time64 - sys_clock_nanosleep 414 + 408 32 timer_gettime64 - sys_timer_gettime 415 + 409 32 timer_settime64 - sys_timer_settime 416 + 410 32 timerfd_gettime64 - sys_timerfd_gettime 417 + 411 32 timerfd_settime64 - sys_timerfd_settime 418 + 412 32 utimensat_time64 - sys_utimensat 419 + 413 32 pselect6_time64 - compat_sys_pselect6_time64 420 + 414 32 ppoll_time64 - compat_sys_ppoll_time64 421 + 416 32 io_pgetevents_time64 - sys_io_pgetevents 422 + 417 32 recvmmsg_time64 - compat_sys_recvmmsg_time64 423 + 418 32 mq_timedsend_time64 - sys_mq_timedsend 424 + 419 32 mq_timedreceive_time64 - sys_mq_timedreceive 425 + 420 32 semtimedop_time64 - sys_semtimedop 426 + 421 32 rt_sigtimedwait_time64 - compat_sys_rt_sigtimedwait_time64 427 + 422 32 futex_time64 - sys_futex 428 + 423 32 sched_rr_get_interval_time64 - sys_sched_rr_get_interval 429 + 424 common pidfd_send_signal sys_pidfd_send_signal sys_pidfd_send_signal 430 + 425 common io_uring_setup sys_io_uring_setup sys_io_uring_setup 431 + 426 common io_uring_enter sys_io_uring_enter sys_io_uring_enter 432 + 427 common io_uring_register sys_io_uring_register sys_io_uring_register 433 + 428 common open_tree sys_open_tree sys_open_tree 434 + 429 common move_mount sys_move_mount sys_move_mount 435 + 430 common fsopen sys_fsopen sys_fsopen 436 + 431 common fsconfig sys_fsconfig sys_fsconfig 437 + 432 common fsmount sys_fsmount sys_fsmount 438 + 433 common fspick sys_fspick sys_fspick 439 + 434 common pidfd_open sys_pidfd_open sys_pidfd_open 440 + 435 common clone3 sys_clone3 sys_clone3 441 + 437 common openat2 sys_openat2 sys_openat2 442 + 438 common pidfd_getfd sys_pidfd_getfd sys_pidfd_getfd
-398
linux-user/s390x/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_S390X_SYSCALL_NR_H 6 - #define LINUX_USER_S390X_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_exit 1 9 - #define TARGET_NR_fork 2 10 - #define TARGET_NR_read 3 11 - #define TARGET_NR_write 4 12 - #define TARGET_NR_open 5 13 - #define TARGET_NR_close 6 14 - #define TARGET_NR_restart_syscall 7 15 - #define TARGET_NR_creat 8 16 - #define TARGET_NR_link 9 17 - #define TARGET_NR_unlink 10 18 - #define TARGET_NR_execve 11 19 - #define TARGET_NR_chdir 12 20 - #define TARGET_NR_mknod 14 21 - #define TARGET_NR_chmod 15 22 - #define TARGET_NR_lseek 19 23 - #define TARGET_NR_getpid 20 24 - #define TARGET_NR_mount 21 25 - #define TARGET_NR_umount 22 26 - #define TARGET_NR_ptrace 26 27 - #define TARGET_NR_alarm 27 28 - #define TARGET_NR_pause 29 29 - #define TARGET_NR_utime 30 30 - #define TARGET_NR_access 33 31 - #define TARGET_NR_nice 34 32 - #define TARGET_NR_sync 36 33 - #define TARGET_NR_kill 37 34 - #define TARGET_NR_rename 38 35 - #define TARGET_NR_mkdir 39 36 - #define TARGET_NR_rmdir 40 37 - #define TARGET_NR_dup 41 38 - #define TARGET_NR_pipe 42 39 - #define TARGET_NR_times 43 40 - #define TARGET_NR_brk 45 41 - #define TARGET_NR_signal 48 42 - #define TARGET_NR_acct 51 43 - #define TARGET_NR_umount2 52 44 - #define TARGET_NR_ioctl 54 45 - #define TARGET_NR_fcntl 55 46 - #define TARGET_NR_setpgid 57 47 - #define TARGET_NR_umask 60 48 - #define TARGET_NR_chroot 61 49 - #define TARGET_NR_ustat 62 50 - #define TARGET_NR_dup2 63 51 - #define TARGET_NR_getppid 64 52 - #define TARGET_NR_getpgrp 65 53 - #define TARGET_NR_setsid 66 54 - #define TARGET_NR_sigaction 67 55 - #define TARGET_NR_sigsuspend 72 56 - #define TARGET_NR_sigpending 73 57 - #define TARGET_NR_sethostname 74 58 - #define TARGET_NR_setrlimit 75 59 - #define TARGET_NR_getrusage 77 60 - #define TARGET_NR_gettimeofday 78 61 - #define TARGET_NR_settimeofday 79 62 - #define TARGET_NR_symlink 83 63 - #define TARGET_NR_readlink 85 64 - #define TARGET_NR_uselib 86 65 - #define TARGET_NR_swapon 87 66 - #define TARGET_NR_reboot 88 67 - #define TARGET_NR_readdir 89 68 - #define TARGET_NR_mmap 90 69 - #define TARGET_NR_munmap 91 70 - #define TARGET_NR_truncate 92 71 - #define TARGET_NR_ftruncate 93 72 - #define TARGET_NR_fchmod 94 73 - #define TARGET_NR_getpriority 96 74 - #define TARGET_NR_setpriority 97 75 - #define TARGET_NR_statfs 99 76 - #define TARGET_NR_fstatfs 100 77 - #define TARGET_NR_socketcall 102 78 - #define TARGET_NR_syslog 103 79 - #define TARGET_NR_setitimer 104 80 - #define TARGET_NR_getitimer 105 81 - #define TARGET_NR_stat 106 82 - #define TARGET_NR_lstat 107 83 - #define TARGET_NR_fstat 108 84 - #define TARGET_NR_lookup_dcookie 110 85 - #define TARGET_NR_vhangup 111 86 - #define TARGET_NR_idle 112 87 - #define TARGET_NR_wait4 114 88 - #define TARGET_NR_swapoff 115 89 - #define TARGET_NR_sysinfo 116 90 - #define TARGET_NR_ipc 117 91 - #define TARGET_NR_fsync 118 92 - #define TARGET_NR_sigreturn 119 93 - #define TARGET_NR_clone 120 94 - #define TARGET_NR_setdomainname 121 95 - #define TARGET_NR_uname 122 96 - #define TARGET_NR_adjtimex 124 97 - #define TARGET_NR_mprotect 125 98 - #define TARGET_NR_sigprocmask 126 99 - #define TARGET_NR_create_module 127 100 - #define TARGET_NR_init_module 128 101 - #define TARGET_NR_delete_module 129 102 - #define TARGET_NR_get_kernel_syms 130 103 - #define TARGET_NR_quotactl 131 104 - #define TARGET_NR_getpgid 132 105 - #define TARGET_NR_fchdir 133 106 - #define TARGET_NR_bdflush 134 107 - #define TARGET_NR_sysfs 135 108 - #define TARGET_NR_personality 136 109 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 110 - #define TARGET_NR_getdents 141 111 - #define TARGET_NR_flock 143 112 - #define TARGET_NR_msync 144 113 - #define TARGET_NR_readv 145 114 - #define TARGET_NR_writev 146 115 - #define TARGET_NR_getsid 147 116 - #define TARGET_NR_fdatasync 148 117 - #define TARGET_NR__sysctl 149 118 - #define TARGET_NR_mlock 150 119 - #define TARGET_NR_munlock 151 120 - #define TARGET_NR_mlockall 152 121 - #define TARGET_NR_munlockall 153 122 - #define TARGET_NR_sched_setparam 154 123 - #define TARGET_NR_sched_getparam 155 124 - #define TARGET_NR_sched_setscheduler 156 125 - #define TARGET_NR_sched_getscheduler 157 126 - #define TARGET_NR_sched_yield 158 127 - #define TARGET_NR_sched_get_priority_max 159 128 - #define TARGET_NR_sched_get_priority_min 160 129 - #define TARGET_NR_sched_rr_get_interval 161 130 - #define TARGET_NR_nanosleep 162 131 - #define TARGET_NR_mremap 163 132 - #define TARGET_NR_query_module 167 133 - #define TARGET_NR_poll 168 134 - #define TARGET_NR_nfsservctl 169 135 - #define TARGET_NR_prctl 172 136 - #define TARGET_NR_rt_sigreturn 173 137 - #define TARGET_NR_rt_sigaction 174 138 - #define TARGET_NR_rt_sigprocmask 175 139 - #define TARGET_NR_rt_sigpending 176 140 - #define TARGET_NR_rt_sigtimedwait 177 141 - #define TARGET_NR_rt_sigqueueinfo 178 142 - #define TARGET_NR_rt_sigsuspend 179 143 - #define TARGET_NR_pread64 180 144 - #define TARGET_NR_pwrite64 181 145 - #define TARGET_NR_getcwd 183 146 - #define TARGET_NR_capget 184 147 - #define TARGET_NR_capset 185 148 - #define TARGET_NR_sigaltstack 186 149 - #define TARGET_NR_sendfile 187 150 - #define TARGET_NR_getpmsg 188 151 - #define TARGET_NR_putpmsg 189 152 - #define TARGET_NR_vfork 190 153 - #define TARGET_NR_pivot_root 217 154 - #define TARGET_NR_mincore 218 155 - #define TARGET_NR_madvise 219 156 - #define TARGET_NR_getdents64 220 157 - #define TARGET_NR_readahead 222 158 - #define TARGET_NR_setxattr 224 159 - #define TARGET_NR_lsetxattr 225 160 - #define TARGET_NR_fsetxattr 226 161 - #define TARGET_NR_getxattr 227 162 - #define TARGET_NR_lgetxattr 228 163 - #define TARGET_NR_fgetxattr 229 164 - #define TARGET_NR_listxattr 230 165 - #define TARGET_NR_llistxattr 231 166 - #define TARGET_NR_flistxattr 232 167 - #define TARGET_NR_removexattr 233 168 - #define TARGET_NR_lremovexattr 234 169 - #define TARGET_NR_fremovexattr 235 170 - #define TARGET_NR_gettid 236 171 - #define TARGET_NR_tkill 237 172 - #define TARGET_NR_futex 238 173 - #define TARGET_NR_sched_setaffinity 239 174 - #define TARGET_NR_sched_getaffinity 240 175 - #define TARGET_NR_tgkill 241 176 - /* Number 242 is reserved for tux */ 177 - #define TARGET_NR_io_setup 243 178 - #define TARGET_NR_io_destroy 244 179 - #define TARGET_NR_io_getevents 245 180 - #define TARGET_NR_io_submit 246 181 - #define TARGET_NR_io_cancel 247 182 - #define TARGET_NR_exit_group 248 183 - #define TARGET_NR_epoll_create 249 184 - #define TARGET_NR_epoll_ctl 250 185 - #define TARGET_NR_epoll_wait 251 186 - #define TARGET_NR_set_tid_address 252 187 - #define TARGET_NR_fadvise64 253 188 - #define TARGET_NR_timer_create 254 189 - #define TARGET_NR_timer_settime (TARGET_NR_timer_create+1) 190 - #define TARGET_NR_timer_gettime (TARGET_NR_timer_create+2) 191 - #define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create+3) 192 - #define TARGET_NR_timer_delete (TARGET_NR_timer_create+4) 193 - #define TARGET_NR_clock_settime (TARGET_NR_timer_create+5) 194 - #define TARGET_NR_clock_gettime (TARGET_NR_timer_create+6) 195 - #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) 196 - #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) 197 - /* Number 263 is reserved for vserver */ 198 - #define TARGET_NR_statfs64 265 199 - #define TARGET_NR_fstatfs64 266 200 - #define TARGET_NR_remap_file_pages 267 201 - /* Number 268 is reserved for new sys_mbind */ 202 - /* Number 269 is reserved for new sys_get_mempolicy */ 203 - /* Number 270 is reserved for new sys_set_mempolicy */ 204 - #define TARGET_NR_mq_open 271 205 - #define TARGET_NR_mq_unlink 272 206 - #define TARGET_NR_mq_timedsend 273 207 - #define TARGET_NR_mq_timedreceive 274 208 - #define TARGET_NR_mq_notify 275 209 - #define TARGET_NR_mq_getsetattr 276 210 - #define TARGET_NR_kexec_load 277 211 - #define TARGET_NR_add_key 278 212 - #define TARGET_NR_request_key 279 213 - #define TARGET_NR_keyctl 280 214 - #define TARGET_NR_waitid 281 215 - #define TARGET_NR_ioprio_set 282 216 - #define TARGET_NR_ioprio_get 283 217 - #define TARGET_NR_inotify_init 284 218 - #define TARGET_NR_inotify_add_watch 285 219 - #define TARGET_NR_inotify_rm_watch 286 220 - /* Number 287 is reserved for new sys_migrate_pages */ 221 - #define TARGET_NR_openat 288 222 - #define TARGET_NR_mkdirat 289 223 - #define TARGET_NR_mknodat 290 224 - #define TARGET_NR_fchownat 291 225 - #define TARGET_NR_futimesat 292 226 - #define TARGET_NR_unlinkat 294 227 - #define TARGET_NR_renameat 295 228 - #define TARGET_NR_linkat 296 229 - #define TARGET_NR_symlinkat 297 230 - #define TARGET_NR_readlinkat 298 231 - #define TARGET_NR_fchmodat 299 232 - #define TARGET_NR_faccessat 300 233 - #define TARGET_NR_pselect6 301 234 - #define TARGET_NR_ppoll 302 235 - #define TARGET_NR_unshare 303 236 - #define TARGET_NR_set_robust_list 304 237 - #define TARGET_NR_get_robust_list 305 238 - #define TARGET_NR_splice 306 239 - #define TARGET_NR_sync_file_range 307 240 - #define TARGET_NR_tee 308 241 - #define TARGET_NR_vmsplice 309 242 - /* Number 310 is reserved for new sys_move_pages */ 243 - #define TARGET_NR_getcpu 311 244 - #define TARGET_NR_epoll_pwait 312 245 - #define TARGET_NR_utimes 313 246 - #define TARGET_NR_fallocate 314 247 - #define TARGET_NR_utimensat 315 248 - #define TARGET_NR_signalfd 316 249 - #define TARGET_NR_timerfd 317 250 - #define TARGET_NR_eventfd 318 251 - #define TARGET_NR_timerfd_create 319 252 - #define TARGET_NR_timerfd_settime 320 253 - #define TARGET_NR_timerfd_gettime 321 254 - #define TARGET_NR_signalfd4 322 255 - #define TARGET_NR_eventfd2 323 256 - #define TARGET_NR_inotify_init1 324 257 - #define TARGET_NR_pipe2 325 258 - #define TARGET_NR_dup3 326 259 - #define TARGET_NR_epoll_create1 327 260 - #define TARGET_NR_preadv 328 261 - #define TARGET_NR_pwritev 329 262 - #define TARGET_NR_rt_tgsigqueueinfo 330 263 - #define TARGET_NR_perf_event_open 331 264 - #define TARGET_NR_fanotify_init 332 265 - #define TARGET_NR_fanotify_mark 333 266 - #define TARGET_NR_prlimit64 334 267 - #define TARGET_NR_name_to_handle_at 335 268 - #define TARGET_NR_open_by_handle_at 336 269 - #define TARGET_NR_clock_adjtime 337 270 - #define TARGET_NR_syncfs 338 271 - #define TARGET_NR_setns 339 272 - #define TARGET_NR_process_vm_readv 340 273 - #define TARGET_NR_process_vm_writev 341 274 - #define TARGET_NR_s390_runtime_instr 342 275 - #define TARGET_NR_kcmp 343 276 - #define TARGET_NR_finit_module 344 277 - #define TARGET_NR_sched_setattr 345 278 - #define TARGET_NR_sched_getattr 346 279 - #define TARGET_NR_renameat2 347 280 - #define TARGET_NR_seccomp 348 281 - #define TARGET_NR_getrandom 349 282 - #define TARGET_NR_memfd_create 350 283 - #define TARGET_NR_bpf 351 284 - #define TARGET_NR_s390_pci_mmio_write 352 285 - #define TARGET_NR_s390_pci_mmio_read 353 286 - #define TARGET_NR_execveat 354 287 - #define TARGET_NR_userfaultfd 355 288 - #define TARGET_NR_membarrier 356 289 - #define TARGET_NR_recvmmsg 357 290 - #define TARGET_NR_sendmmsg 358 291 - #define TARGET_NR_socket 359 292 - #define TARGET_NR_socketpair 360 293 - #define TARGET_NR_bind 361 294 - #define TARGET_NR_connect 362 295 - #define TARGET_NR_listen 363 296 - #define TARGET_NR_accept4 364 297 - #define TARGET_NR_getsockopt 365 298 - #define TARGET_NR_setsockopt 366 299 - #define TARGET_NR_getsockname 367 300 - #define TARGET_NR_getpeername 368 301 - #define TARGET_NR_sendto 369 302 - #define TARGET_NR_sendmsg 370 303 - #define TARGET_NR_recvfrom 371 304 - #define TARGET_NR_recvmsg 372 305 - #define TARGET_NR_shutdown 373 306 - #define TARGET_NR_mlock2 374 307 - 308 - /* 309 - * There are some system calls that are not present on 64 bit, some 310 - * have a different name although they do the same (e.g. TARGET_NR_chown32 311 - * is TARGET_NR_chown on 64 bit). 312 - */ 313 - #ifndef TARGET_S390X 314 - 315 - #define TARGET_NR_time 13 316 - #define TARGET_NR_lchown 16 317 - #define TARGET_NR_setuid 23 318 - #define TARGET_NR_getuid 24 319 - #define TARGET_NR_stime 25 320 - #define TARGET_NR_setgid 46 321 - #define TARGET_NR_getgid 47 322 - #define TARGET_NR_geteuid 49 323 - #define TARGET_NR_getegid 50 324 - #define TARGET_NR_setreuid 70 325 - #define TARGET_NR_setregid 71 326 - #define TARGET_NR_getrlimit 76 327 - #define TARGET_NR_getgroups 80 328 - #define TARGET_NR_setgroups 81 329 - #define TARGET_NR_fchown 95 330 - #define TARGET_NR_ioperm 101 331 - #define TARGET_NR_setfsuid 138 332 - #define TARGET_NR_setfsgid 139 333 - #define TARGET_NR__llseek 140 334 - #define TARGET_NR__newselect 142 335 - #define TARGET_NR_setresuid 164 336 - #define TARGET_NR_getresuid 165 337 - #define TARGET_NR_setresgid 170 338 - #define TARGET_NR_getresgid 171 339 - #define TARGET_NR_chown 182 340 - #define TARGET_NR_ugetrlimit 191 /* SuS compliant getrlimit */ 341 - #define TARGET_NR_mmap2 192 342 - #define TARGET_NR_truncate64 193 343 - #define TARGET_NR_ftruncate64 194 344 - #define TARGET_NR_stat64 195 345 - #define TARGET_NR_lstat64 196 346 - #define TARGET_NR_fstat64 197 347 - #define TARGET_NR_lchown32 198 348 - #define TARGET_NR_getuid32 199 349 - #define TARGET_NR_getgid32 200 350 - #define TARGET_NR_geteuid32 201 351 - #define TARGET_NR_getegid32 202 352 - #define TARGET_NR_setreuid32 203 353 - #define TARGET_NR_setregid32 204 354 - #define TARGET_NR_getgroups32 205 355 - #define TARGET_NR_setgroups32 206 356 - #define TARGET_NR_fchown32 207 357 - #define TARGET_NR_setresuid32 208 358 - #define TARGET_NR_getresuid32 209 359 - #define TARGET_NR_setresgid32 210 360 - #define TARGET_NR_getresgid32 211 361 - #define TARGET_NR_chown32 212 362 - #define TARGET_NR_setuid32 213 363 - #define TARGET_NR_setgid32 214 364 - #define TARGET_NR_setfsuid32 215 365 - #define TARGET_NR_setfsgid32 216 366 - #define TARGET_NR_fcntl64 221 367 - #define TARGET_NR_sendfile64 223 368 - #define TARGET_NR_fadvise64_64 264 369 - #define TARGET_NR_fstatat64 293 370 - 371 - #else 372 - 373 - #define TARGET_NR_select 142 374 - #define TARGET_NR_getrlimit 191 /* SuS compliant getrlimit */ 375 - #define TARGET_NR_lchown 198 376 - #define TARGET_NR_getuid 199 377 - #define TARGET_NR_getgid 200 378 - #define TARGET_NR_geteuid 201 379 - #define TARGET_NR_getegid 202 380 - #define TARGET_NR_setreuid 203 381 - #define TARGET_NR_setregid 204 382 - #define TARGET_NR_getgroups 205 383 - #define TARGET_NR_setgroups 206 384 - #define TARGET_NR_fchown 207 385 - #define TARGET_NR_setresuid 208 386 - #define TARGET_NR_getresuid 209 387 - #define TARGET_NR_setresgid 210 388 - #define TARGET_NR_getresgid 211 389 - #define TARGET_NR_chown 212 390 - #define TARGET_NR_setuid 213 391 - #define TARGET_NR_setgid 214 392 - #define TARGET_NR_setfsuid 215 393 - #define TARGET_NR_setfsgid 216 394 - #define TARGET_NR_newfstatat 293 395 - 396 - #endif 397 - 398 - #endif
+32
linux-user/s390x/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_S390X_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */\n" "${fileguard}" 32 + ) > "$out"
+5
linux-user/sh4/Makefile.objs
··· 1 + generated-files-y += linux-user/sh4/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/sh4/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/sh4/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+442
linux-user/sh4/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for sh 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> 7 + # 8 + # The <abi> is always "common" for this file 9 + # 10 + 0 common restart_syscall sys_restart_syscall 11 + 1 common exit sys_exit 12 + 2 common fork sys_fork 13 + 3 common read sys_read 14 + 4 common write sys_write 15 + 5 common open sys_open 16 + 6 common close sys_close 17 + 7 common waitpid sys_waitpid 18 + 8 common creat sys_creat 19 + 9 common link sys_link 20 + 10 common unlink sys_unlink 21 + 11 common execve sys_execve 22 + 12 common chdir sys_chdir 23 + 13 common time sys_time32 24 + 14 common mknod sys_mknod 25 + 15 common chmod sys_chmod 26 + 16 common lchown sys_lchown16 27 + # 17 was break 28 + 18 common oldstat sys_stat 29 + 19 common lseek sys_lseek 30 + 20 common getpid sys_getpid 31 + 21 common mount sys_mount 32 + 22 common umount sys_oldumount 33 + 23 common setuid sys_setuid16 34 + 24 common getuid sys_getuid16 35 + 25 common stime sys_stime32 36 + 26 common ptrace sys_ptrace 37 + 27 common alarm sys_alarm 38 + 28 common oldfstat sys_fstat 39 + 29 common pause sys_pause 40 + 30 common utime sys_utime32 41 + # 31 was stty 42 + # 32 was gtty 43 + 33 common access sys_access 44 + 34 common nice sys_nice 45 + # 35 was ftime 46 + 36 common sync sys_sync 47 + 37 common kill sys_kill 48 + 38 common rename sys_rename 49 + 39 common mkdir sys_mkdir 50 + 40 common rmdir sys_rmdir 51 + 41 common dup sys_dup 52 + 42 common pipe sys_sh_pipe 53 + 43 common times sys_times 54 + # 44 was prof 55 + 45 common brk sys_brk 56 + 46 common setgid sys_setgid16 57 + 47 common getgid sys_getgid16 58 + 48 common signal sys_signal 59 + 49 common geteuid sys_geteuid16 60 + 50 common getegid sys_getegid16 61 + 51 common acct sys_acct 62 + 52 common umount2 sys_umount 63 + # 53 was lock 64 + 54 common ioctl sys_ioctl 65 + 55 common fcntl sys_fcntl 66 + # 56 was mpx 67 + 57 common setpgid sys_setpgid 68 + # 58 was ulimit 69 + # 59 was olduname 70 + 60 common umask sys_umask 71 + 61 common chroot sys_chroot 72 + 62 common ustat sys_ustat 73 + 63 common dup2 sys_dup2 74 + 64 common getppid sys_getppid 75 + 65 common getpgrp sys_getpgrp 76 + 66 common setsid sys_setsid 77 + 67 common sigaction sys_sigaction 78 + 68 common sgetmask sys_sgetmask 79 + 69 common ssetmask sys_ssetmask 80 + 70 common setreuid sys_setreuid16 81 + 71 common setregid sys_setregid16 82 + 72 common sigsuspend sys_sigsuspend 83 + 73 common sigpending sys_sigpending 84 + 74 common sethostname sys_sethostname 85 + 75 common setrlimit sys_setrlimit 86 + 76 common getrlimit sys_old_getrlimit 87 + 77 common getrusage sys_getrusage 88 + 78 common gettimeofday sys_gettimeofday 89 + 79 common settimeofday sys_settimeofday 90 + 80 common getgroups sys_getgroups16 91 + 81 common setgroups sys_setgroups16 92 + # 82 was select 93 + 83 common symlink sys_symlink 94 + 84 common oldlstat sys_lstat 95 + 85 common readlink sys_readlink 96 + 86 common uselib sys_uselib 97 + 87 common swapon sys_swapon 98 + 88 common reboot sys_reboot 99 + 89 common readdir sys_old_readdir 100 + 90 common mmap old_mmap 101 + 91 common munmap sys_munmap 102 + 92 common truncate sys_truncate 103 + 93 common ftruncate sys_ftruncate 104 + 94 common fchmod sys_fchmod 105 + 95 common fchown sys_fchown16 106 + 96 common getpriority sys_getpriority 107 + 97 common setpriority sys_setpriority 108 + # 98 was profil 109 + 99 common statfs sys_statfs 110 + 100 common fstatfs sys_fstatfs 111 + # 101 was ioperm 112 + 102 common socketcall sys_socketcall 113 + 103 common syslog sys_syslog 114 + 104 common setitimer sys_setitimer 115 + 105 common getitimer sys_getitimer 116 + 106 common stat sys_newstat 117 + 107 common lstat sys_newlstat 118 + 108 common fstat sys_newfstat 119 + 109 common olduname sys_uname 120 + # 110 was iopl 121 + 111 common vhangup sys_vhangup 122 + # 112 was idle 123 + # 113 was vm86old 124 + 114 common wait4 sys_wait4 125 + 115 common swapoff sys_swapoff 126 + 116 common sysinfo sys_sysinfo 127 + 117 common ipc sys_ipc 128 + 118 common fsync sys_fsync 129 + 119 common sigreturn sys_sigreturn 130 + 120 common clone sys_clone 131 + 121 common setdomainname sys_setdomainname 132 + 122 common uname sys_newuname 133 + 123 common cacheflush sys_cacheflush 134 + 124 common adjtimex sys_adjtimex_time32 135 + 125 common mprotect sys_mprotect 136 + 126 common sigprocmask sys_sigprocmask 137 + # 127 was create_module 138 + 128 common init_module sys_init_module 139 + 129 common delete_module sys_delete_module 140 + # 130 was get_kernel_syms 141 + 131 common quotactl sys_quotactl 142 + 132 common getpgid sys_getpgid 143 + 133 common fchdir sys_fchdir 144 + 134 common bdflush sys_bdflush 145 + 135 common sysfs sys_sysfs 146 + 136 common personality sys_personality 147 + # 137 was afs_syscall 148 + 138 common setfsuid sys_setfsuid16 149 + 139 common setfsgid sys_setfsgid16 150 + 140 common _llseek sys_llseek 151 + 141 common getdents sys_getdents 152 + 142 common _newselect sys_select 153 + 143 common flock sys_flock 154 + 144 common msync sys_msync 155 + 145 common readv sys_readv 156 + 146 common writev sys_writev 157 + 147 common getsid sys_getsid 158 + 148 common fdatasync sys_fdatasync 159 + 149 common _sysctl sys_sysctl 160 + 150 common mlock sys_mlock 161 + 151 common munlock sys_munlock 162 + 152 common mlockall sys_mlockall 163 + 153 common munlockall sys_munlockall 164 + 154 common sched_setparam sys_sched_setparam 165 + 155 common sched_getparam sys_sched_getparam 166 + 156 common sched_setscheduler sys_sched_setscheduler 167 + 157 common sched_getscheduler sys_sched_getscheduler 168 + 158 common sched_yield sys_sched_yield 169 + 159 common sched_get_priority_max sys_sched_get_priority_max 170 + 160 common sched_get_priority_min sys_sched_get_priority_min 171 + 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32 172 + 162 common nanosleep sys_nanosleep_time32 173 + 163 common mremap sys_mremap 174 + 164 common setresuid sys_setresuid16 175 + 165 common getresuid sys_getresuid16 176 + # 166 was vm86 177 + # 167 was query_module 178 + 168 common poll sys_poll 179 + 169 common nfsservctl sys_ni_syscall 180 + 170 common setresgid sys_setresgid16 181 + 171 common getresgid sys_getresgid16 182 + 172 common prctl sys_prctl 183 + 173 common rt_sigreturn sys_rt_sigreturn 184 + 174 common rt_sigaction sys_rt_sigaction 185 + 175 common rt_sigprocmask sys_rt_sigprocmask 186 + 176 common rt_sigpending sys_rt_sigpending 187 + 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 188 + 178 common rt_sigqueueinfo sys_rt_sigqueueinfo 189 + 179 common rt_sigsuspend sys_rt_sigsuspend 190 + 180 common pread64 sys_pread_wrapper 191 + 181 common pwrite64 sys_pwrite_wrapper 192 + 182 common chown sys_chown16 193 + 183 common getcwd sys_getcwd 194 + 184 common capget sys_capget 195 + 185 common capset sys_capset 196 + 186 common sigaltstack sys_sigaltstack 197 + 187 common sendfile sys_sendfile 198 + # 188 is reserved for getpmsg 199 + # 189 is reserved for putpmsg 200 + 190 common vfork sys_vfork 201 + 191 common ugetrlimit sys_getrlimit 202 + 192 common mmap2 sys_mmap2 203 + 193 common truncate64 sys_truncate64 204 + 194 common ftruncate64 sys_ftruncate64 205 + 195 common stat64 sys_stat64 206 + 196 common lstat64 sys_lstat64 207 + 197 common fstat64 sys_fstat64 208 + 198 common lchown32 sys_lchown 209 + 199 common getuid32 sys_getuid 210 + 200 common getgid32 sys_getgid 211 + 201 common geteuid32 sys_geteuid 212 + 202 common getegid32 sys_getegid 213 + 203 common setreuid32 sys_setreuid 214 + 204 common setregid32 sys_setregid 215 + 205 common getgroups32 sys_getgroups 216 + 206 common setgroups32 sys_setgroups 217 + 207 common fchown32 sys_fchown 218 + 208 common setresuid32 sys_setresuid 219 + 209 common getresuid32 sys_getresuid 220 + 210 common setresgid32 sys_setresgid 221 + 211 common getresgid32 sys_getresgid 222 + 212 common chown32 sys_chown 223 + 213 common setuid32 sys_setuid 224 + 214 common setgid32 sys_setgid 225 + 215 common setfsuid32 sys_setfsuid 226 + 216 common setfsgid32 sys_setfsgid 227 + 217 common pivot_root sys_pivot_root 228 + 218 common mincore sys_mincore 229 + 219 common madvise sys_madvise 230 + 220 common getdents64 sys_getdents64 231 + 221 common fcntl64 sys_fcntl64 232 + # 222 is reserved for tux 233 + # 223 is unused 234 + 224 common gettid sys_gettid 235 + 225 common readahead sys_readahead 236 + 226 common setxattr sys_setxattr 237 + 227 common lsetxattr sys_lsetxattr 238 + 228 common fsetxattr sys_fsetxattr 239 + 229 common getxattr sys_getxattr 240 + 230 common lgetxattr sys_lgetxattr 241 + 231 common fgetxattr sys_fgetxattr 242 + 232 common listxattr sys_listxattr 243 + 233 common llistxattr sys_llistxattr 244 + 234 common flistxattr sys_flistxattr 245 + 235 common removexattr sys_removexattr 246 + 236 common lremovexattr sys_lremovexattr 247 + 237 common fremovexattr sys_fremovexattr 248 + 238 common tkill sys_tkill 249 + 239 common sendfile64 sys_sendfile64 250 + 240 common futex sys_futex_time32 251 + 241 common sched_setaffinity sys_sched_setaffinity 252 + 242 common sched_getaffinity sys_sched_getaffinity 253 + # 243 is reserved for set_thread_area 254 + # 244 is reserved for get_thread_area 255 + 245 common io_setup sys_io_setup 256 + 246 common io_destroy sys_io_destroy 257 + 247 common io_getevents sys_io_getevents_time32 258 + 248 common io_submit sys_io_submit 259 + 249 common io_cancel sys_io_cancel 260 + 250 common fadvise64 sys_fadvise64 261 + # 251 is unused 262 + 252 common exit_group sys_exit_group 263 + 253 common lookup_dcookie sys_lookup_dcookie 264 + 254 common epoll_create sys_epoll_create 265 + 255 common epoll_ctl sys_epoll_ctl 266 + 256 common epoll_wait sys_epoll_wait 267 + 257 common remap_file_pages sys_remap_file_pages 268 + 258 common set_tid_address sys_set_tid_address 269 + 259 common timer_create sys_timer_create 270 + 260 common timer_settime sys_timer_settime32 271 + 261 common timer_gettime sys_timer_gettime32 272 + 262 common timer_getoverrun sys_timer_getoverrun 273 + 263 common timer_delete sys_timer_delete 274 + 264 common clock_settime sys_clock_settime32 275 + 265 common clock_gettime sys_clock_gettime32 276 + 266 common clock_getres sys_clock_getres_time32 277 + 267 common clock_nanosleep sys_clock_nanosleep_time32 278 + 268 common statfs64 sys_statfs64 279 + 269 common fstatfs64 sys_fstatfs64 280 + 270 common tgkill sys_tgkill 281 + 271 common utimes sys_utimes_time32 282 + 272 common fadvise64_64 sys_fadvise64_64_wrapper 283 + # 273 is reserved for vserver 284 + 274 common mbind sys_mbind 285 + 275 common get_mempolicy sys_get_mempolicy 286 + 276 common set_mempolicy sys_set_mempolicy 287 + 277 common mq_open sys_mq_open 288 + 278 common mq_unlink sys_mq_unlink 289 + 279 common mq_timedsend sys_mq_timedsend_time32 290 + 280 common mq_timedreceive sys_mq_timedreceive_time32 291 + 281 common mq_notify sys_mq_notify 292 + 282 common mq_getsetattr sys_mq_getsetattr 293 + 283 common kexec_load sys_kexec_load 294 + 284 common waitid sys_waitid 295 + 285 common add_key sys_add_key 296 + 286 common request_key sys_request_key 297 + 287 common keyctl sys_keyctl 298 + 288 common ioprio_set sys_ioprio_set 299 + 289 common ioprio_get sys_ioprio_get 300 + 290 common inotify_init sys_inotify_init 301 + 291 common inotify_add_watch sys_inotify_add_watch 302 + 292 common inotify_rm_watch sys_inotify_rm_watch 303 + # 293 is unused 304 + 294 common migrate_pages sys_migrate_pages 305 + 295 common openat sys_openat 306 + 296 common mkdirat sys_mkdirat 307 + 297 common mknodat sys_mknodat 308 + 298 common fchownat sys_fchownat 309 + 299 common futimesat sys_futimesat_time32 310 + 300 common fstatat64 sys_fstatat64 311 + 301 common unlinkat sys_unlinkat 312 + 302 common renameat sys_renameat 313 + 303 common linkat sys_linkat 314 + 304 common symlinkat sys_symlinkat 315 + 305 common readlinkat sys_readlinkat 316 + 306 common fchmodat sys_fchmodat 317 + 307 common faccessat sys_faccessat 318 + 308 common pselect6 sys_pselect6_time32 319 + 309 common ppoll sys_ppoll_time32 320 + 310 common unshare sys_unshare 321 + 311 common set_robust_list sys_set_robust_list 322 + 312 common get_robust_list sys_get_robust_list 323 + 313 common splice sys_splice 324 + 314 common sync_file_range sys_sync_file_range 325 + 315 common tee sys_tee 326 + 316 common vmsplice sys_vmsplice 327 + 317 common move_pages sys_move_pages 328 + 318 common getcpu sys_getcpu 329 + 319 common epoll_pwait sys_epoll_pwait 330 + 320 common utimensat sys_utimensat_time32 331 + 321 common signalfd sys_signalfd 332 + 322 common timerfd_create sys_timerfd_create 333 + 323 common eventfd sys_eventfd 334 + 324 common fallocate sys_fallocate 335 + 325 common timerfd_settime sys_timerfd_settime32 336 + 326 common timerfd_gettime sys_timerfd_gettime32 337 + 327 common signalfd4 sys_signalfd4 338 + 328 common eventfd2 sys_eventfd2 339 + 329 common epoll_create1 sys_epoll_create1 340 + 330 common dup3 sys_dup3 341 + 331 common pipe2 sys_pipe2 342 + 332 common inotify_init1 sys_inotify_init1 343 + 333 common preadv sys_preadv 344 + 334 common pwritev sys_pwritev 345 + 335 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 346 + 336 common perf_event_open sys_perf_event_open 347 + 337 common fanotify_init sys_fanotify_init 348 + 338 common fanotify_mark sys_fanotify_mark 349 + 339 common prlimit64 sys_prlimit64 350 + 340 common socket sys_socket 351 + 341 common bind sys_bind 352 + 342 common connect sys_connect 353 + 343 common listen sys_listen 354 + 344 common accept sys_accept 355 + 345 common getsockname sys_getsockname 356 + 346 common getpeername sys_getpeername 357 + 347 common socketpair sys_socketpair 358 + 348 common send sys_send 359 + 349 common sendto sys_sendto 360 + 350 common recv sys_recv 361 + 351 common recvfrom sys_recvfrom 362 + 352 common shutdown sys_shutdown 363 + 353 common setsockopt sys_setsockopt 364 + 354 common getsockopt sys_getsockopt 365 + 355 common sendmsg sys_sendmsg 366 + 356 common recvmsg sys_recvmsg 367 + 357 common recvmmsg sys_recvmmsg_time32 368 + 358 common accept4 sys_accept4 369 + 359 common name_to_handle_at sys_name_to_handle_at 370 + 360 common open_by_handle_at sys_open_by_handle_at 371 + 361 common clock_adjtime sys_clock_adjtime32 372 + 362 common syncfs sys_syncfs 373 + 363 common sendmmsg sys_sendmmsg 374 + 364 common setns sys_setns 375 + 365 common process_vm_readv sys_process_vm_readv 376 + 366 common process_vm_writev sys_process_vm_writev 377 + 367 common kcmp sys_kcmp 378 + 368 common finit_module sys_finit_module 379 + 369 common sched_getattr sys_sched_getattr 380 + 370 common sched_setattr sys_sched_setattr 381 + 371 common renameat2 sys_renameat2 382 + 372 common seccomp sys_seccomp 383 + 373 common getrandom sys_getrandom 384 + 374 common memfd_create sys_memfd_create 385 + 375 common bpf sys_bpf 386 + 376 common execveat sys_execveat 387 + 377 common userfaultfd sys_userfaultfd 388 + 378 common membarrier sys_membarrier 389 + 379 common mlock2 sys_mlock2 390 + 380 common copy_file_range sys_copy_file_range 391 + 381 common preadv2 sys_preadv2 392 + 382 common pwritev2 sys_pwritev2 393 + 383 common statx sys_statx 394 + 384 common pkey_mprotect sys_pkey_mprotect 395 + 385 common pkey_alloc sys_pkey_alloc 396 + 386 common pkey_free sys_pkey_free 397 + 387 common rseq sys_rseq 398 + # room for arch specific syscalls 399 + 393 common semget sys_semget 400 + 394 common semctl sys_semctl 401 + 395 common shmget sys_shmget 402 + 396 common shmctl sys_shmctl 403 + 397 common shmat sys_shmat 404 + 398 common shmdt sys_shmdt 405 + 399 common msgget sys_msgget 406 + 400 common msgsnd sys_msgsnd 407 + 401 common msgrcv sys_msgrcv 408 + 402 common msgctl sys_msgctl 409 + 403 common clock_gettime64 sys_clock_gettime 410 + 404 common clock_settime64 sys_clock_settime 411 + 405 common clock_adjtime64 sys_clock_adjtime 412 + 406 common clock_getres_time64 sys_clock_getres 413 + 407 common clock_nanosleep_time64 sys_clock_nanosleep 414 + 408 common timer_gettime64 sys_timer_gettime 415 + 409 common timer_settime64 sys_timer_settime 416 + 410 common timerfd_gettime64 sys_timerfd_gettime 417 + 411 common timerfd_settime64 sys_timerfd_settime 418 + 412 common utimensat_time64 sys_utimensat 419 + 413 common pselect6_time64 sys_pselect6 420 + 414 common ppoll_time64 sys_ppoll 421 + 416 common io_pgetevents_time64 sys_io_pgetevents 422 + 417 common recvmmsg_time64 sys_recvmmsg 423 + 418 common mq_timedsend_time64 sys_mq_timedsend 424 + 419 common mq_timedreceive_time64 sys_mq_timedreceive 425 + 420 common semtimedop_time64 sys_semtimedop 426 + 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait 427 + 422 common futex_time64 sys_futex 428 + 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 429 + 424 common pidfd_send_signal sys_pidfd_send_signal 430 + 425 common io_uring_setup sys_io_uring_setup 431 + 426 common io_uring_enter sys_io_uring_enter 432 + 427 common io_uring_register sys_io_uring_register 433 + 428 common open_tree sys_open_tree 434 + 429 common move_mount sys_move_mount 435 + 430 common fsopen sys_fsopen 436 + 431 common fsconfig sys_fsconfig 437 + 432 common fsmount sys_fsmount 438 + 433 common fspick sys_fspick 439 + 434 common pidfd_open sys_pidfd_open 440 + # 435 reserved for clone3 441 + 437 common openat2 sys_openat2 442 + 438 common pidfd_getfd sys_pidfd_getfd
-441
linux-user/sh4/syscall_nr.h
··· 1 - /* 2 - * This file contains the system call numbers. 3 - */ 4 - 5 - #ifndef LINUX_USER_SH4_SYSCALL_NR_H 6 - #define LINUX_USER_SH4_SYSCALL_NR_H 7 - 8 - #define TARGET_NR_restart_syscall 0 9 - #define TARGET_NR_exit 1 10 - #define TARGET_NR_fork 2 11 - #define TARGET_NR_read 3 12 - #define TARGET_NR_write 4 13 - #define TARGET_NR_open 5 14 - #define TARGET_NR_close 6 15 - #define TARGET_NR_waitpid 7 16 - #define TARGET_NR_creat 8 17 - #define TARGET_NR_link 9 18 - #define TARGET_NR_unlink 10 19 - #define TARGET_NR_execve 11 20 - #define TARGET_NR_chdir 12 21 - #define TARGET_NR_time 13 22 - #define TARGET_NR_mknod 14 23 - #define TARGET_NR_chmod 15 24 - #define TARGET_NR_lchown 16 25 - #define TARGET_NR_break 17 26 - #define TARGET_NR_oldstat 18 27 - #define TARGET_NR_lseek 19 28 - #define TARGET_NR_getpid 20 29 - #define TARGET_NR_mount 21 30 - #define TARGET_NR_umount 22 31 - #define TARGET_NR_setuid 23 32 - #define TARGET_NR_getuid 24 33 - #define TARGET_NR_stime 25 34 - #define TARGET_NR_ptrace 26 35 - #define TARGET_NR_alarm 27 36 - #define TARGET_NR_oldfstat 28 37 - #define TARGET_NR_pause 29 38 - #define TARGET_NR_utime 30 39 - #define TARGET_NR_stty 31 40 - #define TARGET_NR_gtty 32 41 - #define TARGET_NR_access 33 42 - #define TARGET_NR_nice 34 43 - #define TARGET_NR_ftime 35 44 - #define TARGET_NR_sync 36 45 - #define TARGET_NR_kill 37 46 - #define TARGET_NR_rename 38 47 - #define TARGET_NR_mkdir 39 48 - #define TARGET_NR_rmdir 40 49 - #define TARGET_NR_dup 41 50 - #define TARGET_NR_pipe 42 51 - #define TARGET_NR_times 43 52 - #define TARGET_NR_prof 44 53 - #define TARGET_NR_brk 45 54 - #define TARGET_NR_setgid 46 55 - #define TARGET_NR_getgid 47 56 - #define TARGET_NR_signal 48 57 - #define TARGET_NR_geteuid 49 58 - #define TARGET_NR_getegid 50 59 - #define TARGET_NR_acct 51 60 - #define TARGET_NR_umount2 52 61 - #define TARGET_NR_lock 53 62 - #define TARGET_NR_ioctl 54 63 - #define TARGET_NR_fcntl 55 64 - #define TARGET_NR_mpx 56 65 - #define TARGET_NR_setpgid 57 66 - #define TARGET_NR_ulimit 58 67 - #define TARGET_NR_oldolduname 59 68 - #define TARGET_NR_umask 60 69 - #define TARGET_NR_chroot 61 70 - #define TARGET_NR_ustat 62 71 - #define TARGET_NR_dup2 63 72 - #define TARGET_NR_getppid 64 73 - #define TARGET_NR_getpgrp 65 74 - #define TARGET_NR_setsid 66 75 - #define TARGET_NR_sigaction 67 76 - #define TARGET_NR_sgetmask 68 77 - #define TARGET_NR_ssetmask 69 78 - #define TARGET_NR_setreuid 70 79 - #define TARGET_NR_setregid 71 80 - #define TARGET_NR_sigsuspend 72 81 - #define TARGET_NR_sigpending 73 82 - #define TARGET_NR_sethostname 74 83 - #define TARGET_NR_setrlimit 75 84 - #define TARGET_NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */ 85 - #define TARGET_NR_getrusage 77 86 - #define TARGET_NR_gettimeofday 78 87 - #define TARGET_NR_settimeofday 79 88 - #define TARGET_NR_getgroups 80 89 - #define TARGET_NR_setgroups 81 90 - /* 82 was sys_oldselect */ 91 - #define TARGET_NR_symlink 83 92 - #define TARGET_NR_oldlstat 84 93 - #define TARGET_NR_readlink 85 94 - #define TARGET_NR_uselib 86 95 - #define TARGET_NR_swapon 87 96 - #define TARGET_NR_reboot 88 97 - #define TARGET_NR_readdir 89 98 - #define TARGET_NR_mmap 90 99 - #define TARGET_NR_munmap 91 100 - #define TARGET_NR_truncate 92 101 - #define TARGET_NR_ftruncate 93 102 - #define TARGET_NR_fchmod 94 103 - #define TARGET_NR_fchown 95 104 - #define TARGET_NR_getpriority 96 105 - #define TARGET_NR_setpriority 97 106 - #define TARGET_NR_profil 98 107 - #define TARGET_NR_statfs 99 108 - #define TARGET_NR_fstatfs 100 109 - #define TARGET_NR_ioperm 101 110 - #define TARGET_NR_socketcall 102 111 - #define TARGET_NR_syslog 103 112 - #define TARGET_NR_setitimer 104 113 - #define TARGET_NR_getitimer 105 114 - #define TARGET_NR_stat 106 115 - #define TARGET_NR_lstat 107 116 - #define TARGET_NR_fstat 108 117 - #define TARGET_NR_olduname 109 118 - #define TARGET_NR_iopl 110 119 - #define TARGET_NR_vhangup 111 120 - #define TARGET_NR_idle 112 121 - #define TARGET_NR_vm86old 113 122 - #define TARGET_NR_wait4 114 123 - #define TARGET_NR_swapoff 115 124 - #define TARGET_NR_sysinfo 116 125 - #define TARGET_NR_ipc 117 126 - #define TARGET_NR_fsync 118 127 - #define TARGET_NR_sigreturn 119 128 - #define TARGET_NR_clone 120 129 - #define TARGET_NR_setdomainname 121 130 - #define TARGET_NR_uname 122 131 - #define TARGET_NR_cacheflush 123 132 - #define TARGET_NR_adjtimex 124 133 - #define TARGET_NR_mprotect 125 134 - #define TARGET_NR_sigprocmask 126 135 - #define TARGET_NR_create_module 127 136 - #define TARGET_NR_init_module 128 137 - #define TARGET_NR_delete_module 129 138 - #define TARGET_NR_get_kernel_syms 130 139 - #define TARGET_NR_quotactl 131 140 - #define TARGET_NR_getpgid 132 141 - #define TARGET_NR_fchdir 133 142 - #define TARGET_NR_bdflush 134 143 - #define TARGET_NR_sysfs 135 144 - #define TARGET_NR_personality 136 145 - #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ 146 - #define TARGET_NR_setfsuid 138 147 - #define TARGET_NR_setfsgid 139 148 - #define TARGET_NR__llseek 140 149 - #define TARGET_NR_getdents 141 150 - #define TARGET_NR__newselect 142 151 - #define TARGET_NR_flock 143 152 - #define TARGET_NR_msync 144 153 - #define TARGET_NR_readv 145 154 - #define TARGET_NR_writev 146 155 - #define TARGET_NR_getsid 147 156 - #define TARGET_NR_fdatasync 148 157 - #define TARGET_NR__sysctl 149 158 - #define TARGET_NR_mlock 150 159 - #define TARGET_NR_munlock 151 160 - #define TARGET_NR_mlockall 152 161 - #define TARGET_NR_munlockall 153 162 - #define TARGET_NR_sched_setparam 154 163 - #define TARGET_NR_sched_getparam 155 164 - #define TARGET_NR_sched_setscheduler 156 165 - #define TARGET_NR_sched_getscheduler 157 166 - #define TARGET_NR_sched_yield 158 167 - #define TARGET_NR_sched_get_priority_max 159 168 - #define TARGET_NR_sched_get_priority_min 160 169 - #define TARGET_NR_sched_rr_get_interval 161 170 - #define TARGET_NR_nanosleep 162 171 - #define TARGET_NR_mremap 163 172 - #define TARGET_NR_setresuid 164 173 - #define TARGET_NR_getresuid 165 174 - #define TARGET_NR_vm86 166 175 - #define TARGET_NR_query_module 167 176 - #define TARGET_NR_poll 168 177 - #define TARGET_NR_nfsservctl 169 178 - #define TARGET_NR_setresgid 170 179 - #define TARGET_NR_getresgid 171 180 - #define TARGET_NR_prctl 172 181 - #define TARGET_NR_rt_sigreturn 173 182 - #define TARGET_NR_rt_sigaction 174 183 - #define TARGET_NR_rt_sigprocmask 175 184 - #define TARGET_NR_rt_sigpending 176 185 - #define TARGET_NR_rt_sigtimedwait 177 186 - #define TARGET_NR_rt_sigqueueinfo 178 187 - #define TARGET_NR_rt_sigsuspend 179 188 - #define TARGET_NR_pread64 180 189 - #define TARGET_NR_pwrite64 181 190 - #define TARGET_NR_chown 182 191 - #define TARGET_NR_getcwd 183 192 - #define TARGET_NR_capget 184 193 - #define TARGET_NR_capset 185 194 - #define TARGET_NR_sigaltstack 186 195 - #define TARGET_NR_sendfile 187 196 - #define TARGET_NR_streams1 188 /* some people actually want it */ 197 - #define TARGET_NR_streams2 189 /* some people actually want it */ 198 - #define TARGET_NR_vfork 190 199 - #define TARGET_NR_ugetrlimit 191 /* SuS compliant getrlimit */ 200 - #define TARGET_NR_mmap2 192 201 - #define TARGET_NR_truncate64 193 202 - #define TARGET_NR_ftruncate64 194 203 - #define TARGET_NR_stat64 195 204 - #define TARGET_NR_lstat64 196 205 - #define TARGET_NR_fstat64 197 206 - #define TARGET_NR_lchown32 198 207 - #define TARGET_NR_getuid32 199 208 - #define TARGET_NR_getgid32 200 209 - #define TARGET_NR_geteuid32 201 210 - #define TARGET_NR_getegid32 202 211 - #define TARGET_NR_setreuid32 203 212 - #define TARGET_NR_setregid32 204 213 - #define TARGET_NR_getgroups32 205 214 - #define TARGET_NR_setgroups32 206 215 - #define TARGET_NR_fchown32 207 216 - #define TARGET_NR_setresuid32 208 217 - #define TARGET_NR_getresuid32 209 218 - #define TARGET_NR_setresgid32 210 219 - #define TARGET_NR_getresgid32 211 220 - #define TARGET_NR_chown32 212 221 - #define TARGET_NR_setuid32 213 222 - #define TARGET_NR_setgid32 214 223 - #define TARGET_NR_setfsuid32 215 224 - #define TARGET_NR_setfsgid32 216 225 - #define TARGET_NR_pivot_root 217 226 - #define TARGET_NR_mincore 218 227 - #define TARGET_NR_madvise 219 228 - #define TARGET_NR_getdents64 220 229 - #define TARGET_NR_fcntl64 221 230 - /* 223 is unused */ 231 - #define TARGET_NR_gettid 224 232 - #define TARGET_NR_readahead 225 233 - #define TARGET_NR_setxattr 226 234 - #define TARGET_NR_lsetxattr 227 235 - #define TARGET_NR_fsetxattr 228 236 - #define TARGET_NR_getxattr 229 237 - #define TARGET_NR_lgetxattr 230 238 - #define TARGET_NR_fgetxattr 231 239 - #define TARGET_NR_listxattr 232 240 - #define TARGET_NR_llistxattr 233 241 - #define TARGET_NR_flistxattr 234 242 - #define TARGET_NR_removexattr 235 243 - #define TARGET_NR_lremovexattr 236 244 - #define TARGET_NR_fremovexattr 237 245 - #define TARGET_NR_tkill 238 246 - #define TARGET_NR_sendfile64 239 247 - #define TARGET_NR_futex 240 248 - #define TARGET_NR_sched_setaffinity 241 249 - #define TARGET_NR_sched_getaffinity 242 250 - #define TARGET_NR_set_thread_area 243 251 - #define TARGET_NR_get_thread_area 244 252 - #define TARGET_NR_io_setup 245 253 - #define TARGET_NR_io_destroy 246 254 - #define TARGET_NR_io_getevents 247 255 - #define TARGET_NR_io_submit 248 256 - #define TARGET_NR_io_cancel 249 257 - #define TARGET_NR_fadvise64 250 258 - 259 - #define TARGET_NR_exit_group 252 260 - #define TARGET_NR_lookup_dcookie 253 261 - #define TARGET_NR_epoll_create 254 262 - #define TARGET_NR_epoll_ctl 255 263 - #define TARGET_NR_epoll_wait 256 264 - #define TARGET_NR_remap_file_pages 257 265 - #define TARGET_NR_set_tid_address 258 266 - #define TARGET_NR_timer_create 259 267 - #define TARGET_NR_timer_settime (TARGET_NR_timer_create+1) 268 - #define TARGET_NR_timer_gettime (TARGET_NR_timer_create+2) 269 - #define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create+3) 270 - #define TARGET_NR_timer_delete (TARGET_NR_timer_create+4) 271 - #define TARGET_NR_clock_settime (TARGET_NR_timer_create+5) 272 - #define TARGET_NR_clock_gettime (TARGET_NR_timer_create+6) 273 - #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) 274 - #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) 275 - #define TARGET_NR_statfs64 268 276 - #define TARGET_NR_fstatfs64 269 277 - #define TARGET_NR_tgkill 270 278 - #define TARGET_NR_utimes 271 279 - #define TARGET_NR_fadvise64_64 272 280 - #define TARGET_NR_vserver 273 281 - #define TARGET_NR_mbind 274 282 - #define TARGET_NR_get_mempolicy 275 283 - #define TARGET_NR_set_mempolicy 276 284 - #define TARGET_NR_mq_open 277 285 - #define TARGET_NR_mq_unlink (TARGET_NR_mq_open+1) 286 - #define TARGET_NR_mq_timedsend (TARGET_NR_mq_open+2) 287 - #define TARGET_NR_mq_timedreceive (TARGET_NR_mq_open+3) 288 - #define TARGET_NR_mq_notify (TARGET_NR_mq_open+4) 289 - #define TARGET_NR_mq_getsetattr (TARGET_NR_mq_open+5) 290 - #define TARGET_NR_sys_kexec_load 283 291 - #define TARGET_NR_waitid 284 292 - #define TARGET_NR_add_key 285 293 - #define TARGET_NR_request_key 286 294 - #define TARGET_NR_keyctl 287 295 - #define TARGET_NR_ioprio_set 288 296 - #define TARGET_NR_ioprio_get 289 297 - #define TARGET_NR_inotify_init 290 298 - #define TARGET_NR_inotify_add_watch 291 299 - #define TARGET_NR_inotify_rm_watch 292 300 - /* 293 is unused */ 301 - #define TARGET_NR_migrate_pages 294 302 - #define TARGET_NR_openat 295 303 - #define TARGET_NR_mkdirat 296 304 - #define TARGET_NR_mknodat 297 305 - #define TARGET_NR_fchownat 298 306 - #define TARGET_NR_futimesat 299 307 - #define TARGET_NR_fstatat64 300 308 - #define TARGET_NR_unlinkat 301 309 - #define TARGET_NR_renameat 302 310 - #define TARGET_NR_linkat 303 311 - #define TARGET_NR_symlinkat 304 312 - #define TARGET_NR_readlinkat 305 313 - #define TARGET_NR_fchmodat 306 314 - #define TARGET_NR_faccessat 307 315 - #define TARGET_NR_pselect6 308 316 - #define TARGET_NR_ppoll 309 317 - #define TARGET_NR_unshare 310 318 - #define TARGET_NR_set_robust_list 311 319 - #define TARGET_NR_get_robust_list 312 320 - #define TARGET_NR_splice 313 321 - #define TARGET_NR_sync_file_range 314 322 - #define TARGET_NR_tee 315 323 - #define TARGET_NR_vmsplice 316 324 - #define TARGET_NR_move_pages 317 325 - #define TARGET_NR_getcpu 318 326 - #define TARGET_NR_epoll_pwait 319 327 - #define TARGET_NR_utimensat 320 328 - #define TARGET_NR_signalfd 321 329 - #define TARGET_NR_timerfd_create 322 330 - #define TARGET_NR_eventfd 323 331 - #define TARGET_NR_fallocate 324 332 - #define TARGET_NR_timerfd_settime 325 333 - #define TARGET_NR_timerfd_gettime 326 334 - #define TARGET_NR_signalfd4 327 335 - #define TARGET_NR_eventfd2 328 336 - #define TARGET_NR_epoll_create1 329 337 - #define TARGET_NR_dup3 330 338 - #define TARGET_NR_pipe2 331 339 - #define TARGET_NR_inotify_init1 332 340 - #define TARGET_NR_preadv 333 341 - #define TARGET_NR_pwritev 334 342 - #define TARGET_NR_rt_tgsigqueueinfo 335 343 - #define TARGET_NR_perf_event_open 336 344 - #define TARGET_NR_fanotify_init 337 345 - #define TARGET_NR_fanotify_mark 338 346 - #define TARGET_NR_prlimit64 339 347 - 348 - /* Non-multiplexed socket family */ 349 - #define TARGET_NR_socket 340 350 - #define TARGET_NR_bind 341 351 - #define TARGET_NR_connect 342 352 - #define TARGET_NR_listen 343 353 - #define TARGET_NR_accept 344 354 - #define TARGET_NR_getsockname 345 355 - #define TARGET_NR_getpeername 346 356 - #define TARGET_NR_socketpair 347 357 - #define TARGET_NR_send 348 358 - #define TARGET_NR_sendto 349 359 - #define TARGET_NR_recv 350 360 - #define TARGET_NR_recvfrom 351 361 - #define TARGET_NR_shutdown 352 362 - #define TARGET_NR_setsockopt 353 363 - #define TARGET_NR_getsockopt 354 364 - #define TARGET_NR_sendmsg 355 365 - #define TARGET_NR_recvmsg 356 366 - #define TARGET_NR_recvmmsg 357 367 - #define TARGET_NR_accept4 358 368 - #define TARGET_NR_name_to_handle_at 359 369 - #define TARGET_NR_open_by_handle_at 360 370 - #define TARGET_NR_clock_adjtime 361 371 - #define TARGET_NR_syncfs 362 372 - #define TARGET_NR_sendmmsg 363 373 - #define TARGET_NR_setns 364 374 - #define TARGET_NR_process_vm_readv 365 375 - #define TARGET_NR_process_vm_writev 366 376 - #define TARGET_NR_kcmp 367 377 - #define TARGET_NR_finit_module 368 378 - #define TARGET_NR_sched_getattr 369 379 - #define TARGET_NR_sched_setattr 370 380 - #define TARGET_NR_renameat2 371 381 - #define TARGET_NR_seccomp 372 382 - #define TARGET_NR_getrandom 373 383 - #define TARGET_NR_memfd_create 374 384 - #define TARGET_NR_bpf 375 385 - #define TARGET_NR_execveat 376 386 - #define TARGET_NR_userfaultfd 377 387 - #define TARGET_NR_membarrier 378 388 - #define TARGET_NR_mlock2 379 389 - #define TARGET_NR_copy_file_range 380 390 - #define TARGET_NR_preadv2 381 391 - #define TARGET_NR_pwritev2 382 392 - #define TARGET_NR_statx 383 393 - #define TARGET_NR_pkey_mprotect 384 394 - #define TARGET_NR_pkey_alloc 385 395 - #define TARGET_NR_pkey_free 386 396 - #define TARGET_NR_rseq 387 397 - /* room for arch specific syscalls */ 398 - #define TARGET_NR_semget 393 399 - #define TARGET_NR_semctl 394 400 - #define TARGET_NR_shmget 395 401 - #define TARGET_NR_shmctl 396 402 - #define TARGET_NR_shmat 397 403 - #define TARGET_NR_shmdt 398 404 - #define TARGET_NR_msgget 399 405 - #define TARGET_NR_msgsnd 400 406 - #define TARGET_NR_msgrcv 401 407 - #define TARGET_NR_msgctl 402 408 - #define TARGET_NR_clock_gettime64 403 409 - #define TARGET_NR_clock_settime64 404 410 - #define TARGET_NR_clock_adjtime64 405 411 - #define TARGET_NR_clock_getres_time64 406 412 - #define TARGET_NR_clock_nanosleep_time64 407 413 - #define TARGET_NR_timer_gettime64 408 414 - #define TARGET_NR_timer_settime64 409 415 - #define TARGET_NR_timerfd_gettime64 410 416 - #define TARGET_NR_timerfd_settime64 411 417 - #define TARGET_NR_utimensat_time64 412 418 - #define TARGET_NR_pselect6_time64 413 419 - #define TARGET_NR_ppoll_time64 414 420 - #define TARGET_NR_io_pgetevents_time64 416 421 - #define TARGET_NR_recvmmsg_time64 417 422 - #define TARGET_NR_mq_timedsend_time64 418 423 - #define TARGET_NR_mq_timedreceive_time64 419 424 - #define TARGET_NR_semtimedop_time64 420 425 - #define TARGET_NR_rt_sigtimedwait_time64 421 426 - #define TARGET_NR_futex_time64 422 427 - #define TARGET_NR_sched_rr_get_interval_time64 423 428 - #define TARGET_NR_pidfd_send_signal 424 429 - #define TARGET_NR_io_uring_setup 425 430 - #define TARGET_NR_io_uring_enter 426 431 - #define TARGET_NR_io_uring_register 427 432 - #define TARGET_NR_open_tree 428 433 - #define TARGET_NR_move_mount 429 434 - #define TARGET_NR_fsopen 430 435 - #define TARGET_NR_fsconfig 431 436 - #define TARGET_NR_fsmount 432 437 - #define TARGET_NR_fspick 433 438 - #define TARGET_NR_pidfd_open 434 439 - /* 435 reserved for clone3 */ 440 - 441 - #endif
+32
linux-user/sh4/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_SH4_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+5
linux-user/sparc/Makefile.objs
··· 1 + generated-files-y += linux-user/sparc/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/sparc/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/sparc/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+485
linux-user/sparc/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for sparc 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> <compat entry point> 7 + # 8 + # The <abi> can be common, 64, or 32 for this file. 9 + # 10 + 0 common restart_syscall sys_restart_syscall 11 + 1 32 exit sys_exit sparc_exit 12 + 1 64 exit sparc_exit 13 + 2 common fork sys_fork 14 + 3 common read sys_read 15 + 4 common write sys_write 16 + 5 common open sys_open compat_sys_open 17 + 6 common close sys_close 18 + 7 common wait4 sys_wait4 compat_sys_wait4 19 + 8 common creat sys_creat 20 + 9 common link sys_link 21 + 10 common unlink sys_unlink 22 + 11 32 execv sunos_execv 23 + 11 64 execv sys_nis_syscall 24 + 12 common chdir sys_chdir 25 + 13 32 chown sys_chown16 26 + 13 64 chown sys_chown 27 + 14 common mknod sys_mknod 28 + 15 common chmod sys_chmod 29 + 16 32 lchown sys_lchown16 30 + 16 64 lchown sys_lchown 31 + 17 common brk sys_brk 32 + 18 common perfctr sys_nis_syscall 33 + 19 common lseek sys_lseek compat_sys_lseek 34 + 20 common getpid sys_getpid 35 + 21 common capget sys_capget 36 + 22 common capset sys_capset 37 + 23 32 setuid sys_setuid16 38 + 23 64 setuid sys_setuid 39 + 24 32 getuid sys_getuid16 40 + 24 64 getuid sys_getuid 41 + 25 common vmsplice sys_vmsplice compat_sys_vmsplice 42 + 26 common ptrace sys_ptrace compat_sys_ptrace 43 + 27 common alarm sys_alarm 44 + 28 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 45 + 29 32 pause sys_pause 46 + 29 64 pause sys_nis_syscall 47 + 30 32 utime sys_utime32 48 + 30 64 utime sys_utime 49 + 31 32 lchown32 sys_lchown 50 + 32 32 fchown32 sys_fchown 51 + 33 common access sys_access 52 + 34 common nice sys_nice 53 + 35 32 chown32 sys_chown 54 + 36 common sync sys_sync 55 + 37 common kill sys_kill 56 + 38 common stat sys_newstat compat_sys_newstat 57 + 39 32 sendfile sys_sendfile compat_sys_sendfile 58 + 39 64 sendfile sys_sendfile64 59 + 40 common lstat sys_newlstat compat_sys_newlstat 60 + 41 common dup sys_dup 61 + 42 common pipe sys_sparc_pipe 62 + 43 common times sys_times compat_sys_times 63 + 44 32 getuid32 sys_getuid 64 + 45 common umount2 sys_umount 65 + 46 32 setgid sys_setgid16 66 + 46 64 setgid sys_setgid 67 + 47 32 getgid sys_getgid16 68 + 47 64 getgid sys_getgid 69 + 48 common signal sys_signal 70 + 49 32 geteuid sys_geteuid16 71 + 49 64 geteuid sys_geteuid 72 + 50 32 getegid sys_getegid16 73 + 50 64 getegid sys_getegid 74 + 51 common acct sys_acct 75 + 52 64 memory_ordering sys_memory_ordering 76 + 53 32 getgid32 sys_getgid 77 + 54 common ioctl sys_ioctl compat_sys_ioctl 78 + 55 common reboot sys_reboot 79 + 56 32 mmap2 sys_mmap2 sys32_mmap2 80 + 57 common symlink sys_symlink 81 + 58 common readlink sys_readlink 82 + 59 32 execve sys_execve sys32_execve 83 + 59 64 execve sys64_execve 84 + 60 common umask sys_umask 85 + 61 common chroot sys_chroot 86 + 62 common fstat sys_newfstat compat_sys_newfstat 87 + 63 common fstat64 sys_fstat64 compat_sys_fstat64 88 + 64 common getpagesize sys_getpagesize 89 + 65 common msync sys_msync 90 + 66 common vfork sys_vfork 91 + 67 common pread64 sys_pread64 compat_sys_pread64 92 + 68 common pwrite64 sys_pwrite64 compat_sys_pwrite64 93 + 69 32 geteuid32 sys_geteuid 94 + 70 32 getegid32 sys_getegid 95 + 71 common mmap sys_mmap 96 + 72 32 setreuid32 sys_setreuid 97 + 73 32 munmap sys_munmap 98 + 73 64 munmap sys_64_munmap 99 + 74 common mprotect sys_mprotect 100 + 75 common madvise sys_madvise 101 + 76 common vhangup sys_vhangup 102 + 77 32 truncate64 sys_truncate64 compat_sys_truncate64 103 + 78 common mincore sys_mincore 104 + 79 32 getgroups sys_getgroups16 105 + 79 64 getgroups sys_getgroups 106 + 80 32 setgroups sys_setgroups16 107 + 80 64 setgroups sys_setgroups 108 + 81 common getpgrp sys_getpgrp 109 + 82 32 setgroups32 sys_setgroups 110 + 83 common setitimer sys_setitimer compat_sys_setitimer 111 + 84 32 ftruncate64 sys_ftruncate64 compat_sys_ftruncate64 112 + 85 common swapon sys_swapon 113 + 86 common getitimer sys_getitimer compat_sys_getitimer 114 + 87 32 setuid32 sys_setuid 115 + 88 common sethostname sys_sethostname 116 + 89 32 setgid32 sys_setgid 117 + 90 common dup2 sys_dup2 118 + 91 32 setfsuid32 sys_setfsuid 119 + 92 common fcntl sys_fcntl compat_sys_fcntl 120 + 93 common select sys_select 121 + 94 32 setfsgid32 sys_setfsgid 122 + 95 common fsync sys_fsync 123 + 96 common setpriority sys_setpriority 124 + 97 common socket sys_socket 125 + 98 common connect sys_connect 126 + 99 common accept sys_accept 127 + 100 common getpriority sys_getpriority 128 + 101 common rt_sigreturn sys_rt_sigreturn sys32_rt_sigreturn 129 + 102 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 130 + 103 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 131 + 104 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 132 + 105 32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 133 + 105 64 rt_sigtimedwait sys_rt_sigtimedwait 134 + 106 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 135 + 107 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 136 + 108 32 setresuid32 sys_setresuid 137 + 108 64 setresuid sys_setresuid 138 + 109 32 getresuid32 sys_getresuid 139 + 109 64 getresuid sys_getresuid 140 + 110 32 setresgid32 sys_setresgid 141 + 110 64 setresgid sys_setresgid 142 + 111 32 getresgid32 sys_getresgid 143 + 111 64 getresgid sys_getresgid 144 + 112 32 setregid32 sys_setregid 145 + 113 common recvmsg sys_recvmsg compat_sys_recvmsg 146 + 114 common sendmsg sys_sendmsg compat_sys_sendmsg 147 + 115 32 getgroups32 sys_getgroups 148 + 116 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 149 + 117 common getrusage sys_getrusage compat_sys_getrusage 150 + 118 common getsockopt sys_getsockopt compat_sys_getsockopt 151 + 119 common getcwd sys_getcwd 152 + 120 common readv sys_readv compat_sys_readv 153 + 121 common writev sys_writev compat_sys_writev 154 + 122 common settimeofday sys_settimeofday compat_sys_settimeofday 155 + 123 32 fchown sys_fchown16 156 + 123 64 fchown sys_fchown 157 + 124 common fchmod sys_fchmod 158 + 125 common recvfrom sys_recvfrom 159 + 126 32 setreuid sys_setreuid16 160 + 126 64 setreuid sys_setreuid 161 + 127 32 setregid sys_setregid16 162 + 127 64 setregid sys_setregid 163 + 128 common rename sys_rename 164 + 129 common truncate sys_truncate compat_sys_truncate 165 + 130 common ftruncate sys_ftruncate compat_sys_ftruncate 166 + 131 common flock sys_flock 167 + 132 common lstat64 sys_lstat64 compat_sys_lstat64 168 + 133 common sendto sys_sendto 169 + 134 common shutdown sys_shutdown 170 + 135 common socketpair sys_socketpair 171 + 136 common mkdir sys_mkdir 172 + 137 common rmdir sys_rmdir 173 + 138 32 utimes sys_utimes_time32 174 + 138 64 utimes sys_utimes 175 + 139 common stat64 sys_stat64 compat_sys_stat64 176 + 140 common sendfile64 sys_sendfile64 177 + 141 common getpeername sys_getpeername 178 + 142 32 futex sys_futex_time32 179 + 142 64 futex sys_futex 180 + 143 common gettid sys_gettid 181 + 144 common getrlimit sys_getrlimit compat_sys_getrlimit 182 + 145 common setrlimit sys_setrlimit compat_sys_setrlimit 183 + 146 common pivot_root sys_pivot_root 184 + 147 common prctl sys_prctl 185 + 148 common pciconfig_read sys_pciconfig_read 186 + 149 common pciconfig_write sys_pciconfig_write 187 + 150 common getsockname sys_getsockname 188 + 151 common inotify_init sys_inotify_init 189 + 152 common inotify_add_watch sys_inotify_add_watch 190 + 153 common poll sys_poll 191 + 154 common getdents64 sys_getdents64 192 + 155 32 fcntl64 sys_fcntl64 compat_sys_fcntl64 193 + 156 common inotify_rm_watch sys_inotify_rm_watch 194 + 157 common statfs sys_statfs compat_sys_statfs 195 + 158 common fstatfs sys_fstatfs compat_sys_fstatfs 196 + 159 common umount sys_oldumount 197 + 160 common sched_set_affinity sys_sched_setaffinity compat_sys_sched_setaffinity 198 + 161 common sched_get_affinity sys_sched_getaffinity compat_sys_sched_getaffinity 199 + 162 common getdomainname sys_getdomainname 200 + 163 common setdomainname sys_setdomainname 201 + 164 64 utrap_install sys_utrap_install 202 + 165 common quotactl sys_quotactl 203 + 166 common set_tid_address sys_set_tid_address 204 + 167 common mount sys_mount compat_sys_mount 205 + 168 common ustat sys_ustat compat_sys_ustat 206 + 169 common setxattr sys_setxattr 207 + 170 common lsetxattr sys_lsetxattr 208 + 171 common fsetxattr sys_fsetxattr 209 + 172 common getxattr sys_getxattr 210 + 173 common lgetxattr sys_lgetxattr 211 + 174 common getdents sys_getdents compat_sys_getdents 212 + 175 common setsid sys_setsid 213 + 176 common fchdir sys_fchdir 214 + 177 common fgetxattr sys_fgetxattr 215 + 178 common listxattr sys_listxattr 216 + 179 common llistxattr sys_llistxattr 217 + 180 common flistxattr sys_flistxattr 218 + 181 common removexattr sys_removexattr 219 + 182 common lremovexattr sys_lremovexattr 220 + 183 32 sigpending sys_sigpending compat_sys_sigpending 221 + 183 64 sigpending sys_nis_syscall 222 + 184 common query_module sys_ni_syscall 223 + 185 common setpgid sys_setpgid 224 + 186 common fremovexattr sys_fremovexattr 225 + 187 common tkill sys_tkill 226 + 188 32 exit_group sys_exit_group sparc_exit_group 227 + 188 64 exit_group sparc_exit_group 228 + 189 common uname sys_newuname 229 + 190 common init_module sys_init_module 230 + 191 32 personality sys_personality sys_sparc64_personality 231 + 191 64 personality sys_sparc64_personality 232 + 192 32 remap_file_pages sys_sparc_remap_file_pages sys_remap_file_pages 233 + 192 64 remap_file_pages sys_remap_file_pages 234 + 193 common epoll_create sys_epoll_create 235 + 194 common epoll_ctl sys_epoll_ctl 236 + 195 common epoll_wait sys_epoll_wait 237 + 196 common ioprio_set sys_ioprio_set 238 + 197 common getppid sys_getppid 239 + 198 32 sigaction sys_sparc_sigaction compat_sys_sparc_sigaction 240 + 198 64 sigaction sys_nis_syscall 241 + 199 common sgetmask sys_sgetmask 242 + 200 common ssetmask sys_ssetmask 243 + 201 32 sigsuspend sys_sigsuspend 244 + 201 64 sigsuspend sys_nis_syscall 245 + 202 common oldlstat sys_newlstat compat_sys_newlstat 246 + 203 common uselib sys_uselib 247 + 204 32 readdir sys_old_readdir compat_sys_old_readdir 248 + 204 64 readdir sys_nis_syscall 249 + 205 common readahead sys_readahead compat_sys_readahead 250 + 206 common socketcall sys_socketcall sys32_socketcall 251 + 207 common syslog sys_syslog 252 + 208 common lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 253 + 209 common fadvise64 sys_fadvise64 compat_sys_fadvise64 254 + 210 common fadvise64_64 sys_fadvise64_64 compat_sys_fadvise64_64 255 + 211 common tgkill sys_tgkill 256 + 212 common waitpid sys_waitpid 257 + 213 common swapoff sys_swapoff 258 + 214 common sysinfo sys_sysinfo compat_sys_sysinfo 259 + 215 32 ipc sys_ipc compat_sys_ipc 260 + 215 64 ipc sys_sparc_ipc 261 + 216 32 sigreturn sys_sigreturn sys32_sigreturn 262 + 216 64 sigreturn sys_nis_syscall 263 + 217 common clone sys_clone 264 + 218 common ioprio_get sys_ioprio_get 265 + 219 32 adjtimex sys_adjtimex_time32 266 + 219 64 adjtimex sys_sparc_adjtimex 267 + 220 32 sigprocmask sys_sigprocmask compat_sys_sigprocmask 268 + 220 64 sigprocmask sys_nis_syscall 269 + 221 common create_module sys_ni_syscall 270 + 222 common delete_module sys_delete_module 271 + 223 common get_kernel_syms sys_ni_syscall 272 + 224 common getpgid sys_getpgid 273 + 225 common bdflush sys_bdflush 274 + 226 common sysfs sys_sysfs 275 + 227 common afs_syscall sys_nis_syscall 276 + 228 common setfsuid sys_setfsuid16 277 + 229 common setfsgid sys_setfsgid16 278 + 230 common _newselect sys_select compat_sys_select 279 + 231 32 time sys_time32 280 + 232 common splice sys_splice 281 + 233 32 stime sys_stime32 282 + 233 64 stime sys_stime 283 + 234 common statfs64 sys_statfs64 compat_sys_statfs64 284 + 235 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 285 + 236 common _llseek sys_llseek 286 + 237 common mlock sys_mlock 287 + 238 common munlock sys_munlock 288 + 239 common mlockall sys_mlockall 289 + 240 common munlockall sys_munlockall 290 + 241 common sched_setparam sys_sched_setparam 291 + 242 common sched_getparam sys_sched_getparam 292 + 243 common sched_setscheduler sys_sched_setscheduler 293 + 244 common sched_getscheduler sys_sched_getscheduler 294 + 245 common sched_yield sys_sched_yield 295 + 246 common sched_get_priority_max sys_sched_get_priority_max 296 + 247 common sched_get_priority_min sys_sched_get_priority_min 297 + 248 32 sched_rr_get_interval sys_sched_rr_get_interval_time32 298 + 248 64 sched_rr_get_interval sys_sched_rr_get_interval 299 + 249 32 nanosleep sys_nanosleep_time32 300 + 249 64 nanosleep sys_nanosleep 301 + 250 32 mremap sys_mremap 302 + 250 64 mremap sys_64_mremap 303 + 251 common _sysctl sys_sysctl compat_sys_sysctl 304 + 252 common getsid sys_getsid 305 + 253 common fdatasync sys_fdatasync 306 + 254 32 nfsservctl sys_ni_syscall sys_nis_syscall 307 + 254 64 nfsservctl sys_nis_syscall 308 + 255 common sync_file_range sys_sync_file_range compat_sys_sync_file_range 309 + 256 32 clock_settime sys_clock_settime32 310 + 256 64 clock_settime sys_clock_settime 311 + 257 32 clock_gettime sys_clock_gettime32 312 + 257 64 clock_gettime sys_clock_gettime 313 + 258 32 clock_getres sys_clock_getres_time32 314 + 258 64 clock_getres sys_clock_getres 315 + 259 32 clock_nanosleep sys_clock_nanosleep_time32 316 + 259 64 clock_nanosleep sys_clock_nanosleep 317 + 260 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 318 + 261 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 319 + 262 32 timer_settime sys_timer_settime32 320 + 262 64 timer_settime sys_timer_settime 321 + 263 32 timer_gettime sys_timer_gettime32 322 + 263 64 timer_gettime sys_timer_gettime 323 + 264 common timer_getoverrun sys_timer_getoverrun 324 + 265 common timer_delete sys_timer_delete 325 + 266 common timer_create sys_timer_create compat_sys_timer_create 326 + # 267 was vserver 327 + 267 common vserver sys_nis_syscall 328 + 268 common io_setup sys_io_setup compat_sys_io_setup 329 + 269 common io_destroy sys_io_destroy 330 + 270 common io_submit sys_io_submit compat_sys_io_submit 331 + 271 common io_cancel sys_io_cancel 332 + 272 32 io_getevents sys_io_getevents_time32 333 + 272 64 io_getevents sys_io_getevents 334 + 273 common mq_open sys_mq_open compat_sys_mq_open 335 + 274 common mq_unlink sys_mq_unlink 336 + 275 32 mq_timedsend sys_mq_timedsend_time32 337 + 275 64 mq_timedsend sys_mq_timedsend 338 + 276 32 mq_timedreceive sys_mq_timedreceive_time32 339 + 276 64 mq_timedreceive sys_mq_timedreceive 340 + 277 common mq_notify sys_mq_notify compat_sys_mq_notify 341 + 278 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 342 + 279 common waitid sys_waitid compat_sys_waitid 343 + 280 common tee sys_tee 344 + 281 common add_key sys_add_key 345 + 282 common request_key sys_request_key 346 + 283 common keyctl sys_keyctl compat_sys_keyctl 347 + 284 common openat sys_openat compat_sys_openat 348 + 285 common mkdirat sys_mkdirat 349 + 286 common mknodat sys_mknodat 350 + 287 common fchownat sys_fchownat 351 + 288 32 futimesat sys_futimesat_time32 352 + 288 64 futimesat sys_futimesat 353 + 289 common fstatat64 sys_fstatat64 compat_sys_fstatat64 354 + 290 common unlinkat sys_unlinkat 355 + 291 common renameat sys_renameat 356 + 292 common linkat sys_linkat 357 + 293 common symlinkat sys_symlinkat 358 + 294 common readlinkat sys_readlinkat 359 + 295 common fchmodat sys_fchmodat 360 + 296 common faccessat sys_faccessat 361 + 297 32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 362 + 297 64 pselect6 sys_pselect6 363 + 298 32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32 364 + 298 64 ppoll sys_ppoll 365 + 299 common unshare sys_unshare 366 + 300 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 367 + 301 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 368 + 302 common migrate_pages sys_migrate_pages compat_sys_migrate_pages 369 + 303 common mbind sys_mbind compat_sys_mbind 370 + 304 common get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 371 + 305 common set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 372 + 306 common kexec_load sys_kexec_load compat_sys_kexec_load 373 + 307 common move_pages sys_move_pages compat_sys_move_pages 374 + 308 common getcpu sys_getcpu 375 + 309 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 376 + 310 32 utimensat sys_utimensat_time32 377 + 310 64 utimensat sys_utimensat 378 + 311 common signalfd sys_signalfd compat_sys_signalfd 379 + 312 common timerfd_create sys_timerfd_create 380 + 313 common eventfd sys_eventfd 381 + 314 common fallocate sys_fallocate compat_sys_fallocate 382 + 315 32 timerfd_settime sys_timerfd_settime32 383 + 315 64 timerfd_settime sys_timerfd_settime 384 + 316 32 timerfd_gettime sys_timerfd_gettime32 385 + 316 64 timerfd_gettime sys_timerfd_gettime 386 + 317 common signalfd4 sys_signalfd4 compat_sys_signalfd4 387 + 318 common eventfd2 sys_eventfd2 388 + 319 common epoll_create1 sys_epoll_create1 389 + 320 common dup3 sys_dup3 390 + 321 common pipe2 sys_pipe2 391 + 322 common inotify_init1 sys_inotify_init1 392 + 323 common accept4 sys_accept4 393 + 324 common preadv sys_preadv compat_sys_preadv 394 + 325 common pwritev sys_pwritev compat_sys_pwritev 395 + 326 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 396 + 327 common perf_event_open sys_perf_event_open 397 + 328 32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 398 + 328 64 recvmmsg sys_recvmmsg 399 + 329 common fanotify_init sys_fanotify_init 400 + 330 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 401 + 331 common prlimit64 sys_prlimit64 402 + 332 common name_to_handle_at sys_name_to_handle_at 403 + 333 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 404 + 334 32 clock_adjtime sys_clock_adjtime32 405 + 334 64 clock_adjtime sys_sparc_clock_adjtime 406 + 335 common syncfs sys_syncfs 407 + 336 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 408 + 337 common setns sys_setns 409 + 338 common process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 410 + 339 common process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 411 + 340 32 kern_features sys_ni_syscall sys_kern_features 412 + 340 64 kern_features sys_kern_features 413 + 341 common kcmp sys_kcmp 414 + 342 common finit_module sys_finit_module 415 + 343 common sched_setattr sys_sched_setattr 416 + 344 common sched_getattr sys_sched_getattr 417 + 345 common renameat2 sys_renameat2 418 + 346 common seccomp sys_seccomp 419 + 347 common getrandom sys_getrandom 420 + 348 common memfd_create sys_memfd_create 421 + 349 common bpf sys_bpf 422 + 350 32 execveat sys_execveat sys32_execveat 423 + 350 64 execveat sys64_execveat 424 + 351 common membarrier sys_membarrier 425 + 352 common userfaultfd sys_userfaultfd 426 + 353 common bind sys_bind 427 + 354 common listen sys_listen 428 + 355 common setsockopt sys_setsockopt compat_sys_setsockopt 429 + 356 common mlock2 sys_mlock2 430 + 357 common copy_file_range sys_copy_file_range 431 + 358 common preadv2 sys_preadv2 compat_sys_preadv2 432 + 359 common pwritev2 sys_pwritev2 compat_sys_pwritev2 433 + 360 common statx sys_statx 434 + 361 32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 435 + 361 64 io_pgetevents sys_io_pgetevents 436 + 362 common pkey_mprotect sys_pkey_mprotect 437 + 363 common pkey_alloc sys_pkey_alloc 438 + 364 common pkey_free sys_pkey_free 439 + 365 common rseq sys_rseq 440 + # room for arch specific syscalls 441 + 392 64 semtimedop sys_semtimedop 442 + 393 common semget sys_semget 443 + 394 common semctl sys_semctl compat_sys_semctl 444 + 395 common shmget sys_shmget 445 + 396 common shmctl sys_shmctl compat_sys_shmctl 446 + 397 common shmat sys_shmat compat_sys_shmat 447 + 398 common shmdt sys_shmdt 448 + 399 common msgget sys_msgget 449 + 400 common msgsnd sys_msgsnd compat_sys_msgsnd 450 + 401 common msgrcv sys_msgrcv compat_sys_msgrcv 451 + 402 common msgctl sys_msgctl compat_sys_msgctl 452 + 403 32 clock_gettime64 sys_clock_gettime sys_clock_gettime 453 + 404 32 clock_settime64 sys_clock_settime sys_clock_settime 454 + 405 32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime 455 + 406 32 clock_getres_time64 sys_clock_getres sys_clock_getres 456 + 407 32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep 457 + 408 32 timer_gettime64 sys_timer_gettime sys_timer_gettime 458 + 409 32 timer_settime64 sys_timer_settime sys_timer_settime 459 + 410 32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime 460 + 411 32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime 461 + 412 32 utimensat_time64 sys_utimensat sys_utimensat 462 + 413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 463 + 414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 464 + 416 32 io_pgetevents_time64 sys_io_pgetevents sys_io_pgetevents 465 + 417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 466 + 418 32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend 467 + 419 32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive 468 + 420 32 semtimedop_time64 sys_semtimedop sys_semtimedop 469 + 421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 470 + 422 32 futex_time64 sys_futex sys_futex 471 + 423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval 472 + 424 common pidfd_send_signal sys_pidfd_send_signal 473 + 425 common io_uring_setup sys_io_uring_setup 474 + 426 common io_uring_enter sys_io_uring_enter 475 + 427 common io_uring_register sys_io_uring_register 476 + 428 common open_tree sys_open_tree 477 + 429 common move_mount sys_move_mount 478 + 430 common fsopen sys_fsopen 479 + 431 common fsconfig sys_fsconfig 480 + 432 common fsmount sys_fsmount 481 + 433 common fspick sys_fspick 482 + 434 common pidfd_open sys_pidfd_open 483 + # 435 reserved for clone3 484 + 437 common openat2 sys_openat2 485 + 438 common pidfd_getfd sys_pidfd_getfd
-363
linux-user/sparc/syscall_nr.h
··· 1 - #ifndef LINUX_USER_SPARC_SYSCALL_NR_H 2 - #define LINUX_USER_SPARC_SYSCALL_NR_H 3 - 4 - #define TARGET_NR_exit 1 /* Common */ 5 - #define TARGET_NR_fork 2 /* Common */ 6 - #define TARGET_NR_read 3 /* Common */ 7 - #define TARGET_NR_write 4 /* Common */ 8 - #define TARGET_NR_open 5 /* Common */ 9 - #define TARGET_NR_close 6 /* Common */ 10 - #define TARGET_NR_wait4 7 /* Common */ 11 - #define TARGET_NR_creat 8 /* Common */ 12 - #define TARGET_NR_link 9 /* Common */ 13 - #define TARGET_NR_unlink 10 /* Common */ 14 - #define TARGET_NR_execv 11 /* SunOS Specific */ 15 - #define TARGET_NR_chdir 12 /* Common */ 16 - #define TARGET_NR_chown 13 /* Common */ 17 - #define TARGET_NR_mknod 14 /* Common */ 18 - #define TARGET_NR_chmod 15 /* Common */ 19 - #define TARGET_NR_lchown 16 /* Common */ 20 - #define TARGET_NR_brk 17 /* Common */ 21 - #define TARGET_NR_perfctr 18 /* Performance counter operations */ 22 - #define TARGET_NR_lseek 19 /* Common */ 23 - #define TARGET_NR_getpid 20 /* Common */ 24 - #define TARGET_NR_capget 21 /* Linux Specific */ 25 - #define TARGET_NR_capset 22 /* Linux Specific */ 26 - #define TARGET_NR_setuid 23 /* Implemented via setreuid in SunOS */ 27 - #define TARGET_NR_getuid 24 /* Common */ 28 - #define TARGET_NR_vmsplice 25 29 - #define TARGET_NR_ptrace 26 /* Common */ 30 - #define TARGET_NR_alarm 27 /* Implemented via setitimer in SunOS */ 31 - #define TARGET_NR_sigaltstack 28 /* Common */ 32 - #define TARGET_NR_pause 29 /* Is sigblock(0)->sigpause() in SunOS */ 33 - #define TARGET_NR_utime 30 /* Implemented via utimes() under SunOS */ 34 - #define TARGET_NR_lchown32 31 /* Linux sparc32 specific */ 35 - #define TARGET_NR_fchown32 32 /* Linux sparc32 specific */ 36 - #define TARGET_NR_access 33 /* Common */ 37 - #define TARGET_NR_nice 34 /* Implemented via get/setpriority() in SunOS */ 38 - #define TARGET_NR_chown32 35 /* Linux sparc32 specific */ 39 - #define TARGET_NR_sync 36 /* Common */ 40 - #define TARGET_NR_kill 37 /* Common */ 41 - #define TARGET_NR_stat 38 /* Common */ 42 - #define TARGET_NR_sendfile 39 /* Linux Specific */ 43 - #define TARGET_NR_lstat 40 /* Common */ 44 - #define TARGET_NR_dup 41 /* Common */ 45 - #define TARGET_NR_pipe 42 /* Common */ 46 - #define TARGET_NR_times 43 /* Implemented via getrusage() in SunOS */ 47 - #define TARGET_NR_getuid32 44 /* Linux sparc32 specific */ 48 - #define TARGET_NR_umount2 45 /* Linux Specific */ 49 - #define TARGET_NR_setgid 46 /* Implemented via setregid() in SunOS */ 50 - #define TARGET_NR_getgid 47 /* Common */ 51 - #define TARGET_NR_signal 48 /* Implemented via sigvec() in SunOS */ 52 - #define TARGET_NR_geteuid 49 /* SunOS calls getuid() */ 53 - #define TARGET_NR_getegid 50 /* SunOS calls getgid() */ 54 - #define TARGET_NR_acct 51 /* Common */ 55 - #define TARGET_NR_getgid32 53 /* Linux sparc32 specific */ 56 - #define TARGET_NR_ioctl 54 /* Common */ 57 - #define TARGET_NR_reboot 55 /* Common */ 58 - #define TARGET_NR_mmap2 56 /* Linux sparc32 Specific */ 59 - #define TARGET_NR_symlink 57 /* Common */ 60 - #define TARGET_NR_readlink 58 /* Common */ 61 - #define TARGET_NR_execve 59 /* Common */ 62 - #define TARGET_NR_umask 60 /* Common */ 63 - #define TARGET_NR_chroot 61 /* Common */ 64 - #define TARGET_NR_fstat 62 /* Common */ 65 - #define TARGET_NR_fstat64 63 /* Linux sparc32 Specific */ 66 - #define TARGET_NR_getpagesize 64 /* Common */ 67 - #define TARGET_NR_msync 65 /* Common in newer 1.3.x revs... */ 68 - #define TARGET_NR_vfork 66 /* Common */ 69 - #define TARGET_NR_pread64 67 /* Linux Specific */ 70 - #define TARGET_NR_pwrite64 68 /* Linux Specific */ 71 - #define TARGET_NR_geteuid32 69 /* Linux sparc32, sbrk under SunOS */ 72 - #define TARGET_NR_getegid32 70 /* Linux sparc32, sstk under SunOS */ 73 - #define TARGET_NR_mmap 71 /* Common */ 74 - #define TARGET_NR_setreuid32 72 /* Linux sparc32, vadvise under SunOS */ 75 - #define TARGET_NR_munmap 73 /* Common */ 76 - #define TARGET_NR_mprotect 74 /* Common */ 77 - #define TARGET_NR_madvise 75 /* Common */ 78 - #define TARGET_NR_vhangup 76 /* Common */ 79 - #define TARGET_NR_truncate64 77 /* Linux sparc32 Specific */ 80 - #define TARGET_NR_mincore 78 /* Common */ 81 - #define TARGET_NR_getgroups 79 /* Common */ 82 - #define TARGET_NR_setgroups 80 /* Common */ 83 - #define TARGET_NR_getpgrp 81 /* Common */ 84 - #define TARGET_NR_setgroups32 82 /* Linux sparc32, setpgrp under SunOS */ 85 - #define TARGET_NR_setitimer 83 /* Common */ 86 - #define TARGET_NR_ftruncate64 84 /* Linux sparc32 Specific */ 87 - #define TARGET_NR_swapon 85 /* Common */ 88 - #define TARGET_NR_getitimer 86 /* Common */ 89 - #define TARGET_NR_setuid32 87 /* Linux sparc32, gethostname under SunOS */ 90 - #define TARGET_NR_sethostname 88 /* Common */ 91 - #define TARGET_NR_setgid32 89 /* Linux sparc32, getdtablesize under SunOS */ 92 - #define TARGET_NR_dup2 90 /* Common */ 93 - #define TARGET_NR_setfsuid32 91 /* Linux sparc32, getdopt under SunOS */ 94 - #define TARGET_NR_fcntl 92 /* Common */ 95 - #define TARGET_NR_select 93 /* Common */ 96 - #define TARGET_NR_setfsgid32 94 /* Linux sparc32, setdopt under SunOS */ 97 - #define TARGET_NR_fsync 95 /* Common */ 98 - #define TARGET_NR_setpriority 96 /* Common */ 99 - #define TARGET_NR_socket 97 /* Common */ 100 - #define TARGET_NR_connect 98 /* Common */ 101 - #define TARGET_NR_accept 99 /* Common */ 102 - #define TARGET_NR_getpriority 100 /* Common */ 103 - #define TARGET_NR_rt_sigreturn 101 /* Linux Specific */ 104 - #define TARGET_NR_rt_sigaction 102 /* Linux Specific */ 105 - #define TARGET_NR_rt_sigprocmask 103 /* Linux Specific */ 106 - #define TARGET_NR_rt_sigpending 104 /* Linux Specific */ 107 - #define TARGET_NR_rt_sigtimedwait 105 /* Linux Specific */ 108 - #define TARGET_NR_rt_sigqueueinfo 106 /* Linux Specific */ 109 - #define TARGET_NR_rt_sigsuspend 107 /* Linux Specific */ 110 - #define TARGET_NR_setresuid32 108 /* Linux Specific, sigvec under SunOS */ 111 - #define TARGET_NR_getresuid32 109 /* Linux Specific, sigblock under SunOS */ 112 - #define TARGET_NR_setresgid32 110 /* Linux Specific, sigsetmask under SunOS */ 113 - #define TARGET_NR_getresgid32 111 /* Linux Specific, sigpause under SunOS */ 114 - #define TARGET_NR_setregid32 112 /* Linux sparc32, sigstack under SunOS */ 115 - #define TARGET_NR_recvmsg 113 /* Common */ 116 - #define TARGET_NR_sendmsg 114 /* Common */ 117 - #define TARGET_NR_getgroups32 115 /* Linux sparc32, vtrace under SunOS */ 118 - #define TARGET_NR_gettimeofday 116 /* Common */ 119 - #define TARGET_NR_getrusage 117 /* Common */ 120 - #define TARGET_NR_getsockopt 118 /* Common */ 121 - #define TARGET_NR_getcwd 119 /* Linux Specific */ 122 - #define TARGET_NR_readv 120 /* Common */ 123 - #define TARGET_NR_writev 121 /* Common */ 124 - #define TARGET_NR_settimeofday 122 /* Common */ 125 - #define TARGET_NR_fchown 123 /* Common */ 126 - #define TARGET_NR_fchmod 124 /* Common */ 127 - #define TARGET_NR_recvfrom 125 /* Common */ 128 - #define TARGET_NR_setreuid 126 /* Common */ 129 - #define TARGET_NR_setregid 127 /* Common */ 130 - #define TARGET_NR_rename 128 /* Common */ 131 - #define TARGET_NR_truncate 129 /* Common */ 132 - #define TARGET_NR_ftruncate 130 /* Common */ 133 - #define TARGET_NR_flock 131 /* Common */ 134 - #define TARGET_NR_lstat64 132 /* Linux sparc32 Specific */ 135 - #define TARGET_NR_sendto 133 /* Common */ 136 - #define TARGET_NR_shutdown 134 /* Common */ 137 - #define TARGET_NR_socketpair 135 /* Common */ 138 - #define TARGET_NR_mkdir 136 /* Common */ 139 - #define TARGET_NR_rmdir 137 /* Common */ 140 - #define TARGET_NR_utimes 138 /* SunOS Specific */ 141 - #define TARGET_NR_stat64 139 /* Linux sparc32 Specific */ 142 - #define TARGET_NR_sendfile64 140 143 - #define TARGET_NR_getpeername 141 /* Common */ 144 - #define TARGET_NR_futex 142 /* gethostid under SunOS */ 145 - #define TARGET_NR_gettid 143 /* ENOSYS under SunOS */ 146 - #define TARGET_NR_getrlimit 144 /* Common */ 147 - #define TARGET_NR_setrlimit 145 /* Common */ 148 - #define TARGET_NR_pivot_root 146 /* Linux Specific, killpg under SunOS */ 149 - #define TARGET_NR_prctl 147 /* ENOSYS under SunOS */ 150 - #define TARGET_NR_pciconfig_read 148 /* ENOSYS under SunOS */ 151 - #define TARGET_NR_pciconfig_write 149 /* ENOSYS under SunOS */ 152 - #define TARGET_NR_getsockname 150 /* Common */ 153 - #define TARGET_NR_inotify_init 151 154 - #define TARGET_NR_inotify_add_watch 152 155 - #define TARGET_NR_poll 153 /* Common */ 156 - #define TARGET_NR_getdents64 154 /* Linux specific */ 157 - #define TARGET_NR_fcntl64 155 /* Linux sparc32 Specific */ 158 - #define TARGET_NR_inotify_rm_watch 156 159 - #define TARGET_NR_statfs 157 /* Common */ 160 - #define TARGET_NR_fstatfs 158 /* Common */ 161 - #define TARGET_NR_umount 159 /* Common */ 162 - #define TARGET_NR_sched_set_affinity 160 163 - #define TARGET_NR_sched_get_affinity 161 164 - #define TARGET_NR_getdomainname 162 /* SunOS Specific */ 165 - #define TARGET_NR_setdomainname 163 /* Common */ 166 - #define TARGET_NR_quotactl 165 /* Common */ 167 - #define TARGET_NR_set_tid_address 166 /* Linux specific, exportfs under SunOS */ 168 - #define TARGET_NR_mount 167 /* Common */ 169 - #define TARGET_NR_ustat 168 /* Common */ 170 - #define TARGET_NR_setxattr 169 171 - #define TARGET_NR_lsetxattr 170 172 - #define TARGET_NR_fsetxattr 171 173 - #define TARGET_NR_getxattr 172 174 - #define TARGET_NR_lgetxattr 173 175 - #define TARGET_NR_getdents 174 /* Common */ 176 - #define TARGET_NR_setsid 175 /* Common */ 177 - #define TARGET_NR_fchdir 176 /* Common */ 178 - #define TARGET_NR_fgetxattr 177 179 - #define TARGET_NR_listxattr 178 180 - #define TARGET_NR_llistxattr 179 181 - #define TARGET_NR_flistxattr 180 182 - #define TARGET_NR_removexattr 181 183 - #define TARGET_NR_lremovexattr 182 184 - #define TARGET_NR_sigpending 183 /* Common */ 185 - #define TARGET_NR_query_module 184 /* Linux Specific */ 186 - #define TARGET_NR_setpgid 185 /* Common */ 187 - #define TARGET_NR_fremovexattr 186 188 - #define TARGET_NR_tkill 187 /* SunOS: fpathconf */ 189 - #define TARGET_NR_exit_group 188 /* Linux specific, sysconf undef SunOS */ 190 - #define TARGET_NR_uname 189 /* Linux Specific */ 191 - #define TARGET_NR_init_module 190 /* Linux Specific */ 192 - #define TARGET_NR_personality 191 /* Linux Specific */ 193 - #define TARGET_NR_remap_file_pages 192 194 - #define TARGET_NR_epoll_create 193 195 - #define TARGET_NR_epoll_ctl 194 196 - #define TARGET_NR_epoll_wait 195 197 - #define TARGET_NR_ioprio_set 196 198 - #define TARGET_NR_getppid 197 /* Linux Specific */ 199 - #define TARGET_NR_sigaction 198 /* Linux Specific */ 200 - #define TARGET_NR_sgetmask 199 /* Linux Specific */ 201 - #define TARGET_NR_ssetmask 200 /* Linux Specific */ 202 - #define TARGET_NR_sigsuspend 201 /* Linux Specific */ 203 - #define TARGET_NR_oldlstat 202 /* Linux Specific */ 204 - #define TARGET_NR_uselib 203 /* Linux Specific */ 205 - #define TARGET_NR_readdir 204 /* Linux Specific */ 206 - #define TARGET_NR_readahead 205 /* Linux Specific */ 207 - #define TARGET_NR_socketcall 206 /* Linux Specific */ 208 - #define TARGET_NR_syslog 207 /* Linux Specific */ 209 - #define TARGET_NR_lookup_dcookie 208 /* Linux Specific */ 210 - #define TARGET_NR_fadvise64 209 /* Linux Specific */ 211 - #define TARGET_NR_fadvise64_64 210 /* Linux Specific */ 212 - #define TARGET_NR_tgkill 211 /* Linux Specific */ 213 - #define TARGET_NR_waitpid 212 /* Linux Specific */ 214 - #define TARGET_NR_swapoff 213 /* Linux Specific */ 215 - #define TARGET_NR_sysinfo 214 /* Linux Specific */ 216 - #define TARGET_NR_ipc 215 /* Linux Specific */ 217 - #define TARGET_NR_sigreturn 216 /* Linux Specific */ 218 - #define TARGET_NR_clone 217 /* Linux Specific */ 219 - #define TARGET_NR_ioprio_get 218 220 - #define TARGET_NR_adjtimex 219 /* Linux Specific */ 221 - #define TARGET_NR_sigprocmask 220 /* Linux Specific */ 222 - #define TARGET_NR_create_module 221 /* Linux Specific */ 223 - #define TARGET_NR_delete_module 222 /* Linux Specific */ 224 - #define TARGET_NR_get_kernel_syms 223 /* Linux Specific */ 225 - #define TARGET_NR_getpgid 224 /* Linux Specific */ 226 - #define TARGET_NR_bdflush 225 /* Linux Specific */ 227 - #define TARGET_NR_sysfs 226 /* Linux Specific */ 228 - #define TARGET_NR_afs_syscall 227 /* Linux Specific */ 229 - #define TARGET_NR_setfsuid 228 /* Linux Specific */ 230 - #define TARGET_NR_setfsgid 229 /* Linux Specific */ 231 - #define TARGET_NR__newselect 230 /* Linux Specific */ 232 - #define TARGET_NR_time 231 /* Linux Specific */ 233 - #define TARGET_NR_splice 232 234 - #define TARGET_NR_stime 233 /* Linux Specific */ 235 - #define TARGET_NR_statfs64 234 /* Linux Specific */ 236 - #define TARGET_NR_fstatfs64 235 /* Linux Specific */ 237 - #define TARGET_NR__llseek 236 /* Linux Specific */ 238 - #define TARGET_NR_mlock 237 239 - #define TARGET_NR_munlock 238 240 - #define TARGET_NR_mlockall 239 241 - #define TARGET_NR_munlockall 240 242 - #define TARGET_NR_sched_setparam 241 243 - #define TARGET_NR_sched_getparam 242 244 - #define TARGET_NR_sched_setscheduler 243 245 - #define TARGET_NR_sched_getscheduler 244 246 - #define TARGET_NR_sched_yield 245 247 - #define TARGET_NR_sched_get_priority_max 246 248 - #define TARGET_NR_sched_get_priority_min 247 249 - #define TARGET_NR_sched_rr_get_interval 248 250 - #define TARGET_NR_nanosleep 249 251 - #define TARGET_NR_mremap 250 252 - #define TARGET_NR__sysctl 251 253 - #define TARGET_NR_getsid 252 254 - #define TARGET_NR_fdatasync 253 255 - #define TARGET_NR_nfsservctl 254 256 - #define TARGET_NR_sync_file_range 255 257 - #define TARGET_NR_clock_settime 256 258 - #define TARGET_NR_clock_gettime 257 259 - #define TARGET_NR_clock_getres 258 260 - #define TARGET_NR_clock_nanosleep 259 261 - #define TARGET_NR_sched_getaffinity 260 262 - #define TARGET_NR_sched_setaffinity 261 263 - #define TARGET_NR_timer_settime 262 264 - #define TARGET_NR_timer_gettime 263 265 - #define TARGET_NR_timer_getoverrun 264 266 - #define TARGET_NR_timer_delete 265 267 - #define TARGET_NR_timer_create 266 268 - /* #define TARGET_NR_vserver 267 Reserved for VSERVER */ 269 - #define TARGET_NR_io_setup 268 270 - #define TARGET_NR_io_destroy 269 271 - #define TARGET_NR_io_submit 270 272 - #define TARGET_NR_io_cancel 271 273 - #define TARGET_NR_io_getevents 272 274 - #define TARGET_NR_mq_open 273 275 - #define TARGET_NR_mq_unlink 274 276 - #define TARGET_NR_mq_timedsend 275 277 - #define TARGET_NR_mq_timedreceive 276 278 - #define TARGET_NR_mq_notify 277 279 - #define TARGET_NR_mq_getsetattr 278 280 - #define TARGET_NR_waitid 279 281 - #define TARGET_NR_tee 280 282 - #define TARGET_NR_add_key 281 283 - #define TARGET_NR_request_key 282 284 - #define TARGET_NR_keyctl 283 285 - #define TARGET_NR_openat 284 286 - #define TARGET_NR_mkdirat 285 287 - #define TARGET_NR_mknodat 286 288 - #define TARGET_NR_fchownat 287 289 - #define TARGET_NR_futimesat 288 290 - #define TARGET_NR_fstatat64 289 291 - #define TARGET_NR_unlinkat 290 292 - #define TARGET_NR_renameat 291 293 - #define TARGET_NR_linkat 292 294 - #define TARGET_NR_symlinkat 293 295 - #define TARGET_NR_readlinkat 294 296 - #define TARGET_NR_fchmodat 295 297 - #define TARGET_NR_faccessat 296 298 - #define TARGET_NR_pselect6 297 299 - #define TARGET_NR_ppoll 298 300 - #define TARGET_NR_unshare 299 301 - #define TARGET_NR_set_robust_list 300 302 - #define TARGET_NR_get_robust_list 301 303 - #define TARGET_NR_migrate_pages 302 304 - #define TARGET_NR_mbind 303 305 - #define TARGET_NR_get_mempolicy 304 306 - #define TARGET_NR_set_mempolicy 305 307 - #define TARGET_NR_kexec_load 306 308 - #define TARGET_NR_move_pages 307 309 - #define TARGET_NR_getcpu 308 310 - #define TARGET_NR_epoll_pwait 309 311 - #define TARGET_NR_utimensat 310 312 - #define TARGET_NR_signalfd 311 313 - #define TARGET_NR_timerfd_create 312 314 - #define TARGET_NR_eventfd 313 315 - #define TARGET_NR_fallocate 314 316 - #define TARGET_NR_timerfd_settime 315 317 - #define TARGET_NR_timerfd_gettime 316 318 - #define TARGET_NR_signalfd4 317 319 - #define TARGET_NR_eventfd2 318 320 - #define TARGET_NR_epoll_create1 319 321 - #define TARGET_NR_dup3 320 322 - #define TARGET_NR_pipe2 321 323 - #define TARGET_NR_inotify_init1 322 324 - #define TARGET_NR_accept4 323 325 - #define TARGET_NR_preadv 324 326 - #define TARGET_NR_pwritev 325 327 - #define TARGET_NR_rt_tgsigqueueinfo 326 328 - #define TARGET_NR_perf_event_open 327 329 - #define TARGET_NR_recvmmsg 328 330 - #define TARGET_NR_fanotify_init 329 331 - #define TARGET_NR_fanotify_mark 330 332 - #define TARGET_NR_prlimit64 331 333 - #define TARGET_NR_name_to_handle_at 332 334 - #define TARGET_NR_open_by_handle_at 333 335 - #define TARGET_NR_clock_adjtime 334 336 - #define TARGET_NR_syncfs 335 337 - #define TARGET_NR_sendmmsg 336 338 - #define TARGET_NR_setns 337 339 - #define TARGET_NR_process_vm_readv 338 340 - #define TARGET_NR_process_vm_writev 339 341 - #define TARGET_NR_kern_features 340 342 - #define TARGET_NR_kcmp 341 343 - #define TARGET_NR_finit_module 342 344 - #define TARGET_NR_sched_setattr 343 345 - #define TARGET_NR_sched_getattr 344 346 - #define TARGET_NR_renameat2 345 347 - #define TARGET_NR_seccomp 346 348 - #define TARGET_NR_getrandom 347 349 - #define TARGET_NR_memfd_create 348 350 - #define TARGET_NR_bpf 349 351 - #define TARGET_NR_execveat 350 352 - #define TARGET_NR_membarrier 351 353 - #define TARGET_NR_userfaultfd 352 354 - #define TARGET_NR_bind 353 355 - #define TARGET_NR_listen 354 356 - #define TARGET_NR_setsockopt 355 357 - #define TARGET_NR_mlock2 356 358 - #define TARGET_NR_copy_file_range 357 359 - #define TARGET_NR_preadv2 358 360 - #define TARGET_NR_pwritev2 359 361 - #define TARGET_NR_statx 360 362 - 363 - #endif
+32
linux-user/sparc/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_SPARC_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry compat ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+5
linux-user/sparc64/Makefile.objs
··· 1 + generated-files-y += linux-user/sparc64/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/sparc64/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/sparc/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+485
linux-user/sparc64/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for sparc 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> <compat entry point> 7 + # 8 + # The <abi> can be common, 64, or 32 for this file. 9 + # 10 + 0 common restart_syscall sys_restart_syscall 11 + 1 32 exit sys_exit sparc_exit 12 + 1 64 exit sparc_exit 13 + 2 common fork sys_fork 14 + 3 common read sys_read 15 + 4 common write sys_write 16 + 5 common open sys_open compat_sys_open 17 + 6 common close sys_close 18 + 7 common wait4 sys_wait4 compat_sys_wait4 19 + 8 common creat sys_creat 20 + 9 common link sys_link 21 + 10 common unlink sys_unlink 22 + 11 32 execv sunos_execv 23 + 11 64 execv sys_nis_syscall 24 + 12 common chdir sys_chdir 25 + 13 32 chown sys_chown16 26 + 13 64 chown sys_chown 27 + 14 common mknod sys_mknod 28 + 15 common chmod sys_chmod 29 + 16 32 lchown sys_lchown16 30 + 16 64 lchown sys_lchown 31 + 17 common brk sys_brk 32 + 18 common perfctr sys_nis_syscall 33 + 19 common lseek sys_lseek compat_sys_lseek 34 + 20 common getpid sys_getpid 35 + 21 common capget sys_capget 36 + 22 common capset sys_capset 37 + 23 32 setuid sys_setuid16 38 + 23 64 setuid sys_setuid 39 + 24 32 getuid sys_getuid16 40 + 24 64 getuid sys_getuid 41 + 25 common vmsplice sys_vmsplice compat_sys_vmsplice 42 + 26 common ptrace sys_ptrace compat_sys_ptrace 43 + 27 common alarm sys_alarm 44 + 28 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 45 + 29 32 pause sys_pause 46 + 29 64 pause sys_nis_syscall 47 + 30 32 utime sys_utime32 48 + 30 64 utime sys_utime 49 + 31 32 lchown32 sys_lchown 50 + 32 32 fchown32 sys_fchown 51 + 33 common access sys_access 52 + 34 common nice sys_nice 53 + 35 32 chown32 sys_chown 54 + 36 common sync sys_sync 55 + 37 common kill sys_kill 56 + 38 common stat sys_newstat compat_sys_newstat 57 + 39 32 sendfile sys_sendfile compat_sys_sendfile 58 + 39 64 sendfile sys_sendfile64 59 + 40 common lstat sys_newlstat compat_sys_newlstat 60 + 41 common dup sys_dup 61 + 42 common pipe sys_sparc_pipe 62 + 43 common times sys_times compat_sys_times 63 + 44 32 getuid32 sys_getuid 64 + 45 common umount2 sys_umount 65 + 46 32 setgid sys_setgid16 66 + 46 64 setgid sys_setgid 67 + 47 32 getgid sys_getgid16 68 + 47 64 getgid sys_getgid 69 + 48 common signal sys_signal 70 + 49 32 geteuid sys_geteuid16 71 + 49 64 geteuid sys_geteuid 72 + 50 32 getegid sys_getegid16 73 + 50 64 getegid sys_getegid 74 + 51 common acct sys_acct 75 + 52 64 memory_ordering sys_memory_ordering 76 + 53 32 getgid32 sys_getgid 77 + 54 common ioctl sys_ioctl compat_sys_ioctl 78 + 55 common reboot sys_reboot 79 + 56 32 mmap2 sys_mmap2 sys32_mmap2 80 + 57 common symlink sys_symlink 81 + 58 common readlink sys_readlink 82 + 59 32 execve sys_execve sys32_execve 83 + 59 64 execve sys64_execve 84 + 60 common umask sys_umask 85 + 61 common chroot sys_chroot 86 + 62 common fstat sys_newfstat compat_sys_newfstat 87 + 63 common fstat64 sys_fstat64 compat_sys_fstat64 88 + 64 common getpagesize sys_getpagesize 89 + 65 common msync sys_msync 90 + 66 common vfork sys_vfork 91 + 67 common pread64 sys_pread64 compat_sys_pread64 92 + 68 common pwrite64 sys_pwrite64 compat_sys_pwrite64 93 + 69 32 geteuid32 sys_geteuid 94 + 70 32 getegid32 sys_getegid 95 + 71 common mmap sys_mmap 96 + 72 32 setreuid32 sys_setreuid 97 + 73 32 munmap sys_munmap 98 + 73 64 munmap sys_64_munmap 99 + 74 common mprotect sys_mprotect 100 + 75 common madvise sys_madvise 101 + 76 common vhangup sys_vhangup 102 + 77 32 truncate64 sys_truncate64 compat_sys_truncate64 103 + 78 common mincore sys_mincore 104 + 79 32 getgroups sys_getgroups16 105 + 79 64 getgroups sys_getgroups 106 + 80 32 setgroups sys_setgroups16 107 + 80 64 setgroups sys_setgroups 108 + 81 common getpgrp sys_getpgrp 109 + 82 32 setgroups32 sys_setgroups 110 + 83 common setitimer sys_setitimer compat_sys_setitimer 111 + 84 32 ftruncate64 sys_ftruncate64 compat_sys_ftruncate64 112 + 85 common swapon sys_swapon 113 + 86 common getitimer sys_getitimer compat_sys_getitimer 114 + 87 32 setuid32 sys_setuid 115 + 88 common sethostname sys_sethostname 116 + 89 32 setgid32 sys_setgid 117 + 90 common dup2 sys_dup2 118 + 91 32 setfsuid32 sys_setfsuid 119 + 92 common fcntl sys_fcntl compat_sys_fcntl 120 + 93 common select sys_select 121 + 94 32 setfsgid32 sys_setfsgid 122 + 95 common fsync sys_fsync 123 + 96 common setpriority sys_setpriority 124 + 97 common socket sys_socket 125 + 98 common connect sys_connect 126 + 99 common accept sys_accept 127 + 100 common getpriority sys_getpriority 128 + 101 common rt_sigreturn sys_rt_sigreturn sys32_rt_sigreturn 129 + 102 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 130 + 103 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 131 + 104 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 132 + 105 32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 133 + 105 64 rt_sigtimedwait sys_rt_sigtimedwait 134 + 106 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 135 + 107 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 136 + 108 32 setresuid32 sys_setresuid 137 + 108 64 setresuid sys_setresuid 138 + 109 32 getresuid32 sys_getresuid 139 + 109 64 getresuid sys_getresuid 140 + 110 32 setresgid32 sys_setresgid 141 + 110 64 setresgid sys_setresgid 142 + 111 32 getresgid32 sys_getresgid 143 + 111 64 getresgid sys_getresgid 144 + 112 32 setregid32 sys_setregid 145 + 113 common recvmsg sys_recvmsg compat_sys_recvmsg 146 + 114 common sendmsg sys_sendmsg compat_sys_sendmsg 147 + 115 32 getgroups32 sys_getgroups 148 + 116 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 149 + 117 common getrusage sys_getrusage compat_sys_getrusage 150 + 118 common getsockopt sys_getsockopt compat_sys_getsockopt 151 + 119 common getcwd sys_getcwd 152 + 120 common readv sys_readv compat_sys_readv 153 + 121 common writev sys_writev compat_sys_writev 154 + 122 common settimeofday sys_settimeofday compat_sys_settimeofday 155 + 123 32 fchown sys_fchown16 156 + 123 64 fchown sys_fchown 157 + 124 common fchmod sys_fchmod 158 + 125 common recvfrom sys_recvfrom 159 + 126 32 setreuid sys_setreuid16 160 + 126 64 setreuid sys_setreuid 161 + 127 32 setregid sys_setregid16 162 + 127 64 setregid sys_setregid 163 + 128 common rename sys_rename 164 + 129 common truncate sys_truncate compat_sys_truncate 165 + 130 common ftruncate sys_ftruncate compat_sys_ftruncate 166 + 131 common flock sys_flock 167 + 132 common lstat64 sys_lstat64 compat_sys_lstat64 168 + 133 common sendto sys_sendto 169 + 134 common shutdown sys_shutdown 170 + 135 common socketpair sys_socketpair 171 + 136 common mkdir sys_mkdir 172 + 137 common rmdir sys_rmdir 173 + 138 32 utimes sys_utimes_time32 174 + 138 64 utimes sys_utimes 175 + 139 common stat64 sys_stat64 compat_sys_stat64 176 + 140 common sendfile64 sys_sendfile64 177 + 141 common getpeername sys_getpeername 178 + 142 32 futex sys_futex_time32 179 + 142 64 futex sys_futex 180 + 143 common gettid sys_gettid 181 + 144 common getrlimit sys_getrlimit compat_sys_getrlimit 182 + 145 common setrlimit sys_setrlimit compat_sys_setrlimit 183 + 146 common pivot_root sys_pivot_root 184 + 147 common prctl sys_prctl 185 + 148 common pciconfig_read sys_pciconfig_read 186 + 149 common pciconfig_write sys_pciconfig_write 187 + 150 common getsockname sys_getsockname 188 + 151 common inotify_init sys_inotify_init 189 + 152 common inotify_add_watch sys_inotify_add_watch 190 + 153 common poll sys_poll 191 + 154 common getdents64 sys_getdents64 192 + 155 32 fcntl64 sys_fcntl64 compat_sys_fcntl64 193 + 156 common inotify_rm_watch sys_inotify_rm_watch 194 + 157 common statfs sys_statfs compat_sys_statfs 195 + 158 common fstatfs sys_fstatfs compat_sys_fstatfs 196 + 159 common umount sys_oldumount 197 + 160 common sched_set_affinity sys_sched_setaffinity compat_sys_sched_setaffinity 198 + 161 common sched_get_affinity sys_sched_getaffinity compat_sys_sched_getaffinity 199 + 162 common getdomainname sys_getdomainname 200 + 163 common setdomainname sys_setdomainname 201 + 164 64 utrap_install sys_utrap_install 202 + 165 common quotactl sys_quotactl 203 + 166 common set_tid_address sys_set_tid_address 204 + 167 common mount sys_mount compat_sys_mount 205 + 168 common ustat sys_ustat compat_sys_ustat 206 + 169 common setxattr sys_setxattr 207 + 170 common lsetxattr sys_lsetxattr 208 + 171 common fsetxattr sys_fsetxattr 209 + 172 common getxattr sys_getxattr 210 + 173 common lgetxattr sys_lgetxattr 211 + 174 common getdents sys_getdents compat_sys_getdents 212 + 175 common setsid sys_setsid 213 + 176 common fchdir sys_fchdir 214 + 177 common fgetxattr sys_fgetxattr 215 + 178 common listxattr sys_listxattr 216 + 179 common llistxattr sys_llistxattr 217 + 180 common flistxattr sys_flistxattr 218 + 181 common removexattr sys_removexattr 219 + 182 common lremovexattr sys_lremovexattr 220 + 183 32 sigpending sys_sigpending compat_sys_sigpending 221 + 183 64 sigpending sys_nis_syscall 222 + 184 common query_module sys_ni_syscall 223 + 185 common setpgid sys_setpgid 224 + 186 common fremovexattr sys_fremovexattr 225 + 187 common tkill sys_tkill 226 + 188 32 exit_group sys_exit_group sparc_exit_group 227 + 188 64 exit_group sparc_exit_group 228 + 189 common uname sys_newuname 229 + 190 common init_module sys_init_module 230 + 191 32 personality sys_personality sys_sparc64_personality 231 + 191 64 personality sys_sparc64_personality 232 + 192 32 remap_file_pages sys_sparc_remap_file_pages sys_remap_file_pages 233 + 192 64 remap_file_pages sys_remap_file_pages 234 + 193 common epoll_create sys_epoll_create 235 + 194 common epoll_ctl sys_epoll_ctl 236 + 195 common epoll_wait sys_epoll_wait 237 + 196 common ioprio_set sys_ioprio_set 238 + 197 common getppid sys_getppid 239 + 198 32 sigaction sys_sparc_sigaction compat_sys_sparc_sigaction 240 + 198 64 sigaction sys_nis_syscall 241 + 199 common sgetmask sys_sgetmask 242 + 200 common ssetmask sys_ssetmask 243 + 201 32 sigsuspend sys_sigsuspend 244 + 201 64 sigsuspend sys_nis_syscall 245 + 202 common oldlstat sys_newlstat compat_sys_newlstat 246 + 203 common uselib sys_uselib 247 + 204 32 readdir sys_old_readdir compat_sys_old_readdir 248 + 204 64 readdir sys_nis_syscall 249 + 205 common readahead sys_readahead compat_sys_readahead 250 + 206 common socketcall sys_socketcall sys32_socketcall 251 + 207 common syslog sys_syslog 252 + 208 common lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 253 + 209 common fadvise64 sys_fadvise64 compat_sys_fadvise64 254 + 210 common fadvise64_64 sys_fadvise64_64 compat_sys_fadvise64_64 255 + 211 common tgkill sys_tgkill 256 + 212 common waitpid sys_waitpid 257 + 213 common swapoff sys_swapoff 258 + 214 common sysinfo sys_sysinfo compat_sys_sysinfo 259 + 215 32 ipc sys_ipc compat_sys_ipc 260 + 215 64 ipc sys_sparc_ipc 261 + 216 32 sigreturn sys_sigreturn sys32_sigreturn 262 + 216 64 sigreturn sys_nis_syscall 263 + 217 common clone sys_clone 264 + 218 common ioprio_get sys_ioprio_get 265 + 219 32 adjtimex sys_adjtimex_time32 266 + 219 64 adjtimex sys_sparc_adjtimex 267 + 220 32 sigprocmask sys_sigprocmask compat_sys_sigprocmask 268 + 220 64 sigprocmask sys_nis_syscall 269 + 221 common create_module sys_ni_syscall 270 + 222 common delete_module sys_delete_module 271 + 223 common get_kernel_syms sys_ni_syscall 272 + 224 common getpgid sys_getpgid 273 + 225 common bdflush sys_bdflush 274 + 226 common sysfs sys_sysfs 275 + 227 common afs_syscall sys_nis_syscall 276 + 228 common setfsuid sys_setfsuid16 277 + 229 common setfsgid sys_setfsgid16 278 + 230 common _newselect sys_select compat_sys_select 279 + 231 32 time sys_time32 280 + 232 common splice sys_splice 281 + 233 32 stime sys_stime32 282 + 233 64 stime sys_stime 283 + 234 common statfs64 sys_statfs64 compat_sys_statfs64 284 + 235 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 285 + 236 common _llseek sys_llseek 286 + 237 common mlock sys_mlock 287 + 238 common munlock sys_munlock 288 + 239 common mlockall sys_mlockall 289 + 240 common munlockall sys_munlockall 290 + 241 common sched_setparam sys_sched_setparam 291 + 242 common sched_getparam sys_sched_getparam 292 + 243 common sched_setscheduler sys_sched_setscheduler 293 + 244 common sched_getscheduler sys_sched_getscheduler 294 + 245 common sched_yield sys_sched_yield 295 + 246 common sched_get_priority_max sys_sched_get_priority_max 296 + 247 common sched_get_priority_min sys_sched_get_priority_min 297 + 248 32 sched_rr_get_interval sys_sched_rr_get_interval_time32 298 + 248 64 sched_rr_get_interval sys_sched_rr_get_interval 299 + 249 32 nanosleep sys_nanosleep_time32 300 + 249 64 nanosleep sys_nanosleep 301 + 250 32 mremap sys_mremap 302 + 250 64 mremap sys_64_mremap 303 + 251 common _sysctl sys_sysctl compat_sys_sysctl 304 + 252 common getsid sys_getsid 305 + 253 common fdatasync sys_fdatasync 306 + 254 32 nfsservctl sys_ni_syscall sys_nis_syscall 307 + 254 64 nfsservctl sys_nis_syscall 308 + 255 common sync_file_range sys_sync_file_range compat_sys_sync_file_range 309 + 256 32 clock_settime sys_clock_settime32 310 + 256 64 clock_settime sys_clock_settime 311 + 257 32 clock_gettime sys_clock_gettime32 312 + 257 64 clock_gettime sys_clock_gettime 313 + 258 32 clock_getres sys_clock_getres_time32 314 + 258 64 clock_getres sys_clock_getres 315 + 259 32 clock_nanosleep sys_clock_nanosleep_time32 316 + 259 64 clock_nanosleep sys_clock_nanosleep 317 + 260 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 318 + 261 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 319 + 262 32 timer_settime sys_timer_settime32 320 + 262 64 timer_settime sys_timer_settime 321 + 263 32 timer_gettime sys_timer_gettime32 322 + 263 64 timer_gettime sys_timer_gettime 323 + 264 common timer_getoverrun sys_timer_getoverrun 324 + 265 common timer_delete sys_timer_delete 325 + 266 common timer_create sys_timer_create compat_sys_timer_create 326 + # 267 was vserver 327 + 267 common vserver sys_nis_syscall 328 + 268 common io_setup sys_io_setup compat_sys_io_setup 329 + 269 common io_destroy sys_io_destroy 330 + 270 common io_submit sys_io_submit compat_sys_io_submit 331 + 271 common io_cancel sys_io_cancel 332 + 272 32 io_getevents sys_io_getevents_time32 333 + 272 64 io_getevents sys_io_getevents 334 + 273 common mq_open sys_mq_open compat_sys_mq_open 335 + 274 common mq_unlink sys_mq_unlink 336 + 275 32 mq_timedsend sys_mq_timedsend_time32 337 + 275 64 mq_timedsend sys_mq_timedsend 338 + 276 32 mq_timedreceive sys_mq_timedreceive_time32 339 + 276 64 mq_timedreceive sys_mq_timedreceive 340 + 277 common mq_notify sys_mq_notify compat_sys_mq_notify 341 + 278 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 342 + 279 common waitid sys_waitid compat_sys_waitid 343 + 280 common tee sys_tee 344 + 281 common add_key sys_add_key 345 + 282 common request_key sys_request_key 346 + 283 common keyctl sys_keyctl compat_sys_keyctl 347 + 284 common openat sys_openat compat_sys_openat 348 + 285 common mkdirat sys_mkdirat 349 + 286 common mknodat sys_mknodat 350 + 287 common fchownat sys_fchownat 351 + 288 32 futimesat sys_futimesat_time32 352 + 288 64 futimesat sys_futimesat 353 + 289 common fstatat64 sys_fstatat64 compat_sys_fstatat64 354 + 290 common unlinkat sys_unlinkat 355 + 291 common renameat sys_renameat 356 + 292 common linkat sys_linkat 357 + 293 common symlinkat sys_symlinkat 358 + 294 common readlinkat sys_readlinkat 359 + 295 common fchmodat sys_fchmodat 360 + 296 common faccessat sys_faccessat 361 + 297 32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 362 + 297 64 pselect6 sys_pselect6 363 + 298 32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32 364 + 298 64 ppoll sys_ppoll 365 + 299 common unshare sys_unshare 366 + 300 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 367 + 301 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 368 + 302 common migrate_pages sys_migrate_pages compat_sys_migrate_pages 369 + 303 common mbind sys_mbind compat_sys_mbind 370 + 304 common get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 371 + 305 common set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 372 + 306 common kexec_load sys_kexec_load compat_sys_kexec_load 373 + 307 common move_pages sys_move_pages compat_sys_move_pages 374 + 308 common getcpu sys_getcpu 375 + 309 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 376 + 310 32 utimensat sys_utimensat_time32 377 + 310 64 utimensat sys_utimensat 378 + 311 common signalfd sys_signalfd compat_sys_signalfd 379 + 312 common timerfd_create sys_timerfd_create 380 + 313 common eventfd sys_eventfd 381 + 314 common fallocate sys_fallocate compat_sys_fallocate 382 + 315 32 timerfd_settime sys_timerfd_settime32 383 + 315 64 timerfd_settime sys_timerfd_settime 384 + 316 32 timerfd_gettime sys_timerfd_gettime32 385 + 316 64 timerfd_gettime sys_timerfd_gettime 386 + 317 common signalfd4 sys_signalfd4 compat_sys_signalfd4 387 + 318 common eventfd2 sys_eventfd2 388 + 319 common epoll_create1 sys_epoll_create1 389 + 320 common dup3 sys_dup3 390 + 321 common pipe2 sys_pipe2 391 + 322 common inotify_init1 sys_inotify_init1 392 + 323 common accept4 sys_accept4 393 + 324 common preadv sys_preadv compat_sys_preadv 394 + 325 common pwritev sys_pwritev compat_sys_pwritev 395 + 326 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 396 + 327 common perf_event_open sys_perf_event_open 397 + 328 32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 398 + 328 64 recvmmsg sys_recvmmsg 399 + 329 common fanotify_init sys_fanotify_init 400 + 330 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 401 + 331 common prlimit64 sys_prlimit64 402 + 332 common name_to_handle_at sys_name_to_handle_at 403 + 333 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 404 + 334 32 clock_adjtime sys_clock_adjtime32 405 + 334 64 clock_adjtime sys_sparc_clock_adjtime 406 + 335 common syncfs sys_syncfs 407 + 336 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 408 + 337 common setns sys_setns 409 + 338 common process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 410 + 339 common process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 411 + 340 32 kern_features sys_ni_syscall sys_kern_features 412 + 340 64 kern_features sys_kern_features 413 + 341 common kcmp sys_kcmp 414 + 342 common finit_module sys_finit_module 415 + 343 common sched_setattr sys_sched_setattr 416 + 344 common sched_getattr sys_sched_getattr 417 + 345 common renameat2 sys_renameat2 418 + 346 common seccomp sys_seccomp 419 + 347 common getrandom sys_getrandom 420 + 348 common memfd_create sys_memfd_create 421 + 349 common bpf sys_bpf 422 + 350 32 execveat sys_execveat sys32_execveat 423 + 350 64 execveat sys64_execveat 424 + 351 common membarrier sys_membarrier 425 + 352 common userfaultfd sys_userfaultfd 426 + 353 common bind sys_bind 427 + 354 common listen sys_listen 428 + 355 common setsockopt sys_setsockopt compat_sys_setsockopt 429 + 356 common mlock2 sys_mlock2 430 + 357 common copy_file_range sys_copy_file_range 431 + 358 common preadv2 sys_preadv2 compat_sys_preadv2 432 + 359 common pwritev2 sys_pwritev2 compat_sys_pwritev2 433 + 360 common statx sys_statx 434 + 361 32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 435 + 361 64 io_pgetevents sys_io_pgetevents 436 + 362 common pkey_mprotect sys_pkey_mprotect 437 + 363 common pkey_alloc sys_pkey_alloc 438 + 364 common pkey_free sys_pkey_free 439 + 365 common rseq sys_rseq 440 + # room for arch specific syscalls 441 + 392 64 semtimedop sys_semtimedop 442 + 393 common semget sys_semget 443 + 394 common semctl sys_semctl compat_sys_semctl 444 + 395 common shmget sys_shmget 445 + 396 common shmctl sys_shmctl compat_sys_shmctl 446 + 397 common shmat sys_shmat compat_sys_shmat 447 + 398 common shmdt sys_shmdt 448 + 399 common msgget sys_msgget 449 + 400 common msgsnd sys_msgsnd compat_sys_msgsnd 450 + 401 common msgrcv sys_msgrcv compat_sys_msgrcv 451 + 402 common msgctl sys_msgctl compat_sys_msgctl 452 + 403 32 clock_gettime64 sys_clock_gettime sys_clock_gettime 453 + 404 32 clock_settime64 sys_clock_settime sys_clock_settime 454 + 405 32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime 455 + 406 32 clock_getres_time64 sys_clock_getres sys_clock_getres 456 + 407 32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep 457 + 408 32 timer_gettime64 sys_timer_gettime sys_timer_gettime 458 + 409 32 timer_settime64 sys_timer_settime sys_timer_settime 459 + 410 32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime 460 + 411 32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime 461 + 412 32 utimensat_time64 sys_utimensat sys_utimensat 462 + 413 32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 463 + 414 32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64 464 + 416 32 io_pgetevents_time64 sys_io_pgetevents sys_io_pgetevents 465 + 417 32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 466 + 418 32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend 467 + 419 32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive 468 + 420 32 semtimedop_time64 sys_semtimedop sys_semtimedop 469 + 421 32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 470 + 422 32 futex_time64 sys_futex sys_futex 471 + 423 32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval 472 + 424 common pidfd_send_signal sys_pidfd_send_signal 473 + 425 common io_uring_setup sys_io_uring_setup 474 + 426 common io_uring_enter sys_io_uring_enter 475 + 427 common io_uring_register sys_io_uring_register 476 + 428 common open_tree sys_open_tree 477 + 429 common move_mount sys_move_mount 478 + 430 common fsopen sys_fsopen 479 + 431 common fsconfig sys_fsconfig 480 + 432 common fsmount sys_fsmount 481 + 433 common fspick sys_fspick 482 + 434 common pidfd_open sys_pidfd_open 483 + # 435 reserved for clone3 484 + 437 common openat2 sys_openat2 485 + 438 common pidfd_getfd sys_pidfd_getfd
-366
linux-user/sparc64/syscall_nr.h
··· 1 - #ifndef LINUX_USER_SPARC64_SYSCALL_NR_H 2 - #define LINUX_USER_SPARC64_SYSCALL_NR_H 3 - 4 - #define TARGET_NR_restart_syscall 0 /* Linux Specific */ 5 - #define TARGET_NR_exit 1 /* Common */ 6 - #define TARGET_NR_fork 2 /* Common */ 7 - #define TARGET_NR_read 3 /* Common */ 8 - #define TARGET_NR_write 4 /* Common */ 9 - #define TARGET_NR_open 5 /* Common */ 10 - #define TARGET_NR_close 6 /* Common */ 11 - #define TARGET_NR_wait4 7 /* Common */ 12 - #define TARGET_NR_creat 8 /* Common */ 13 - #define TARGET_NR_link 9 /* Common */ 14 - #define TARGET_NR_unlink 10 /* Common */ 15 - #define TARGET_NR_execv 11 /* SunOS Specific */ 16 - #define TARGET_NR_chdir 12 /* Common */ 17 - #define TARGET_NR_chown 13 /* Common */ 18 - #define TARGET_NR_mknod 14 /* Common */ 19 - #define TARGET_NR_chmod 15 /* Common */ 20 - #define TARGET_NR_lchown 16 /* Common */ 21 - #define TARGET_NR_brk 17 /* Common */ 22 - #define TARGET_NR_perfctr 18 /* Performance counter operations */ 23 - #define TARGET_NR_lseek 19 /* Common */ 24 - #define TARGET_NR_getpid 20 /* Common */ 25 - #define TARGET_NR_capget 21 /* Linux Specific */ 26 - #define TARGET_NR_capset 22 /* Linux Specific */ 27 - #define TARGET_NR_setuid 23 /* Implemented via setreuid in SunOS */ 28 - #define TARGET_NR_getuid 24 /* Common */ 29 - #define TARGET_NR_vmsplice 25 30 - #define TARGET_NR_ptrace 26 /* Common */ 31 - #define TARGET_NR_alarm 27 /* Implemented via setitimer in SunOS */ 32 - #define TARGET_NR_sigaltstack 28 /* Common */ 33 - #define TARGET_NR_pause 29 /* Is sigblock(0)->sigpause() in SunOS */ 34 - #define TARGET_NR_utime 30 /* Implemented via utimes() under SunOS */ 35 - #define TARGET_NR_lchown32 31 /* Linux sparc32 specific */ 36 - #define TARGET_NR_fchown32 32 /* Linux sparc32 specific */ 37 - #define TARGET_NR_access 33 /* Common */ 38 - #define TARGET_NR_nice 34 /* Implemented via get/setpriority() in SunOS */ 39 - #define TARGET_NR_chown32 35 /* Linux sparc32 specific */ 40 - #define TARGET_NR_sync 36 /* Common */ 41 - #define TARGET_NR_kill 37 /* Common */ 42 - #define TARGET_NR_stat 38 /* Common */ 43 - #define TARGET_NR_sendfile 39 /* Linux Specific */ 44 - #define TARGET_NR_lstat 40 /* Common */ 45 - #define TARGET_NR_dup 41 /* Common */ 46 - #define TARGET_NR_pipe 42 /* Common */ 47 - #define TARGET_NR_times 43 /* Implemented via getrusage() in SunOS */ 48 - #define TARGET_NR_getuid32 44 /* Linux sparc32 specific */ 49 - #define TARGET_NR_umount2 45 /* Linux Specific */ 50 - #define TARGET_NR_setgid 46 /* Implemented via setregid() in SunOS */ 51 - #define TARGET_NR_getgid 47 /* Common */ 52 - #define TARGET_NR_signal 48 /* Implemented via sigvec() in SunOS */ 53 - #define TARGET_NR_geteuid 49 /* SunOS calls getuid() */ 54 - #define TARGET_NR_getegid 50 /* SunOS calls getgid() */ 55 - #define TARGET_NR_acct 51 /* Common */ 56 - #define TARGET_NR_memory_ordering 52 /* Linux Specific */ 57 - #define TARGET_NR_getgid32 53 /* Linux sparc32 specific */ 58 - #define TARGET_NR_ioctl 54 /* Common */ 59 - #define TARGET_NR_reboot 55 /* Common */ 60 - #define TARGET_NR_mmap2 56 /* Linux sparc32 Specific */ 61 - #define TARGET_NR_symlink 57 /* Common */ 62 - #define TARGET_NR_readlink 58 /* Common */ 63 - #define TARGET_NR_execve 59 /* Common */ 64 - #define TARGET_NR_umask 60 /* Common */ 65 - #define TARGET_NR_chroot 61 /* Common */ 66 - #define TARGET_NR_fstat 62 /* Common */ 67 - #define TARGET_NR_fstat64 63 /* Linux sparc32 Specific */ 68 - #define TARGET_NR_getpagesize 64 /* Common */ 69 - #define TARGET_NR_msync 65 /* Common in newer 1.3.x revs... */ 70 - #define TARGET_NR_vfork 66 /* Common */ 71 - #define TARGET_NR_pread64 67 /* Linux Specific */ 72 - #define TARGET_NR_pwrite64 68 /* Linux Specific */ 73 - #define TARGET_NR_geteuid32 69 /* Linux sparc32, sbrk under SunOS */ 74 - #define TARGET_NR_getegid32 70 /* Linux sparc32, sstk under SunOS */ 75 - #define TARGET_NR_mmap 71 /* Common */ 76 - #define TARGET_NR_setreuid32 72 /* Linux sparc32, vadvise under SunOS */ 77 - #define TARGET_NR_munmap 73 /* Common */ 78 - #define TARGET_NR_mprotect 74 /* Common */ 79 - #define TARGET_NR_madvise 75 /* Common */ 80 - #define TARGET_NR_vhangup 76 /* Common */ 81 - #define TARGET_NR_truncate64 77 /* Linux sparc32 Specific */ 82 - #define TARGET_NR_mincore 78 /* Common */ 83 - #define TARGET_NR_getgroups 79 /* Common */ 84 - #define TARGET_NR_setgroups 80 /* Common */ 85 - #define TARGET_NR_getpgrp 81 /* Common */ 86 - #define TARGET_NR_setgroups32 82 /* Linux sparc32, setpgrp under SunOS */ 87 - #define TARGET_NR_setitimer 83 /* Common */ 88 - #define TARGET_NR_ftruncate64 84 /* Linux sparc32 Specific */ 89 - #define TARGET_NR_swapon 85 /* Common */ 90 - #define TARGET_NR_getitimer 86 /* Common */ 91 - #define TARGET_NR_setuid32 87 /* Linux sparc32, gethostname under SunOS */ 92 - #define TARGET_NR_sethostname 88 /* Common */ 93 - #define TARGET_NR_setgid32 89 /* Linux sparc32, getdtablesize under SunOS */ 94 - #define TARGET_NR_dup2 90 /* Common */ 95 - #define TARGET_NR_setfsuid32 91 /* Linux sparc32, getdopt under SunOS */ 96 - #define TARGET_NR_fcntl 92 /* Common */ 97 - #define TARGET_NR_select 93 /* Common */ 98 - #define TARGET_NR_setfsgid32 94 /* Linux sparc32, setdopt under SunOS */ 99 - #define TARGET_NR_fsync 95 /* Common */ 100 - #define TARGET_NR_setpriority 96 /* Common */ 101 - #define TARGET_NR_socket 97 /* Common */ 102 - #define TARGET_NR_connect 98 /* Common */ 103 - #define TARGET_NR_accept 99 /* Common */ 104 - #define TARGET_NR_getpriority 100 /* Common */ 105 - #define TARGET_NR_rt_sigreturn 101 /* Linux Specific */ 106 - #define TARGET_NR_rt_sigaction 102 /* Linux Specific */ 107 - #define TARGET_NR_rt_sigprocmask 103 /* Linux Specific */ 108 - #define TARGET_NR_rt_sigpending 104 /* Linux Specific */ 109 - #define TARGET_NR_rt_sigtimedwait 105 /* Linux Specific */ 110 - #define TARGET_NR_rt_sigqueueinfo 106 /* Linux Specific */ 111 - #define TARGET_NR_rt_sigsuspend 107 /* Linux Specific */ 112 - #define TARGET_NR_setresuid 108 /* Linux Specific, sigvec under SunOS */ 113 - #define TARGET_NR_getresuid 109 /* Linux Specific, sigblock under SunOS */ 114 - #define TARGET_NR_setresgid 110 /* Linux Specific, sigsetmask under SunOS */ 115 - #define TARGET_NR_getresgid 111 /* Linux Specific, sigpause under SunOS */ 116 - /* #define TARGET_NR_setregid32 75 Linux sparc32, sigstack under SunOS */ 117 - #define TARGET_NR_recvmsg 113 /* Common */ 118 - #define TARGET_NR_sendmsg 114 /* Common */ 119 - #define TARGET_NR_getgroups32 115 /* Linux sparc32, vtrace under SunOS */ 120 - #define TARGET_NR_gettimeofday 116 /* Common */ 121 - #define TARGET_NR_getrusage 117 /* Common */ 122 - #define TARGET_NR_getsockopt 118 /* Common */ 123 - #define TARGET_NR_getcwd 119 /* Linux Specific */ 124 - #define TARGET_NR_readv 120 /* Common */ 125 - #define TARGET_NR_writev 121 /* Common */ 126 - #define TARGET_NR_settimeofday 122 /* Common */ 127 - #define TARGET_NR_fchown 123 /* Common */ 128 - #define TARGET_NR_fchmod 124 /* Common */ 129 - #define TARGET_NR_recvfrom 125 /* Common */ 130 - #define TARGET_NR_setreuid 126 /* Common */ 131 - #define TARGET_NR_setregid 127 /* Common */ 132 - #define TARGET_NR_rename 128 /* Common */ 133 - #define TARGET_NR_truncate 129 /* Common */ 134 - #define TARGET_NR_ftruncate 130 /* Common */ 135 - #define TARGET_NR_flock 131 /* Common */ 136 - #define TARGET_NR_lstat64 132 /* Linux sparc32 Specific */ 137 - #define TARGET_NR_sendto 133 /* Common */ 138 - #define TARGET_NR_shutdown 134 /* Common */ 139 - #define TARGET_NR_socketpair 135 /* Common */ 140 - #define TARGET_NR_mkdir 136 /* Common */ 141 - #define TARGET_NR_rmdir 137 /* Common */ 142 - #define TARGET_NR_utimes 138 /* SunOS Specific */ 143 - #define TARGET_NR_stat64 139 /* Linux sparc32 Specific */ 144 - #define TARGET_NR_sendfile64 140 /* adjtime under SunOS */ 145 - #define TARGET_NR_getpeername 141 /* Common */ 146 - #define TARGET_NR_futex 142 /* gethostid under SunOS */ 147 - #define TARGET_NR_gettid 143 /* ENOSYS under SunOS */ 148 - #define TARGET_NR_getrlimit 144 /* Common */ 149 - #define TARGET_NR_setrlimit 145 /* Common */ 150 - #define TARGET_NR_pivot_root 146 /* Linux Specific, killpg under SunOS */ 151 - #define TARGET_NR_prctl 147 /* ENOSYS under SunOS */ 152 - #define TARGET_NR_pciconfig_read 148 /* ENOSYS under SunOS */ 153 - #define TARGET_NR_pciconfig_write 149 /* ENOSYS under SunOS */ 154 - #define TARGET_NR_getsockname 150 /* Common */ 155 - #define TARGET_NR_inotify_init 151 156 - #define TARGET_NR_inotify_add_watch 152 157 - #define TARGET_NR_poll 153 /* Common */ 158 - #define TARGET_NR_getdents64 154 /* Linux specific */ 159 - #define TARGET_NR_fcntl64 155 /* Linux sparc32 Specific */ 160 - #define TARGET_NR_inotify_rm_watch 156 /* Linux specific */ 161 - #define TARGET_NR_statfs 157 /* Common */ 162 - #define TARGET_NR_fstatfs 158 /* Common */ 163 - #define TARGET_NR_umount 159 /* Common */ 164 - #define TARGET_NR_sched_set_affinity 160 /* Linux specific, async_daemon under SunOS */ 165 - #define TARGET_NR_sched_get_affinity 161 /* Linux specific, getfh under SunOS */ 166 - #define TARGET_NR_getdomainname 162 /* SunOS Specific */ 167 - #define TARGET_NR_setdomainname 163 /* Common */ 168 - #define TARGET_NR_utrap_install 164 /* SYSV ABI/v9 required */ 169 - #define TARGET_NR_quotactl 165 /* Common */ 170 - #define TARGET_NR_set_tid_address 166 /* Linux specific, exportfs under SunOS */ 171 - #define TARGET_NR_mount 167 /* Common */ 172 - #define TARGET_NR_ustat 168 /* Common */ 173 - #define TARGET_NR_setxattr 169 /* SunOS: semsys */ 174 - #define TARGET_NR_lsetxattr 170 /* SunOS: msgsys */ 175 - #define TARGET_NR_fsetxattr 171 /* SunOS: shmsys */ 176 - #define TARGET_NR_getxattr 172 /* SunOS: auditsys */ 177 - #define TARGET_NR_lgetxattr 173 /* SunOS: rfssys */ 178 - #define TARGET_NR_getdents 174 /* Common */ 179 - #define TARGET_NR_setsid 175 /* Common */ 180 - #define TARGET_NR_fchdir 176 /* Common */ 181 - #define TARGET_NR_fgetxattr 177 /* SunOS: fchroot */ 182 - #define TARGET_NR_listxattr 178 /* SunOS: vpixsys */ 183 - #define TARGET_NR_llistxattr 179 /* SunOS: aioread */ 184 - #define TARGET_NR_flistxattr 180 /* SunOS: aiowrite */ 185 - #define TARGET_NR_removexattr 181 /* SunOS: aiowait */ 186 - #define TARGET_NR_lremovexattr 182 /* SunOS: aiocancel */ 187 - #define TARGET_NR_sigpending 183 /* Common */ 188 - #define TARGET_NR_query_module 184 /* Linux Specific */ 189 - #define TARGET_NR_setpgid 185 /* Common */ 190 - #define TARGET_NR_fremovexattr 186 /* SunOS: pathconf */ 191 - #define TARGET_NR_tkill 187 /* SunOS: fpathconf */ 192 - #define TARGET_NR_exit_group 188 /* Linux specific, sysconf undef SunOS */ 193 - #define TARGET_NR_uname 189 /* Linux Specific */ 194 - #define TARGET_NR_init_module 190 /* Linux Specific */ 195 - #define TARGET_NR_personality 191 /* Linux Specific */ 196 - #define TARGET_NR_remap_file_pages 192 /* Linux Specific */ 197 - #define TARGET_NR_epoll_create 193 /* Linux Specific */ 198 - #define TARGET_NR_epoll_ctl 194 /* Linux Specific */ 199 - #define TARGET_NR_epoll_wait 195 /* Linux Specific */ 200 - #define TARGET_NR_ioprio_set 196 201 - #define TARGET_NR_getppid 197 /* Linux Specific */ 202 - #define TARGET_NR_sigaction 198 /* Linux Specific */ 203 - #define TARGET_NR_sgetmask 199 /* Linux Specific */ 204 - #define TARGET_NR_ssetmask 200 /* Linux Specific */ 205 - #define TARGET_NR_sigsuspend 201 /* Linux Specific */ 206 - #define TARGET_NR_oldlstat 202 /* Linux Specific */ 207 - #define TARGET_NR_uselib 203 /* Linux Specific */ 208 - #define TARGET_NR_readdir 204 /* Linux Specific */ 209 - #define TARGET_NR_readahead 205 /* Linux Specific */ 210 - #define TARGET_NR_socketcall 206 /* Linux Specific */ 211 - #define TARGET_NR_syslog 207 /* Linux Specific */ 212 - #define TARGET_NR_lookup_dcookie 208 /* Linux Specific */ 213 - #define TARGET_NR_fadvise64 209 /* Linux Specific */ 214 - #define TARGET_NR_fadvise64_64 210 /* Linux Specific */ 215 - #define TARGET_NR_tgkill 211 /* Linux Specific */ 216 - #define TARGET_NR_waitpid 212 /* Linux Specific */ 217 - #define TARGET_NR_swapoff 213 /* Linux Specific */ 218 - #define TARGET_NR_sysinfo 214 /* Linux Specific */ 219 - #define TARGET_NR_ipc 215 /* Linux Specific */ 220 - #define TARGET_NR_sigreturn 216 /* Linux Specific */ 221 - #define TARGET_NR_clone 217 /* Linux Specific */ 222 - #define TARGET_NR_ioprio_get 218 223 - #define TARGET_NR_adjtimex 219 /* Linux Specific */ 224 - #define TARGET_NR_sigprocmask 220 /* Linux Specific */ 225 - #define TARGET_NR_create_module 221 /* Linux Specific */ 226 - #define TARGET_NR_delete_module 222 /* Linux Specific */ 227 - #define TARGET_NR_get_kernel_syms 223 /* Linux Specific */ 228 - #define TARGET_NR_getpgid 224 /* Linux Specific */ 229 - #define TARGET_NR_bdflush 225 /* Linux Specific */ 230 - #define TARGET_NR_sysfs 226 /* Linux Specific */ 231 - #define TARGET_NR_afs_syscall 227 /* Linux Specific */ 232 - #define TARGET_NR_setfsuid 228 /* Linux Specific */ 233 - #define TARGET_NR_setfsgid 229 /* Linux Specific */ 234 - #define TARGET_NR__newselect 230 /* Linux Specific */ 235 - #define TARGET_NR_time 231 /* Linux sparc32 */ 236 - #define TARGET_NR_splice 232 237 - #define TARGET_NR_stime 233 /* Linux Specific */ 238 - #define TARGET_NR_statfs64 234 /* Linux Specific */ 239 - #define TARGET_NR_fstatfs64 235 /* Linux Specific */ 240 - #define TARGET_NR__llseek 236 /* Linux Specific */ 241 - #define TARGET_NR_mlock 237 242 - #define TARGET_NR_munlock 238 243 - #define TARGET_NR_mlockall 239 244 - #define TARGET_NR_munlockall 240 245 - #define TARGET_NR_sched_setparam 241 246 - #define TARGET_NR_sched_getparam 242 247 - #define TARGET_NR_sched_setscheduler 243 248 - #define TARGET_NR_sched_getscheduler 244 249 - #define TARGET_NR_sched_yield 245 250 - #define TARGET_NR_sched_get_priority_max 246 251 - #define TARGET_NR_sched_get_priority_min 247 252 - #define TARGET_NR_sched_rr_get_interval 248 253 - #define TARGET_NR_nanosleep 249 254 - #define TARGET_NR_mremap 250 255 - #define TARGET_NR__sysctl 251 256 - #define TARGET_NR_getsid 252 257 - #define TARGET_NR_fdatasync 253 258 - #define TARGET_NR_nfsservctl 254 259 - #define TARGET_NR_sync_file_range 255 260 - #define TARGET_NR_clock_settime 256 261 - #define TARGET_NR_clock_gettime 257 262 - #define TARGET_NR_clock_getres 258 263 - #define TARGET_NR_clock_nanosleep 259 264 - #define TARGET_NR_sched_getaffinity 260 265 - #define TARGET_NR_sched_setaffinity 261 266 - #define TARGET_NR_timer_settime 262 267 - #define TARGET_NR_timer_gettime 263 268 - #define TARGET_NR_timer_getoverrun 264 269 - #define TARGET_NR_timer_delete 265 270 - #define TARGET_NR_timer_create 266 271 - /* #define TARGET_NR_vserver 267 Reserved for VSERVER */ 272 - #define TARGET_NR_io_setup 268 273 - #define TARGET_NR_io_destroy 269 274 - #define TARGET_NR_io_submit 270 275 - #define TARGET_NR_io_cancel 271 276 - #define TARGET_NR_io_getevents 272 277 - #define TARGET_NR_mq_open 273 278 - #define TARGET_NR_mq_unlink 274 279 - #define TARGET_NR_mq_timedsend 275 280 - #define TARGET_NR_mq_timedreceive 276 281 - #define TARGET_NR_mq_notify 277 282 - #define TARGET_NR_mq_getsetattr 278 283 - #define TARGET_NR_waitid 279 284 - #define TARGET_NR_tee 280 285 - #define TARGET_NR_add_key 281 286 - #define TARGET_NR_request_key 282 287 - #define TARGET_NR_keyctl 283 288 - #define TARGET_NR_openat 284 289 - #define TARGET_NR_mkdirat 285 290 - #define TARGET_NR_mknodat 286 291 - #define TARGET_NR_fchownat 287 292 - #define TARGET_NR_futimesat 288 293 - #define TARGET_NR_fstatat64 289 294 - #define TARGET_NR_unlinkat 290 295 - #define TARGET_NR_renameat 291 296 - #define TARGET_NR_linkat 292 297 - #define TARGET_NR_symlinkat 293 298 - #define TARGET_NR_readlinkat 294 299 - #define TARGET_NR_fchmodat 295 300 - #define TARGET_NR_faccessat 296 301 - #define TARGET_NR_pselect6 297 302 - #define TARGET_NR_ppoll 298 303 - #define TARGET_NR_unshare 299 304 - #define TARGET_NR_set_robust_list 300 305 - #define TARGET_NR_get_robust_list 301 306 - #define TARGET_NR_migrate_pages 302 307 - #define TARGET_NR_mbind 303 308 - #define TARGET_NR_get_mempolicy 304 309 - #define TARGET_NR_set_mempolicy 305 310 - #define TARGET_NR_kexec_load 306 311 - #define TARGET_NR_move_pages 307 312 - #define TARGET_NR_getcpu 308 313 - #define TARGET_NR_epoll_pwait 309 314 - #define TARGET_NR_utimensat 310 315 - #define TARGET_NR_signalfd 311 316 - #define TARGET_NR_timerfd_create 312 317 - #define TARGET_NR_eventfd 313 318 - #define TARGET_NR_fallocate 314 319 - #define TARGET_NR_timerfd_settime 315 320 - #define TARGET_NR_timerfd_gettime 316 321 - #define TARGET_NR_signalfd4 317 322 - #define TARGET_NR_eventfd2 318 323 - #define TARGET_NR_epoll_create1 319 324 - #define TARGET_NR_dup3 320 325 - #define TARGET_NR_pipe2 321 326 - #define TARGET_NR_inotify_init1 322 327 - #define TARGET_NR_accept4 323 328 - #define TARGET_NR_preadv 324 329 - #define TARGET_NR_pwritev 325 330 - #define TARGET_NR_rt_tgsigqueueinfo 326 331 - #define TARGET_NR_perf_event_open 327 332 - #define TARGET_NR_recvmmsg 328 333 - #define TARGET_NR_fanotify_init 329 334 - #define TARGET_NR_fanotify_mark 330 335 - #define TARGET_NR_prlimit64 331 336 - #define TARGET_NR_name_to_handle_at 332 337 - #define TARGET_NR_open_by_handle_at 333 338 - #define TARGET_NR_clock_adjtime 334 339 - #define TARGET_NR_syncfs 335 340 - #define TARGET_NR_sendmmsg 336 341 - #define TARGET_NR_setns 337 342 - #define TARGET_NR_process_vm_readv 338 343 - #define TARGET_NR_process_vm_writev 339 344 - #define TARGET_NR_kern_features 340 345 - #define TARGET_NR_kcmp 341 346 - #define TARGET_NR_finit_module 342 347 - #define TARGET_NR_sched_setattr 343 348 - #define TARGET_NR_sched_getattr 344 349 - #define TARGET_NR_renameat2 345 350 - #define TARGET_NR_seccomp 346 351 - #define TARGET_NR_getrandom 347 352 - #define TARGET_NR_memfd_create 348 353 - #define TARGET_NR_bpf 349 354 - #define TARGET_NR_execveat 350 355 - #define TARGET_NR_membarrier 351 356 - #define TARGET_NR_userfaultfd 352 357 - #define TARGET_NR_bind 353 358 - #define TARGET_NR_listen 354 359 - #define TARGET_NR_setsockopt 355 360 - #define TARGET_NR_mlock2 356 361 - #define TARGET_NR_copy_file_range 357 362 - #define TARGET_NR_preadv2 358 363 - #define TARGET_NR_pwritev2 359 364 - #define TARGET_NR_statx 360 365 - 366 - #endif
+32
linux-user/sparc64/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_SPARC64_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry compat ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+9 -1
linux-user/strace.c
··· 444 444 static void 445 445 print_socket_type(int type) 446 446 { 447 - switch (type) { 447 + switch (type & TARGET_SOCK_TYPE_MASK) { 448 448 case TARGET_SOCK_DGRAM: 449 449 qemu_log("SOCK_DGRAM"); 450 450 break; ··· 463 463 case TARGET_SOCK_PACKET: 464 464 qemu_log("SOCK_PACKET"); 465 465 break; 466 + } 467 + if (type & TARGET_SOCK_CLOEXEC) { 468 + qemu_log("|SOCK_CLOEXEC"); 469 + } 470 + if (type & TARGET_SOCK_NONBLOCK) { 471 + qemu_log("|SOCK_NONBLOCK"); 466 472 } 467 473 } 468 474 ··· 775 781 #define TARGET_TIME_OOP 3 /* leap second in progress */ 776 782 #define TARGET_TIME_WAIT 4 /* leap second has occurred */ 777 783 #define TARGET_TIME_ERROR 5 /* clock not synchronized */ 784 + #ifdef TARGET_NR_adjtimex 778 785 static void 779 786 print_syscall_ret_adjtimex(const struct syscallname *name, abi_long ret) 780 787 { ··· 813 820 814 821 qemu_log("\n"); 815 822 } 823 + #endif 816 824 817 825 UNUSED static struct flags access_flags[] = { 818 826 FLAG_GENERIC(F_OK),
+127 -12
linux-user/syscall.c
··· 295 295 #if defined(TARGET_NR_set_tid_address) && defined(__NR_set_tid_address) 296 296 _syscall1(int,set_tid_address,int *,tidptr) 297 297 #endif 298 - #if defined(TARGET_NR_futex) && defined(__NR_futex) 298 + #if (defined(TARGET_NR_futex) || defined(TARGET_NR_exit)) && defined(__NR_futex) 299 299 _syscall6(int,sys_futex,int *,uaddr,int,op,int,val, 300 300 const struct timespec *,timeout,int *,uaddr2,int,val3) 301 301 #endif ··· 742 742 safe_syscall3(ssize_t, write, int, fd, const void *, buff, size_t, count) 743 743 safe_syscall4(int, openat, int, dirfd, const char *, pathname, \ 744 744 int, flags, mode_t, mode) 745 + #if defined(TARGET_NR_wait4) || defined(TARGET_NR_waitpid) 745 746 safe_syscall4(pid_t, wait4, pid_t, pid, int *, status, int, options, \ 746 747 struct rusage *, rusage) 748 + #endif 747 749 safe_syscall5(int, waitid, idtype_t, idtype, id_t, id, siginfo_t *, infop, \ 748 750 int, options, struct rusage *, rusage) 749 751 safe_syscall3(int, execve, const char *, filename, char **, argv, char **, envp) 752 + #if defined(TARGET_NR_select) || defined(TARGET_NR__newselect) || \ 753 + defined(TARGET_NR_pselect6) 750 754 safe_syscall6(int, pselect6, int, nfds, fd_set *, readfds, fd_set *, writefds, \ 751 755 fd_set *, exceptfds, struct timespec *, timeout, void *, sig) 756 + #endif 757 + #if defined(TARGET_NR_ppoll) || defined(TARGET_NR_poll) 752 758 safe_syscall5(int, ppoll, struct pollfd *, ufds, unsigned int, nfds, 753 759 struct timespec *, tsp, const sigset_t *, sigmask, 754 760 size_t, sigsetsize) 761 + #endif 755 762 safe_syscall6(int, epoll_pwait, int, epfd, struct epoll_event *, events, 756 763 int, maxevents, int, timeout, const sigset_t *, sigmask, 757 764 size_t, sigsetsize) 765 + #ifdef TARGET_NR_futex 758 766 safe_syscall6(int,futex,int *,uaddr,int,op,int,val, \ 759 767 const struct timespec *,timeout,int *,uaddr2,int,val3) 768 + #endif 760 769 safe_syscall2(int, rt_sigsuspend, sigset_t *, newset, size_t, sigsetsize) 761 770 safe_syscall2(int, kill, pid_t, pid, int, sig) 762 771 safe_syscall2(int, tkill, int, tid, int, sig) ··· 776 785 safe_syscall3(ssize_t, sendmsg, int, fd, const struct msghdr *, msg, int, flags) 777 786 safe_syscall3(ssize_t, recvmsg, int, fd, struct msghdr *, msg, int, flags) 778 787 safe_syscall2(int, flock, int, fd, int, operation) 788 + #ifdef TARGET_NR_rt_sigtimedwait 779 789 safe_syscall4(int, rt_sigtimedwait, const sigset_t *, these, siginfo_t *, uinfo, 780 790 const struct timespec *, uts, size_t, sigsetsize) 791 + #endif 781 792 safe_syscall4(int, accept4, int, fd, struct sockaddr *, addr, socklen_t *, len, 782 793 int, flags) 794 + #if defined(TARGET_NR_nanosleep) 783 795 safe_syscall2(int, nanosleep, const struct timespec *, req, 784 796 struct timespec *, rem) 797 + #endif 785 798 #ifdef TARGET_NR_clock_nanosleep 786 799 safe_syscall4(int, clock_nanosleep, const clockid_t, clock, int, flags, 787 800 const struct timespec *, req, struct timespec *, rem) ··· 802 815 safe_syscall4(int, semtimedop, int, semid, struct sembuf *, tsops, 803 816 unsigned, nsops, const struct timespec *, timeout) 804 817 #endif 805 - #if defined(TARGET_NR_mq_open) && defined(__NR_mq_open) 818 + #ifdef TARGET_NR_mq_timedsend 806 819 safe_syscall5(int, mq_timedsend, int, mqdes, const char *, msg_ptr, 807 820 size_t, len, unsigned, prio, const struct timespec *, timeout) 821 + #endif 822 + #ifdef TARGET_NR_mq_timedreceive 808 823 safe_syscall5(int, mq_timedreceive, int, mqdes, char *, msg_ptr, 809 824 size_t, len, unsigned *, prio, const struct timespec *, timeout) 810 825 #endif ··· 946 961 return target_brk; 947 962 } 948 963 964 + #if defined(TARGET_NR_select) || defined(TARGET_NR__newselect) || \ 965 + defined(TARGET_NR_pselect6) 949 966 static inline abi_long copy_from_user_fdset(fd_set *fds, 950 967 abi_ulong target_fds_addr, 951 968 int n) ··· 1021 1038 1022 1039 return 0; 1023 1040 } 1041 + #endif 1024 1042 1025 1043 #if defined(__alpha__) 1026 1044 #define HOST_HZ 1024 ··· 1067 1085 return 0; 1068 1086 } 1069 1087 1088 + #ifdef TARGET_NR_setrlimit 1070 1089 static inline rlim_t target_to_host_rlim(abi_ulong target_rlim) 1071 1090 { 1072 1091 abi_ulong target_rlim_swap; ··· 1082 1101 1083 1102 return result; 1084 1103 } 1104 + #endif 1085 1105 1106 + #if defined(TARGET_NR_getrlimit) || defined(TARGET_NR_ugetrlimit) 1086 1107 static inline abi_ulong host_to_target_rlim(rlim_t rlim) 1087 1108 { 1088 1109 abi_ulong target_rlim_swap; ··· 1096 1117 1097 1118 return result; 1098 1119 } 1120 + #endif 1099 1121 1100 1122 static inline int target_to_host_resource(int code) 1101 1123 { ··· 1186 1208 return 0; 1187 1209 } 1188 1210 1211 + #if defined(TARGET_NR_futex) || \ 1212 + defined(TARGET_NR_rt_sigtimedwait) || \ 1213 + defined(TARGET_NR_pselect6) || defined(TARGET_NR_pselect6) || \ 1214 + defined(TARGET_NR_nanosleep) || defined(TARGET_NR_clock_settime) || \ 1215 + defined(TARGET_NR_utimensat) || defined(TARGET_NR_mq_timedsend) || \ 1216 + defined(TARGET_NR_mq_timedreceive) 1189 1217 static inline abi_long target_to_host_timespec(struct timespec *host_ts, 1190 1218 abi_ulong target_addr) 1191 1219 { ··· 1199 1227 unlock_user_struct(target_ts, target_addr, 0); 1200 1228 return 0; 1201 1229 } 1230 + #endif 1231 + 1232 + #if defined(TARGET_NR_clock_settime64) 1233 + static inline abi_long target_to_host_timespec64(struct timespec *host_ts, 1234 + abi_ulong target_addr) 1235 + { 1236 + struct target__kernel_timespec *target_ts; 1237 + 1238 + if (!lock_user_struct(VERIFY_READ, target_ts, target_addr, 1)) { 1239 + return -TARGET_EFAULT; 1240 + } 1241 + __get_user(host_ts->tv_sec, &target_ts->tv_sec); 1242 + __get_user(host_ts->tv_nsec, &target_ts->tv_nsec); 1243 + unlock_user_struct(target_ts, target_addr, 0); 1244 + return 0; 1245 + } 1246 + #endif 1202 1247 1203 1248 static inline abi_long host_to_target_timespec(abi_ulong target_addr, 1204 1249 struct timespec *host_ts) ··· 1228 1273 return 0; 1229 1274 } 1230 1275 1276 + #if defined(TARGET_NR_settimeofday) 1231 1277 static inline abi_long copy_from_user_timezone(struct timezone *tz, 1232 1278 abi_ulong target_tz_addr) 1233 1279 { ··· 1244 1290 1245 1291 return 0; 1246 1292 } 1293 + #endif 1247 1294 1248 1295 #if defined(TARGET_NR_mq_open) && defined(__NR_mq_open) 1249 1296 #include <mqueue.h> ··· 5498 5545 { 0, 0, 0, 0 } 5499 5546 }; 5500 5547 5548 + /* 5549 + * NOTE: TARGET_ABI32 is defined for TARGET_I386 (but not for TARGET_X86_64) 5550 + * TARGET_I386 is defined if TARGET_X86_64 is defined 5551 + */ 5501 5552 #if defined(TARGET_I386) 5502 5553 5503 5554 /* NOTE: there is really one LDT for all the threads */ ··· 5637 5688 return ret; 5638 5689 } 5639 5690 5640 - #if defined(TARGET_I386) && defined(TARGET_ABI32) 5691 + #if defined(TARGET_ABI32) 5641 5692 abi_long do_set_thread_area(CPUX86State *env, abi_ulong ptr) 5642 5693 { 5643 5694 uint64_t *gdt_table = g2h(env->gdt.base); ··· 5769 5820 unlock_user_struct(target_ldt_info, ptr, 1); 5770 5821 return 0; 5771 5822 } 5772 - #endif /* TARGET_I386 && TARGET_ABI32 */ 5773 5823 5774 - #ifndef TARGET_ABI32 5824 + abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr) 5825 + { 5826 + return -ENOSYS; 5827 + } 5828 + #else 5775 5829 abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr) 5776 5830 { 5777 5831 abi_long ret = 0; ··· 5804 5858 } 5805 5859 return ret; 5806 5860 } 5807 - #endif 5861 + #endif /* defined(TARGET_ABI32 */ 5808 5862 5809 5863 #endif /* defined(TARGET_I386) */ 5810 5864 ··· 6565 6619 } 6566 6620 #endif 6567 6621 6622 + #if defined(TARGET_NR_timer_settime) || \ 6623 + (defined(TARGET_NR_timerfd_settime) && defined(CONFIG_TIMERFD)) 6568 6624 static inline abi_long target_to_host_itimerspec(struct itimerspec *host_itspec, 6569 6625 abi_ulong target_addr) 6570 6626 { ··· 6584 6640 unlock_user_struct(target_itspec, target_addr, 1); 6585 6641 return 0; 6586 6642 } 6643 + #endif 6587 6644 6645 + #if ((defined(TARGET_NR_timerfd_gettime) || \ 6646 + defined(TARGET_NR_timerfd_settime)) && defined(CONFIG_TIMERFD)) || \ 6647 + defined(TARGET_NR_timer_gettime) || defined(TARGET_NR_timer_settime) 6588 6648 static inline abi_long host_to_target_itimerspec(abi_ulong target_addr, 6589 6649 struct itimerspec *host_its) 6590 6650 { ··· 6603 6663 unlock_user_struct(target_itspec, target_addr, 0); 6604 6664 return 0; 6605 6665 } 6666 + #endif 6606 6667 6668 + #if defined(TARGET_NR_adjtimex) || \ 6669 + (defined(TARGET_NR_clock_adjtime) && defined(CONFIG_CLOCK_ADJTIME)) 6607 6670 static inline abi_long target_to_host_timex(struct timex *host_tx, 6608 6671 abi_long target_addr) 6609 6672 { ··· 6673 6736 unlock_user_struct(target_tx, target_addr, 1); 6674 6737 return 0; 6675 6738 } 6676 - 6739 + #endif 6677 6740 6678 6741 static inline abi_long target_to_host_sigevent(struct sigevent *host_sevp, 6679 6742 abi_ulong target_addr) ··· 6840 6903 futexes locally would make futexes shared between multiple processes 6841 6904 tricky. However they're probably useless because guest atomic 6842 6905 operations won't work either. */ 6906 + #if defined(TARGET_NR_futex) 6843 6907 static int do_futex(target_ulong uaddr, int op, int val, target_ulong timeout, 6844 6908 target_ulong uaddr2, int val3) 6845 6909 { ··· 6886 6950 return -TARGET_ENOSYS; 6887 6951 } 6888 6952 } 6953 + #endif 6889 6954 #if defined(TARGET_NR_name_to_handle_at) && defined(CONFIG_OPEN_BY_HANDLE) 6890 6955 static abi_long do_name_to_handle_at(abi_long dirfd, abi_long pathname, 6891 6956 abi_long handle, abi_long mount_id, ··· 8494 8559 } 8495 8560 } 8496 8561 return ret; 8562 + #ifdef TARGET_NR_rt_sigtimedwait 8497 8563 case TARGET_NR_rt_sigtimedwait: 8498 8564 { 8499 8565 sigset_t set; ··· 8530 8596 } 8531 8597 } 8532 8598 return ret; 8599 + #endif 8533 8600 case TARGET_NR_rt_sigqueueinfo: 8534 8601 { 8535 8602 siginfo_t uinfo; ··· 8629 8696 } 8630 8697 } 8631 8698 return ret; 8699 + #if defined(TARGET_NR_gettimeofday) 8632 8700 case TARGET_NR_gettimeofday: 8633 8701 { 8634 8702 struct timeval tv; ··· 8639 8707 } 8640 8708 } 8641 8709 return ret; 8710 + #endif 8711 + #if defined(TARGET_NR_settimeofday) 8642 8712 case TARGET_NR_settimeofday: 8643 8713 { 8644 8714 struct timeval tv, *ptv = NULL; ··· 8660 8730 8661 8731 return get_errno(settimeofday(ptv, ptz)); 8662 8732 } 8733 + #endif 8663 8734 #if defined(TARGET_NR_select) 8664 8735 case TARGET_NR_select: 8665 8736 #if defined(TARGET_WANT_NI_OLD_SELECT) ··· 9131 9202 #ifdef TARGET_NR_sendmmsg 9132 9203 case TARGET_NR_sendmmsg: 9133 9204 return do_sendrecvmmsg(arg1, arg2, arg3, arg4, 1); 9205 + #endif 9206 + #ifdef TARGET_NR_recvmmsg 9134 9207 case TARGET_NR_recvmmsg: 9135 9208 return do_sendrecvmmsg(arg1, arg2, arg3, arg4, 0); 9136 9209 #endif ··· 9305 9378 return do_syscall(cpu_env, arg1 & 0xffff, arg2, arg3, arg4, arg5, 9306 9379 arg6, arg7, arg8, 0); 9307 9380 #endif 9381 + #if defined(TARGET_NR_wait4) 9308 9382 case TARGET_NR_wait4: 9309 9383 { 9310 9384 int status; ··· 9332 9406 } 9333 9407 } 9334 9408 return ret; 9409 + #endif 9335 9410 #ifdef TARGET_NR_swapoff 9336 9411 case TARGET_NR_swapoff: 9337 9412 if (!(p = lock_user_string(arg1))) ··· 9476 9551 return do_vm86(cpu_env, arg1, arg2); 9477 9552 #endif 9478 9553 #endif 9554 + #if defined(TARGET_NR_adjtimex) 9479 9555 case TARGET_NR_adjtimex: 9480 9556 { 9481 9557 struct timex host_buf; ··· 9491 9567 } 9492 9568 } 9493 9569 return ret; 9570 + #endif 9494 9571 #if defined(TARGET_NR_clock_adjtime) && defined(CONFIG_CLOCK_ADJTIME) 9495 9572 case TARGET_NR_clock_adjtime: 9496 9573 { ··· 10007 10084 return get_errno(sched_get_priority_max(arg1)); 10008 10085 case TARGET_NR_sched_get_priority_min: 10009 10086 return get_errno(sched_get_priority_min(arg1)); 10087 + #ifdef TARGET_NR_sched_rr_get_interval 10010 10088 case TARGET_NR_sched_rr_get_interval: 10011 10089 { 10012 10090 struct timespec ts; ··· 10016 10094 } 10017 10095 } 10018 10096 return ret; 10097 + #endif 10098 + #if defined(TARGET_NR_nanosleep) 10019 10099 case TARGET_NR_nanosleep: 10020 10100 { 10021 10101 struct timespec req, rem; ··· 10026 10106 } 10027 10107 } 10028 10108 return ret; 10109 + #endif 10029 10110 case TARGET_NR_prctl: 10030 10111 switch (arg1) { 10031 10112 case PR_GET_PDEATHSIG: ··· 10247 10328 break; 10248 10329 #ifdef TARGET_NR_arch_prctl 10249 10330 case TARGET_NR_arch_prctl: 10250 - #if defined(TARGET_I386) && !defined(TARGET_ABI32) 10251 10331 return do_arch_prctl(cpu_env, arg1, arg2); 10252 - #else 10253 - #error unreachable 10254 - #endif 10255 10332 #endif 10256 10333 #ifdef TARGET_NR_pread64 10257 10334 case TARGET_NR_pread64: ··· 11400 11477 return ret; 11401 11478 } 11402 11479 #endif 11480 + #ifdef TARGET_NR_clock_settime64 11481 + case TARGET_NR_clock_settime64: 11482 + { 11483 + struct timespec ts; 11484 + 11485 + ret = target_to_host_timespec64(&ts, arg2); 11486 + if (!is_error(ret)) { 11487 + ret = get_errno(clock_settime(arg1, &ts)); 11488 + } 11489 + return ret; 11490 + } 11491 + #endif 11403 11492 #ifdef TARGET_NR_clock_gettime 11404 11493 case TARGET_NR_clock_gettime: 11405 11494 { ··· 11407 11496 ret = get_errno(clock_gettime(arg1, &ts)); 11408 11497 if (!is_error(ret)) { 11409 11498 ret = host_to_target_timespec(arg2, &ts); 11499 + } 11500 + return ret; 11501 + } 11502 + #endif 11503 + #ifdef TARGET_NR_clock_gettime64 11504 + case TARGET_NR_clock_gettime64: 11505 + { 11506 + struct timespec ts; 11507 + ret = get_errno(clock_gettime(arg1, &ts)); 11508 + if (!is_error(ret)) { 11509 + ret = host_to_target_timespec64(arg2, &ts); 11410 11510 } 11411 11511 return ret; 11412 11512 } ··· 11496 11596 } 11497 11597 return ret; 11498 11598 #endif 11599 + #ifdef TARGET_NR_futex 11499 11600 case TARGET_NR_futex: 11500 11601 return do_futex(arg1, arg2, arg3, arg4, arg5, arg6); 11602 + #endif 11501 11603 #if defined(TARGET_NR_inotify_init) && defined(__NR_inotify_init) 11502 11604 case TARGET_NR_inotify_init: 11503 11605 ret = get_errno(sys_inotify_init()); ··· 11562 11664 unlock_user (p, arg1, 0); 11563 11665 return ret; 11564 11666 11667 + #ifdef TARGET_NR_mq_timedsend 11565 11668 case TARGET_NR_mq_timedsend: 11566 11669 { 11567 11670 struct timespec ts; ··· 11577 11680 unlock_user (p, arg2, arg3); 11578 11681 } 11579 11682 return ret; 11683 + #endif 11580 11684 11685 + #ifdef TARGET_NR_mq_timedreceive 11581 11686 case TARGET_NR_mq_timedreceive: 11582 11687 { 11583 11688 struct timespec ts; ··· 11598 11703 put_user_u32(prio, arg4); 11599 11704 } 11600 11705 return ret; 11706 + #endif 11601 11707 11602 11708 /* Not implemented for now... */ 11603 11709 /* case TARGET_NR_mq_notify: */ ··· 11727 11833 #endif 11728 11834 return ret; 11729 11835 #endif 11836 + #if defined(TARGET_NR_sync_file_range2) || \ 11837 + defined(TARGET_NR_arm_sync_file_range) 11730 11838 #if defined(TARGET_NR_sync_file_range2) 11731 11839 case TARGET_NR_sync_file_range2: 11840 + #endif 11841 + #if defined(TARGET_NR_arm_sync_file_range) 11842 + case TARGET_NR_arm_sync_file_range: 11843 + #endif 11732 11844 /* This is like sync_file_range but the arguments are reordered */ 11733 11845 #if TARGET_ABI_BITS == 32 11734 11846 ret = get_errno(sync_file_range(arg1, target_offset64(arg3, arg4), ··· 11871 11983 struct target_rlimit64 *target_rnew, *target_rold; 11872 11984 struct host_rlimit64 rnew, rold, *rnewp = 0; 11873 11985 int resource = target_to_host_resource(arg2); 11874 - if (arg3) { 11986 + 11987 + if (arg3 && (resource != RLIMIT_AS && 11988 + resource != RLIMIT_DATA && 11989 + resource != RLIMIT_STACK)) { 11875 11990 if (!lock_user_struct(VERIFY_READ, target_rnew, arg3, 1)) { 11876 11991 return -TARGET_EFAULT; 11877 11992 }
+5
linux-user/x86_64/Makefile.objs
··· 1 + generated-files-y += linux-user/x86_64/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/x86_64/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/x86_64/syscall_64.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+404
linux-user/x86_64/syscall_64.tbl
··· 1 + # 2 + # 64-bit system call numbers and entry vectors 3 + # 4 + # The format is: 5 + # <number> <abi> <name> <entry point> 6 + # 7 + # The __x64_sys_*() stubs are created on-the-fly for sys_*() system calls 8 + # 9 + # The abi is "common", "64" or "x32" for this file. 10 + # 11 + 0 common read __x64_sys_read 12 + 1 common write __x64_sys_write 13 + 2 common open __x64_sys_open 14 + 3 common close __x64_sys_close 15 + 4 common stat __x64_sys_newstat 16 + 5 common fstat __x64_sys_newfstat 17 + 6 common lstat __x64_sys_newlstat 18 + 7 common poll __x64_sys_poll 19 + 8 common lseek __x64_sys_lseek 20 + 9 common mmap __x64_sys_mmap 21 + 10 common mprotect __x64_sys_mprotect 22 + 11 common munmap __x64_sys_munmap 23 + 12 common brk __x64_sys_brk 24 + 13 64 rt_sigaction __x64_sys_rt_sigaction 25 + 14 common rt_sigprocmask __x64_sys_rt_sigprocmask 26 + 15 64 rt_sigreturn __x64_sys_rt_sigreturn/ptregs 27 + 16 64 ioctl __x64_sys_ioctl 28 + 17 common pread64 __x64_sys_pread64 29 + 18 common pwrite64 __x64_sys_pwrite64 30 + 19 64 readv __x64_sys_readv 31 + 20 64 writev __x64_sys_writev 32 + 21 common access __x64_sys_access 33 + 22 common pipe __x64_sys_pipe 34 + 23 common select __x64_sys_select 35 + 24 common sched_yield __x64_sys_sched_yield 36 + 25 common mremap __x64_sys_mremap 37 + 26 common msync __x64_sys_msync 38 + 27 common mincore __x64_sys_mincore 39 + 28 common madvise __x64_sys_madvise 40 + 29 common shmget __x64_sys_shmget 41 + 30 common shmat __x64_sys_shmat 42 + 31 common shmctl __x64_sys_shmctl 43 + 32 common dup __x64_sys_dup 44 + 33 common dup2 __x64_sys_dup2 45 + 34 common pause __x64_sys_pause 46 + 35 common nanosleep __x64_sys_nanosleep 47 + 36 common getitimer __x64_sys_getitimer 48 + 37 common alarm __x64_sys_alarm 49 + 38 common setitimer __x64_sys_setitimer 50 + 39 common getpid __x64_sys_getpid 51 + 40 common sendfile __x64_sys_sendfile64 52 + 41 common socket __x64_sys_socket 53 + 42 common connect __x64_sys_connect 54 + 43 common accept __x64_sys_accept 55 + 44 common sendto __x64_sys_sendto 56 + 45 64 recvfrom __x64_sys_recvfrom 57 + 46 64 sendmsg __x64_sys_sendmsg 58 + 47 64 recvmsg __x64_sys_recvmsg 59 + 48 common shutdown __x64_sys_shutdown 60 + 49 common bind __x64_sys_bind 61 + 50 common listen __x64_sys_listen 62 + 51 common getsockname __x64_sys_getsockname 63 + 52 common getpeername __x64_sys_getpeername 64 + 53 common socketpair __x64_sys_socketpair 65 + 54 64 setsockopt __x64_sys_setsockopt 66 + 55 64 getsockopt __x64_sys_getsockopt 67 + 56 common clone __x64_sys_clone/ptregs 68 + 57 common fork __x64_sys_fork/ptregs 69 + 58 common vfork __x64_sys_vfork/ptregs 70 + 59 64 execve __x64_sys_execve/ptregs 71 + 60 common exit __x64_sys_exit 72 + 61 common wait4 __x64_sys_wait4 73 + 62 common kill __x64_sys_kill 74 + 63 common uname __x64_sys_newuname 75 + 64 common semget __x64_sys_semget 76 + 65 common semop __x64_sys_semop 77 + 66 common semctl __x64_sys_semctl 78 + 67 common shmdt __x64_sys_shmdt 79 + 68 common msgget __x64_sys_msgget 80 + 69 common msgsnd __x64_sys_msgsnd 81 + 70 common msgrcv __x64_sys_msgrcv 82 + 71 common msgctl __x64_sys_msgctl 83 + 72 common fcntl __x64_sys_fcntl 84 + 73 common flock __x64_sys_flock 85 + 74 common fsync __x64_sys_fsync 86 + 75 common fdatasync __x64_sys_fdatasync 87 + 76 common truncate __x64_sys_truncate 88 + 77 common ftruncate __x64_sys_ftruncate 89 + 78 common getdents __x64_sys_getdents 90 + 79 common getcwd __x64_sys_getcwd 91 + 80 common chdir __x64_sys_chdir 92 + 81 common fchdir __x64_sys_fchdir 93 + 82 common rename __x64_sys_rename 94 + 83 common mkdir __x64_sys_mkdir 95 + 84 common rmdir __x64_sys_rmdir 96 + 85 common creat __x64_sys_creat 97 + 86 common link __x64_sys_link 98 + 87 common unlink __x64_sys_unlink 99 + 88 common symlink __x64_sys_symlink 100 + 89 common readlink __x64_sys_readlink 101 + 90 common chmod __x64_sys_chmod 102 + 91 common fchmod __x64_sys_fchmod 103 + 92 common chown __x64_sys_chown 104 + 93 common fchown __x64_sys_fchown 105 + 94 common lchown __x64_sys_lchown 106 + 95 common umask __x64_sys_umask 107 + 96 common gettimeofday __x64_sys_gettimeofday 108 + 97 common getrlimit __x64_sys_getrlimit 109 + 98 common getrusage __x64_sys_getrusage 110 + 99 common sysinfo __x64_sys_sysinfo 111 + 100 common times __x64_sys_times 112 + 101 64 ptrace __x64_sys_ptrace 113 + 102 common getuid __x64_sys_getuid 114 + 103 common syslog __x64_sys_syslog 115 + 104 common getgid __x64_sys_getgid 116 + 105 common setuid __x64_sys_setuid 117 + 106 common setgid __x64_sys_setgid 118 + 107 common geteuid __x64_sys_geteuid 119 + 108 common getegid __x64_sys_getegid 120 + 109 common setpgid __x64_sys_setpgid 121 + 110 common getppid __x64_sys_getppid 122 + 111 common getpgrp __x64_sys_getpgrp 123 + 112 common setsid __x64_sys_setsid 124 + 113 common setreuid __x64_sys_setreuid 125 + 114 common setregid __x64_sys_setregid 126 + 115 common getgroups __x64_sys_getgroups 127 + 116 common setgroups __x64_sys_setgroups 128 + 117 common setresuid __x64_sys_setresuid 129 + 118 common getresuid __x64_sys_getresuid 130 + 119 common setresgid __x64_sys_setresgid 131 + 120 common getresgid __x64_sys_getresgid 132 + 121 common getpgid __x64_sys_getpgid 133 + 122 common setfsuid __x64_sys_setfsuid 134 + 123 common setfsgid __x64_sys_setfsgid 135 + 124 common getsid __x64_sys_getsid 136 + 125 common capget __x64_sys_capget 137 + 126 common capset __x64_sys_capset 138 + 127 64 rt_sigpending __x64_sys_rt_sigpending 139 + 128 64 rt_sigtimedwait __x64_sys_rt_sigtimedwait 140 + 129 64 rt_sigqueueinfo __x64_sys_rt_sigqueueinfo 141 + 130 common rt_sigsuspend __x64_sys_rt_sigsuspend 142 + 131 64 sigaltstack __x64_sys_sigaltstack 143 + 132 common utime __x64_sys_utime 144 + 133 common mknod __x64_sys_mknod 145 + 134 64 uselib 146 + 135 common personality __x64_sys_personality 147 + 136 common ustat __x64_sys_ustat 148 + 137 common statfs __x64_sys_statfs 149 + 138 common fstatfs __x64_sys_fstatfs 150 + 139 common sysfs __x64_sys_sysfs 151 + 140 common getpriority __x64_sys_getpriority 152 + 141 common setpriority __x64_sys_setpriority 153 + 142 common sched_setparam __x64_sys_sched_setparam 154 + 143 common sched_getparam __x64_sys_sched_getparam 155 + 144 common sched_setscheduler __x64_sys_sched_setscheduler 156 + 145 common sched_getscheduler __x64_sys_sched_getscheduler 157 + 146 common sched_get_priority_max __x64_sys_sched_get_priority_max 158 + 147 common sched_get_priority_min __x64_sys_sched_get_priority_min 159 + 148 common sched_rr_get_interval __x64_sys_sched_rr_get_interval 160 + 149 common mlock __x64_sys_mlock 161 + 150 common munlock __x64_sys_munlock 162 + 151 common mlockall __x64_sys_mlockall 163 + 152 common munlockall __x64_sys_munlockall 164 + 153 common vhangup __x64_sys_vhangup 165 + 154 common modify_ldt __x64_sys_modify_ldt 166 + 155 common pivot_root __x64_sys_pivot_root 167 + 156 64 _sysctl __x64_sys_sysctl 168 + 157 common prctl __x64_sys_prctl 169 + 158 common arch_prctl __x64_sys_arch_prctl 170 + 159 common adjtimex __x64_sys_adjtimex 171 + 160 common setrlimit __x64_sys_setrlimit 172 + 161 common chroot __x64_sys_chroot 173 + 162 common sync __x64_sys_sync 174 + 163 common acct __x64_sys_acct 175 + 164 common settimeofday __x64_sys_settimeofday 176 + 165 common mount __x64_sys_mount 177 + 166 common umount2 __x64_sys_umount 178 + 167 common swapon __x64_sys_swapon 179 + 168 common swapoff __x64_sys_swapoff 180 + 169 common reboot __x64_sys_reboot 181 + 170 common sethostname __x64_sys_sethostname 182 + 171 common setdomainname __x64_sys_setdomainname 183 + 172 common iopl __x64_sys_iopl/ptregs 184 + 173 common ioperm __x64_sys_ioperm 185 + 174 64 create_module 186 + 175 common init_module __x64_sys_init_module 187 + 176 common delete_module __x64_sys_delete_module 188 + 177 64 get_kernel_syms 189 + 178 64 query_module 190 + 179 common quotactl __x64_sys_quotactl 191 + 180 64 nfsservctl 192 + 181 common getpmsg 193 + 182 common putpmsg 194 + 183 common afs_syscall 195 + 184 common tuxcall 196 + 185 common security 197 + 186 common gettid __x64_sys_gettid 198 + 187 common readahead __x64_sys_readahead 199 + 188 common setxattr __x64_sys_setxattr 200 + 189 common lsetxattr __x64_sys_lsetxattr 201 + 190 common fsetxattr __x64_sys_fsetxattr 202 + 191 common getxattr __x64_sys_getxattr 203 + 192 common lgetxattr __x64_sys_lgetxattr 204 + 193 common fgetxattr __x64_sys_fgetxattr 205 + 194 common listxattr __x64_sys_listxattr 206 + 195 common llistxattr __x64_sys_llistxattr 207 + 196 common flistxattr __x64_sys_flistxattr 208 + 197 common removexattr __x64_sys_removexattr 209 + 198 common lremovexattr __x64_sys_lremovexattr 210 + 199 common fremovexattr __x64_sys_fremovexattr 211 + 200 common tkill __x64_sys_tkill 212 + 201 common time __x64_sys_time 213 + 202 common futex __x64_sys_futex 214 + 203 common sched_setaffinity __x64_sys_sched_setaffinity 215 + 204 common sched_getaffinity __x64_sys_sched_getaffinity 216 + 205 64 set_thread_area 217 + 206 64 io_setup __x64_sys_io_setup 218 + 207 common io_destroy __x64_sys_io_destroy 219 + 208 common io_getevents __x64_sys_io_getevents 220 + 209 64 io_submit __x64_sys_io_submit 221 + 210 common io_cancel __x64_sys_io_cancel 222 + 211 64 get_thread_area 223 + 212 common lookup_dcookie __x64_sys_lookup_dcookie 224 + 213 common epoll_create __x64_sys_epoll_create 225 + 214 64 epoll_ctl_old 226 + 215 64 epoll_wait_old 227 + 216 common remap_file_pages __x64_sys_remap_file_pages 228 + 217 common getdents64 __x64_sys_getdents64 229 + 218 common set_tid_address __x64_sys_set_tid_address 230 + 219 common restart_syscall __x64_sys_restart_syscall 231 + 220 common semtimedop __x64_sys_semtimedop 232 + 221 common fadvise64 __x64_sys_fadvise64 233 + 222 64 timer_create __x64_sys_timer_create 234 + 223 common timer_settime __x64_sys_timer_settime 235 + 224 common timer_gettime __x64_sys_timer_gettime 236 + 225 common timer_getoverrun __x64_sys_timer_getoverrun 237 + 226 common timer_delete __x64_sys_timer_delete 238 + 227 common clock_settime __x64_sys_clock_settime 239 + 228 common clock_gettime __x64_sys_clock_gettime 240 + 229 common clock_getres __x64_sys_clock_getres 241 + 230 common clock_nanosleep __x64_sys_clock_nanosleep 242 + 231 common exit_group __x64_sys_exit_group 243 + 232 common epoll_wait __x64_sys_epoll_wait 244 + 233 common epoll_ctl __x64_sys_epoll_ctl 245 + 234 common tgkill __x64_sys_tgkill 246 + 235 common utimes __x64_sys_utimes 247 + 236 64 vserver 248 + 237 common mbind __x64_sys_mbind 249 + 238 common set_mempolicy __x64_sys_set_mempolicy 250 + 239 common get_mempolicy __x64_sys_get_mempolicy 251 + 240 common mq_open __x64_sys_mq_open 252 + 241 common mq_unlink __x64_sys_mq_unlink 253 + 242 common mq_timedsend __x64_sys_mq_timedsend 254 + 243 common mq_timedreceive __x64_sys_mq_timedreceive 255 + 244 64 mq_notify __x64_sys_mq_notify 256 + 245 common mq_getsetattr __x64_sys_mq_getsetattr 257 + 246 64 kexec_load __x64_sys_kexec_load 258 + 247 64 waitid __x64_sys_waitid 259 + 248 common add_key __x64_sys_add_key 260 + 249 common request_key __x64_sys_request_key 261 + 250 common keyctl __x64_sys_keyctl 262 + 251 common ioprio_set __x64_sys_ioprio_set 263 + 252 common ioprio_get __x64_sys_ioprio_get 264 + 253 common inotify_init __x64_sys_inotify_init 265 + 254 common inotify_add_watch __x64_sys_inotify_add_watch 266 + 255 common inotify_rm_watch __x64_sys_inotify_rm_watch 267 + 256 common migrate_pages __x64_sys_migrate_pages 268 + 257 common openat __x64_sys_openat 269 + 258 common mkdirat __x64_sys_mkdirat 270 + 259 common mknodat __x64_sys_mknodat 271 + 260 common fchownat __x64_sys_fchownat 272 + 261 common futimesat __x64_sys_futimesat 273 + 262 common newfstatat __x64_sys_newfstatat 274 + 263 common unlinkat __x64_sys_unlinkat 275 + 264 common renameat __x64_sys_renameat 276 + 265 common linkat __x64_sys_linkat 277 + 266 common symlinkat __x64_sys_symlinkat 278 + 267 common readlinkat __x64_sys_readlinkat 279 + 268 common fchmodat __x64_sys_fchmodat 280 + 269 common faccessat __x64_sys_faccessat 281 + 270 common pselect6 __x64_sys_pselect6 282 + 271 common ppoll __x64_sys_ppoll 283 + 272 common unshare __x64_sys_unshare 284 + 273 64 set_robust_list __x64_sys_set_robust_list 285 + 274 64 get_robust_list __x64_sys_get_robust_list 286 + 275 common splice __x64_sys_splice 287 + 276 common tee __x64_sys_tee 288 + 277 common sync_file_range __x64_sys_sync_file_range 289 + 278 64 vmsplice __x64_sys_vmsplice 290 + 279 64 move_pages __x64_sys_move_pages 291 + 280 common utimensat __x64_sys_utimensat 292 + 281 common epoll_pwait __x64_sys_epoll_pwait 293 + 282 common signalfd __x64_sys_signalfd 294 + 283 common timerfd_create __x64_sys_timerfd_create 295 + 284 common eventfd __x64_sys_eventfd 296 + 285 common fallocate __x64_sys_fallocate 297 + 286 common timerfd_settime __x64_sys_timerfd_settime 298 + 287 common timerfd_gettime __x64_sys_timerfd_gettime 299 + 288 common accept4 __x64_sys_accept4 300 + 289 common signalfd4 __x64_sys_signalfd4 301 + 290 common eventfd2 __x64_sys_eventfd2 302 + 291 common epoll_create1 __x64_sys_epoll_create1 303 + 292 common dup3 __x64_sys_dup3 304 + 293 common pipe2 __x64_sys_pipe2 305 + 294 common inotify_init1 __x64_sys_inotify_init1 306 + 295 64 preadv __x64_sys_preadv 307 + 296 64 pwritev __x64_sys_pwritev 308 + 297 64 rt_tgsigqueueinfo __x64_sys_rt_tgsigqueueinfo 309 + 298 common perf_event_open __x64_sys_perf_event_open 310 + 299 64 recvmmsg __x64_sys_recvmmsg 311 + 300 common fanotify_init __x64_sys_fanotify_init 312 + 301 common fanotify_mark __x64_sys_fanotify_mark 313 + 302 common prlimit64 __x64_sys_prlimit64 314 + 303 common name_to_handle_at __x64_sys_name_to_handle_at 315 + 304 common open_by_handle_at __x64_sys_open_by_handle_at 316 + 305 common clock_adjtime __x64_sys_clock_adjtime 317 + 306 common syncfs __x64_sys_syncfs 318 + 307 64 sendmmsg __x64_sys_sendmmsg 319 + 308 common setns __x64_sys_setns 320 + 309 common getcpu __x64_sys_getcpu 321 + 310 64 process_vm_readv __x64_sys_process_vm_readv 322 + 311 64 process_vm_writev __x64_sys_process_vm_writev 323 + 312 common kcmp __x64_sys_kcmp 324 + 313 common finit_module __x64_sys_finit_module 325 + 314 common sched_setattr __x64_sys_sched_setattr 326 + 315 common sched_getattr __x64_sys_sched_getattr 327 + 316 common renameat2 __x64_sys_renameat2 328 + 317 common seccomp __x64_sys_seccomp 329 + 318 common getrandom __x64_sys_getrandom 330 + 319 common memfd_create __x64_sys_memfd_create 331 + 320 common kexec_file_load __x64_sys_kexec_file_load 332 + 321 common bpf __x64_sys_bpf 333 + 322 64 execveat __x64_sys_execveat/ptregs 334 + 323 common userfaultfd __x64_sys_userfaultfd 335 + 324 common membarrier __x64_sys_membarrier 336 + 325 common mlock2 __x64_sys_mlock2 337 + 326 common copy_file_range __x64_sys_copy_file_range 338 + 327 64 preadv2 __x64_sys_preadv2 339 + 328 64 pwritev2 __x64_sys_pwritev2 340 + 329 common pkey_mprotect __x64_sys_pkey_mprotect 341 + 330 common pkey_alloc __x64_sys_pkey_alloc 342 + 331 common pkey_free __x64_sys_pkey_free 343 + 332 common statx __x64_sys_statx 344 + 333 common io_pgetevents __x64_sys_io_pgetevents 345 + 334 common rseq __x64_sys_rseq 346 + # don't use numbers 387 through 423, add new calls after the last 347 + # 'common' entry 348 + 424 common pidfd_send_signal __x64_sys_pidfd_send_signal 349 + 425 common io_uring_setup __x64_sys_io_uring_setup 350 + 426 common io_uring_enter __x64_sys_io_uring_enter 351 + 427 common io_uring_register __x64_sys_io_uring_register 352 + 428 common open_tree __x64_sys_open_tree 353 + 429 common move_mount __x64_sys_move_mount 354 + 430 common fsopen __x64_sys_fsopen 355 + 431 common fsconfig __x64_sys_fsconfig 356 + 432 common fsmount __x64_sys_fsmount 357 + 433 common fspick __x64_sys_fspick 358 + 434 common pidfd_open __x64_sys_pidfd_open 359 + 435 common clone3 __x64_sys_clone3/ptregs 360 + 437 common openat2 __x64_sys_openat2 361 + 438 common pidfd_getfd __x64_sys_pidfd_getfd 362 + 363 + # 364 + # x32-specific system call numbers start at 512 to avoid cache impact 365 + # for native 64-bit operation. The __x32_compat_sys stubs are created 366 + # on-the-fly for compat_sys_*() compatibility system calls if X86_X32 367 + # is defined. 368 + # 369 + 512 x32 rt_sigaction __x32_compat_sys_rt_sigaction 370 + 513 x32 rt_sigreturn sys32_x32_rt_sigreturn 371 + 514 x32 ioctl __x32_compat_sys_ioctl 372 + 515 x32 readv __x32_compat_sys_readv 373 + 516 x32 writev __x32_compat_sys_writev 374 + 517 x32 recvfrom __x32_compat_sys_recvfrom 375 + 518 x32 sendmsg __x32_compat_sys_sendmsg 376 + 519 x32 recvmsg __x32_compat_sys_recvmsg 377 + 520 x32 execve __x32_compat_sys_execve/ptregs 378 + 521 x32 ptrace __x32_compat_sys_ptrace 379 + 522 x32 rt_sigpending __x32_compat_sys_rt_sigpending 380 + 523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait_time64 381 + 524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo 382 + 525 x32 sigaltstack __x32_compat_sys_sigaltstack 383 + 526 x32 timer_create __x32_compat_sys_timer_create 384 + 527 x32 mq_notify __x32_compat_sys_mq_notify 385 + 528 x32 kexec_load __x32_compat_sys_kexec_load 386 + 529 x32 waitid __x32_compat_sys_waitid 387 + 530 x32 set_robust_list __x32_compat_sys_set_robust_list 388 + 531 x32 get_robust_list __x32_compat_sys_get_robust_list 389 + 532 x32 vmsplice __x32_compat_sys_vmsplice 390 + 533 x32 move_pages __x32_compat_sys_move_pages 391 + 534 x32 preadv __x32_compat_sys_preadv64 392 + 535 x32 pwritev __x32_compat_sys_pwritev64 393 + 536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo 394 + 537 x32 recvmmsg __x32_compat_sys_recvmmsg_time64 395 + 538 x32 sendmmsg __x32_compat_sys_sendmmsg 396 + 539 x32 process_vm_readv __x32_compat_sys_process_vm_readv 397 + 540 x32 process_vm_writev __x32_compat_sys_process_vm_writev 398 + 541 x32 setsockopt __x32_compat_sys_setsockopt 399 + 542 x32 getsockopt __x32_compat_sys_getsockopt 400 + 543 x32 io_setup __x32_compat_sys_io_setup 401 + 544 x32 io_submit __x32_compat_sys_io_submit 402 + 545 x32 execveat __x32_compat_sys_execveat/ptregs 403 + 546 x32 preadv2 __x32_compat_sys_preadv64v2 404 + 547 x32 pwritev2 __x32_compat_sys_pwritev64v2
-356
linux-user/x86_64/syscall_nr.h
··· 1 - #ifndef LINUX_USER_X86_64_SYSCALL_NR_H 2 - #define LINUX_USER_X86_64_SYSCALL_NR_H 3 - 4 - #define TARGET_NR_read 0 5 - #define TARGET_NR_write 1 6 - #define TARGET_NR_open 2 7 - #define TARGET_NR_close 3 8 - #define TARGET_NR_stat 4 9 - #define TARGET_NR_fstat 5 10 - #define TARGET_NR_lstat 6 11 - #define TARGET_NR_poll 7 12 - #define TARGET_NR_lseek 8 13 - #define TARGET_NR_mmap 9 14 - #define TARGET_NR_mprotect 10 15 - #define TARGET_NR_munmap 11 16 - #define TARGET_NR_brk 12 17 - #define TARGET_NR_rt_sigaction 13 18 - #define TARGET_NR_rt_sigprocmask 14 19 - #define TARGET_NR_rt_sigreturn 15 20 - #define TARGET_NR_ioctl 16 21 - #define TARGET_NR_pread64 17 22 - #define TARGET_NR_pwrite64 18 23 - #define TARGET_NR_readv 19 24 - #define TARGET_NR_writev 20 25 - #define TARGET_NR_access 21 26 - #define TARGET_NR_pipe 22 27 - #define TARGET_NR_select 23 28 - #define TARGET_NR_sched_yield 24 29 - #define TARGET_NR_mremap 25 30 - #define TARGET_NR_msync 26 31 - #define TARGET_NR_mincore 27 32 - #define TARGET_NR_madvise 28 33 - #define TARGET_NR_shmget 29 34 - #define TARGET_NR_shmat 30 35 - #define TARGET_NR_shmctl 31 36 - #define TARGET_NR_dup 32 37 - #define TARGET_NR_dup2 33 38 - #define TARGET_NR_pause 34 39 - #define TARGET_NR_nanosleep 35 40 - #define TARGET_NR_getitimer 36 41 - #define TARGET_NR_alarm 37 42 - #define TARGET_NR_setitimer 38 43 - #define TARGET_NR_getpid 39 44 - #define TARGET_NR_sendfile 40 45 - #define TARGET_NR_socket 41 46 - #define TARGET_NR_connect 42 47 - #define TARGET_NR_accept 43 48 - #define TARGET_NR_sendto 44 49 - #define TARGET_NR_recvfrom 45 50 - #define TARGET_NR_sendmsg 46 51 - #define TARGET_NR_recvmsg 47 52 - #define TARGET_NR_shutdown 48 53 - #define TARGET_NR_bind 49 54 - #define TARGET_NR_listen 50 55 - #define TARGET_NR_getsockname 51 56 - #define TARGET_NR_getpeername 52 57 - #define TARGET_NR_socketpair 53 58 - #define TARGET_NR_setsockopt 54 59 - #define TARGET_NR_getsockopt 55 60 - #define TARGET_NR_clone 56 61 - #define TARGET_NR_fork 57 62 - #define TARGET_NR_vfork 58 63 - #define TARGET_NR_execve 59 64 - #define TARGET_NR_exit 60 65 - #define TARGET_NR_wait4 61 66 - #define TARGET_NR_kill 62 67 - #define TARGET_NR_uname 63 68 - #define TARGET_NR_semget 64 69 - #define TARGET_NR_semop 65 70 - #define TARGET_NR_semctl 66 71 - #define TARGET_NR_shmdt 67 72 - #define TARGET_NR_msgget 68 73 - #define TARGET_NR_msgsnd 69 74 - #define TARGET_NR_msgrcv 70 75 - #define TARGET_NR_msgctl 71 76 - #define TARGET_NR_fcntl 72 77 - #define TARGET_NR_flock 73 78 - #define TARGET_NR_fsync 74 79 - #define TARGET_NR_fdatasync 75 80 - #define TARGET_NR_truncate 76 81 - #define TARGET_NR_ftruncate 77 82 - #define TARGET_NR_getdents 78 83 - #define TARGET_NR_getcwd 79 84 - #define TARGET_NR_chdir 80 85 - #define TARGET_NR_fchdir 81 86 - #define TARGET_NR_rename 82 87 - #define TARGET_NR_mkdir 83 88 - #define TARGET_NR_rmdir 84 89 - #define TARGET_NR_creat 85 90 - #define TARGET_NR_link 86 91 - #define TARGET_NR_unlink 87 92 - #define TARGET_NR_symlink 88 93 - #define TARGET_NR_readlink 89 94 - #define TARGET_NR_chmod 90 95 - #define TARGET_NR_fchmod 91 96 - #define TARGET_NR_chown 92 97 - #define TARGET_NR_fchown 93 98 - #define TARGET_NR_lchown 94 99 - #define TARGET_NR_umask 95 100 - #define TARGET_NR_gettimeofday 96 101 - #define TARGET_NR_getrlimit 97 102 - #define TARGET_NR_getrusage 98 103 - #define TARGET_NR_sysinfo 99 104 - #define TARGET_NR_times 100 105 - #define TARGET_NR_ptrace 101 106 - #define TARGET_NR_getuid 102 107 - #define TARGET_NR_syslog 103 108 - #define TARGET_NR_getgid 104 109 - #define TARGET_NR_setuid 105 110 - #define TARGET_NR_setgid 106 111 - #define TARGET_NR_geteuid 107 112 - #define TARGET_NR_getegid 108 113 - #define TARGET_NR_setpgid 109 114 - #define TARGET_NR_getppid 110 115 - #define TARGET_NR_getpgrp 111 116 - #define TARGET_NR_setsid 112 117 - #define TARGET_NR_setreuid 113 118 - #define TARGET_NR_setregid 114 119 - #define TARGET_NR_getgroups 115 120 - #define TARGET_NR_setgroups 116 121 - #define TARGET_NR_setresuid 117 122 - #define TARGET_NR_getresuid 118 123 - #define TARGET_NR_setresgid 119 124 - #define TARGET_NR_getresgid 120 125 - #define TARGET_NR_getpgid 121 126 - #define TARGET_NR_setfsuid 122 127 - #define TARGET_NR_setfsgid 123 128 - #define TARGET_NR_getsid 124 129 - #define TARGET_NR_capget 125 130 - #define TARGET_NR_capset 126 131 - #define TARGET_NR_rt_sigpending 127 132 - #define TARGET_NR_rt_sigtimedwait 128 133 - #define TARGET_NR_rt_sigqueueinfo 129 134 - #define TARGET_NR_rt_sigsuspend 130 135 - #define TARGET_NR_sigaltstack 131 136 - #define TARGET_NR_utime 132 137 - #define TARGET_NR_mknod 133 138 - #define TARGET_NR_uselib 134 139 - #define TARGET_NR_personality 135 140 - #define TARGET_NR_ustat 136 141 - #define TARGET_NR_statfs 137 142 - #define TARGET_NR_fstatfs 138 143 - #define TARGET_NR_sysfs 139 144 - #define TARGET_NR_getpriority 140 145 - #define TARGET_NR_setpriority 141 146 - #define TARGET_NR_sched_setparam 142 147 - #define TARGET_NR_sched_getparam 143 148 - #define TARGET_NR_sched_setscheduler 144 149 - #define TARGET_NR_sched_getscheduler 145 150 - #define TARGET_NR_sched_get_priority_max 146 151 - #define TARGET_NR_sched_get_priority_min 147 152 - #define TARGET_NR_sched_rr_get_interval 148 153 - #define TARGET_NR_mlock 149 154 - #define TARGET_NR_munlock 150 155 - #define TARGET_NR_mlockall 151 156 - #define TARGET_NR_munlockall 152 157 - #define TARGET_NR_vhangup 153 158 - #define TARGET_NR_modify_ldt 154 159 - #define TARGET_NR_pivot_root 155 160 - #define TARGET_NR__sysctl 156 161 - #define TARGET_NR_prctl 157 162 - #define TARGET_NR_arch_prctl 158 163 - #define TARGET_NR_adjtimex 159 164 - #define TARGET_NR_setrlimit 160 165 - #define TARGET_NR_chroot 161 166 - #define TARGET_NR_sync 162 167 - #define TARGET_NR_acct 163 168 - #define TARGET_NR_settimeofday 164 169 - #define TARGET_NR_mount 165 170 - #define TARGET_NR_umount2 166 171 - #define TARGET_NR_swapon 167 172 - #define TARGET_NR_swapoff 168 173 - #define TARGET_NR_reboot 169 174 - #define TARGET_NR_sethostname 170 175 - #define TARGET_NR_setdomainname 171 176 - #define TARGET_NR_iopl 172 177 - #define TARGET_NR_ioperm 173 178 - #define TARGET_NR_create_module 174 179 - #define TARGET_NR_init_module 175 180 - #define TARGET_NR_delete_module 176 181 - #define TARGET_NR_get_kernel_syms 177 182 - #define TARGET_NR_query_module 178 183 - #define TARGET_NR_quotactl 179 184 - #define TARGET_NR_nfsservctl 180 185 - #define TARGET_NR_getpmsg 181 /* reserved for LiS/STREAMS */ 186 - #define TARGET_NR_putpmsg 182 /* reserved for LiS/STREAMS */ 187 - #define TARGET_NR_afs_syscall 183 /* reserved for AFS */ 188 - #define TARGET_NR_tuxcall 184 /* reserved for tux */ 189 - #define TARGET_NR_security 185 190 - #define TARGET_NR_gettid 186 191 - #define TARGET_NR_readahead 187 192 - #define TARGET_NR_setxattr 188 193 - #define TARGET_NR_lsetxattr 189 194 - #define TARGET_NR_fsetxattr 190 195 - #define TARGET_NR_getxattr 191 196 - #define TARGET_NR_lgetxattr 192 197 - #define TARGET_NR_fgetxattr 193 198 - #define TARGET_NR_listxattr 194 199 - #define TARGET_NR_llistxattr 195 200 - #define TARGET_NR_flistxattr 196 201 - #define TARGET_NR_removexattr 197 202 - #define TARGET_NR_lremovexattr 198 203 - #define TARGET_NR_fremovexattr 199 204 - #define TARGET_NR_tkill 200 205 - #define TARGET_NR_time 201 206 - #define TARGET_NR_futex 202 207 - #define TARGET_NR_sched_setaffinity 203 208 - #define TARGET_NR_sched_getaffinity 204 209 - #define TARGET_NR_set_thread_area 205 210 - #define TARGET_NR_io_setup 206 211 - #define TARGET_NR_io_destroy 207 212 - #define TARGET_NR_io_getevents 208 213 - #define TARGET_NR_io_submit 209 214 - #define TARGET_NR_io_cancel 210 215 - #define TARGET_NR_get_thread_area 211 216 - #define TARGET_NR_lookup_dcookie 212 217 - #define TARGET_NR_epoll_create 213 218 - #define TARGET_NR_epoll_ctl_old 214 219 - #define TARGET_NR_epoll_wait_old 215 220 - #define TARGET_NR_remap_file_pages 216 221 - #define TARGET_NR_getdents64 217 222 - #define TARGET_NR_set_tid_address 218 223 - #define TARGET_NR_restart_syscall 219 224 - #define TARGET_NR_semtimedop 220 225 - #define TARGET_NR_fadvise64 221 226 - #define TARGET_NR_timer_create 222 227 - #define TARGET_NR_timer_settime 223 228 - #define TARGET_NR_timer_gettime 224 229 - #define TARGET_NR_timer_getoverrun 225 230 - #define TARGET_NR_timer_delete 226 231 - #define TARGET_NR_clock_settime 227 232 - #define TARGET_NR_clock_gettime 228 233 - #define TARGET_NR_clock_getres 229 234 - #define TARGET_NR_clock_nanosleep 230 235 - #define TARGET_NR_exit_group 231 236 - #define TARGET_NR_epoll_wait 232 237 - #define TARGET_NR_epoll_ctl 233 238 - #define TARGET_NR_tgkill 234 239 - #define TARGET_NR_utimes 235 240 - #define TARGET_NR_vserver 236 241 - #define TARGET_NR_mbind 237 242 - #define TARGET_NR_set_mempolicy 238 243 - #define TARGET_NR_get_mempolicy 239 244 - #define TARGET_NR_mq_open 240 245 - #define TARGET_NR_mq_unlink 241 246 - #define TARGET_NR_mq_timedsend 242 247 - #define TARGET_NR_mq_timedreceive 243 248 - #define TARGET_NR_mq_notify 244 249 - #define TARGET_NR_mq_getsetattr 245 250 - #define TARGET_NR_kexec_load 246 251 - #define TARGET_NR_waitid 247 252 - #define TARGET_NR_add_key 248 253 - #define TARGET_NR_request_key 249 254 - #define TARGET_NR_keyctl 250 255 - #define TARGET_NR_ioprio_set 251 256 - #define TARGET_NR_ioprio_get 252 257 - #define TARGET_NR_inotify_init 253 258 - #define TARGET_NR_inotify_add_watch 254 259 - #define TARGET_NR_inotify_rm_watch 255 260 - #define TARGET_NR_migrate_pages 256 261 - #define TARGET_NR_openat 257 262 - #define TARGET_NR_mkdirat 258 263 - #define TARGET_NR_mknodat 259 264 - #define TARGET_NR_fchownat 260 265 - #define TARGET_NR_futimesat 261 266 - #define TARGET_NR_newfstatat 262 267 - #define TARGET_NR_unlinkat 263 268 - #define TARGET_NR_renameat 264 269 - #define TARGET_NR_linkat 265 270 - #define TARGET_NR_symlinkat 266 271 - #define TARGET_NR_readlinkat 267 272 - #define TARGET_NR_fchmodat 268 273 - #define TARGET_NR_faccessat 269 274 - #define TARGET_NR_pselect6 270 275 - #define TARGET_NR_ppoll 271 276 - #define TARGET_NR_unshare 272 277 - #define TARGET_NR_set_robust_list 273 278 - #define TARGET_NR_get_robust_list 274 279 - #define TARGET_NR_splice 275 280 - #define TARGET_NR_tee 276 281 - #define TARGET_NR_sync_file_range 277 282 - #define TARGET_NR_vmsplice 278 283 - #define TARGET_NR_move_pages 279 284 - #define TARGET_NR_utimensat 280 285 - #define TARGET_NR_epoll_pwait 281 286 - #define TARGET_NR_signalfd 282 287 - #define TARGET_NR_timerfd_create 283 288 - #define TARGET_NR_eventfd 284 289 - #define TARGET_NR_fallocate 285 290 - #define TARGET_NR_timerfd_settime 286 291 - #define TARGET_NR_timerfd_gettime 287 292 - #define TARGET_NR_accept4 288 293 - #define TARGET_NR_signalfd4 289 294 - #define TARGET_NR_eventfd2 290 295 - #define TARGET_NR_epoll_create1 291 296 - #define TARGET_NR_dup3 292 297 - #define TARGET_NR_pipe2 293 298 - #define TARGET_NR_inotify_init1 294 299 - #define TARGET_NR_preadv 295 300 - #define TARGET_NR_pwritev 296 301 - #define TARGET_NR_rt_tgsigqueueinfo 297 302 - #define TARGET_NR_perf_event_open 298 303 - #define TARGET_NR_recvmmsg 299 304 - #define TARGET_NR_fanotify_init 300 305 - #define TARGET_NR_fanotify_mark 301 306 - #define TARGET_NR_prlimit64 302 307 - #define TARGET_NR_name_to_handle_at 303 308 - #define TARGET_NR_open_by_handle_at 304 309 - #define TARGET_NR_clock_adjtime 305 310 - #define TARGET_NR_syncfs 306 311 - #define TARGET_NR_sendmmsg 307 312 - #define TARGET_NR_setns 308 313 - #define TARGET_NR_getcpu 309 314 - #define TARGET_NR_process_vm_readv 310 315 - #define TARGET_NR_process_vm_writev 311 316 - #define TARGET_NR_kcmp 312 317 - #define TARGET_NR_finit_module 313 318 - #define TARGET_NR_sched_setattr 314 319 - #define TARGET_NR_sched_getattr 315 320 - #define TARGET_NR_renameat2 316 321 - #define TARGET_NR_seccomp 317 322 - #define TARGET_NR_getrandom 318 323 - #define TARGET_NR_memfd_create 319 324 - #define TARGET_NR_kexec_file_load 320 325 - #define TARGET_NR_bpf 321 326 - #define TARGET_NR_execveat 322 327 - #define TARGET_NR_userfaultfd 323 328 - #define TARGET_NR_membarrier 324 329 - #define TARGET_NR_mlock2 325 330 - #define TARGET_NR_copy_file_range 326 331 - #define TARGET_NR_preadv2 327 332 - #define TARGET_NR_pwritev2 328 333 - #define TARGET_NR_pkey_mprotect 329 334 - #define TARGET_NR_pkey_alloc 330 335 - #define TARGET_NR_pkey_free 331 336 - #define TARGET_NR_statx 332 337 - #define TARGET_NR_io_pgetevents 333 338 - #define TARGET_NR_rseq 334 339 - /* 340 - * don't use numbers 387 through 423, add new calls after the last 341 - * 'common' entry 342 - */ 343 - #define TARGET_NR_pidfd_send_signal 424 344 - #define TARGET_NR_io_uring_setup 425 345 - #define TARGET_NR_io_uring_enter 426 346 - #define TARGET_NR_io_uring_register 427 347 - #define TARGET_NR_open_tree 428 348 - #define TARGET_NR_move_mount 429 349 - #define TARGET_NR_fsopen 430 350 - #define TARGET_NR_fsconfig 431 351 - #define TARGET_NR_fsmount 432 352 - #define TARGET_NR_fspick 433 353 - #define TARGET_NR_pidfd_open 434 354 - #define TARGET_NR_clone3 435 355 - 356 - #endif
+28
linux-user/x86_64/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_X86_64_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + echo "#ifndef ${fileguard}" 15 + echo "#define ${fileguard} 1" 16 + echo "" 17 + 18 + while read nr abi name entry ; do 19 + if [ -z "$offset" ]; then 20 + echo "#define TARGET_NR_${prefix}${name} $nr" 21 + else 22 + echo "#define TARGET_NR_${prefix}${name} ($offset + $nr)" 23 + fi 24 + done 25 + 26 + echo "" 27 + echo "#endif /* ${fileguard} */" 28 + ) > "$out"
+5
linux-user/xtensa/Makefile.objs
··· 1 + generated-files-y += linux-user/xtensa/syscall_nr.h 2 + 3 + syshdr := $(SRC_PATH)/linux-user/xtensa/syscallhdr.sh 4 + %/syscall_nr.h: $(SRC_PATH)/linux-user/xtensa/syscall.tbl $(syshdr) 5 + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
+410
linux-user/xtensa/syscall.tbl
··· 1 + # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2 + # 3 + # system call numbers and entry vectors for xtensa 4 + # 5 + # The format is: 6 + # <number> <abi> <name> <entry point> 7 + # 8 + # The <abi> is always "common" for this file 9 + # 10 + 0 common spill sys_ni_syscall 11 + 1 common xtensa sys_ni_syscall 12 + 2 common available4 sys_ni_syscall 13 + 3 common available5 sys_ni_syscall 14 + 4 common available6 sys_ni_syscall 15 + 5 common available7 sys_ni_syscall 16 + 6 common available8 sys_ni_syscall 17 + 7 common available9 sys_ni_syscall 18 + # File Operations 19 + 8 common open sys_open 20 + 9 common close sys_close 21 + 10 common dup sys_dup 22 + 11 common dup2 sys_dup2 23 + 12 common read sys_read 24 + 13 common write sys_write 25 + 14 common select sys_select 26 + 15 common lseek sys_lseek 27 + 16 common poll sys_poll 28 + 17 common _llseek sys_llseek 29 + 18 common epoll_wait sys_epoll_wait 30 + 19 common epoll_ctl sys_epoll_ctl 31 + 20 common epoll_create sys_epoll_create 32 + 21 common creat sys_creat 33 + 22 common truncate sys_truncate 34 + 23 common ftruncate sys_ftruncate 35 + 24 common readv sys_readv 36 + 25 common writev sys_writev 37 + 26 common fsync sys_fsync 38 + 27 common fdatasync sys_fdatasync 39 + 28 common truncate64 sys_truncate64 40 + 29 common ftruncate64 sys_ftruncate64 41 + 30 common pread64 sys_pread64 42 + 31 common pwrite64 sys_pwrite64 43 + 32 common link sys_link 44 + 33 common rename sys_rename 45 + 34 common symlink sys_symlink 46 + 35 common readlink sys_readlink 47 + 36 common mknod sys_mknod 48 + 37 common pipe sys_pipe 49 + 38 common unlink sys_unlink 50 + 39 common rmdir sys_rmdir 51 + 40 common mkdir sys_mkdir 52 + 41 common chdir sys_chdir 53 + 42 common fchdir sys_fchdir 54 + 43 common getcwd sys_getcwd 55 + 44 common chmod sys_chmod 56 + 45 common chown sys_chown 57 + 46 common stat sys_newstat 58 + 47 common stat64 sys_stat64 59 + 48 common lchown sys_lchown 60 + 49 common lstat sys_newlstat 61 + 50 common lstat64 sys_lstat64 62 + 51 common available51 sys_ni_syscall 63 + 52 common fchmod sys_fchmod 64 + 53 common fchown sys_fchown 65 + 54 common fstat sys_newfstat 66 + 55 common fstat64 sys_fstat64 67 + 56 common flock sys_flock 68 + 57 common access sys_access 69 + 58 common umask sys_umask 70 + 59 common getdents sys_getdents 71 + 60 common getdents64 sys_getdents64 72 + 61 common fcntl64 sys_fcntl64 73 + 62 common fallocate sys_fallocate 74 + 63 common fadvise64_64 xtensa_fadvise64_64 75 + 64 common utime sys_utime32 76 + 65 common utimes sys_utimes_time32 77 + 66 common ioctl sys_ioctl 78 + 67 common fcntl sys_fcntl 79 + 68 common setxattr sys_setxattr 80 + 69 common getxattr sys_getxattr 81 + 70 common listxattr sys_listxattr 82 + 71 common removexattr sys_removexattr 83 + 72 common lsetxattr sys_lsetxattr 84 + 73 common lgetxattr sys_lgetxattr 85 + 74 common llistxattr sys_llistxattr 86 + 75 common lremovexattr sys_lremovexattr 87 + 76 common fsetxattr sys_fsetxattr 88 + 77 common fgetxattr sys_fgetxattr 89 + 78 common flistxattr sys_flistxattr 90 + 79 common fremovexattr sys_fremovexattr 91 + # File Map / Shared Memory Operations 92 + 80 common mmap2 sys_mmap_pgoff 93 + 81 common munmap sys_munmap 94 + 82 common mprotect sys_mprotect 95 + 83 common brk sys_brk 96 + 84 common mlock sys_mlock 97 + 85 common munlock sys_munlock 98 + 86 common mlockall sys_mlockall 99 + 87 common munlockall sys_munlockall 100 + 88 common mremap sys_mremap 101 + 89 common msync sys_msync 102 + 90 common mincore sys_mincore 103 + 91 common madvise sys_madvise 104 + 92 common shmget sys_shmget 105 + 93 common shmat xtensa_shmat 106 + 94 common shmctl sys_old_shmctl 107 + 95 common shmdt sys_shmdt 108 + # Socket Operations 109 + 96 common socket sys_socket 110 + 97 common setsockopt sys_setsockopt 111 + 98 common getsockopt sys_getsockopt 112 + 99 common shutdown sys_shutdown 113 + 100 common bind sys_bind 114 + 101 common connect sys_connect 115 + 102 common listen sys_listen 116 + 103 common accept sys_accept 117 + 104 common getsockname sys_getsockname 118 + 105 common getpeername sys_getpeername 119 + 106 common sendmsg sys_sendmsg 120 + 107 common recvmsg sys_recvmsg 121 + 108 common send sys_send 122 + 109 common recv sys_recv 123 + 110 common sendto sys_sendto 124 + 111 common recvfrom sys_recvfrom 125 + 112 common socketpair sys_socketpair 126 + 113 common sendfile sys_sendfile 127 + 114 common sendfile64 sys_sendfile64 128 + 115 common sendmmsg sys_sendmmsg 129 + # Process Operations 130 + 116 common clone sys_clone 131 + 117 common execve sys_execve 132 + 118 common exit sys_exit 133 + 119 common exit_group sys_exit_group 134 + 120 common getpid sys_getpid 135 + 121 common wait4 sys_wait4 136 + 122 common waitid sys_waitid 137 + 123 common kill sys_kill 138 + 124 common tkill sys_tkill 139 + 125 common tgkill sys_tgkill 140 + 126 common set_tid_address sys_set_tid_address 141 + 127 common gettid sys_gettid 142 + 128 common setsid sys_setsid 143 + 129 common getsid sys_getsid 144 + 130 common prctl sys_prctl 145 + 131 common personality sys_personality 146 + 132 common getpriority sys_getpriority 147 + 133 common setpriority sys_setpriority 148 + 134 common setitimer sys_setitimer 149 + 135 common getitimer sys_getitimer 150 + 136 common setuid sys_setuid 151 + 137 common getuid sys_getuid 152 + 138 common setgid sys_setgid 153 + 139 common getgid sys_getgid 154 + 140 common geteuid sys_geteuid 155 + 141 common getegid sys_getegid 156 + 142 common setreuid sys_setreuid 157 + 143 common setregid sys_setregid 158 + 144 common setresuid sys_setresuid 159 + 145 common getresuid sys_getresuid 160 + 146 common setresgid sys_setresgid 161 + 147 common getresgid sys_getresgid 162 + 148 common setpgid sys_setpgid 163 + 149 common getpgid sys_getpgid 164 + 150 common getppid sys_getppid 165 + 151 common getpgrp sys_getpgrp 166 + # 152 was set_thread_area 167 + 152 common reserved152 sys_ni_syscall 168 + # 153 was get_thread_area 169 + 153 common reserved153 sys_ni_syscall 170 + 154 common times sys_times 171 + 155 common acct sys_acct 172 + 156 common sched_setaffinity sys_sched_setaffinity 173 + 157 common sched_getaffinity sys_sched_getaffinity 174 + 158 common capget sys_capget 175 + 159 common capset sys_capset 176 + 160 common ptrace sys_ptrace 177 + 161 common semtimedop sys_semtimedop_time32 178 + 162 common semget sys_semget 179 + 163 common semop sys_semop 180 + 164 common semctl sys_old_semctl 181 + 165 common available165 sys_ni_syscall 182 + 166 common msgget sys_msgget 183 + 167 common msgsnd sys_msgsnd 184 + 168 common msgrcv sys_msgrcv 185 + 169 common msgctl sys_old_msgctl 186 + 170 common available170 sys_ni_syscall 187 + # File System 188 + 171 common umount2 sys_umount 189 + 172 common mount sys_mount 190 + 173 common swapon sys_swapon 191 + 174 common chroot sys_chroot 192 + 175 common pivot_root sys_pivot_root 193 + 176 common umount sys_oldumount 194 + 177 common swapoff sys_swapoff 195 + 178 common sync sys_sync 196 + 179 common syncfs sys_syncfs 197 + 180 common setfsuid sys_setfsuid 198 + 181 common setfsgid sys_setfsgid 199 + 182 common sysfs sys_sysfs 200 + 183 common ustat sys_ustat 201 + 184 common statfs sys_statfs 202 + 185 common fstatfs sys_fstatfs 203 + 186 common statfs64 sys_statfs64 204 + 187 common fstatfs64 sys_fstatfs64 205 + # System 206 + 188 common setrlimit sys_setrlimit 207 + 189 common getrlimit sys_getrlimit 208 + 190 common getrusage sys_getrusage 209 + 191 common futex sys_futex_time32 210 + 192 common gettimeofday sys_gettimeofday 211 + 193 common settimeofday sys_settimeofday 212 + 194 common adjtimex sys_adjtimex_time32 213 + 195 common nanosleep sys_nanosleep_time32 214 + 196 common getgroups sys_getgroups 215 + 197 common setgroups sys_setgroups 216 + 198 common sethostname sys_sethostname 217 + 199 common setdomainname sys_setdomainname 218 + 200 common syslog sys_syslog 219 + 201 common vhangup sys_vhangup 220 + 202 common uselib sys_uselib 221 + 203 common reboot sys_reboot 222 + 204 common quotactl sys_quotactl 223 + # 205 was old nfsservctl 224 + 205 common nfsservctl sys_ni_syscall 225 + 206 common _sysctl sys_sysctl 226 + 207 common bdflush sys_bdflush 227 + 208 common uname sys_newuname 228 + 209 common sysinfo sys_sysinfo 229 + 210 common init_module sys_init_module 230 + 211 common delete_module sys_delete_module 231 + 212 common sched_setparam sys_sched_setparam 232 + 213 common sched_getparam sys_sched_getparam 233 + 214 common sched_setscheduler sys_sched_setscheduler 234 + 215 common sched_getscheduler sys_sched_getscheduler 235 + 216 common sched_get_priority_max sys_sched_get_priority_max 236 + 217 common sched_get_priority_min sys_sched_get_priority_min 237 + 218 common sched_rr_get_interval sys_sched_rr_get_interval_time32 238 + 219 common sched_yield sys_sched_yield 239 + 222 common available222 sys_ni_syscall 240 + # Signal Handling 241 + 223 common restart_syscall sys_restart_syscall 242 + 224 common sigaltstack sys_sigaltstack 243 + 225 common rt_sigreturn xtensa_rt_sigreturn 244 + 226 common rt_sigaction sys_rt_sigaction 245 + 227 common rt_sigprocmask sys_rt_sigprocmask 246 + 228 common rt_sigpending sys_rt_sigpending 247 + 229 common rt_sigtimedwait sys_rt_sigtimedwait_time32 248 + 230 common rt_sigqueueinfo sys_rt_sigqueueinfo 249 + 231 common rt_sigsuspend sys_rt_sigsuspend 250 + # Message 251 + 232 common mq_open sys_mq_open 252 + 233 common mq_unlink sys_mq_unlink 253 + 234 common mq_timedsend sys_mq_timedsend_time32 254 + 235 common mq_timedreceive sys_mq_timedreceive_time32 255 + 236 common mq_notify sys_mq_notify 256 + 237 common mq_getsetattr sys_mq_getsetattr 257 + 238 common available238 sys_ni_syscall 258 + 239 common io_setup sys_io_setup 259 + # IO 260 + 240 common io_destroy sys_io_destroy 261 + 241 common io_submit sys_io_submit 262 + 242 common io_getevents sys_io_getevents_time32 263 + 243 common io_cancel sys_io_cancel 264 + 244 common clock_settime sys_clock_settime32 265 + 245 common clock_gettime sys_clock_gettime32 266 + 246 common clock_getres sys_clock_getres_time32 267 + 247 common clock_nanosleep sys_clock_nanosleep_time32 268 + # Timer 269 + 248 common timer_create sys_timer_create 270 + 249 common timer_delete sys_timer_delete 271 + 250 common timer_settime sys_timer_settime32 272 + 251 common timer_gettime sys_timer_gettime32 273 + 252 common timer_getoverrun sys_timer_getoverrun 274 + # System 275 + 253 common reserved253 sys_ni_syscall 276 + 254 common lookup_dcookie sys_lookup_dcookie 277 + 255 common available255 sys_ni_syscall 278 + 256 common add_key sys_add_key 279 + 257 common request_key sys_request_key 280 + 258 common keyctl sys_keyctl 281 + 259 common available259 sys_ni_syscall 282 + 260 common readahead sys_readahead 283 + 261 common remap_file_pages sys_remap_file_pages 284 + 262 common migrate_pages sys_migrate_pages 285 + 263 common mbind sys_mbind 286 + 264 common get_mempolicy sys_get_mempolicy 287 + 265 common set_mempolicy sys_set_mempolicy 288 + 266 common unshare sys_unshare 289 + 267 common move_pages sys_move_pages 290 + 268 common splice sys_splice 291 + 269 common tee sys_tee 292 + 270 common vmsplice sys_vmsplice 293 + 271 common available271 sys_ni_syscall 294 + 272 common pselect6 sys_pselect6_time32 295 + 273 common ppoll sys_ppoll_time32 296 + 274 common epoll_pwait sys_epoll_pwait 297 + 275 common epoll_create1 sys_epoll_create1 298 + 276 common inotify_init sys_inotify_init 299 + 277 common inotify_add_watch sys_inotify_add_watch 300 + 278 common inotify_rm_watch sys_inotify_rm_watch 301 + 279 common inotify_init1 sys_inotify_init1 302 + 280 common getcpu sys_getcpu 303 + 281 common kexec_load sys_ni_syscall 304 + 282 common ioprio_set sys_ioprio_set 305 + 283 common ioprio_get sys_ioprio_get 306 + 284 common set_robust_list sys_set_robust_list 307 + 285 common get_robust_list sys_get_robust_list 308 + 286 common available286 sys_ni_syscall 309 + 287 common available287 sys_ni_syscall 310 + # Relative File Operations 311 + 288 common openat sys_openat 312 + 289 common mkdirat sys_mkdirat 313 + 290 common mknodat sys_mknodat 314 + 291 common unlinkat sys_unlinkat 315 + 292 common renameat sys_renameat 316 + 293 common linkat sys_linkat 317 + 294 common symlinkat sys_symlinkat 318 + 295 common readlinkat sys_readlinkat 319 + 296 common utimensat sys_utimensat_time32 320 + 297 common fchownat sys_fchownat 321 + 298 common futimesat sys_futimesat_time32 322 + 299 common fstatat64 sys_fstatat64 323 + 300 common fchmodat sys_fchmodat 324 + 301 common faccessat sys_faccessat 325 + 302 common available302 sys_ni_syscall 326 + 303 common available303 sys_ni_syscall 327 + 304 common signalfd sys_signalfd 328 + # 305 was timerfd 329 + 306 common eventfd sys_eventfd 330 + 307 common recvmmsg sys_recvmmsg_time32 331 + 308 common setns sys_setns 332 + 309 common signalfd4 sys_signalfd4 333 + 310 common dup3 sys_dup3 334 + 311 common pipe2 sys_pipe2 335 + 312 common timerfd_create sys_timerfd_create 336 + 313 common timerfd_settime sys_timerfd_settime32 337 + 314 common timerfd_gettime sys_timerfd_gettime32 338 + 315 common available315 sys_ni_syscall 339 + 316 common eventfd2 sys_eventfd2 340 + 317 common preadv sys_preadv 341 + 318 common pwritev sys_pwritev 342 + 319 common available319 sys_ni_syscall 343 + 320 common fanotify_init sys_fanotify_init 344 + 321 common fanotify_mark sys_fanotify_mark 345 + 322 common process_vm_readv sys_process_vm_readv 346 + 323 common process_vm_writev sys_process_vm_writev 347 + 324 common name_to_handle_at sys_name_to_handle_at 348 + 325 common open_by_handle_at sys_open_by_handle_at 349 + 326 common sync_file_range2 sys_sync_file_range2 350 + 327 common perf_event_open sys_perf_event_open 351 + 328 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 352 + 329 common clock_adjtime sys_clock_adjtime32 353 + 330 common prlimit64 sys_prlimit64 354 + 331 common kcmp sys_kcmp 355 + 332 common finit_module sys_finit_module 356 + 333 common accept4 sys_accept4 357 + 334 common sched_setattr sys_sched_setattr 358 + 335 common sched_getattr sys_sched_getattr 359 + 336 common renameat2 sys_renameat2 360 + 337 common seccomp sys_seccomp 361 + 338 common getrandom sys_getrandom 362 + 339 common memfd_create sys_memfd_create 363 + 340 common bpf sys_bpf 364 + 341 common execveat sys_execveat 365 + 342 common userfaultfd sys_userfaultfd 366 + 343 common membarrier sys_membarrier 367 + 344 common mlock2 sys_mlock2 368 + 345 common copy_file_range sys_copy_file_range 369 + 346 common preadv2 sys_preadv2 370 + 347 common pwritev2 sys_pwritev2 371 + 348 common pkey_mprotect sys_pkey_mprotect 372 + 349 common pkey_alloc sys_pkey_alloc 373 + 350 common pkey_free sys_pkey_free 374 + 351 common statx sys_statx 375 + 352 common rseq sys_rseq 376 + # 353 through 402 are unassigned to sync up with generic numbers 377 + 403 common clock_gettime64 sys_clock_gettime 378 + 404 common clock_settime64 sys_clock_settime 379 + 405 common clock_adjtime64 sys_clock_adjtime 380 + 406 common clock_getres_time64 sys_clock_getres 381 + 407 common clock_nanosleep_time64 sys_clock_nanosleep 382 + 408 common timer_gettime64 sys_timer_gettime 383 + 409 common timer_settime64 sys_timer_settime 384 + 410 common timerfd_gettime64 sys_timerfd_gettime 385 + 411 common timerfd_settime64 sys_timerfd_settime 386 + 412 common utimensat_time64 sys_utimensat 387 + 413 common pselect6_time64 sys_pselect6 388 + 414 common ppoll_time64 sys_ppoll 389 + 416 common io_pgetevents_time64 sys_io_pgetevents 390 + 417 common recvmmsg_time64 sys_recvmmsg 391 + 418 common mq_timedsend_time64 sys_mq_timedsend 392 + 419 common mq_timedreceive_time64 sys_mq_timedreceive 393 + 420 common semtimedop_time64 sys_semtimedop 394 + 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait 395 + 422 common futex_time64 sys_futex 396 + 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 397 + 424 common pidfd_send_signal sys_pidfd_send_signal 398 + 425 common io_uring_setup sys_io_uring_setup 399 + 426 common io_uring_enter sys_io_uring_enter 400 + 427 common io_uring_register sys_io_uring_register 401 + 428 common open_tree sys_open_tree 402 + 429 common move_mount sys_move_mount 403 + 430 common fsopen sys_fsopen 404 + 431 common fsconfig sys_fsconfig 405 + 432 common fsmount sys_fsmount 406 + 433 common fspick sys_fspick 407 + 434 common pidfd_open sys_pidfd_open 408 + 435 common clone3 sys_clone3 409 + 437 common openat2 sys_openat2 410 + 438 common pidfd_getfd sys_pidfd_getfd
-469
linux-user/xtensa/syscall_nr.h
··· 1 - /* 2 - * include/asm-xtensa/unistd.h 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - * 8 - * Copyright (C) 2001 - 2009 Tensilica Inc. 9 - */ 10 - 11 - #ifndef XTENSA_SYSCALL_NR_H 12 - #define XTENSA_SYSCALL_NR_H 13 - 14 - #define TARGET_NR_spill 0 15 - #define TARGET_NR_xtensa 1 16 - #define TARGET_NR_available4 2 17 - #define TARGET_NR_available5 3 18 - #define TARGET_NR_available6 4 19 - #define TARGET_NR_available7 5 20 - #define TARGET_NR_available8 6 21 - #define TARGET_NR_available9 7 22 - 23 - /* File Operations */ 24 - 25 - #define TARGET_NR_open 8 26 - #define TARGET_NR_close 9 27 - #define TARGET_NR_dup 10 28 - #define TARGET_NR_dup2 11 29 - #define TARGET_NR_read 12 30 - #define TARGET_NR_write 13 31 - #define TARGET_NR_select 14 32 - #define TARGET_NR_lseek 15 33 - #define TARGET_NR_poll 16 34 - #define TARGET_NR__llseek 17 35 - #define TARGET_NR_epoll_wait 18 36 - #define TARGET_NR_epoll_ctl 19 37 - #define TARGET_NR_epoll_create 20 38 - #define TARGET_NR_creat 21 39 - #define TARGET_NR_truncate 22 40 - #define TARGET_NR_ftruncate 23 41 - #define TARGET_NR_readv 24 42 - #define TARGET_NR_writev 25 43 - #define TARGET_NR_fsync 26 44 - #define TARGET_NR_fdatasync 27 45 - #define TARGET_NR_truncate64 28 46 - #define TARGET_NR_ftruncate64 29 47 - #define TARGET_NR_pread64 30 48 - #define TARGET_NR_pwrite64 31 49 - 50 - #define TARGET_NR_link 32 51 - #define TARGET_NR_rename 33 52 - #define TARGET_NR_symlink 34 53 - #define TARGET_NR_readlink 35 54 - #define TARGET_NR_mknod 36 55 - #define TARGET_NR_pipe 37 56 - #define TARGET_NR_unlink 38 57 - #define TARGET_NR_rmdir 39 58 - 59 - #define TARGET_NR_mkdir 40 60 - #define TARGET_NR_chdir 41 61 - #define TARGET_NR_fchdir 42 62 - #define TARGET_NR_getcwd 43 63 - 64 - #define TARGET_NR_chmod 44 65 - #define TARGET_NR_chown 45 66 - #define TARGET_NR_stat 46 67 - #define TARGET_NR_stat64 47 68 - 69 - #define TARGET_NR_lchown 48 70 - #define TARGET_NR_lstat 49 71 - #define TARGET_NR_lstat64 50 72 - #define TARGET_NR_available51 51 73 - 74 - #define TARGET_NR_fchmod 52 75 - #define TARGET_NR_fchown 53 76 - #define TARGET_NR_fstat 54 77 - #define TARGET_NR_fstat64 55 78 - 79 - #define TARGET_NR_flock 56 80 - #define TARGET_NR_access 57 81 - #define TARGET_NR_umask 58 82 - #define TARGET_NR_getdents 59 83 - #define TARGET_NR_getdents64 60 84 - #define TARGET_NR_fcntl64 61 85 - #define TARGET_NR_fallocate 62 86 - #define TARGET_NR_fadvise64_64 63 87 - #define TARGET_NR_utime 64 /* glibc 2.3.3 ?? */ 88 - #define TARGET_NR_utimes 65 89 - #define TARGET_NR_ioctl 66 90 - #define TARGET_NR_fcntl 67 91 - 92 - #define TARGET_NR_setxattr 68 93 - #define TARGET_NR_getxattr 69 94 - #define TARGET_NR_listxattr 70 95 - #define TARGET_NR_removexattr 71 96 - #define TARGET_NR_lsetxattr 72 97 - #define TARGET_NR_lgetxattr 73 98 - #define TARGET_NR_llistxattr 74 99 - #define TARGET_NR_lremovexattr 75 100 - #define TARGET_NR_fsetxattr 76 101 - #define TARGET_NR_fgetxattr 77 102 - #define TARGET_NR_flistxattr 78 103 - #define TARGET_NR_fremovexattr 79 104 - 105 - /* File Map / Shared Memory Operations */ 106 - 107 - #define TARGET_NR_mmap2 80 108 - #define TARGET_NR_munmap 81 109 - #define TARGET_NR_mprotect 82 110 - #define TARGET_NR_brk 83 111 - #define TARGET_NR_mlock 84 112 - #define TARGET_NR_munlock 85 113 - #define TARGET_NR_mlockall 86 114 - #define TARGET_NR_munlockall 87 115 - #define TARGET_NR_mremap 88 116 - #define TARGET_NR_msync 89 117 - #define TARGET_NR_mincore 90 118 - #define TARGET_NR_madvise 91 119 - #define TARGET_NR_shmget 92 120 - #define TARGET_NR_shmat 93 121 - #define TARGET_NR_shmctl 94 122 - #define TARGET_NR_shmdt 95 123 - 124 - /* Socket Operations */ 125 - 126 - #define TARGET_NR_socket 96 127 - #define TARGET_NR_setsockopt 97 128 - #define TARGET_NR_getsockopt 98 129 - #define TARGET_NR_shutdown 99 130 - 131 - #define TARGET_NR_bind 100 132 - #define TARGET_NR_connect 101 133 - #define TARGET_NR_listen 102 134 - #define TARGET_NR_accept 103 135 - 136 - #define TARGET_NR_getsockname 104 137 - #define TARGET_NR_getpeername 105 138 - #define TARGET_NR_sendmsg 106 139 - #define TARGET_NR_recvmsg 107 140 - #define TARGET_NR_send 108 141 - #define TARGET_NR_recv 109 142 - #define TARGET_NR_sendto 110 143 - #define TARGET_NR_recvfrom 111 144 - 145 - #define TARGET_NR_socketpair 112 146 - #define TARGET_NR_sendfile 113 147 - #define TARGET_NR_sendfile64 114 148 - #define TARGET_NR_sendmmsg 115 149 - 150 - /* Process Operations */ 151 - 152 - #define TARGET_NR_clone 116 153 - #define TARGET_NR_execve 117 154 - #define TARGET_NR_exit 118 155 - #define TARGET_NR_exit_group 119 156 - #define TARGET_NR_getpid 120 157 - #define TARGET_NR_wait4 121 158 - #define TARGET_NR_waitid 122 159 - #define TARGET_NR_kill 123 160 - #define TARGET_NR_tkill 124 161 - #define TARGET_NR_tgkill 125 162 - #define TARGET_NR_set_tid_address 126 163 - #define TARGET_NR_gettid 127 164 - #define TARGET_NR_setsid 128 165 - #define TARGET_NR_getsid 129 166 - #define TARGET_NR_prctl 130 167 - #define TARGET_NR_personality 131 168 - #define TARGET_NR_getpriority 132 169 - #define TARGET_NR_setpriority 133 170 - #define TARGET_NR_setitimer 134 171 - #define TARGET_NR_getitimer 135 172 - #define TARGET_NR_setuid 136 173 - #define TARGET_NR_getuid 137 174 - #define TARGET_NR_setgid 138 175 - #define TARGET_NR_getgid 139 176 - #define TARGET_NR_geteuid 140 177 - #define TARGET_NR_getegid 141 178 - #define TARGET_NR_setreuid 142 179 - #define TARGET_NR_setregid 143 180 - #define TARGET_NR_setresuid 144 181 - #define TARGET_NR_getresuid 145 182 - #define TARGET_NR_setresgid 146 183 - #define TARGET_NR_getresgid 147 184 - #define TARGET_NR_setpgid 148 185 - #define TARGET_NR_getpgid 149 186 - #define TARGET_NR_getppid 150 187 - #define TARGET_NR_getpgrp 151 188 - 189 - #define TARGET_NR_reserved152 152 /* set_thread_area */ 190 - #define TARGET_NR_reserved153 153 /* get_thread_area */ 191 - #define TARGET_NR_times 154 192 - #define TARGET_NR_acct 155 193 - #define TARGET_NR_sched_setaffinity 156 194 - #define TARGET_NR_sched_getaffinity 157 195 - #define TARGET_NR_capget 158 196 - #define TARGET_NR_capset 159 197 - #define TARGET_NR_ptrace 160 198 - #define TARGET_NR_semtimedop 161 199 - #define TARGET_NR_semget 162 200 - #define TARGET_NR_semop 163 201 - #define TARGET_NR_semctl 164 202 - #define TARGET_NR_available165 165 203 - #define TARGET_NR_msgget 166 204 - #define TARGET_NR_msgsnd 167 205 - #define TARGET_NR_msgrcv 168 206 - #define TARGET_NR_msgctl 169 207 - #define TARGET_NR_available170 170 208 - 209 - /* File System */ 210 - 211 - #define TARGET_NR_umount2 171 212 - #define TARGET_NR_mount 172 213 - #define TARGET_NR_swapon 173 214 - #define TARGET_NR_chroot 174 215 - #define TARGET_NR_pivot_root 175 216 - #define TARGET_NR_umount 176 217 - #define TARGET_NR_swapoff 177 218 - #define TARGET_NR_sync 178 219 - #define TARGET_NR_syncfs 179 220 - #define TARGET_NR_setfsuid 180 221 - #define TARGET_NR_setfsgid 181 222 - #define TARGET_NR_sysfs 182 223 - #define TARGET_NR_ustat 183 224 - #define TARGET_NR_statfs 184 225 - #define TARGET_NR_fstatfs 185 226 - #define TARGET_NR_statfs64 186 227 - #define TARGET_NR_fstatfs64 187 228 - 229 - /* System */ 230 - 231 - #define TARGET_NR_setrlimit 188 232 - #define TARGET_NR_getrlimit 189 233 - #define TARGET_NR_getrusage 190 234 - #define TARGET_NR_futex 191 235 - #define TARGET_NR_gettimeofday 192 236 - #define TARGET_NR_settimeofday 193 237 - #define TARGET_NR_adjtimex 194 238 - #define TARGET_NR_nanosleep 195 239 - #define TARGET_NR_getgroups 196 240 - #define TARGET_NR_setgroups 197 241 - #define TARGET_NR_sethostname 198 242 - #define TARGET_NR_setdomainname 199 243 - #define TARGET_NR_syslog 200 244 - #define TARGET_NR_vhangup 201 245 - #define TARGET_NR_uselib 202 246 - #define TARGET_NR_reboot 203 247 - #define TARGET_NR_quotactl 204 248 - #define TARGET_NR_nfsservctl 205 249 - #define TARGET_NR__sysctl 206 250 - #define TARGET_NR_bdflush 207 251 - #define TARGET_NR_uname 208 252 - #define TARGET_NR_sysinfo 209 253 - #define TARGET_NR_init_module 210 254 - #define TARGET_NR_delete_module 211 255 - 256 - #define TARGET_NR_sched_setparam 212 257 - #define TARGET_NR_sched_getparam 213 258 - #define TARGET_NR_sched_setscheduler 214 259 - #define TARGET_NR_sched_getscheduler 215 260 - #define TARGET_NR_sched_get_priority_max 216 261 - #define TARGET_NR_sched_get_priority_min 217 262 - #define TARGET_NR_sched_rr_get_interval 218 263 - #define TARGET_NR_sched_yield 219 264 - #define TARGET_NR_available222 222 265 - 266 - /* Signal Handling */ 267 - 268 - #define TARGET_NR_restart_syscall 223 269 - #define TARGET_NR_sigaltstack 224 270 - #define TARGET_NR_rt_sigreturn 225 271 - #define TARGET_NR_rt_sigaction 226 272 - #define TARGET_NR_rt_sigprocmask 227 273 - #define TARGET_NR_rt_sigpending 228 274 - #define TARGET_NR_rt_sigtimedwait 229 275 - #define TARGET_NR_rt_sigqueueinfo 230 276 - #define TARGET_NR_rt_sigsuspend 231 277 - 278 - /* Message */ 279 - 280 - #define TARGET_NR_mq_open 232 281 - #define TARGET_NR_mq_unlink 233 282 - #define TARGET_NR_mq_timedsend 234 283 - #define TARGET_NR_mq_timedreceive 235 284 - #define TARGET_NR_mq_notify 236 285 - #define TARGET_NR_mq_getsetattr 237 286 - #define TARGET_NR_available238 238 287 - 288 - /* IO */ 289 - 290 - #define TARGET_NR_io_setup 239 291 - #define TARGET_NR_io_destroy 240 292 - #define TARGET_NR_io_submit 241 293 - #define TARGET_NR_io_getevents 242 294 - #define TARGET_NR_io_cancel 243 295 - #define TARGET_NR_clock_settime 244 296 - #define TARGET_NR_clock_gettime 245 297 - #define TARGET_NR_clock_getres 246 298 - #define TARGET_NR_clock_nanosleep 247 299 - 300 - /* Timer */ 301 - 302 - #define TARGET_NR_timer_create 248 303 - #define TARGET_NR_timer_delete 249 304 - #define TARGET_NR_timer_settime 250 305 - #define TARGET_NR_timer_gettime 251 306 - #define TARGET_NR_timer_getoverrun 252 307 - 308 - /* System */ 309 - 310 - #define TARGET_NR_reserved253 253 311 - #define TARGET_NR_lookup_dcookie 254 312 - #define TARGET_NR_available255 255 313 - #define TARGET_NR_add_key 256 314 - #define TARGET_NR_request_key 257 315 - #define TARGET_NR_keyctl 258 316 - #define TARGET_NR_available259 259 317 - 318 - 319 - #define TARGET_NR_readahead 260 320 - #define TARGET_NR_remap_file_pages 261 321 - #define TARGET_NR_migrate_pages 262 322 - #define TARGET_NR_mbind 263 323 - #define TARGET_NR_get_mempolicy 264 324 - #define TARGET_NR_set_mempolicy 265 325 - #define TARGET_NR_unshare 266 326 - #define TARGET_NR_move_pages 267 327 - #define TARGET_NR_splice 268 328 - #define TARGET_NR_tee 269 329 - #define TARGET_NR_vmsplice 270 330 - #define TARGET_NR_available271 271 331 - 332 - #define TARGET_NR_pselect6 272 333 - #define TARGET_NR_ppoll 273 334 - #define TARGET_NR_epoll_pwait 274 335 - #define TARGET_NR_epoll_create1 275 336 - 337 - #define TARGET_NR_inotify_init 276 338 - #define TARGET_NR_inotify_add_watch 277 339 - #define TARGET_NR_inotify_rm_watch 278 340 - #define TARGET_NR_inotify_init1 279 341 - 342 - #define TARGET_NR_getcpu 280 343 - #define TARGET_NR_kexec_load 281 344 - 345 - #define TARGET_NR_ioprio_set 282 346 - #define TARGET_NR_ioprio_get 283 347 - 348 - #define TARGET_NR_set_robust_list 284 349 - #define TARGET_NR_get_robust_list 285 350 - #define TARGET_NR_available286 286 351 - #define TARGET_NR_available287 287 352 - 353 - /* Relative File Operations */ 354 - 355 - #define TARGET_NR_openat 288 356 - #define TARGET_NR_mkdirat 289 357 - #define TARGET_NR_mknodat 290 358 - #define TARGET_NR_unlinkat 291 359 - #define TARGET_NR_renameat 292 360 - #define TARGET_NR_linkat 293 361 - #define TARGET_NR_symlinkat 294 362 - #define TARGET_NR_readlinkat 295 363 - #define TARGET_NR_utimensat 296 364 - #define TARGET_NR_fchownat 297 365 - #define TARGET_NR_futimesat 298 366 - #define TARGET_NR_fstatat64 299 367 - #define TARGET_NR_fchmodat 300 368 - #define TARGET_NR_faccessat 301 369 - #define TARGET_NR_available302 302 370 - #define TARGET_NR_available303 303 371 - 372 - #define TARGET_NR_signalfd 304 373 - /* 305 was TARGET_NR_timerfd */ 374 - #define TARGET_NR_eventfd 306 375 - #define TARGET_NR_recvmmsg 307 376 - 377 - #define TARGET_NR_setns 308 378 - #define TARGET_NR_signalfd4 309 379 - #define TARGET_NR_dup3 310 380 - #define TARGET_NR_pipe2 311 381 - 382 - #define TARGET_NR_timerfd_create 312 383 - #define TARGET_NR_timerfd_settime 313 384 - #define TARGET_NR_timerfd_gettime 314 385 - #define TARGET_NR_available315 315 386 - 387 - #define TARGET_NR_eventfd2 316 388 - #define TARGET_NR_preadv 317 389 - #define TARGET_NR_pwritev 318 390 - #define TARGET_NR_available319 319 391 - 392 - #define TARGET_NR_fanotify_init 320 393 - #define TARGET_NR_fanotify_mark 321 394 - #define TARGET_NR_process_vm_readv 322 395 - #define TARGET_NR_process_vm_writev 323 396 - 397 - #define TARGET_NR_name_to_handle_at 324 398 - #define TARGET_NR_open_by_handle_at 325 399 - #define TARGET_NR_sync_file_range2 326 400 - #define TARGET_NR_perf_event_open 327 401 - 402 - #define TARGET_NR_rt_tgsigqueueinfo 328 403 - #define TARGET_NR_clock_adjtime 329 404 - #define TARGET_NR_prlimit64 330 405 - #define TARGET_NR_kcmp 331 406 - 407 - #define TARGET_NR_finit_module 332 408 - 409 - #define TARGET_NR_accept4 333 410 - 411 - #define TARGET_NR_sched_setattr 334 412 - #define TARGET_NR_sched_getattr 335 413 - 414 - #define TARGET_NR_renameat2 336 415 - 416 - #define TARGET_NR_seccomp 337 417 - #define TARGET_NR_getrandom 338 418 - #define TARGET_NR_memfd_create 339 419 - #define TARGET_NR_bpf 340 420 - #define TARGET_NR_execveat 341 421 - 422 - #define TARGET_NR_userfaultfd 342 423 - #define TARGET_NR_membarrier 343 424 - #define TARGET_NR_mlock2 344 425 - #define TARGET_NR_copy_file_range 345 426 - #define TARGET_NR_preadv2 346 427 - #define TARGET_NR_pwritev2 347 428 - 429 - #define TARGET_NR_pkey_mprotect 348 430 - #define TARGET_NR_pkey_alloc 349 431 - #define TARGET_NR_pkey_free 350 432 - 433 - #define TARGET_NR_statx 351 434 - #define TARGET_NR_rseq 352 435 - /* 353 through 402 are unassigned to sync up with generic numbers */ 436 - #define TARGET_NR_clock_gettime64 403 437 - #define TARGET_NR_clock_settime64 404 438 - #define TARGET_NR_clock_adjtime64 405 439 - #define TARGET_NR_clock_getres_time64 406 440 - #define TARGET_NR_clock_nanosleep_time64 407 441 - #define TARGET_NR_timer_gettime64 408 442 - #define TARGET_NR_timer_settime64 409 443 - #define TARGET_NR_timerfd_gettime64 410 444 - #define TARGET_NR_timerfd_settime64 411 445 - #define TARGET_NR_utimensat_time64 412 446 - #define TARGET_NR_pselect6_time64 413 447 - #define TARGET_NR_ppoll_time64 414 448 - #define TARGET_NR_io_pgetevents_time64 416 449 - #define TARGET_NR_recvmmsg_time64 417 450 - #define TARGET_NR_mq_timedsend_time64 418 451 - #define TARGET_NR_mq_timedreceive_time64 419 452 - #define TARGET_NR_semtimedop_time64 420 453 - #define TARGET_NR_rt_sigtimedwait_time64 421 454 - #define TARGET_NR_futex_time64 422 455 - #define TARGET_NR_sched_rr_get_interval_time64 423 456 - #define TARGET_NR_pidfd_send_signal 424 457 - #define TARGET_NR_io_uring_setup 425 458 - #define TARGET_NR_io_uring_enter 426 459 - #define TARGET_NR_io_uring_register 427 460 - #define TARGET_NR_open_tree 428 461 - #define TARGET_NR_move_mount 429 462 - #define TARGET_NR_fsopen 430 463 - #define TARGET_NR_fsconfig 431 464 - #define TARGET_NR_fsmount 432 465 - #define TARGET_NR_fspick 433 466 - #define TARGET_NR_pidfd_open 434 467 - #define TARGET_NR_clone3 435 468 - 469 - #endif /* XTENSA_SYSCALL_NR_H */
+32
linux-user/xtensa/syscallhdr.sh
··· 1 + #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + 4 + in="$1" 5 + out="$2" 6 + my_abis=`echo "($3)" | tr ',' '|'` 7 + prefix="$4" 8 + offset="$5" 9 + 10 + fileguard=LINUX_USER_XTENSA_`basename "$out" | sed \ 11 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 12 + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 13 + grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 14 + printf "#ifndef %s\n" "${fileguard}" 15 + printf "#define %s\n" "${fileguard}" 16 + printf "\n" 17 + 18 + nxt=0 19 + while read nr abi name entry ; do 20 + if [ -z "$offset" ]; then 21 + printf "#define TARGET_NR_%s%s\t%s\n" \ 22 + "${prefix}" "${name}" "${nr}" 23 + else 24 + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ 25 + "${prefix}" "${name}" "${offset}" "${nr}" 26 + fi 27 + nxt=$((nr+1)) 28 + done 29 + 30 + printf "\n" 31 + printf "#endif /* %s */" "${fileguard}" 32 + ) > "$out"
+102
scripts/gensyscalls.sh
··· 1 + #!/bin/sh 2 + # 3 + # Update syscall_nr.h files from linux headers asm-generic/unistd.h 4 + # 5 + # This code is licensed under the GPL version 2 or later. See 6 + # the COPYING file in the top-level directory. 7 + # 8 + 9 + linux="$1" 10 + output="$2" 11 + 12 + TMP=$(mktemp -d) 13 + 14 + if [ "$linux" = "" ] ; then 15 + echo "Needs path to linux source tree" 1>&2 16 + exit 1 17 + fi 18 + 19 + if [ "$output" = "" ] ; then 20 + output="$PWD" 21 + fi 22 + 23 + upper() 24 + { 25 + echo "$1" | tr "[:lower:]" "[:upper:]" | tr "[:punct:]" "_" 26 + } 27 + 28 + qemu_arch() 29 + { 30 + case "$1" in 31 + arm64) 32 + echo "aarch64" 33 + ;; 34 + *) 35 + echo "$1" 36 + ;; 37 + esac 38 + } 39 + 40 + read_includes() 41 + { 42 + arch=$1 43 + bits=$2 44 + 45 + cpp -P -nostdinc -fdirectives-only \ 46 + -D_UAPI_ASM_$(upper ${arch})_BITSPERLONG_H \ 47 + -D__BITS_PER_LONG=${bits} \ 48 + -I${linux}/arch/${arch}/include/uapi/ \ 49 + -I${linux}/include/uapi \ 50 + -I${TMP} \ 51 + "${linux}/arch/${arch}/include/uapi/asm/unistd.h" 52 + } 53 + 54 + filter_defines() 55 + { 56 + grep -e "#define __NR_" -e "#define __NR3264" 57 + } 58 + 59 + rename_defines() 60 + { 61 + sed "s/ __NR_/ TARGET_NR_/g;s/(__NR_/(TARGET_NR_/g" 62 + } 63 + 64 + evaluate_values() 65 + { 66 + sed "s/#define TARGET_NR_/QEMU TARGET_NR_/" | \ 67 + cpp -P -nostdinc | \ 68 + sed "s/^QEMU /#define /" 69 + } 70 + 71 + generate_syscall_nr() 72 + { 73 + arch=$1 74 + bits=$2 75 + file="$3" 76 + guard="$(upper LINUX_USER_$(qemu_arch $arch)_$(basename "$file"))" 77 + 78 + (echo "/*" 79 + echo " * This file contains the system call numbers." 80 + echo " * Do not modify." 81 + echo " * This file is generated by scripts/gensyscalls.sh" 82 + echo " */" 83 + echo "#ifndef ${guard}" 84 + echo "#define ${guard}" 85 + echo 86 + read_includes $arch $bits | filter_defines | rename_defines | \ 87 + evaluate_values | sort -n -k 3 88 + echo 89 + echo "#endif /* ${guard} */" 90 + echo) > "$file" 91 + } 92 + 93 + mkdir "$TMP/asm" 94 + > "$TMP/asm/bitsperlong.h" 95 + 96 + generate_syscall_nr arm64 64 "$output/linux-user/aarch64/syscall_nr.h" 97 + generate_syscall_nr nios2 32 "$output/linux-user/nios2/syscall_nr.h" 98 + generate_syscall_nr openrisc 32 "$output/linux-user/openrisc/syscall_nr.h" 99 + 100 + generate_syscall_nr riscv 32 "$output/linux-user/riscv/syscall32_nr.h" 101 + generate_syscall_nr riscv 64 "$output/linux-user/riscv/syscall64_nr.h" 102 + rm -fr "$TMP"
+57
scripts/update-mips-syscall-args.sh
··· 1 + #!/bin/sh 2 + 3 + URL=https://raw.githubusercontent.com/strace/strace/master 4 + FILES="sysent.h sysent_shorthand_defs.h linux/mips/syscallent-compat.h \ 5 + linux/mips/syscallent-o32.h linux/syscallent-common-32.h \ 6 + linux/syscallent-common.h" 7 + 8 + output="$1" 9 + if [ "$output" = "" ] ; then 10 + output="$PWD" 11 + fi 12 + 13 + INC=linux-user/mips/syscall-args-o32.c.inc 14 + 15 + TMP=$(mktemp -d) 16 + cd $TMP 17 + 18 + for file in $FILES; do 19 + curl -O $URL/$file 20 + done 21 + 22 + > subcall32.h 23 + 24 + cat > gen_mips_o32.c <<EOF 25 + #include <stdio.h> 26 + 27 + #define LINUX_MIPSO32 28 + #define MAX_ARGS 7 29 + 30 + #include "sysent.h" 31 + #include "sysent_shorthand_defs.h" 32 + 33 + #define SEN(syscall_name) 0,0 34 + const struct_sysent sysent0[] = { 35 + #include "syscallent-o32.h" 36 + }; 37 + 38 + int main(void) 39 + { 40 + int i; 41 + 42 + for (i = 4000; i < sizeof(sysent0) / sizeof(struct_sysent); i++) { 43 + if (sysent0[i].sys_name == NULL) { 44 + printf(" [% 4d] = MIPS_SYSCALL_NUMBER_UNUSED,\n", i - 4000); 45 + } else { 46 + printf(" [% 4d] = %d, /* %s */\n", i - 4000, 47 + sysent0[i].nargs, sysent0[i].sys_name); 48 + } 49 + } 50 + 51 + return 0; 52 + } 53 + EOF 54 + 55 + cc -o gen_mips_o32 gen_mips_o32.c && ./gen_mips_o32 > "$output/$INC" 56 + 57 + rm -fr "$TMP"
+49
scripts/update-syscalltbl.sh
··· 1 + TBL_LIST="\ 2 + arch/alpha/kernel/syscalls/syscall.tbl,linux-user/alpha/syscall.tbl \ 3 + arch/arm/tools/syscall.tbl,linux-user/arm/syscall.tbl \ 4 + arch/m68k/kernel/syscalls/syscall.tbl,linux-user/m68k/syscall.tbl \ 5 + arch/microblaze/kernel/syscalls/syscall.tbl,linux-user/microblaze/syscall.tbl \ 6 + arch/mips/kernel/syscalls/syscall_n32.tbl,linux-user/mips64/syscall_n32.tbl \ 7 + arch/mips/kernel/syscalls/syscall_n64.tbl,linux-user/mips64/syscall_n64.tbl \ 8 + arch/mips/kernel/syscalls/syscall_o32.tbl,linux-user/mips/syscall_o32.tbl \ 9 + arch/parisc/kernel/syscalls/syscall.tbl,linux-user/hppa/syscall.tbl \ 10 + arch/powerpc/kernel/syscalls/syscall.tbl,linux-user/ppc/syscall.tbl \ 11 + arch/s390/kernel/syscalls/syscall.tbl,linux-user/s390x/syscall.tbl \ 12 + arch/sh/kernel/syscalls/syscall.tbl,linux-user/sh4/syscall.tbl \ 13 + arch/sparc/kernel/syscalls/syscall.tbl,linux-user/sparc64/syscall.tbl \ 14 + arch/sparc/kernel/syscalls/syscall.tbl,linux-user/sparc/syscall.tbl \ 15 + arch/x86/entry/syscalls/syscall_32.tbl,linux-user/i386/syscall_32.tbl \ 16 + arch/x86/entry/syscalls/syscall_64.tbl,linux-user/x86_64/syscall_64.tbl \ 17 + arch/xtensa/kernel/syscalls/syscall.tbl,linux-user/xtensa/syscall.tbl\ 18 + " 19 + 20 + linux="$1" 21 + output="$2" 22 + 23 + if [ -z "$linux" ] || ! [ -d "$linux" ]; then 24 + cat << EOF 25 + usage: update-syscalltbl.sh LINUX_PATH [OUTPUT_PATH] 26 + 27 + LINUX_PATH Linux kernel directory to obtain the syscall.tbl from 28 + OUTPUT_PATH output directory, usually the qemu source tree (default: $PWD) 29 + EOF 30 + exit 1 31 + fi 32 + 33 + if [ -z "$output" ]; then 34 + output="$PWD" 35 + fi 36 + 37 + for entry in $TBL_LIST; do 38 + OFS="$IFS" 39 + IFS=, 40 + set $entry 41 + src=$1 42 + dst=$2 43 + IFS="$OFS" 44 + if ! cp "$linux/$src" "$output/$dst" ; then 45 + echo "Cannot copy $linux/$src to $output/$dst" 1>&2 46 + exit 1 47 + fi 48 + done 49 +