• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2012, The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15 */
16 
17 #ifndef _ERRNO_PORTABLE_H_
18 #define _ERRNO_PORTABLE_H_
19 
20 #include <portability.h>
21 
22 /*
23  * Derived from development/ndk/platforms/android-3/include/asm-generic/errno.h
24  * NOTE:
25  *   Base errno #defines from 1...35 are ARCH independent and not defined;
26  *   they are defined in ./asm-generic/errno-base.h
27  */
28 #define EDEADLK_PORTABLE 35
29 #define ENAMETOOLONG_PORTABLE 36
30 #define ENOLCK_PORTABLE 37
31 #define ENOSYS_PORTABLE 38
32 #define ENOTEMPTY_PORTABLE 39
33 #define ELOOP_PORTABLE 40
34 #define EWOULDBLOCK_PORTABLE 11 /* EAGAIN */
35 #define ENOMSG_PORTABLE 42
36 #define EIDRM_PORTABLE 43
37 #define ECHRNG_PORTABLE 44
38 #define EL2NSYNC_PORTABLE 45
39 #define EL3HLT_PORTABLE 46
40 #define EL3RST_PORTABLE 47
41 #define ELNRNG_PORTABLE 48
42 #define EUNATCH_PORTABLE 49
43 #define ENOCSI_PORTABLE 50
44 #define EL2HLT_PORTABLE 51
45 #define EBADE_PORTABLE 52
46 #define EBADR_PORTABLE 53
47 #define EXFULL_PORTABLE 54
48 #define ENOANO_PORTABLE 55
49 #define EBADRQC_PORTABLE 56
50 #define EBADSLT_PORTABLE 57
51 
52 #define EDEADLOCK_PORTABLE EDEADLK_PORTABLE
53 
54 #define EBFONT_PORTABLE 59
55 #define ENOSTR_PORTABLE 60
56 #define ENODATA_PORTABLE 61
57 #define ETIME_PORTABLE 62
58 #define ENOSR_PORTABLE 63
59 #define ENONET_PORTABLE 64
60 #define ENOPKG_PORTABLE 65
61 #define EREMOTE_PORTABLE 66
62 #define ENOLINK_PORTABLE 67
63 #define EADV_PORTABLE 68
64 #define ESRMNT_PORTABLE 69
65 #define ECOMM_PORTABLE 70
66 #define EPROTO_PORTABLE 71
67 #define EMULTIHOP_PORTABLE 72
68 #define EDOTDOT_PORTABLE 73
69 #define EBADMSG_PORTABLE 74
70 #define EOVERFLOW_PORTABLE 75
71 #define ENOTUNIQ_PORTABLE 76
72 #define EBADFD_PORTABLE 77
73 #define EREMCHG_PORTABLE 78
74 #define ELIBACC_PORTABLE 79
75 #define ELIBBAD_PORTABLE 80
76 #define ELIBSCN_PORTABLE 81
77 #define ELIBMAX_PORTABLE 82
78 #define ELIBEXEC_PORTABLE 83
79 #define EILSEQ_PORTABLE 84
80 #define ERESTART_PORTABLE 85
81 #define ESTRPIPE_PORTABLE 86
82 #define EUSERS_PORTABLE 87
83 #define ENOTSOCK_PORTABLE 88
84 #define EDESTADDRREQ_PORTABLE 89
85 #define EMSGSIZE_PORTABLE 90
86 #define EPROTOTYPE_PORTABLE 91
87 #define ENOPROTOOPT_PORTABLE 92
88 #define EPROTONOSUPPORT_PORTABLE 93
89 #define ESOCKTNOSUPPORT_PORTABLE 94
90 #define EOPNOTSUPP_PORTABLE 95
91 #define EPFNOSUPPORT_PORTABLE 96
92 #define EAFNOSUPPORT_PORTABLE 97
93 #define EADDRINUSE_PORTABLE 98
94 #define EADDRNOTAVAIL_PORTABLE 99
95 #define ENETDOWN_PORTABLE 100
96 #define ENETUNREACH_PORTABLE 101
97 #define ENETRESET_PORTABLE 102
98 #define ECONNABORTED_PORTABLE 103
99 #define ECONNRESET_PORTABLE 104
100 #define ENOBUFS_PORTABLE 105
101 #define EISCONN_PORTABLE 106
102 #define ENOTCONN_PORTABLE 107
103 #define ESHUTDOWN_PORTABLE 108
104 #define ETOOMANYREFS_PORTABLE 109
105 #define ETIMEDOUT_PORTABLE 110
106 #define ECONNREFUSED_PORTABLE 111
107 #define EHOSTDOWN_PORTABLE 112
108 #define EHOSTUNREACH_PORTABLE 113
109 #define EALREADY_PORTABLE 114
110 #define EINPROGRESS_PORTABLE 115
111 #define ESTALE_PORTABLE 116
112 #define EUCLEAN_PORTABLE 117
113 #define ENOTNAM_PORTABLE 118
114 #define ENAVAIL_PORTABLE 119
115 #define EISNAM_PORTABLE 120
116 #define EREMOTEIO_PORTABLE 121
117 #define EDQUOT_PORTABLE 122
118 
119 #define ENOMEDIUM_PORTABLE 123
120 #define EMEDIUMTYPE_PORTABLE 124
121 #define ECANCELED_PORTABLE 125
122 #define ENOKEY_PORTABLE 126
123 #define EKEYEXPIRED_PORTABLE 127
124 #define EKEYREVOKED_PORTABLE 128
125 #define EKEYREJECTED_PORTABLE 129
126 
127 #define EOWNERDEAD_PORTABLE 130
128 #define ENOTRECOVERABLE_PORTABLE 131
129 
130 extern __hidden int errno_ntop(int native_errno);
131 extern __hidden int errno_pton(int native_errno);
132 
133 extern volatile int*   REAL(__errno)(void);
134 
135 #endif /* _ERRNO_PORTABLE_H */
136