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

linux-user, mips64: add syscall table generation support

Copy syscall_n32.tbl, syscall_n64.tbl and syscallhdr.sh from
linux/arch/parisc/kernel/syscalls v5.5
Update syscallhdr.sh to generate QEMU syscall_nr.h

Move the offsets (6000 for n32 and 5000 for n64) from the file to
the Makefile.objs to be passed to syscallhdr.sh

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20200310103403.3284090-18-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

+777 -726
+3 -1
configure
··· 1890 1890 # Remove syscall_nr.h to be sure they will be regenerated in the build 1891 1891 # directory, not in the source directory 1892 1892 for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ 1893 - i386 x86_64 mips ; do 1893 + i386 x86_64 mips mips64 ; do 1894 1894 # remove the file if it has been generated in the source directory 1895 1895 rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" 1896 1896 # remove the dependency files ··· 7845 7845 TARGET_BASE_ARCH=mips 7846 7846 echo "TARGET_ABI_MIPSN32=y" >> $config_target_mak 7847 7847 echo "TARGET_ABI32=y" >> $config_target_mak 7848 + TARGET_SYSTBL_ABI=n32 7848 7849 ;; 7849 7850 mips64|mips64el) 7850 7851 mttcg="yes" 7851 7852 TARGET_ARCH=mips64 7852 7853 TARGET_BASE_ARCH=mips 7853 7854 echo "TARGET_ABI_MIPSN64=y" >> $config_target_mak 7855 + TARGET_SYSTBL_ABI=n64 7854 7856 ;; 7855 7857 moxie) 7856 7858 ;;
+1
linux-user/Makefile.objs
··· 14 14 obj-$(TARGET_M68K) += m68k/ 15 15 obj-$(TARGET_MICROBLAZE) += microblaze/ 16 16 obj-$(TARGET_MIPS) += mips/ 17 + obj-$(TARGET_MIPS64) += mips64/ 17 18 obj-$(TARGET_PPC) += ppc/ 18 19 obj-$(TARGET_PPC64) += ppc/ 19 20 obj-$(TARGET_S390X) += s390x/
+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
+376
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
+352
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
-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"