mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.1-pull-request' into staging
Linux-user pull request 20210713 Update headers to linux v5.13 cleanup errno target headers Fix race condition on fd translation table # gpg: Signature made Tue 13 Jul 2021 14:41:25 BST # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/linux-user-for-6.1-pull-request: linux-user: update syscall.tbl to Linux v5.13 linux-user, mips: update syscall-args-o32.c.inc to Linux v5.13 linux-user: update syscall_nr.h to Linux v5.13 fd-trans: Fix race condition on reallocation of the translation table. linux-user/syscall: Remove ERRNO_TABLE_SIZE check linux-user: Simplify host <-> target errno conversion using macros linux-user/mips: Move errno definitions to 'target_errno_defs.h' linux-user/hppa: Move errno definitions to 'target_errno_defs.h' linux-user/alpha: Move errno definitions to 'target_errno_defs.h' linux-user: Extract target errno to 'target_errno_defs.h' linux-user/sparc: Rename target_errno.h -> target_errno_defs.h linux-user/syscall: Fix RF-kill errno (typo in ERFKILL) Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
@@ -302,6 +302,12 @@
|
||||
#define TARGET_NR_openat2 437
|
||||
#define TARGET_NR_pidfd_getfd 438
|
||||
#define TARGET_NR_faccessat2 439
|
||||
#define TARGET_NR_syscalls 440
|
||||
#define TARGET_NR_process_madvise 440
|
||||
#define TARGET_NR_epoll_pwait2 441
|
||||
#define TARGET_NR_mount_setattr 442
|
||||
#define TARGET_NR_landlock_create_ruleset 444
|
||||
#define TARGET_NR_landlock_add_rule 445
|
||||
#define TARGET_NR_landlock_restrict_self 446
|
||||
#define TARGET_NR_syscalls 447
|
||||
|
||||
#endif /* LINUX_USER_AARCH64_SYSCALL_NR_H */
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef AARCH64_TARGET_ERRNO_DEFS_H
|
||||
#define AARCH64_TARGET_ERRNO_DEFS_H
|
||||
|
||||
/* Target uses generic errno */
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
#endif
|
||||
@@ -479,3 +479,10 @@
|
||||
547 common openat2 sys_openat2
|
||||
548 common pidfd_getfd sys_pidfd_getfd
|
||||
549 common faccessat2 sys_faccessat2
|
||||
550 common process_madvise sys_process_madvise
|
||||
551 common epoll_pwait2 sys_epoll_pwait2
|
||||
552 common mount_setattr sys_mount_setattr
|
||||
# 553 reserved for quotactl_path
|
||||
554 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
555 common landlock_add_rule sys_landlock_add_rule
|
||||
556 common landlock_restrict_self sys_landlock_restrict_self
|
||||
|
||||
@@ -0,0 +1,204 @@
|
||||
#ifndef ALPHA_TARGET_ERRNO_DEFS_H
|
||||
#define ALPHA_TARGET_ERRNO_DEFS_H
|
||||
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
/*
|
||||
* Generic target errno overridden with definitions taken
|
||||
* from asm-alpha/errno.h
|
||||
*/
|
||||
#undef TARGET_EWOULDBLOCK
|
||||
#define TARGET_EWOULDBLOCK TARGET_EAGAIN
|
||||
#undef TARGET_EDEADLK
|
||||
#define TARGET_EDEADLK 11
|
||||
#undef TARGET_EAGAIN
|
||||
#define TARGET_EAGAIN 35
|
||||
#undef TARGET_EINPROGRESS
|
||||
#define TARGET_EINPROGRESS 36
|
||||
#undef TARGET_EALREADY
|
||||
#define TARGET_EALREADY 37
|
||||
#undef TARGET_ENOTSOCK
|
||||
#define TARGET_ENOTSOCK 38
|
||||
#undef TARGET_EDESTADDRREQ
|
||||
#define TARGET_EDESTADDRREQ 39
|
||||
#undef TARGET_EMSGSIZE
|
||||
#define TARGET_EMSGSIZE 40
|
||||
#undef TARGET_EPROTOTYPE
|
||||
#define TARGET_EPROTOTYPE 41
|
||||
#undef TARGET_ENOPROTOOPT
|
||||
#define TARGET_ENOPROTOOPT 42
|
||||
#undef TARGET_EPROTONOSUPPORT
|
||||
#define TARGET_EPROTONOSUPPORT 43
|
||||
#undef TARGET_ESOCKTNOSUPPORT
|
||||
#define TARGET_ESOCKTNOSUPPORT 44
|
||||
#undef TARGET_EOPNOTSUPP
|
||||
#define TARGET_EOPNOTSUPP 45
|
||||
#undef TARGET_EPFNOSUPPORT
|
||||
#define TARGET_EPFNOSUPPORT 46
|
||||
#undef TARGET_EAFNOSUPPORT
|
||||
#define TARGET_EAFNOSUPPORT 47
|
||||
#undef TARGET_EADDRINUSE
|
||||
#define TARGET_EADDRINUSE 48
|
||||
#undef TARGET_EADDRNOTAVAIL
|
||||
#define TARGET_EADDRNOTAVAIL 49
|
||||
#undef TARGET_ENETDOWN
|
||||
#define TARGET_ENETDOWN 50
|
||||
#undef TARGET_ENETUNREACH
|
||||
#define TARGET_ENETUNREACH 51
|
||||
#undef TARGET_ENETRESET
|
||||
#define TARGET_ENETRESET 52
|
||||
#undef TARGET_ECONNABORTED
|
||||
#define TARGET_ECONNABORTED 53
|
||||
#undef TARGET_ECONNRESET
|
||||
#define TARGET_ECONNRESET 54
|
||||
#undef TARGET_ENOBUFS
|
||||
#define TARGET_ENOBUFS 55
|
||||
#undef TARGET_EISCONN
|
||||
#define TARGET_EISCONN 56
|
||||
#undef TARGET_ENOTCONN
|
||||
#define TARGET_ENOTCONN 57
|
||||
#undef TARGET_ESHUTDOWN
|
||||
#define TARGET_ESHUTDOWN 58
|
||||
#undef TARGET_ETOOMANYREFS
|
||||
#define TARGET_ETOOMANYREFS 59
|
||||
#undef TARGET_ETIMEDOUT
|
||||
#define TARGET_ETIMEDOUT 60
|
||||
#undef TARGET_ECONNREFUSED
|
||||
#define TARGET_ECONNREFUSED 61
|
||||
#undef TARGET_ELOOP
|
||||
#define TARGET_ELOOP 62
|
||||
#undef TARGET_ENAMETOOLONG
|
||||
#define TARGET_ENAMETOOLONG 63
|
||||
#undef TARGET_EHOSTDOWN
|
||||
#define TARGET_EHOSTDOWN 64
|
||||
#undef TARGET_EHOSTUNREACH
|
||||
#define TARGET_EHOSTUNREACH 65
|
||||
#undef TARGET_ENOTEMPTY
|
||||
#define TARGET_ENOTEMPTY 66
|
||||
/* Unused 67 */
|
||||
#undef TARGET_EUSERS
|
||||
#define TARGET_EUSERS 68
|
||||
#undef TARGET_EDQUOT
|
||||
#define TARGET_EDQUOT 69
|
||||
#undef TARGET_ESTALE
|
||||
#define TARGET_ESTALE 70
|
||||
#undef TARGET_EREMOTE
|
||||
#define TARGET_EREMOTE 71
|
||||
/* Unused 72-76 */
|
||||
#undef TARGET_ENOLCK
|
||||
#define TARGET_ENOLCK 77
|
||||
#undef TARGET_ENOSYS
|
||||
#define TARGET_ENOSYS 78
|
||||
/* Unused 79 */
|
||||
#undef TARGET_ENOMSG
|
||||
#define TARGET_ENOMSG 80
|
||||
#undef TARGET_EIDRM
|
||||
#define TARGET_EIDRM 81
|
||||
#undef TARGET_ENOSR
|
||||
#define TARGET_ENOSR 82
|
||||
#undef TARGET_ETIME
|
||||
#define TARGET_ETIME 83
|
||||
#undef TARGET_EBADMSG
|
||||
#define TARGET_EBADMSG 84
|
||||
#undef TARGET_EPROTO
|
||||
#define TARGET_EPROTO 85
|
||||
#undef TARGET_ENODATA
|
||||
#define TARGET_ENODATA 86
|
||||
#undef TARGET_ENOSTR
|
||||
#define TARGET_ENOSTR 87
|
||||
#undef TARGET_ECHRNG
|
||||
#define TARGET_ECHRNG 88
|
||||
#undef TARGET_EL2NSYNC
|
||||
#define TARGET_EL2NSYNC 89
|
||||
#undef TARGET_EL3HLT
|
||||
#define TARGET_EL3HLT 90
|
||||
#undef TARGET_EL3RST
|
||||
#define TARGET_EL3RST 91
|
||||
#undef TARGET_ENOPKG
|
||||
#define TARGET_ENOPKG 92
|
||||
#undef TARGET_ELNRNG
|
||||
#define TARGET_ELNRNG 93
|
||||
#undef TARGET_EUNATCH
|
||||
#define TARGET_EUNATCH 94
|
||||
#undef TARGET_ENOCSI
|
||||
#define TARGET_ENOCSI 95
|
||||
#undef TARGET_EL2HLT
|
||||
#define TARGET_EL2HLT 96
|
||||
#undef TARGET_EBADE
|
||||
#define TARGET_EBADE 97
|
||||
#undef TARGET_EBADR
|
||||
#define TARGET_EBADR 98
|
||||
#undef TARGET_EXFULL
|
||||
#define TARGET_EXFULL 99
|
||||
#undef TARGET_ENOANO
|
||||
#define TARGET_ENOANO 100
|
||||
#undef TARGET_EBADRQC
|
||||
#define TARGET_EBADRQC 101
|
||||
#undef TARGET_EBADSLT
|
||||
#define TARGET_EBADSLT 102
|
||||
/* Unused 103 */
|
||||
#undef TARGET_EBFONT
|
||||
#define TARGET_EBFONT 104
|
||||
#undef TARGET_ENONET
|
||||
#define TARGET_ENONET 105
|
||||
#undef TARGET_ENOLINK
|
||||
#define TARGET_ENOLINK 106
|
||||
#undef TARGET_EADV
|
||||
#define TARGET_EADV 107
|
||||
#undef TARGET_ESRMNT
|
||||
#define TARGET_ESRMNT 108
|
||||
#undef TARGET_ECOMM
|
||||
#define TARGET_ECOMM 109
|
||||
#undef TARGET_EMULTIHOP
|
||||
#define TARGET_EMULTIHOP 110
|
||||
#undef TARGET_EDOTDOT
|
||||
#define TARGET_EDOTDOT 111
|
||||
#undef TARGET_EOVERFLOW
|
||||
#define TARGET_EOVERFLOW 112
|
||||
#undef TARGET_ENOTUNIQ
|
||||
#define TARGET_ENOTUNIQ 113
|
||||
#undef TARGET_EBADFD
|
||||
#define TARGET_EBADFD 114
|
||||
#undef TARGET_EREMCHG
|
||||
#define TARGET_EREMCHG 115
|
||||
#undef TARGET_EILSEQ
|
||||
#define TARGET_EILSEQ 116
|
||||
/* Same as default 117-121 */
|
||||
#undef TARGET_ELIBACC
|
||||
#define TARGET_ELIBACC 122
|
||||
#undef TARGET_ELIBBAD
|
||||
#define TARGET_ELIBBAD 123
|
||||
#undef TARGET_ELIBSCN
|
||||
#define TARGET_ELIBSCN 124
|
||||
#undef TARGET_ELIBMAX
|
||||
#define TARGET_ELIBMAX 125
|
||||
#undef TARGET_ELIBEXEC
|
||||
#define TARGET_ELIBEXEC 126
|
||||
#undef TARGET_ERESTART
|
||||
#define TARGET_ERESTART 127
|
||||
#undef TARGET_ESTRPIPE
|
||||
#define TARGET_ESTRPIPE 128
|
||||
#undef TARGET_ENOMEDIUM
|
||||
#define TARGET_ENOMEDIUM 129
|
||||
#undef TARGET_EMEDIUMTYPE
|
||||
#define TARGET_EMEDIUMTYPE 130
|
||||
#undef TARGET_ECANCELED
|
||||
#define TARGET_ECANCELED 131
|
||||
#undef TARGET_ENOKEY
|
||||
#define TARGET_ENOKEY 132
|
||||
#undef TARGET_EKEYEXPIRED
|
||||
#define TARGET_EKEYEXPIRED 133
|
||||
#undef TARGET_EKEYREVOKED
|
||||
#define TARGET_EKEYREVOKED 134
|
||||
#undef TARGET_EKEYREJECTED
|
||||
#define TARGET_EKEYREJECTED 135
|
||||
#undef TARGET_EOWNERDEAD
|
||||
#define TARGET_EOWNERDEAD 136
|
||||
#undef TARGET_ENOTRECOVERABLE
|
||||
#define TARGET_ENOTRECOVERABLE 137
|
||||
#undef TARGET_ERFKILL
|
||||
#define TARGET_ERFKILL 138
|
||||
#undef TARGET_EHWPOISON
|
||||
#define TARGET_EHWPOISON 139
|
||||
|
||||
#endif
|
||||
@@ -44,200 +44,6 @@ struct target_pt_regs {
|
||||
#define UNAME_MACHINE "alpha"
|
||||
#define UNAME_MINIMUM_RELEASE "2.6.32"
|
||||
|
||||
#undef TARGET_EWOULDBLOCK
|
||||
#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
|
||||
#undef TARGET_EDEADLK
|
||||
#define TARGET_EDEADLK 11
|
||||
#undef TARGET_EAGAIN
|
||||
#define TARGET_EAGAIN 35
|
||||
#undef TARGET_EINPROGRESS
|
||||
#define TARGET_EINPROGRESS 36
|
||||
#undef TARGET_EALREADY
|
||||
#define TARGET_EALREADY 37
|
||||
#undef TARGET_ENOTSOCK
|
||||
#define TARGET_ENOTSOCK 38
|
||||
#undef TARGET_EDESTADDRREQ
|
||||
#define TARGET_EDESTADDRREQ 39
|
||||
#undef TARGET_EMSGSIZE
|
||||
#define TARGET_EMSGSIZE 40
|
||||
#undef TARGET_EPROTOTYPE
|
||||
#define TARGET_EPROTOTYPE 41
|
||||
#undef TARGET_ENOPROTOOPT
|
||||
#define TARGET_ENOPROTOOPT 42
|
||||
#undef TARGET_EPROTONOSUPPORT
|
||||
#define TARGET_EPROTONOSUPPORT 43
|
||||
#undef TARGET_ESOCKTNOSUPPORT
|
||||
#define TARGET_ESOCKTNOSUPPORT 44
|
||||
#undef TARGET_EOPNOTSUPP
|
||||
#define TARGET_EOPNOTSUPP 45
|
||||
#undef TARGET_EPFNOSUPPORT
|
||||
#define TARGET_EPFNOSUPPORT 46
|
||||
#undef TARGET_EAFNOSUPPORT
|
||||
#define TARGET_EAFNOSUPPORT 47
|
||||
#undef TARGET_EADDRINUSE
|
||||
#define TARGET_EADDRINUSE 48
|
||||
#undef TARGET_EADDRNOTAVAIL
|
||||
#define TARGET_EADDRNOTAVAIL 49
|
||||
#undef TARGET_ENETDOWN
|
||||
#define TARGET_ENETDOWN 50
|
||||
#undef TARGET_ENETUNREACH
|
||||
#define TARGET_ENETUNREACH 51
|
||||
#undef TARGET_ENETRESET
|
||||
#define TARGET_ENETRESET 52
|
||||
#undef TARGET_ECONNABORTED
|
||||
#define TARGET_ECONNABORTED 53
|
||||
#undef TARGET_ECONNRESET
|
||||
#define TARGET_ECONNRESET 54
|
||||
#undef TARGET_ENOBUFS
|
||||
#define TARGET_ENOBUFS 55
|
||||
#undef TARGET_EISCONN
|
||||
#define TARGET_EISCONN 56
|
||||
#undef TARGET_ENOTCONN
|
||||
#define TARGET_ENOTCONN 57
|
||||
#undef TARGET_ESHUTDOWN
|
||||
#define TARGET_ESHUTDOWN 58
|
||||
#undef TARGET_ETOOMANYREFS
|
||||
#define TARGET_ETOOMANYREFS 59
|
||||
#undef TARGET_ETIMEDOUT
|
||||
#define TARGET_ETIMEDOUT 60
|
||||
#undef TARGET_ECONNREFUSED
|
||||
#define TARGET_ECONNREFUSED 61
|
||||
#undef TARGET_ELOOP
|
||||
#define TARGET_ELOOP 62
|
||||
#undef TARGET_ENAMETOOLONG
|
||||
#define TARGET_ENAMETOOLONG 63
|
||||
#undef TARGET_EHOSTDOWN
|
||||
#define TARGET_EHOSTDOWN 64
|
||||
#undef TARGET_EHOSTUNREACH
|
||||
#define TARGET_EHOSTUNREACH 65
|
||||
#undef TARGET_ENOTEMPTY
|
||||
#define TARGET_ENOTEMPTY 66
|
||||
/* Unused 67 */
|
||||
#undef TARGET_EUSERS
|
||||
#define TARGET_EUSERS 68
|
||||
#undef TARGET_EDQUOT
|
||||
#define TARGET_EDQUOT 69
|
||||
#undef TARGET_ESTALE
|
||||
#define TARGET_ESTALE 70
|
||||
#undef TARGET_EREMOTE
|
||||
#define TARGET_EREMOTE 71
|
||||
/* Unused 72-76 */
|
||||
#undef TARGET_ENOLCK
|
||||
#define TARGET_ENOLCK 77
|
||||
#undef TARGET_ENOSYS
|
||||
#define TARGET_ENOSYS 78
|
||||
/* Unused 79 */
|
||||
#undef TARGET_ENOMSG
|
||||
#define TARGET_ENOMSG 80
|
||||
#undef TARGET_EIDRM
|
||||
#define TARGET_EIDRM 81
|
||||
#undef TARGET_ENOSR
|
||||
#define TARGET_ENOSR 82
|
||||
#undef TARGET_ETIME
|
||||
#define TARGET_ETIME 83
|
||||
#undef TARGET_EBADMSG
|
||||
#define TARGET_EBADMSG 84
|
||||
#undef TARGET_EPROTO
|
||||
#define TARGET_EPROTO 85
|
||||
#undef TARGET_ENODATA
|
||||
#define TARGET_ENODATA 86
|
||||
#undef TARGET_ENOSTR
|
||||
#define TARGET_ENOSTR 87
|
||||
#undef TARGET_ECHRNG
|
||||
#define TARGET_ECHRNG 88
|
||||
#undef TARGET_EL2NSYNC
|
||||
#define TARGET_EL2NSYNC 89
|
||||
#undef TARGET_EL3HLT
|
||||
#define TARGET_EL3HLT 90
|
||||
#undef TARGET_EL3RST
|
||||
#define TARGET_EL3RST 91
|
||||
#undef TARGET_ENOPKG
|
||||
#define TARGET_ENOPKG 92
|
||||
#undef TARGET_ELNRNG
|
||||
#define TARGET_ELNRNG 93
|
||||
#undef TARGET_EUNATCH
|
||||
#define TARGET_EUNATCH 94
|
||||
#undef TARGET_ENOCSI
|
||||
#define TARGET_ENOCSI 95
|
||||
#undef TARGET_EL2HLT
|
||||
#define TARGET_EL2HLT 96
|
||||
#undef TARGET_EBADE
|
||||
#define TARGET_EBADE 97
|
||||
#undef TARGET_EBADR
|
||||
#define TARGET_EBADR 98
|
||||
#undef TARGET_EXFULL
|
||||
#define TARGET_EXFULL 99
|
||||
#undef TARGET_ENOANO
|
||||
#define TARGET_ENOANO 100
|
||||
#undef TARGET_EBADRQC
|
||||
#define TARGET_EBADRQC 101
|
||||
#undef TARGET_EBADSLT
|
||||
#define TARGET_EBADSLT 102
|
||||
/* Unused 103 */
|
||||
#undef TARGET_EBFONT
|
||||
#define TARGET_EBFONT 104
|
||||
#undef TARGET_ENONET
|
||||
#define TARGET_ENONET 105
|
||||
#undef TARGET_ENOLINK
|
||||
#define TARGET_ENOLINK 106
|
||||
#undef TARGET_EADV
|
||||
#define TARGET_EADV 107
|
||||
#undef TARGET_ESRMNT
|
||||
#define TARGET_ESRMNT 108
|
||||
#undef TARGET_ECOMM
|
||||
#define TARGET_ECOMM 109
|
||||
#undef TARGET_EMULTIHOP
|
||||
#define TARGET_EMULTIHOP 110
|
||||
#undef TARGET_EDOTDOT
|
||||
#define TARGET_EDOTDOT 111
|
||||
#undef TARGET_EOVERFLOW
|
||||
#define TARGET_EOVERFLOW 112
|
||||
#undef TARGET_ENOTUNIQ
|
||||
#define TARGET_ENOTUNIQ 113
|
||||
#undef TARGET_EBADFD
|
||||
#define TARGET_EBADFD 114
|
||||
#undef TARGET_EREMCHG
|
||||
#define TARGET_EREMCHG 115
|
||||
#undef TARGET_EILSEQ
|
||||
#define TARGET_EILSEQ 116
|
||||
/* Same as default 117-121 */
|
||||
#undef TARGET_ELIBACC
|
||||
#define TARGET_ELIBACC 122
|
||||
#undef TARGET_ELIBBAD
|
||||
#define TARGET_ELIBBAD 123
|
||||
#undef TARGET_ELIBSCN
|
||||
#define TARGET_ELIBSCN 124
|
||||
#undef TARGET_ELIBMAX
|
||||
#define TARGET_ELIBMAX 125
|
||||
#undef TARGET_ELIBEXEC
|
||||
#define TARGET_ELIBEXEC 126
|
||||
#undef TARGET_ERESTART
|
||||
#define TARGET_ERESTART 127
|
||||
#undef TARGET_ESTRPIPE
|
||||
#define TARGET_ESTRPIPE 128
|
||||
#undef TARGET_ENOMEDIUM
|
||||
#define TARGET_ENOMEDIUM 129
|
||||
#undef TARGET_EMEDIUMTYPE
|
||||
#define TARGET_EMEDIUMTYPE 130
|
||||
#undef TARGET_ECANCELED
|
||||
#define TARGET_ECANCELED 131
|
||||
#undef TARGET_ENOKEY
|
||||
#define TARGET_ENOKEY 132
|
||||
#undef TARGET_EKEYEXPIRED
|
||||
#define TARGET_EKEYEXPIRED 133
|
||||
#undef TARGET_EKEYREVOKED
|
||||
#define TARGET_EKEYREVOKED 134
|
||||
#undef TARGET_EKEYREJECTED
|
||||
#define TARGET_EKEYREJECTED 135
|
||||
#undef TARGET_EOWNERDEAD
|
||||
#define TARGET_EOWNERDEAD 136
|
||||
#undef TARGET_ENOTRECOVERABLE
|
||||
#define TARGET_ENOTRECOVERABLE 137
|
||||
#undef TARGET_ERFKILL
|
||||
#define TARGET_ERFKILL 138
|
||||
#undef TARGET_EHWPOISON
|
||||
#define TARGET_EHWPOISON 139
|
||||
|
||||
// For sys_osf_getsysinfo
|
||||
#define TARGET_GSI_UACPROC 8
|
||||
#define TARGET_GSI_IEEE_FP_CONTROL 45
|
||||
|
||||
@@ -453,3 +453,10 @@
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
# 443 reserved for quotactl_path
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef ARM_TARGET_ERRNO_DEFS_H
|
||||
#define ARM_TARGET_ERRNO_DEFS_H
|
||||
|
||||
/* Target uses generic errno */
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef CRIS_TARGET_ERRNO_DEFS_H
|
||||
#define CRIS_TARGET_ERRNO_DEFS_H
|
||||
|
||||
/* Target uses generic errno */
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* This list is the union of errno values overridden in asm-<arch>/errno.h
|
||||
* minus the errnos that are not actually generic to all archs.
|
||||
*
|
||||
* Please keep this list sorted alphabetically.
|
||||
*
|
||||
* Copyright (c) 2003 Fabrice Bellard
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
E(EADDRINUSE)
|
||||
E(EADDRNOTAVAIL)
|
||||
E(EADV)
|
||||
E(EAFNOSUPPORT)
|
||||
E(EAGAIN)
|
||||
E(EALREADY)
|
||||
E(EBADE)
|
||||
E(EBADFD)
|
||||
E(EBADMSG)
|
||||
E(EBADR)
|
||||
E(EBADRQC)
|
||||
E(EBADSLT)
|
||||
E(EBFONT)
|
||||
E(ECANCELED)
|
||||
E(ECHRNG)
|
||||
E(ECOMM)
|
||||
E(ECONNABORTED)
|
||||
E(ECONNREFUSED)
|
||||
E(ECONNRESET)
|
||||
E(EDEADLK)
|
||||
E(EDESTADDRREQ)
|
||||
E(EDOTDOT)
|
||||
E(EDQUOT)
|
||||
E(EHOSTDOWN)
|
||||
E(EHOSTUNREACH)
|
||||
#ifdef EHWPOISON
|
||||
E(EHWPOISON)
|
||||
#endif
|
||||
E(EIDRM)
|
||||
E(EILSEQ)
|
||||
E(EINPROGRESS)
|
||||
E(EISCONN)
|
||||
E(EISNAM)
|
||||
#ifdef EKEYEXPIRED
|
||||
E(EKEYEXPIRED)
|
||||
#endif
|
||||
#ifdef EKEYREJECTED
|
||||
E(EKEYREJECTED)
|
||||
#endif
|
||||
#ifdef EKEYREVOKED
|
||||
E(EKEYREVOKED)
|
||||
#endif
|
||||
E(EL2HLT)
|
||||
E(EL2NSYNC)
|
||||
E(EL3HLT)
|
||||
E(EL3RST)
|
||||
E(ELIBACC)
|
||||
E(ELIBBAD)
|
||||
E(ELIBEXEC)
|
||||
E(ELIBMAX)
|
||||
E(ELIBSCN)
|
||||
E(ELNRNG)
|
||||
E(ELOOP)
|
||||
E(EMEDIUMTYPE)
|
||||
E(EMSGSIZE)
|
||||
E(EMULTIHOP)
|
||||
E(ENAMETOOLONG)
|
||||
E(ENAVAIL)
|
||||
E(ENETDOWN)
|
||||
E(ENETRESET)
|
||||
E(ENETUNREACH)
|
||||
E(ENOANO)
|
||||
E(ENOBUFS)
|
||||
E(ENOCSI)
|
||||
E(ENODATA)
|
||||
#ifdef ENOKEY
|
||||
E(ENOKEY)
|
||||
#endif
|
||||
E(ENOLCK)
|
||||
E(ENOLINK)
|
||||
E(ENOMEDIUM)
|
||||
#ifdef ENOMSG
|
||||
E(ENOMSG)
|
||||
#endif
|
||||
E(ENONET)
|
||||
E(ENOPKG)
|
||||
E(ENOPROTOOPT)
|
||||
E(ENOSR)
|
||||
E(ENOSTR)
|
||||
E(ENOSYS)
|
||||
E(ENOTCONN)
|
||||
E(ENOTEMPTY)
|
||||
E(ENOTNAM)
|
||||
#ifdef ENOTRECOVERABLE
|
||||
E(ENOTRECOVERABLE)
|
||||
#endif
|
||||
E(ENOTSOCK)
|
||||
E(ENOTUNIQ)
|
||||
E(EOPNOTSUPP)
|
||||
E(EOVERFLOW)
|
||||
#ifdef EOWNERDEAD
|
||||
E(EOWNERDEAD)
|
||||
#endif
|
||||
E(EPFNOSUPPORT)
|
||||
E(EPROTO)
|
||||
E(EPROTONOSUPPORT)
|
||||
E(EPROTOTYPE)
|
||||
E(EREMCHG)
|
||||
E(EREMOTE)
|
||||
E(EREMOTEIO)
|
||||
E(ERESTART)
|
||||
#ifdef ERFKILL
|
||||
E(ERFKILL)
|
||||
#endif
|
||||
E(ESHUTDOWN)
|
||||
E(ESOCKTNOSUPPORT)
|
||||
E(ESRMNT)
|
||||
E(ESTALE)
|
||||
E(ESTRPIPE)
|
||||
E(ETIME)
|
||||
E(ETIMEDOUT)
|
||||
E(ETOOMANYREFS)
|
||||
E(EUCLEAN)
|
||||
E(EUNATCH)
|
||||
E(EUSERS)
|
||||
E(EXFULL)
|
||||
@@ -267,6 +267,7 @@ enum {
|
||||
};
|
||||
|
||||
TargetFdTrans **target_fd_trans;
|
||||
QemuMutex target_fd_trans_lock;
|
||||
unsigned int target_fd_max;
|
||||
|
||||
static void tswap_nlmsghdr(struct nlmsghdr *nlh)
|
||||
|
||||
+48
-7
@@ -16,6 +16,8 @@
|
||||
#ifndef FD_TRANS_H
|
||||
#define FD_TRANS_H
|
||||
|
||||
#include "qemu/lockable.h"
|
||||
|
||||
typedef abi_long (*TargetFdDataFunc)(void *, size_t);
|
||||
typedef abi_long (*TargetFdAddrFunc)(void *, abi_ulong, socklen_t);
|
||||
typedef struct TargetFdTrans {
|
||||
@@ -25,12 +27,23 @@ typedef struct TargetFdTrans {
|
||||
} TargetFdTrans;
|
||||
|
||||
extern TargetFdTrans **target_fd_trans;
|
||||
extern QemuMutex target_fd_trans_lock;
|
||||
|
||||
extern unsigned int target_fd_max;
|
||||
|
||||
static inline void fd_trans_init(void)
|
||||
{
|
||||
qemu_mutex_init(&target_fd_trans_lock);
|
||||
}
|
||||
|
||||
static inline TargetFdDataFunc fd_trans_target_to_host_data(int fd)
|
||||
{
|
||||
if (fd >= 0 && fd < target_fd_max && target_fd_trans[fd]) {
|
||||
if (fd < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
QEMU_LOCK_GUARD(&target_fd_trans_lock);
|
||||
if (fd < target_fd_max && target_fd_trans[fd]) {
|
||||
return target_fd_trans[fd]->target_to_host_data;
|
||||
}
|
||||
return NULL;
|
||||
@@ -38,7 +51,12 @@ static inline TargetFdDataFunc fd_trans_target_to_host_data(int fd)
|
||||
|
||||
static inline TargetFdDataFunc fd_trans_host_to_target_data(int fd)
|
||||
{
|
||||
if (fd >= 0 && fd < target_fd_max && target_fd_trans[fd]) {
|
||||
if (fd < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
QEMU_LOCK_GUARD(&target_fd_trans_lock);
|
||||
if (fd < target_fd_max && target_fd_trans[fd]) {
|
||||
return target_fd_trans[fd]->host_to_target_data;
|
||||
}
|
||||
return NULL;
|
||||
@@ -46,13 +64,19 @@ static inline TargetFdDataFunc fd_trans_host_to_target_data(int fd)
|
||||
|
||||
static inline TargetFdAddrFunc fd_trans_target_to_host_addr(int fd)
|
||||
{
|
||||
if (fd >= 0 && fd < target_fd_max && target_fd_trans[fd]) {
|
||||
if (fd < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
QEMU_LOCK_GUARD(&target_fd_trans_lock);
|
||||
if (fd < target_fd_max && target_fd_trans[fd]) {
|
||||
return target_fd_trans[fd]->target_to_host_addr;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void fd_trans_register(int fd, TargetFdTrans *trans)
|
||||
static inline void internal_fd_trans_register_unsafe(int fd,
|
||||
TargetFdTrans *trans)
|
||||
{
|
||||
unsigned int oldmax;
|
||||
|
||||
@@ -67,18 +91,35 @@ static inline void fd_trans_register(int fd, TargetFdTrans *trans)
|
||||
target_fd_trans[fd] = trans;
|
||||
}
|
||||
|
||||
static inline void fd_trans_unregister(int fd)
|
||||
static inline void fd_trans_register(int fd, TargetFdTrans *trans)
|
||||
{
|
||||
QEMU_LOCK_GUARD(&target_fd_trans_lock);
|
||||
internal_fd_trans_register_unsafe(fd, trans);
|
||||
}
|
||||
|
||||
static inline void internal_fd_trans_unregister_unsafe(int fd)
|
||||
{
|
||||
if (fd >= 0 && fd < target_fd_max) {
|
||||
target_fd_trans[fd] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void fd_trans_unregister(int fd)
|
||||
{
|
||||
if (fd < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
QEMU_LOCK_GUARD(&target_fd_trans_lock);
|
||||
internal_fd_trans_unregister_unsafe(fd);
|
||||
}
|
||||
|
||||
static inline void fd_trans_dup(int oldfd, int newfd)
|
||||
{
|
||||
fd_trans_unregister(newfd);
|
||||
QEMU_LOCK_GUARD(&target_fd_trans_lock);
|
||||
internal_fd_trans_unregister_unsafe(newfd);
|
||||
if (oldfd < target_fd_max && target_fd_trans[oldfd]) {
|
||||
fd_trans_register(newfd, target_fd_trans[oldfd]);
|
||||
internal_fd_trans_register_unsafe(newfd, target_fd_trans[oldfd]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
* Taken from asm-generic/errno-base.h and asm-generic/errno.h
|
||||
*/
|
||||
|
||||
#ifndef LINUX_USER_ERRNO_DEFS_H
|
||||
#define LINUX_USER_ERRNO_DEFS_H
|
||||
#ifndef GENERIC_TARGET_ERRNO_DEFS_H
|
||||
#define GENERIC_TARGET_ERRNO_DEFS_H
|
||||
|
||||
#define TARGET_EPERM 1 /* Operation not permitted */
|
||||
#define TARGET_ENOENT 2 /* No such file or directory */
|
||||
@@ -317,6 +317,16 @@
|
||||
#define TARGET_NR_fsmount 432
|
||||
#define TARGET_NR_fspick 433
|
||||
#define TARGET_NR_pidfd_open 434
|
||||
#define TARGET_NR_syscalls 436
|
||||
#define TARGET_NR_close_range 436
|
||||
#define TARGET_NR_openat2 437
|
||||
#define TARGET_NR_pidfd_getfd 438
|
||||
#define TARGET_NR_faccessat2 439
|
||||
#define TARGET_NR_process_madvise 440
|
||||
#define TARGET_NR_epoll_pwait2 441
|
||||
#define TARGET_NR_mount_setattr 442
|
||||
#define TARGET_NR_landlock_create_ruleset 444
|
||||
#define TARGET_NR_landlock_add_rule 445
|
||||
#define TARGET_NR_landlock_restrict_self 446
|
||||
#define TARGET_NR_syscalls 447
|
||||
|
||||
#endif /* LINUX_USER_HEXAGON_SYSCALL_NR_H */
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef HEXAGON_TARGET_ERRNO_DEFS_H
|
||||
#define HEXAGON_TARGET_ERRNO_DEFS_H
|
||||
|
||||
/* Target uses generic errno */
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
#endif
|
||||
+19
-12
@@ -29,7 +29,7 @@
|
||||
18 common stat sys_newstat compat_sys_newstat
|
||||
19 common lseek sys_lseek compat_sys_lseek
|
||||
20 common getpid sys_getpid
|
||||
21 common mount sys_mount compat_sys_mount
|
||||
21 common mount sys_mount
|
||||
22 common bind sys_bind
|
||||
23 common setuid sys_setuid
|
||||
24 common getuid sys_getuid
|
||||
@@ -159,8 +159,8 @@
|
||||
142 common _newselect sys_select compat_sys_select
|
||||
143 common flock sys_flock
|
||||
144 common msync sys_msync
|
||||
145 common readv sys_readv compat_sys_readv
|
||||
146 common writev sys_writev compat_sys_writev
|
||||
145 common readv sys_readv
|
||||
146 common writev sys_writev
|
||||
147 common getsid sys_getsid
|
||||
148 common fdatasync sys_fdatasync
|
||||
149 common _sysctl sys_ni_syscall
|
||||
@@ -330,7 +330,7 @@
|
||||
292 32 sync_file_range parisc_sync_file_range
|
||||
292 64 sync_file_range sys_sync_file_range
|
||||
293 common tee sys_tee
|
||||
294 common vmsplice sys_vmsplice compat_sys_vmsplice
|
||||
294 common vmsplice sys_vmsplice
|
||||
295 common move_pages sys_move_pages compat_sys_move_pages
|
||||
296 common getcpu sys_getcpu
|
||||
297 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait
|
||||
@@ -344,17 +344,17 @@
|
||||
304 common eventfd sys_eventfd
|
||||
305 32 fallocate parisc_fallocate
|
||||
305 64 fallocate sys_fallocate
|
||||
306 common timerfd_create sys_timerfd_create
|
||||
306 common timerfd_create parisc_timerfd_create
|
||||
307 32 timerfd_settime sys_timerfd_settime32
|
||||
307 64 timerfd_settime sys_timerfd_settime
|
||||
308 32 timerfd_gettime sys_timerfd_gettime32
|
||||
308 64 timerfd_gettime sys_timerfd_gettime
|
||||
309 common signalfd4 sys_signalfd4 compat_sys_signalfd4
|
||||
310 common eventfd2 sys_eventfd2
|
||||
309 common signalfd4 parisc_signalfd4 parisc_compat_signalfd4
|
||||
310 common eventfd2 parisc_eventfd2
|
||||
311 common epoll_create1 sys_epoll_create1
|
||||
312 common dup3 sys_dup3
|
||||
313 common pipe2 sys_pipe2
|
||||
314 common inotify_init1 sys_inotify_init1
|
||||
313 common pipe2 parisc_pipe2
|
||||
314 common inotify_init1 parisc_inotify_init1
|
||||
315 common preadv sys_preadv compat_sys_preadv
|
||||
316 common pwritev sys_pwritev compat_sys_pwritev
|
||||
317 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
|
||||
@@ -372,8 +372,8 @@
|
||||
327 common syncfs sys_syncfs
|
||||
328 common setns sys_setns
|
||||
329 common sendmmsg sys_sendmmsg compat_sys_sendmmsg
|
||||
330 common process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv
|
||||
331 common process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev
|
||||
330 common process_vm_readv sys_process_vm_readv
|
||||
331 common process_vm_writev sys_process_vm_writev
|
||||
332 common kcmp sys_kcmp
|
||||
333 common finit_module sys_finit_module
|
||||
334 common sched_setattr sys_sched_setattr
|
||||
@@ -387,7 +387,7 @@
|
||||
341 common bpf sys_bpf
|
||||
342 common execveat sys_execveat compat_sys_execveat
|
||||
343 common membarrier sys_membarrier
|
||||
344 common userfaultfd sys_userfaultfd
|
||||
344 common userfaultfd parisc_userfaultfd
|
||||
345 common mlock2 sys_mlock2
|
||||
346 common copy_file_range sys_copy_file_range
|
||||
347 common preadv2 sys_preadv2 compat_sys_preadv2
|
||||
@@ -437,3 +437,10 @@
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
# 443 reserved for quotactl_path
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
|
||||
@@ -0,0 +1,220 @@
|
||||
#ifndef HPPA_TARGET_ERRNO_DEFS_H
|
||||
#define HPPA_TARGET_ERRNO_DEFS_H
|
||||
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
/*
|
||||
* Generic target errno overridden with definitions taken
|
||||
* from asm-parisc/errno.h
|
||||
*/
|
||||
#undef TARGET_EWOULDBLOCK
|
||||
#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
|
||||
#undef TARGET_ENOMSG
|
||||
#define TARGET_ENOMSG 35
|
||||
#undef TARGET_EIDRM
|
||||
#define TARGET_EIDRM 36
|
||||
#undef TARGET_ECHRNG
|
||||
#define TARGET_ECHRNG 37
|
||||
#undef TARGET_EL2NSYNC
|
||||
#define TARGET_EL2NSYNC 38
|
||||
#undef TARGET_EL3HLT
|
||||
#define TARGET_EL3HLT 39
|
||||
#undef TARGET_EL3RST
|
||||
#define TARGET_EL3RST 40
|
||||
#undef TARGET_ELNRNG
|
||||
#define TARGET_ELNRNG 41
|
||||
#undef TARGET_EUNATCH
|
||||
#define TARGET_EUNATCH 42
|
||||
#undef TARGET_ENOCSI
|
||||
#define TARGET_ENOCSI 43
|
||||
#undef TARGET_EL2HLT
|
||||
#define TARGET_EL2HLT 44
|
||||
#undef TARGET_EDEADLK
|
||||
#define TARGET_EDEADLK 45
|
||||
#undef TARGET_ENOLCK
|
||||
#define TARGET_ENOLCK 46
|
||||
#undef TARGET_EILSEQ
|
||||
#define TARGET_EILSEQ 47
|
||||
|
||||
#undef TARGET_ENONET
|
||||
#define TARGET_ENONET 50
|
||||
#undef TARGET_ENODATA
|
||||
#define TARGET_ENODATA 51
|
||||
#undef TARGET_ETIME
|
||||
#define TARGET_ETIME 52
|
||||
#undef TARGET_ENOSR
|
||||
#define TARGET_ENOSR 53
|
||||
#undef TARGET_ENOSTR
|
||||
#define TARGET_ENOSTR 54
|
||||
#undef TARGET_ENOPKG
|
||||
#define TARGET_ENOPKG 55
|
||||
|
||||
#undef TARGET_ENOLINK
|
||||
#define TARGET_ENOLINK 57
|
||||
#undef TARGET_EADV
|
||||
#define TARGET_EADV 58
|
||||
#undef TARGET_ESRMNT
|
||||
#define TARGET_ESRMNT 59
|
||||
#undef TARGET_ECOMM
|
||||
#define TARGET_ECOMM 60
|
||||
#undef TARGET_EPROTO
|
||||
#define TARGET_EPROTO 61
|
||||
|
||||
#undef TARGET_EMULTIHOP
|
||||
#define TARGET_EMULTIHOP 64
|
||||
|
||||
#undef TARGET_EDOTDOT
|
||||
#define TARGET_EDOTDOT 66
|
||||
#undef TARGET_EBADMSG
|
||||
#define TARGET_EBADMSG 67
|
||||
#undef TARGET_EUSERS
|
||||
#define TARGET_EUSERS 68
|
||||
#undef TARGET_EDQUOT
|
||||
#define TARGET_EDQUOT 69
|
||||
#undef TARGET_ESTALE
|
||||
#define TARGET_ESTALE 70
|
||||
#undef TARGET_EREMOTE
|
||||
#define TARGET_EREMOTE 71
|
||||
#undef TARGET_EOVERFLOW
|
||||
#define TARGET_EOVERFLOW 72
|
||||
|
||||
#undef TARGET_EBADE
|
||||
#define TARGET_EBADE 160
|
||||
#undef TARGET_EBADR
|
||||
#define TARGET_EBADR 161
|
||||
#undef TARGET_EXFULL
|
||||
#define TARGET_EXFULL 162
|
||||
#undef TARGET_ENOANO
|
||||
#define TARGET_ENOANO 163
|
||||
#undef TARGET_EBADRQC
|
||||
#define TARGET_EBADRQC 164
|
||||
#undef TARGET_EBADSLT
|
||||
#define TARGET_EBADSLT 165
|
||||
#undef TARGET_EBFONT
|
||||
#define TARGET_EBFONT 166
|
||||
#undef TARGET_ENOTUNIQ
|
||||
#define TARGET_ENOTUNIQ 167
|
||||
#undef TARGET_EBADFD
|
||||
#define TARGET_EBADFD 168
|
||||
#undef TARGET_EREMCHG
|
||||
#define TARGET_EREMCHG 169
|
||||
#undef TARGET_ELIBACC
|
||||
#define TARGET_ELIBACC 170
|
||||
#undef TARGET_ELIBBAD
|
||||
#define TARGET_ELIBBAD 171
|
||||
#undef TARGET_ELIBSCN
|
||||
#define TARGET_ELIBSCN 172
|
||||
#undef TARGET_ELIBMAX
|
||||
#define TARGET_ELIBMAX 173
|
||||
#undef TARGET_ELIBEXEC
|
||||
#define TARGET_ELIBEXEC 174
|
||||
#undef TARGET_ERESTART
|
||||
#define TARGET_ERESTART 175
|
||||
#undef TARGET_ESTRPIPE
|
||||
#define TARGET_ESTRPIPE 176
|
||||
#undef TARGET_EUCLEAN
|
||||
#define TARGET_EUCLEAN 177
|
||||
#undef TARGET_ENOTNAM
|
||||
#define TARGET_ENOTNAM 178
|
||||
#undef TARGET_ENAVAIL
|
||||
#define TARGET_ENAVAIL 179
|
||||
#undef TARGET_EISNAM
|
||||
#define TARGET_EISNAM 180
|
||||
#undef TARGET_EREMOTEIO
|
||||
#define TARGET_EREMOTEIO 181
|
||||
#undef TARGET_ENOMEDIUM
|
||||
#define TARGET_ENOMEDIUM 182
|
||||
#undef TARGET_EMEDIUMTYPE
|
||||
#define TARGET_EMEDIUMTYPE 183
|
||||
#undef TARGET_ENOKEY
|
||||
#define TARGET_ENOKEY 184
|
||||
#undef TARGET_EKEYEXPIRED
|
||||
#define TARGET_EKEYEXPIRED 185
|
||||
#undef TARGET_EKEYREVOKED
|
||||
#define TARGET_EKEYREVOKED 186
|
||||
#undef TARGET_EKEYREJECTED
|
||||
#define TARGET_EKEYREJECTED 187
|
||||
|
||||
/* Never used in linux. */
|
||||
/* #define TARGET_ENOSYM 215 */
|
||||
#undef TARGET_ENOTSOCK
|
||||
#define TARGET_ENOTSOCK 216
|
||||
#undef TARGET_EDESTADDRREQ
|
||||
#define TARGET_EDESTADDRREQ 217
|
||||
#undef TARGET_EMSGSIZE
|
||||
#define TARGET_EMSGSIZE 218
|
||||
#undef TARGET_EPROTOTYPE
|
||||
#define TARGET_EPROTOTYPE 219
|
||||
#undef TARGET_ENOPROTOOPT
|
||||
#define TARGET_ENOPROTOOPT 220
|
||||
#undef TARGET_EPROTONOSUPPORT
|
||||
#define TARGET_EPROTONOSUPPORT 221
|
||||
#undef TARGET_ESOCKTNOSUPPORT
|
||||
#define TARGET_ESOCKTNOSUPPORT 222
|
||||
#undef TARGET_EOPNOTSUPP
|
||||
#define TARGET_EOPNOTSUPP 223
|
||||
#undef TARGET_EPFNOSUPPORT
|
||||
#define TARGET_EPFNOSUPPORT 224
|
||||
#undef TARGET_EAFNOSUPPORT
|
||||
#define TARGET_EAFNOSUPPORT 225
|
||||
#undef TARGET_EADDRINUSE
|
||||
#define TARGET_EADDRINUSE 226
|
||||
#undef TARGET_EADDRNOTAVAIL
|
||||
#define TARGET_EADDRNOTAVAIL 227
|
||||
#undef TARGET_ENETDOWN
|
||||
#define TARGET_ENETDOWN 228
|
||||
#undef TARGET_ENETUNREACH
|
||||
#define TARGET_ENETUNREACH 229
|
||||
#undef TARGET_ENETRESET
|
||||
#define TARGET_ENETRESET 230
|
||||
#undef TARGET_ECONNABORTED
|
||||
#define TARGET_ECONNABORTED 231
|
||||
#undef TARGET_ECONNRESET
|
||||
#define TARGET_ECONNRESET 232
|
||||
#undef TARGET_ENOBUFS
|
||||
#define TARGET_ENOBUFS 233
|
||||
#undef TARGET_EISCONN
|
||||
#define TARGET_EISCONN 234
|
||||
#undef TARGET_ENOTCONN
|
||||
#define TARGET_ENOTCONN 235
|
||||
#undef TARGET_ESHUTDOWN
|
||||
#define TARGET_ESHUTDOWN 236
|
||||
#undef TARGET_ETOOMANYREFS
|
||||
#define TARGET_ETOOMANYREFS 237
|
||||
#undef TARGET_ETIMEDOUT
|
||||
#define TARGET_ETIMEDOUT 238
|
||||
#undef TARGET_ECONNREFUSED
|
||||
#define TARGET_ECONNREFUSED 239
|
||||
#define TARGET_EREMOTERELEASE 240
|
||||
#undef TARGET_EHOSTDOWN
|
||||
#define TARGET_EHOSTDOWN 241
|
||||
#undef TARGET_EHOSTUNREACH
|
||||
#define TARGET_EHOSTUNREACH 242
|
||||
|
||||
#undef TARGET_EALREADY
|
||||
#define TARGET_EALREADY 244
|
||||
#undef TARGET_EINPROGRESS
|
||||
#define TARGET_EINPROGRESS 245
|
||||
#undef TARGET_ENOTEMPTY
|
||||
#define TARGET_ENOTEMPTY 247
|
||||
#undef TARGET_ENAMETOOLONG
|
||||
#define TARGET_ENAMETOOLONG 248
|
||||
#undef TARGET_ELOOP
|
||||
#define TARGET_ELOOP 249
|
||||
#undef TARGET_ENOSYS
|
||||
#define TARGET_ENOSYS 251
|
||||
|
||||
#undef TARGET_ECANCELED
|
||||
#define TARGET_ECANCELED 253
|
||||
|
||||
#undef TARGET_EOWNERDEAD
|
||||
#define TARGET_EOWNERDEAD 254
|
||||
#undef TARGET_ENOTRECOVERABLE
|
||||
#define TARGET_ENOTRECOVERABLE 255
|
||||
|
||||
#undef TARGET_ERFKILL
|
||||
#define TARGET_ERFKILL 256
|
||||
#undef TARGET_EHWPOISON
|
||||
#define TARGET_EHWPOISON 257
|
||||
|
||||
#endif
|
||||
@@ -27,214 +27,4 @@ struct target_pt_regs {
|
||||
#define TARGET_MCL_FUTURE 2
|
||||
#define TARGET_MCL_ONFAULT 4
|
||||
|
||||
#undef TARGET_EWOULDBLOCK
|
||||
#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
|
||||
#undef TARGET_ENOMSG
|
||||
#define TARGET_ENOMSG 35
|
||||
#undef TARGET_EIDRM
|
||||
#define TARGET_EIDRM 36
|
||||
#undef TARGET_ECHRNG
|
||||
#define TARGET_ECHRNG 37
|
||||
#undef TARGET_EL2NSYNC
|
||||
#define TARGET_EL2NSYNC 38
|
||||
#undef TARGET_EL3HLT
|
||||
#define TARGET_EL3HLT 39
|
||||
#undef TARGET_EL3RST
|
||||
#define TARGET_EL3RST 40
|
||||
#undef TARGET_ELNRNG
|
||||
#define TARGET_ELNRNG 41
|
||||
#undef TARGET_EUNATCH
|
||||
#define TARGET_EUNATCH 42
|
||||
#undef TARGET_ENOCSI
|
||||
#define TARGET_ENOCSI 43
|
||||
#undef TARGET_EL2HLT
|
||||
#define TARGET_EL2HLT 44
|
||||
#undef TARGET_EDEADLK
|
||||
#define TARGET_EDEADLK 45
|
||||
#undef TARGET_ENOLCK
|
||||
#define TARGET_ENOLCK 46
|
||||
#undef TARGET_EILSEQ
|
||||
#define TARGET_EILSEQ 47
|
||||
|
||||
#undef TARGET_ENONET
|
||||
#define TARGET_ENONET 50
|
||||
#undef TARGET_ENODATA
|
||||
#define TARGET_ENODATA 51
|
||||
#undef TARGET_ETIME
|
||||
#define TARGET_ETIME 52
|
||||
#undef TARGET_ENOSR
|
||||
#define TARGET_ENOSR 53
|
||||
#undef TARGET_ENOSTR
|
||||
#define TARGET_ENOSTR 54
|
||||
#undef TARGET_ENOPKG
|
||||
#define TARGET_ENOPKG 55
|
||||
|
||||
#undef TARGET_ENOLINK
|
||||
#define TARGET_ENOLINK 57
|
||||
#undef TARGET_EADV
|
||||
#define TARGET_EADV 58
|
||||
#undef TARGET_ESRMNT
|
||||
#define TARGET_ESRMNT 59
|
||||
#undef TARGET_ECOMM
|
||||
#define TARGET_ECOMM 60
|
||||
#undef TARGET_EPROTO
|
||||
#define TARGET_EPROTO 61
|
||||
|
||||
#undef TARGET_EMULTIHOP
|
||||
#define TARGET_EMULTIHOP 64
|
||||
|
||||
#undef TARGET_EDOTDOT
|
||||
#define TARGET_EDOTDOT 66
|
||||
#undef TARGET_EBADMSG
|
||||
#define TARGET_EBADMSG 67
|
||||
#undef TARGET_EUSERS
|
||||
#define TARGET_EUSERS 68
|
||||
#undef TARGET_EDQUOT
|
||||
#define TARGET_EDQUOT 69
|
||||
#undef TARGET_ESTALE
|
||||
#define TARGET_ESTALE 70
|
||||
#undef TARGET_EREMOTE
|
||||
#define TARGET_EREMOTE 71
|
||||
#undef TARGET_EOVERFLOW
|
||||
#define TARGET_EOVERFLOW 72
|
||||
|
||||
#undef TARGET_EBADE
|
||||
#define TARGET_EBADE 160
|
||||
#undef TARGET_EBADR
|
||||
#define TARGET_EBADR 161
|
||||
#undef TARGET_EXFULL
|
||||
#define TARGET_EXFULL 162
|
||||
#undef TARGET_ENOANO
|
||||
#define TARGET_ENOANO 163
|
||||
#undef TARGET_EBADRQC
|
||||
#define TARGET_EBADRQC 164
|
||||
#undef TARGET_EBADSLT
|
||||
#define TARGET_EBADSLT 165
|
||||
#undef TARGET_EBFONT
|
||||
#define TARGET_EBFONT 166
|
||||
#undef TARGET_ENOTUNIQ
|
||||
#define TARGET_ENOTUNIQ 167
|
||||
#undef TARGET_EBADFD
|
||||
#define TARGET_EBADFD 168
|
||||
#undef TARGET_EREMCHG
|
||||
#define TARGET_EREMCHG 169
|
||||
#undef TARGET_ELIBACC
|
||||
#define TARGET_ELIBACC 170
|
||||
#undef TARGET_ELIBBAD
|
||||
#define TARGET_ELIBBAD 171
|
||||
#undef TARGET_ELIBSCN
|
||||
#define TARGET_ELIBSCN 172
|
||||
#undef TARGET_ELIBMAX
|
||||
#define TARGET_ELIBMAX 173
|
||||
#undef TARGET_ELIBEXEC
|
||||
#define TARGET_ELIBEXEC 174
|
||||
#undef TARGET_ERESTART
|
||||
#define TARGET_ERESTART 175
|
||||
#undef TARGET_ESTRPIPE
|
||||
#define TARGET_ESTRPIPE 176
|
||||
#undef TARGET_EUCLEAN
|
||||
#define TARGET_EUCLEAN 177
|
||||
#undef TARGET_ENOTNAM
|
||||
#define TARGET_ENOTNAM 178
|
||||
#undef TARGET_ENAVAIL
|
||||
#define TARGET_ENAVAIL 179
|
||||
#undef TARGET_EISNAM
|
||||
#define TARGET_EISNAM 180
|
||||
#undef TARGET_EREMOTEIO
|
||||
#define TARGET_EREMOTEIO 181
|
||||
#undef TARGET_ENOMEDIUM
|
||||
#define TARGET_ENOMEDIUM 182
|
||||
#undef TARGET_EMEDIUMTYPE
|
||||
#define TARGET_EMEDIUMTYPE 183
|
||||
#undef TARGET_ENOKEY
|
||||
#define TARGET_ENOKEY 184
|
||||
#undef TARGET_EKEYEXPIRED
|
||||
#define TARGET_EKEYEXPIRED 185
|
||||
#undef TARGET_EKEYREVOKED
|
||||
#define TARGET_EKEYREVOKED 186
|
||||
#undef TARGET_EKEYREJECTED
|
||||
#define TARGET_EKEYREJECTED 187
|
||||
|
||||
/* Never used in linux. */
|
||||
/* #define TARGET_ENOSYM 215 */
|
||||
#undef TARGET_ENOTSOCK
|
||||
#define TARGET_ENOTSOCK 216
|
||||
#undef TARGET_EDESTADDRREQ
|
||||
#define TARGET_EDESTADDRREQ 217
|
||||
#undef TARGET_EMSGSIZE
|
||||
#define TARGET_EMSGSIZE 218
|
||||
#undef TARGET_EPROTOTYPE
|
||||
#define TARGET_EPROTOTYPE 219
|
||||
#undef TARGET_ENOPROTOOPT
|
||||
#define TARGET_ENOPROTOOPT 220
|
||||
#undef TARGET_EPROTONOSUPPORT
|
||||
#define TARGET_EPROTONOSUPPORT 221
|
||||
#undef TARGET_ESOCKTNOSUPPORT
|
||||
#define TARGET_ESOCKTNOSUPPORT 222
|
||||
#undef TARGET_EOPNOTSUPP
|
||||
#define TARGET_EOPNOTSUPP 223
|
||||
#undef TARGET_EPFNOSUPPORT
|
||||
#define TARGET_EPFNOSUPPORT 224
|
||||
#undef TARGET_EAFNOSUPPORT
|
||||
#define TARGET_EAFNOSUPPORT 225
|
||||
#undef TARGET_EADDRINUSE
|
||||
#define TARGET_EADDRINUSE 226
|
||||
#undef TARGET_EADDRNOTAVAIL
|
||||
#define TARGET_EADDRNOTAVAIL 227
|
||||
#undef TARGET_ENETDOWN
|
||||
#define TARGET_ENETDOWN 228
|
||||
#undef TARGET_ENETUNREACH
|
||||
#define TARGET_ENETUNREACH 229
|
||||
#undef TARGET_ENETRESET
|
||||
#define TARGET_ENETRESET 230
|
||||
#undef TARGET_ECONNABORTED
|
||||
#define TARGET_ECONNABORTED 231
|
||||
#undef TARGET_ECONNRESET
|
||||
#define TARGET_ECONNRESET 232
|
||||
#undef TARGET_ENOBUFS
|
||||
#define TARGET_ENOBUFS 233
|
||||
#undef TARGET_EISCONN
|
||||
#define TARGET_EISCONN 234
|
||||
#undef TARGET_ENOTCONN
|
||||
#define TARGET_ENOTCONN 235
|
||||
#undef TARGET_ESHUTDOWN
|
||||
#define TARGET_ESHUTDOWN 236
|
||||
#undef TARGET_ETOOMANYREFS
|
||||
#define TARGET_ETOOMANYREFS 237
|
||||
#undef TARGET_ETIMEDOUT
|
||||
#define TARGET_ETIMEDOUT 238
|
||||
#undef TARGET_ECONNREFUSED
|
||||
#define TARGET_ECONNREFUSED 239
|
||||
#define TARGET_EREMOTERELEASE 240
|
||||
#undef TARGET_EHOSTDOWN
|
||||
#define TARGET_EHOSTDOWN 241
|
||||
#undef TARGET_EHOSTUNREACH
|
||||
#define TARGET_EHOSTUNREACH 242
|
||||
|
||||
#undef TARGET_EALREADY
|
||||
#define TARGET_EALREADY 244
|
||||
#undef TARGET_EINPROGRESS
|
||||
#define TARGET_EINPROGRESS 245
|
||||
#undef TARGET_ENOTEMPTY
|
||||
#define TARGET_ENOTEMPTY 247
|
||||
#undef TARGET_ENAMETOOLONG
|
||||
#define TARGET_ENAMETOOLONG 248
|
||||
#undef TARGET_ELOOP
|
||||
#define TARGET_ELOOP 249
|
||||
#undef TARGET_ENOSYS
|
||||
#define TARGET_ENOSYS 251
|
||||
|
||||
#undef TARGET_ECANCELED
|
||||
#define TARGET_ECANCELED 253
|
||||
|
||||
#undef TARGET_EOWNERDEAD
|
||||
#define TARGET_EOWNERDEAD 254
|
||||
#undef TARGET_ENOTRECOVERABLE
|
||||
#define TARGET_ENOTRECOVERABLE 255
|
||||
|
||||
#undef TARGET_ERFKILL
|
||||
#define TARGET_ERFKILL 256
|
||||
#undef TARGET_EHWPOISON
|
||||
#define TARGET_EHWPOISON 257
|
||||
|
||||
#endif /* HPPA_TARGET_SYSCALL_H */
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
18 i386 oldstat sys_stat
|
||||
19 i386 lseek sys_lseek compat_sys_lseek
|
||||
20 i386 getpid sys_getpid
|
||||
21 i386 mount sys_mount compat_sys_mount
|
||||
21 i386 mount sys_mount
|
||||
22 i386 umount sys_oldumount
|
||||
23 i386 setuid sys_setuid16
|
||||
24 i386 getuid sys_getuid16
|
||||
@@ -142,7 +142,7 @@
|
||||
128 i386 init_module sys_init_module
|
||||
129 i386 delete_module sys_delete_module
|
||||
130 i386 get_kernel_syms
|
||||
131 i386 quotactl sys_quotactl compat_sys_quotactl32
|
||||
131 i386 quotactl sys_quotactl
|
||||
132 i386 getpgid sys_getpgid
|
||||
133 i386 fchdir sys_fchdir
|
||||
134 i386 bdflush sys_bdflush
|
||||
@@ -156,8 +156,8 @@
|
||||
142 i386 _newselect sys_select compat_sys_select
|
||||
143 i386 flock sys_flock
|
||||
144 i386 msync sys_msync
|
||||
145 i386 readv sys_readv compat_sys_readv
|
||||
146 i386 writev sys_writev compat_sys_writev
|
||||
145 i386 readv sys_readv
|
||||
146 i386 writev sys_writev
|
||||
147 i386 getsid sys_getsid
|
||||
148 i386 fdatasync sys_fdatasync
|
||||
149 i386 _sysctl sys_ni_syscall
|
||||
@@ -327,7 +327,7 @@
|
||||
313 i386 splice sys_splice
|
||||
314 i386 sync_file_range sys_ia32_sync_file_range
|
||||
315 i386 tee sys_tee
|
||||
316 i386 vmsplice sys_vmsplice compat_sys_vmsplice
|
||||
316 i386 vmsplice sys_vmsplice
|
||||
317 i386 move_pages sys_move_pages compat_sys_move_pages
|
||||
318 i386 getcpu sys_getcpu
|
||||
319 i386 epoll_pwait sys_epoll_pwait
|
||||
@@ -358,8 +358,8 @@
|
||||
344 i386 syncfs sys_syncfs
|
||||
345 i386 sendmmsg sys_sendmmsg compat_sys_sendmmsg
|
||||
346 i386 setns sys_setns
|
||||
347 i386 process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv
|
||||
348 i386 process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev
|
||||
347 i386 process_vm_readv sys_process_vm_readv
|
||||
348 i386 process_vm_writev sys_process_vm_writev
|
||||
349 i386 kcmp sys_kcmp
|
||||
350 i386 finit_module sys_finit_module
|
||||
351 i386 sched_setattr sys_sched_setattr
|
||||
@@ -444,3 +444,10 @@
|
||||
437 i386 openat2 sys_openat2
|
||||
438 i386 pidfd_getfd sys_pidfd_getfd
|
||||
439 i386 faccessat2 sys_faccessat2
|
||||
440 i386 process_madvise sys_process_madvise
|
||||
441 i386 epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2
|
||||
442 i386 mount_setattr sys_mount_setattr
|
||||
# 443 reserved for quotactl_path
|
||||
444 i386 landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 i386 landlock_add_rule sys_landlock_add_rule
|
||||
446 i386 landlock_restrict_self sys_landlock_restrict_self
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef I386_TARGET_ERRNO_DEFS_H
|
||||
#define I386_TARGET_ERRNO_DEFS_H
|
||||
|
||||
/* Target uses generic errno */
|
||||
#include "../generic/target_errno_defs.h"
|
||||
|
||||
#endif
|
||||
@@ -439,3 +439,10 @@
|
||||
437 common openat2 sys_openat2
|
||||
438 common pidfd_getfd sys_pidfd_getfd
|
||||
439 common faccessat2 sys_faccessat2
|
||||
440 common process_madvise sys_process_madvise
|
||||
441 common epoll_pwait2 sys_epoll_pwait2
|
||||
442 common mount_setattr sys_mount_setattr
|
||||
# 443 reserved for quotactl_path
|
||||
444 common landlock_create_ruleset sys_landlock_create_ruleset
|
||||
445 common landlock_add_rule sys_landlock_add_rule
|
||||
446 common landlock_restrict_self sys_landlock_restrict_self
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user