su
1.13.18
Toggle main menu visibility
Loading...
Searching...
No Matches
su_errno.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Sofia-SIP package
3
*
4
* Copyright (C) 2005 Nokia Corporation.
5
*
6
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public License
10
* as published by the Free Software Foundation; either version 2.1 of
11
* the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
* 02110-1301 USA
22
*
23
*/
24
25
#ifndef SU_ERRNO_H
27
#define SU_ERRNO_H
28
38
39
#ifndef SU_CONFIG_H
40
#include "
sofia-sip/su_config.h
"
41
#endif
42
43
#include <errno.h>
44
45
SOFIA_BEGIN_DECLS
46
48
SOFIAPUBFUN
char
const
*
su_strerror
(
int
e);
49
51
SOFIAPUBFUN
int
su_errno
(
void
);
52
54
SOFIAPUBFUN
int
su_seterrno
(
int
);
55
56
#if defined(__APPLE_CC__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
57
#ifndef EBADMSG
58
#define EBADMSG EFAULT
59
#endif
60
#ifndef EPROTO
61
#define EPROTO EPROTOTYPE
62
#endif
63
#ifndef EBADMSG
64
#define EBADMSG EFAULT
65
#endif
66
#endif
67
68
#if defined(_WIN32)
69
/* VS 2010 defines these for POSIX but we cant have that */
70
#if (_MSC_VER > 1500)
71
#undef EWOULDBLOCK
72
#undef EINPROGRESS
73
#undef EALREADY
74
#undef ENOTSOCK
75
#undef EDESTADDRREQ
76
#undef EMSGSIZE
77
#undef EPROTOTYPE
78
#undef ENOPROTOOPT
79
#undef EPROTONOSUPPORT
80
#undef ESOCKTNOSUPPORT
81
#undef EOPNOTSUPP
82
#undef EPFNOSUPPORT
83
#undef EAFNOSUPPORT
84
#undef EADDRINUSE
85
#undef EADDRNOTAVAIL
86
#undef ENETDOWN
87
#undef ENETUNREACH
88
#undef ENETRESET
89
#undef ECONNABORTED
90
#undef ECONNRESET
91
#undef ENOBUFS
92
#undef EISCONN
93
#undef ENOTCONN
94
#undef ESHUTDOWN
95
#undef ETOOMANYREFS
96
#undef ETIMEDOUT
97
#undef ECONNREFUSED
98
#undef ELOOP
99
#undef EHOSTDOWN
100
#undef EHOSTUNREACH
101
#undef EPROCLIM
102
#undef EUSERS
103
#undef EDQUOT
104
#undef ESTALE
105
#undef EREMOTE
106
#undef EBADMSG
107
#undef EPROTO
108
#endif
109
110
#ifndef EWOULDBLOCK
111
#define EWOULDBLOCK (10035)
/* WSAEWOULDBLOCK */
112
#endif
113
114
#ifndef EINPROGRESS
115
#define EINPROGRESS (10036)
/* WSAEINPROGRESS */
116
#endif
117
118
#ifndef EALREADY
119
#define EALREADY (10037)
/* WSAEALREADY */
120
#endif
121
122
#ifndef ENOTSOCK
123
#define ENOTSOCK (10038)
/* WSAENOTSOCK */
124
#endif
125
126
#ifndef EDESTADDRREQ
127
#define EDESTADDRREQ (10039)
/* WSAEDESTADDRREQ */
128
#endif
129
130
#ifndef EMSGSIZE
131
#define EMSGSIZE (10040)
/* WSAEMSGSIZE */
132
#endif
133
134
#ifndef EPROTOTYPE
135
#define EPROTOTYPE (10041)
/* WSAEPROTOTYPE */
136
#endif
137
138
#ifndef ENOPROTOOPT
139
#define ENOPROTOOPT (10042)
/* WSAENOPROTOOPT */
140
#endif
141
142
#ifndef EPROTONOSUPPORT
143
#define EPROTONOSUPPORT (10043)
/* WSAEPROTONOSUPPORT */
144
#endif
145
146
#ifndef ESOCKTNOSUPPORT
147
#define ESOCKTNOSUPPORT (10044)
/* WSAESOCKTNOSUPPORT */
148
#endif
149
150
#ifndef EOPNOTSUPP
151
#define EOPNOTSUPP (10045)
/* WSAEOPNOTSUPP */
152
#endif
153
154
#ifndef EPFNOSUPPORT
155
#define EPFNOSUPPORT (10046)
/* WSAEPFNOSUPPORT */
156
#endif
157
158
#ifndef EAFNOSUPPORT
159
#define EAFNOSUPPORT (10047)
/* WSAEAFNOSUPPORT */
160
#endif
161
162
#ifndef EADDRINUSE
163
#define EADDRINUSE (10048)
/* WSAEADDRINUSE */
164
#endif
165
166
#ifndef EADDRNOTAVAIL
167
#define EADDRNOTAVAIL (10049)
/* WSAEADDRNOTAVAIL */
168
#endif
169
170
#ifndef ENETDOWN
171
#define ENETDOWN (10050)
/* WSAENETDOWN */
172
#endif
173
174
#ifndef ENETUNREACH
175
#define ENETUNREACH (10051)
/* WSAENETUNREACH */
176
#endif
177
178
#ifndef ENETRESET
179
#define ENETRESET (10052)
/* WSAENETRESET */
180
#endif
181
182
#ifndef ECONNABORTED
183
#define ECONNABORTED (10053)
/* WSAECONNABORTED */
184
#endif
185
186
#ifndef ECONNRESET
187
#define ECONNRESET (10054)
/* WSAECONNRESET */
188
#endif
189
190
#ifndef ENOBUFS
191
#define ENOBUFS (10055)
/* WSAENOBUFS */
192
#endif
193
194
#ifndef EISCONN
195
#define EISCONN (10056)
/* WSAEISCONN */
196
#endif
197
198
#ifndef ENOTCONN
199
#define ENOTCONN (10057)
/* WSAENOTCONN */
200
#endif
201
202
#ifndef ESHUTDOWN
203
#define ESHUTDOWN (10058)
/* WSAESHUTDOWN */
204
#endif
205
206
#ifndef ETOOMANYREFS
207
#define ETOOMANYREFS (10059)
/* WSAETOOMANYREFS */
208
#endif
209
210
#ifndef ETIMEDOUT
211
#define ETIMEDOUT (10060)
/* WSAETIMEDOUT */
212
#endif
213
214
#ifndef ECONNREFUSED
215
#define ECONNREFUSED (10061)
/* WSAECONNREFUSED */
216
#endif
217
218
#ifndef ELOOP
219
#define ELOOP (10062)
/* WSAELOOP */
220
#endif
221
222
#ifndef ENAMETOOLONG
223
#define ENAMETOOLONG (10063)
/* WSAENAMETOOLONG */
224
#endif
225
226
#ifndef EHOSTDOWN
227
#define EHOSTDOWN (10064)
/* WSAEHOSTDOWN */
228
#endif
229
230
#ifndef EHOSTUNREACH
231
#define EHOSTUNREACH (10065)
/* WSAEHOSTUNREACH */
232
#endif
233
234
#ifndef ENOTEMPTY
235
#define ENOTEMPTY (10066)
/* WSAENOTEMPTY */
236
#endif
237
238
#ifndef EPROCLIM
239
#define EPROCLIM (10067)
/* WSAEPROCLIM */
240
#endif
241
242
#ifndef EUSERS
243
#define EUSERS (10068)
/* WSAEUSERS */
244
#endif
245
246
#ifndef EDQUOT
247
#define EDQUOT (10069)
/* WSAEDQUOT */
248
#endif
249
250
#ifndef ESTALE
251
#define ESTALE (10070)
/* WSAESTALE */
252
#endif
253
254
#ifndef EREMOTE
255
#define EREMOTE (10071)
/* WSAEREMOTE */
256
#endif
257
258
#ifndef EBADMSG
259
# if defined(WSABADMSG)
260
# define EBADMSG (WSAEBADMSG)
261
# else
262
# define EBADMSG (20005)
263
# endif
264
#endif
265
266
#ifndef EPROTO
267
# if defined(WSAEPROTO)
268
# define EPROTO WSAEPROTO
269
# else
270
# define EPROTO (20006)
271
# endif
272
#endif
273
274
#endif
275
276
SOFIA_END_DECLS
277
278
#endif
su_config.h
su library configuration
SOFIAPUBFUN
#define SOFIAPUBFUN
SOFIAPUBFUN declares an exported function.
Definition
su_config.h:66
su_seterrno
int su_seterrno(int)
Set the su error.
Definition
su_errno.c:161
su_errno
int su_errno(void)
The latest su error.
Definition
su_errno.c:160
su_strerror
char const * su_strerror(int e)
Return string describing su error code.
Definition
su_errno.c:155
Sofia-SIP 1.13.18 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.