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

linux-user, sparc, sparc64: add syscall table generation support

Copy syscall.tbl and syscallhdr.sh from linux/arch/sparc/kernel/syscalls v5.5
Update syscallhdr.sh to generate QEMU syscall_nr.h

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

+1047 -730
+5 -1
configure
··· 1889 1889 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 - for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x ; do 1892 + for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ 1893 + ; do 1893 1894 # remove the file if it has been generated in the source directory 1894 1895 rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" 1895 1896 # remove the dependency files ··· 7901 7902 bflt="yes" 7902 7903 ;; 7903 7904 sparc) 7905 + TARGET_SYSTBL_ABI=common,32 7904 7906 ;; 7905 7907 sparc64) 7906 7908 TARGET_BASE_ARCH=sparc 7909 + TARGET_SYSTBL_ABI=common,64 7907 7910 ;; 7908 7911 sparc32plus) 7909 7912 TARGET_ARCH=sparc64 7910 7913 TARGET_BASE_ARCH=sparc 7911 7914 TARGET_ABI_DIR=sparc 7915 + TARGET_SYSTBL_ABI=common,32 7912 7916 echo "TARGET_ABI32=y" >> $config_target_mak 7913 7917 ;; 7914 7918 s390x)
+2
linux-user/Makefile.objs
··· 16 16 obj-$(TARGET_PPC64) += ppc/ 17 17 obj-$(TARGET_S390X) += s390x/ 18 18 obj-$(TARGET_SH4) += sh4/ 19 + obj-$(TARGET_SPARC) += sparc/ 20 + obj-$(TARGET_SPARC64) += $(TARGET_ABI_DIR)/ 19 21 obj-$(TARGET_XTENSA) += xtensa/
+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","$@")
+483
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
-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","$@")
+483
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
-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"