Subversion Repositories HelenOS

Rev

Rev 4700 | Rev 4726 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4700 Rev 4704
Line 38... Line 38...
38
#ifndef __NET_SOCKET_ERR_H__
38
#ifndef __NET_SOCKET_ERR_H__
39
#define __NET_SOCKET_ERR_H__
39
#define __NET_SOCKET_ERR_H__
40
 
40
 
41
#include <errno.h>
41
#include <errno.h>
42
 
42
 
-
 
43
/** @name Socket error codes definitions
-
 
44
 */
-
 
45
/*@{*/
-
 
46
 
43
////#define EINTR           (-10004)
47
////#define EINTR           (-10004)
44
////#define EBADF           (-10009)
48
////#define EBADF           (-10009)
45
//#define EACCES            (-10013)
49
//#define EACCES            (-10013)
46
//#define EFAULT            (-10014)
50
//#define EFAULT            (-10014)
47
////#define EINVAL          (-10022)
51
////#define EINVAL          (-10022)
48
////#define EMFILE          (-10024)
52
////#define EMFILE          (-10024)
49
//#define EWOULDBLOCK       (-10035)
53
//#define EWOULDBLOCK       (-10035)
50
/** If any API function is called while a blocking function is in progress.
54
/* If any API function is called while a blocking function is in progress.
51
 */
55
 */
52
//#define EINPROGRESS       (-10036)
56
//#define EINPROGRESS       (-10036)
53
//#define EALREADY      (-10037)
57
//#define EALREADY      (-10037)
-
 
58
 
-
 
59
/** The socket identifier is not valid.
-
 
60
 */
54
#define ENOTSOCK        (-10038)
61
#define ENOTSOCK        (-10038)
55
//#define EDESTADDRREQ  (-10039)
62
//#define EDESTADDRREQ  (-10039)
56
//#define EMSGSIZE      (-10040)
63
//#define EMSGSIZE      (-10040)
57
//#define EPROTOTYPE        (-10041)
64
//#define EPROTOTYPE        (-10041)
58
//#define ENOPROTOOPT       (-10042)
65
//#define ENOPROTOOPT       (-10042)
-
 
66
 
-
 
67
/** Protocol is not supported.
-
 
68
 */
59
#define EPROTONOSUPPORT (-10043)
69
#define EPROTONOSUPPORT (-10043)
-
 
70
 
-
 
71
/** Socket type is not supported.
-
 
72
 */
60
#define ESOCKTNOSUPPORT (-10044)
73
#define ESOCKTNOSUPPORT (-10044)
61
//#define EOPNOTSUPP        (-10045)
74
//#define EOPNOTSUPP        (-10045)
-
 
75
 
-
 
76
/** Protocol family is not supported.
-
 
77
 */
62
#define EPFNOSUPPORT    (-10046)
78
#define EPFNOSUPPORT    (-10046)
-
 
79
 
-
 
80
/** Address family is not supported.
-
 
81
 */
63
#define EAFNOSUPPORT    (-10047)
82
#define EAFNOSUPPORT    (-10047)
-
 
83
 
-
 
84
/** Address is already in use.
-
 
85
 */
64
#define EADDRINUSE      (-10048)
86
#define EADDRINUSE      (-10048)
65
//#define EADDRNOTAVAIL (-10049)
87
//#define EADDRNOTAVAIL (-10049)
66
/** May be reported at any time if the implementation detects an underlying failure.
88
/* May be reported at any time if the implementation detects an underlying failure.
67
 */
89
 */
68
//#define ENETDOWN      (-10050)
90
//#define ENETDOWN      (-10050)
69
//#define ENETUNREACH       (-10051)
91
//#define ENETUNREACH       (-10051)
70
//#define ENETRESET     (-10052)
92
//#define ENETRESET     (-10052)
71
//#define ECONNABORTED  (-10053)
93
//#define ECONNABORTED  (-10053)
72
//#define ECONNRESET        (-10054)
94
//#define ECONNRESET        (-10054)
73
//#define ENOBUFS           (-10055)
95
//#define ENOBUFS           (-10055)
74
//#define EISCONN           (-10056)
96
//#define EISCONN           (-10056)
-
 
97
 
-
 
98
/** The socket is not connected or bound.
-
 
99
 */
75
#define ENOTCONN        (-10057)
100
#define ENOTCONN        (-10057)
76
//#define ESHUTDOWN     (-10058)
101
//#define ESHUTDOWN     (-10058)
77
//#define ETOOMANYREFS  (-10059)
102
//#define ETOOMANYREFS  (-10059)
78
//#define ETIMEDOUT     (-10060)
103
//#define ETIMEDOUT     (-10060)
79
//#define ECONNREFUSED  (-10061)
104
//#define ECONNREFUSED  (-10061)
Line 82... Line 107...
82
//#define EHOSTDOWN     (-10064)
107
//#define EHOSTDOWN     (-10064)
83
//#define EHOSTUNREACH  (-10065)
108
//#define EHOSTUNREACH  (-10065)
84
//#define HOST_NOT_FOUND    (-11001)
109
//#define HOST_NOT_FOUND    (-11001)
85
//#define TRY_AGAIN     (-11002)
110
//#define TRY_AGAIN     (-11002)
86
//#define NO_RECOVERY       (-11003)
111
//#define NO_RECOVERY       (-11003)
-
 
112
/** No data.
-
 
113
 */
87
#define NO_DATA         (-11004)
114
#define NO_DATA         (-11004)
88
 
115
 
-
 
116
/*@}*/
-
 
117
 
89
#endif
118
#endif
90
 
119
 
91
/** @}
120
/** @}
92
 */
121
 */