ansi/errno: move errno.h to abi-bits
This commit is contained in:
parent
974aff8530
commit
c0a1c4e411
139
abis/linux/x86_64/errno.h
Normal file
139
abis/linux/x86_64/errno.h
Normal file
|
@ -0,0 +1,139 @@
|
|||
#ifndef _ABIBITS_ERRNO_H
|
||||
#define _ABIBITS_ERRNO_H
|
||||
|
||||
#define EPERM 1
|
||||
#define ENOENT 2
|
||||
#define ESRCH 3
|
||||
#define EINTR 4
|
||||
#define EIO 5
|
||||
#define ENXIO 6
|
||||
#define E2BIG 7
|
||||
#define ENOEXEC 8
|
||||
#define EBADF 9
|
||||
#define ECHILD 10
|
||||
#define EAGAIN 11
|
||||
#define ENOMEM 12
|
||||
#define EACCES 13
|
||||
#define EFAULT 14
|
||||
#define ENOTBLK 15
|
||||
#define EBUSY 16
|
||||
#define EEXIST 17
|
||||
#define EXDEV 18
|
||||
#define ENODEV 19
|
||||
#define ENOTDIR 20
|
||||
#define EISDIR 21
|
||||
#define EINVAL 22
|
||||
#define ENFILE 23
|
||||
#define EMFILE 24
|
||||
#define ENOTTY 25
|
||||
#define ETXTBSY 26
|
||||
#define EFBIG 27
|
||||
#define ENOSPC 28
|
||||
#define ESPIPE 29
|
||||
#define EROFS 30
|
||||
#define EMLINK 31
|
||||
#define EPIPE 32
|
||||
#define EDOM 33
|
||||
#define ERANGE 34
|
||||
#define EDEADLK 35
|
||||
#define ENAMETOOLONG 36
|
||||
#define ENOLCK 37
|
||||
#define ENOSYS 38
|
||||
#define ENOTEMPTY 39
|
||||
#define ELOOP 40
|
||||
#define EWOULDBLOCK EAGAIN
|
||||
#define ENOMSG 42
|
||||
#define EIDRM 43
|
||||
#define ECHRNG 44
|
||||
#define EL2NSYNC 45
|
||||
#define EL3HLT 46
|
||||
#define EL3RST 47
|
||||
#define ELNRNG 48
|
||||
#define EUNATCH 49
|
||||
#define ENOCSI 50
|
||||
#define EL2HLT 51
|
||||
#define EBADE 52
|
||||
#define EBADR 53
|
||||
#define EXFULL 54
|
||||
#define ENOANO 55
|
||||
#define EBADRQC 56
|
||||
#define EBADSLT 57
|
||||
#define EDEADLOCK EDEADLK
|
||||
#define EBFONT 59
|
||||
#define ENOSTR 60
|
||||
#define ENODATA 61
|
||||
#define ETIME 62
|
||||
#define ENOSR 63
|
||||
#define ENONET 64
|
||||
#define ENOPKG 65
|
||||
#define EREMOTE 66
|
||||
#define ENOLINK 67
|
||||
#define EADV 68
|
||||
#define ESRMNT 69
|
||||
#define ECOMM 70
|
||||
#define EPROTO 71
|
||||
#define EMULTIHOP 72
|
||||
#define EDOTDOT 73
|
||||
#define EBADMSG 74
|
||||
#define EOVERFLOW 75
|
||||
#define ENOTUNIQ 76
|
||||
#define EBADFD 77
|
||||
#define EREMCHG 78
|
||||
#define ELIBACC 79
|
||||
#define ELIBBAD 80
|
||||
#define ELIBSCN 81
|
||||
#define ELIBMAX 82
|
||||
#define ELIBEXEC 83
|
||||
#define EILSEQ 84
|
||||
#define ERESTART 85
|
||||
#define ESTRPIPE 86
|
||||
#define EUSERS 87
|
||||
#define ENOTSOCK 88
|
||||
#define EDESTADDRREQ 89
|
||||
#define EMSGSIZE 90
|
||||
#define EPROTOTYPE 91
|
||||
#define ENOPROTOOPT 92
|
||||
#define EPROTONOSUPPORT 93
|
||||
#define ESOCKTNOSUPPORT 94
|
||||
#define EOPNOTSUPP 95
|
||||
#define ENOTSUP EOPNOTSUPP
|
||||
#define EPFNOSUPPORT 96
|
||||
#define EAFNOSUPPORT 97
|
||||
#define EADDRINUSE 98
|
||||
#define EADDRNOTAVAIL 99
|
||||
#define ENETDOWN 100
|
||||
#define ENETUNREACH 101
|
||||
#define ENETRESET 102
|
||||
#define ECONNABORTED 103
|
||||
#define ECONNRESET 104
|
||||
#define ENOBUFS 105
|
||||
#define EISCONN 106
|
||||
#define ENOTCONN 107
|
||||
#define ESHUTDOWN 108
|
||||
#define ETOOMANYREFS 109
|
||||
#define ETIMEDOUT 110
|
||||
#define ECONNREFUSED 111
|
||||
#define EHOSTDOWN 112
|
||||
#define EHOSTUNREACH 113
|
||||
#define EALREADY 114
|
||||
#define EINPROGRESS 115
|
||||
#define ESTALE 116
|
||||
#define EUCLEAN 117
|
||||
#define ENOTNAM 118
|
||||
#define ENAVAIL 119
|
||||
#define EISNAM 120
|
||||
#define EREMOTEIO 121
|
||||
#define EDQUOT 122
|
||||
#define ENOMEDIUM 123
|
||||
#define EMEDIUMTYPE 124
|
||||
#define ECANCELED 125
|
||||
#define ENOKEY 126
|
||||
#define EKEYEXPIRED 127
|
||||
#define EKEYREVOKED 128
|
||||
#define EKEYREJECTED 129
|
||||
#define EOWNERDEAD 130
|
||||
#define ENOTRECOVERABLE 131
|
||||
#define ERFKILL 132
|
||||
#define EHWPOISON 133
|
||||
|
||||
#endif // _ABIBITS_ERRNO_H
|
|
@ -1,6 +1,9 @@
|
|||
#ifndef _ABIBITS_ERRNO_H
|
||||
#define _ABIBITS_ERRNO_H
|
||||
|
||||
#ifndef MLIBC_POSIX_ERRNO_H
|
||||
#define MLIBC_POSIX_ERRNO_H
|
||||
#define EDOM 1
|
||||
#define EILSEQ 2
|
||||
#define ERANGE 3
|
||||
|
||||
#define E2BIG 1001
|
||||
#define EACCES 1002
|
||||
|
@ -79,6 +82,4 @@
|
|||
#define ENODATA 1076
|
||||
#define ETIME 1077
|
||||
#define ENOKEY 1078
|
||||
|
||||
#endif // MLIBC_POSIX_ERRNO_H
|
||||
|
||||
#endif // _ABIBITS_ERRNO_H
|
|
@ -2,10 +2,7 @@
|
|||
#define _ERRNO_H
|
||||
|
||||
#include <bits/feature.h>
|
||||
|
||||
#define EDOM 1
|
||||
#define EILSEQ 2
|
||||
#define ERANGE 3
|
||||
#include <abi-bits/errno.h>
|
||||
|
||||
// Some programs define their own errno as an "extern int" if it is not a macro.
|
||||
#define errno __mlibc_errno
|
||||
|
@ -16,8 +13,4 @@ extern __thread int __mlibc_errno;
|
|||
extern char *program_invocation_name;
|
||||
extern char *program_invocation_short_name;
|
||||
|
||||
#if __MLIBC_POSIX_OPTION
|
||||
# include <bits/posix/posix_errno.h>
|
||||
#endif
|
||||
|
||||
#endif // _ERRNO_H
|
||||
|
|
|
@ -124,7 +124,6 @@ if not no_headers
|
|||
'include/bits/posix/nl_item.h',
|
||||
'include/bits/posix/off_t.h',
|
||||
'include/bits/posix/pid_t.h',
|
||||
'include/bits/posix/posix_errno.h',
|
||||
'include/bits/posix/posix_signal.h',
|
||||
'include/bits/posix/posix_stdio.h',
|
||||
'include/bits/posix/posix_stdlib.h',
|
||||
|
|
1
sysdeps/linux/include/abi-bits/errno.h
Symbolic link
1
sysdeps/linux/include/abi-bits/errno.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../abis/linux/x86_64/errno.h
|
|
@ -13,6 +13,7 @@ if not no_headers
|
|||
'include/abi-bits/auxv.h',
|
||||
'include/abi-bits/seek-whence.h',
|
||||
'include/abi-bits/vm-flags.h',
|
||||
'include/abi-bits/errno.h',
|
||||
subdir: 'abi-bits'
|
||||
)
|
||||
endif
|
||||
|
|
1
sysdeps/managarm/include/abi-bits/errno.h
Symbolic link
1
sysdeps/managarm/include/abi-bits/errno.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../abis/mlibc/errno.h
|
|
@ -58,6 +58,7 @@ if not no_headers
|
|||
'include/abi-bits/auxv.h',
|
||||
'include/abi-bits/seek-whence.h',
|
||||
'include/abi-bits/vm-flags.h',
|
||||
'include/abi-bits/errno.h',
|
||||
subdir: 'abi-bits'
|
||||
)
|
||||
endif
|
||||
|
|
1
sysdeps/qword/include/abi-bits/errno.h
Symbolic link
1
sysdeps/qword/include/abi-bits/errno.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../abis/mlibc/errno.h
|
|
@ -16,6 +16,7 @@ if not no_headers
|
|||
'include/abi-bits/auxv.h',
|
||||
'include/abi-bits/seek-whence.h',
|
||||
'include/abi-bits/vm-flags.h',
|
||||
'include/abi-bits/errno.h',
|
||||
subdir: 'abi-bits'
|
||||
)
|
||||
install_headers(
|
||||
|
|
1
sysdeps/sigma/include/abi-bits/errno.h
Symbolic link
1
sysdeps/sigma/include/abi-bits/errno.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../abis/mlibc/errno.h
|
|
@ -24,6 +24,7 @@ if not no_headers
|
|||
'include/abi-bits/abi.h',
|
||||
'include/abi-bits/auxv.h',
|
||||
'include/abi-bits/vm-flags.h',
|
||||
'include/abi-bits/errno.h',
|
||||
subdir: 'abi-bits'
|
||||
)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue