diff options
| author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2018-01-19 03:56:14 -0500 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-01-23 07:51:37 -0500 |
| commit | 28b8f954003e59dbf0b56be6df0d81f83e64f36b (patch) | |
| tree | 33dc7ae96350a0140b8bda1720d27fc55da2ae44 /tools/include/uapi | |
| parent | 95f28190aa012b18eab14799b905b6db3cf31529 (diff) | |
tools include asm-generic: Grab errno.h and errno-base.h
This is a pre-req to generate an architecture specific mapping of errno
numbers to their names. This errno mapping can be used by perf trace to
support cross-architecture trace reports and to get rid of the
audit-libs dependency.
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: linux-s390@vger.kernel.org
LPU-Reference: 1516352177-11106-3-git-send-email-brueckner@linux.vnet.ibm.com
Link: https://lkml.kernel.org/n/tip-q13ystrw4sjz4wyvd3654cnm@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include/uapi')
| -rw-r--r-- | tools/include/uapi/asm-generic/errno-base.h | 40 | ||||
| -rw-r--r-- | tools/include/uapi/asm-generic/errno.h | 123 |
2 files changed, 163 insertions, 0 deletions
diff --git a/tools/include/uapi/asm-generic/errno-base.h b/tools/include/uapi/asm-generic/errno-base.h new file mode 100644 index 000000000000..9653140bff92 --- /dev/null +++ b/tools/include/uapi/asm-generic/errno-base.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 2 | #ifndef _ASM_GENERIC_ERRNO_BASE_H | ||
| 3 | #define _ASM_GENERIC_ERRNO_BASE_H | ||
| 4 | |||
| 5 | #define EPERM 1 /* Operation not permitted */ | ||
| 6 | #define ENOENT 2 /* No such file or directory */ | ||
| 7 | #define ESRCH 3 /* No such process */ | ||
| 8 | #define EINTR 4 /* Interrupted system call */ | ||
| 9 | #define EIO 5 /* I/O error */ | ||
| 10 | #define ENXIO 6 /* No such device or address */ | ||
| 11 | #define E2BIG 7 /* Argument list too long */ | ||
| 12 | #define ENOEXEC 8 /* Exec format error */ | ||
| 13 | #define EBADF 9 /* Bad file number */ | ||
| 14 | #define ECHILD 10 /* No child processes */ | ||
| 15 | #define EAGAIN 11 /* Try again */ | ||
| 16 | #define ENOMEM 12 /* Out of memory */ | ||
| 17 | #define EACCES 13 /* Permission denied */ | ||
| 18 | #define EFAULT 14 /* Bad address */ | ||
| 19 | #define ENOTBLK 15 /* Block device required */ | ||
| 20 | #define EBUSY 16 /* Device or resource busy */ | ||
| 21 | #define EEXIST 17 /* File exists */ | ||
| 22 | #define EXDEV 18 /* Cross-device link */ | ||
| 23 | #define ENODEV 19 /* No such device */ | ||
| 24 | #define ENOTDIR 20 /* Not a directory */ | ||
| 25 | #define EISDIR 21 /* Is a directory */ | ||
| 26 | #define EINVAL 22 /* Invalid argument */ | ||
| 27 | #define ENFILE 23 /* File table overflow */ | ||
| 28 | #define EMFILE 24 /* Too many open files */ | ||
| 29 | #define ENOTTY 25 /* Not a typewriter */ | ||
| 30 | #define ETXTBSY 26 /* Text file busy */ | ||
| 31 | #define EFBIG 27 /* File too large */ | ||
| 32 | #define ENOSPC 28 /* No space left on device */ | ||
| 33 | #define ESPIPE 29 /* Illegal seek */ | ||
| 34 | #define EROFS 30 /* Read-only file system */ | ||
| 35 | #define EMLINK 31 /* Too many links */ | ||
| 36 | #define EPIPE 32 /* Broken pipe */ | ||
| 37 | #define EDOM 33 /* Math argument out of domain of func */ | ||
| 38 | #define ERANGE 34 /* Math result not representable */ | ||
| 39 | |||
| 40 | #endif | ||
diff --git a/tools/include/uapi/asm-generic/errno.h b/tools/include/uapi/asm-generic/errno.h new file mode 100644 index 000000000000..cf9c51ac49f9 --- /dev/null +++ b/tools/include/uapi/asm-generic/errno.h | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 2 | #ifndef _ASM_GENERIC_ERRNO_H | ||
| 3 | #define _ASM_GENERIC_ERRNO_H | ||
| 4 | |||
| 5 | #include <asm-generic/errno-base.h> | ||
| 6 | |||
| 7 | #define EDEADLK 35 /* Resource deadlock would occur */ | ||
| 8 | #define ENAMETOOLONG 36 /* File name too long */ | ||
| 9 | #define ENOLCK 37 /* No record locks available */ | ||
| 10 | |||
| 11 | /* | ||
| 12 | * This error code is special: arch syscall entry code will return | ||
| 13 | * -ENOSYS if users try to call a syscall that doesn't exist. To keep | ||
| 14 | * failures of syscalls that really do exist distinguishable from | ||
| 15 | * failures due to attempts to use a nonexistent syscall, syscall | ||
| 16 | * implementations should refrain from returning -ENOSYS. | ||
| 17 | */ | ||
| 18 | #define ENOSYS 38 /* Invalid system call number */ | ||
| 19 | |||
| 20 | #define ENOTEMPTY 39 /* Directory not empty */ | ||
| 21 | #define ELOOP 40 /* Too many symbolic links encountered */ | ||
| 22 | #define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
| 23 | #define ENOMSG 42 /* No message of desired type */ | ||
| 24 | #define EIDRM 43 /* Identifier removed */ | ||
| 25 | #define ECHRNG 44 /* Channel number out of range */ | ||
| 26 | #define EL2NSYNC 45 /* Level 2 not synchronized */ | ||
| 27 | #define EL3HLT 46 /* Level 3 halted */ | ||
| 28 | #define EL3RST 47 /* Level 3 reset */ | ||
| 29 | #define ELNRNG 48 /* Link number out of range */ | ||
| 30 | #define EUNATCH 49 /* Protocol driver not attached */ | ||
| 31 | #define ENOCSI 50 /* No CSI structure available */ | ||
| 32 | #define EL2HLT 51 /* Level 2 halted */ | ||
| 33 | #define EBADE 52 /* Invalid exchange */ | ||
| 34 | #define EBADR 53 /* Invalid request descriptor */ | ||
| 35 | #define EXFULL 54 /* Exchange full */ | ||
| 36 | #define ENOANO 55 /* No anode */ | ||
| 37 | #define EBADRQC 56 /* Invalid request code */ | ||
| 38 | #define EBADSLT 57 /* Invalid slot */ | ||
| 39 | |||
| 40 | #define EDEADLOCK EDEADLK | ||
| 41 | |||
| 42 | #define EBFONT 59 /* Bad font file format */ | ||
| 43 | #define ENOSTR 60 /* Device not a stream */ | ||
| 44 | #define ENODATA 61 /* No data available */ | ||
| 45 | #define ETIME 62 /* Timer expired */ | ||
| 46 | #define ENOSR 63 /* Out of streams resources */ | ||
| 47 | #define ENONET 64 /* Machine is not on the network */ | ||
| 48 | #define ENOPKG 65 /* Package not installed */ | ||
| 49 | #define EREMOTE 66 /* Object is remote */ | ||
| 50 | #define ENOLINK 67 /* Link has been severed */ | ||
| 51 | #define EADV 68 /* Advertise error */ | ||
| 52 | #define ESRMNT 69 /* Srmount error */ | ||
| 53 | #define ECOMM 70 /* Communication error on send */ | ||
| 54 | #define EPROTO 71 /* Protocol error */ | ||
| 55 | #define EMULTIHOP 72 /* Multihop attempted */ | ||
| 56 | #define EDOTDOT 73 /* RFS specific error */ | ||
| 57 | #define EBADMSG 74 /* Not a data message */ | ||
| 58 | #define EOVERFLOW 75 /* Value too large for defined data type */ | ||
| 59 | #define ENOTUNIQ 76 /* Name not unique on network */ | ||
| 60 | #define EBADFD 77 /* File descriptor in bad state */ | ||
| 61 | #define EREMCHG 78 /* Remote address changed */ | ||
| 62 | #define ELIBACC 79 /* Can not access a needed shared library */ | ||
| 63 | #define ELIBBAD 80 /* Accessing a corrupted shared library */ | ||
| 64 | #define ELIBSCN 81 /* .lib section in a.out corrupted */ | ||
| 65 | #define ELIBMAX 82 /* Attempting to link in too many shared libraries */ | ||
| 66 | #define ELIBEXEC 83 /* Cannot exec a shared library directly */ | ||
| 67 | #define EILSEQ 84 /* Illegal byte sequence */ | ||
| 68 | #define ERESTART 85 /* Interrupted system call should be restarted */ | ||
| 69 | #define ESTRPIPE 86 /* Streams pipe error */ | ||
| 70 | #define EUSERS 87 /* Too many users */ | ||
| 71 | #define ENOTSOCK 88 /* Socket operation on non-socket */ | ||
| 72 | #define EDESTADDRREQ 89 /* Destination address required */ | ||
| 73 | #define EMSGSIZE 90 /* Message too long */ | ||
| 74 | #define EPROTOTYPE 91 /* Protocol wrong type for socket */ | ||
| 75 | #define ENOPROTOOPT 92 /* Protocol not available */ | ||
| 76 | #define EPROTONOSUPPORT 93 /* Protocol not supported */ | ||
| 77 | #define ESOCKTNOSUPPORT 94 /* Socket type not supported */ | ||
| 78 | #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ | ||
| 79 | #define EPFNOSUPPORT 96 /* Protocol family not supported */ | ||
| 80 | #define EAFNOSUPPORT 97 /* Address family not supported by protocol */ | ||
| 81 | #define EADDRINUSE 98 /* Address already in use */ | ||
| 82 | #define EADDRNOTAVAIL 99 /* Cannot assign requested address */ | ||
| 83 | #define ENETDOWN 100 /* Network is down */ | ||
| 84 | #define ENETUNREACH 101 /* Network is unreachable */ | ||
| 85 | #define ENETRESET 102 /* Network dropped connection because of reset */ | ||
| 86 | #define ECONNABORTED 103 /* Software caused connection abort */ | ||
| 87 | #define ECONNRESET 104 /* Connection reset by peer */ | ||
| 88 | #define ENOBUFS 105 /* No buffer space available */ | ||
| 89 | #define EISCONN 106 /* Transport endpoint is already connected */ | ||
| 90 | #define ENOTCONN 107 /* Transport endpoint is not connected */ | ||
| 91 | #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ | ||
| 92 | #define ETOOMANYREFS 109 /* Too many references: cannot splice */ | ||
| 93 | #define ETIMEDOUT 110 /* Connection timed out */ | ||
| 94 | #define ECONNREFUSED 111 /* Connection refused */ | ||
| 95 | #define EHOSTDOWN 112 /* Host is down */ | ||
| 96 | #define EHOSTUNREACH 113 /* No route to host */ | ||
| 97 | #define EALREADY 114 /* Operation already in progress */ | ||
| 98 | #define EINPROGRESS 115 /* Operation now in progress */ | ||
| 99 | #define ESTALE 116 /* Stale file handle */ | ||
| 100 | #define EUCLEAN 117 /* Structure needs cleaning */ | ||
| 101 | #define ENOTNAM 118 /* Not a XENIX named type file */ | ||
| 102 | #define ENAVAIL 119 /* No XENIX semaphores available */ | ||
| 103 | #define EISNAM 120 /* Is a named type file */ | ||
| 104 | #define EREMOTEIO 121 /* Remote I/O error */ | ||
| 105 | #define EDQUOT 122 /* Quota exceeded */ | ||
| 106 | |||
| 107 | #define ENOMEDIUM 123 /* No medium found */ | ||
| 108 | #define EMEDIUMTYPE 124 /* Wrong medium type */ | ||
| 109 | #define ECANCELED 125 /* Operation Canceled */ | ||
| 110 | #define ENOKEY 126 /* Required key not available */ | ||
| 111 | #define EKEYEXPIRED 127 /* Key has expired */ | ||
| 112 | #define EKEYREVOKED 128 /* Key has been revoked */ | ||
| 113 | #define EKEYREJECTED 129 /* Key was rejected by service */ | ||
| 114 | |||
| 115 | /* for robust mutexes */ | ||
| 116 | #define EOWNERDEAD 130 /* Owner died */ | ||
| 117 | #define ENOTRECOVERABLE 131 /* State not recoverable */ | ||
| 118 | |||
| 119 | #define ERFKILL 132 /* Operation not possible due to RF-kill */ | ||
| 120 | |||
| 121 | #define EHWPOISON 133 /* Memory page has hardware error */ | ||
| 122 | |||
| 123 | #endif | ||
