SimpleLink CC3120/CC3220 Host Driver
Version 2.0.1.15
Simplifies the implementation of Internet connectivity
Main Page
Modules
Data Structures
Files
File List
errno.h
1
/*
2
* Copyright (C) 2016 Texas Instruments Incorporated
3
*
4
* All rights reserved. Property of Texas Instruments Incorporated.
5
* Restricted rights to use, duplicate or disclose this code are
6
* granted through contract.
7
*
8
* The program may not be used without the written permission of
9
* Texas Instruments Incorporated or against the terms and conditions
10
* stipulated in the agreement under which this program has been supplied,
11
* and under no circumstances can it be used with non-TI connectivity device.
12
*
13
*/
14
15
#ifndef ERRNO_H_
16
#define ERRNO_H_
17
18
#include <ti/drivers/net/wifi/simplelink.h>
19
20
/* BSD API error codes */
21
#ifndef ERROR
22
#define ERROR SL_ERROR_BSD_SOC_ERROR
23
#endif
24
#ifndef INEXE
25
#define INEXE SL_ERROR_BSD_INEXE
26
#endif
27
#ifndef EBADF
28
#define EBADF SL_ERROR_BSD_EBADF
29
#endif
30
#ifndef EBADE
31
#define EBADE (52L)
/* Invalid exchange */
32
#endif
33
#ifndef ENSOCK
34
#define ENSOCK SL_ERROR_BSD_ENSOCK
35
#endif
36
#ifndef EAGAIN
37
#define EAGAIN SL_ERROR_BSD_EAGAIN
38
#ifdef EWOULDBLOCK
39
#undef EWOULDBLOCK
40
#endif
41
#define EWOULDBLOCK EAGAIN
42
#else
43
#ifdef EWOULDBLOCK
44
#undef EWOULDBLOCK
45
#endif
46
#define EWOULDBLOCK EAGAIN
47
#endif
48
#ifndef ENOMEM
49
#define ENOMEM SL_ERROR_BSD_ENOMEM
50
#endif
51
#ifndef EACCES
52
#define EACCES SL_ERROR_BSD_EACCES
53
#endif
54
#ifndef EFAULT
55
#define EFAULT SL_ERROR_BSD_EFAULT
56
#endif
57
#ifndef EINVAL
58
#define EINVAL SL_ERROR_BSD_EINVAL
59
#endif
60
#ifndef EDESTADDRREQ
61
#define EDESTADDRREQ SL_ERROR_BSD_EDESTADDRREQ
62
#endif
63
#ifndef EPROTOTYPE
64
#define EPROTOTYPE SL_ERROR_BSD_EPROTOTYPE
65
#endif
66
#ifndef ENOPROTOOPT
67
#define ENOPROTOOPT SL_ERROR_BSD_ENOPROTOOPT
68
#endif
69
#ifndef EPROTONOSUPPORT
70
#define EPROTONOSUPPORT SL_ERROR_BSD_EPROTONOSUPPORT
71
#endif
72
#ifndef ESOCKTNOSUPPORT
73
#define ESOCKTNOSUPPORT SL_ERROR_BSD_ESOCKTNOSUPPORT
74
#endif
75
#ifndef EOPNOTSUPP
76
#define EOPNOTSUPP SL_ERROR_BSD_EOPNOTSUPP
77
#endif
78
#ifndef EAFNOSUPPORT
79
#define EAFNOSUPPORT SL_ERROR_BSD_EAFNOSUPPORT
80
#endif
81
#ifndef EADDRINUSE
82
#define EADDRINUSE SL_ERROR_BSD_EADDRINUSE
83
#endif
84
#ifndef EADDRNOTAVAIL
85
#define EADDRNOTAVAIL SL_ERROR_BSD_EADDRNOTAVAIL
86
#endif
87
#ifndef ENETUNREACH
88
#define ENETUNREACH SL_ERROR_BSD_ENETUNREACH
89
#endif
90
#ifndef ENOBUFS
91
#define ENOBUFS SL_ERROR_BSD_ENOBUFS
92
#ifdef EOBUFF
93
#undef EOBUFF
94
#endif
95
#define EOBUFF ENOBUFS
96
#else
97
#ifdef EOBUFF
98
#undef EOBUFF
99
#endif
100
#define EOBUFF ENOBUFS
101
#endif
102
#ifndef EISCONN
103
#define EISCONN SL_ERROR_BSD_EISCONN
104
#endif
105
#ifndef ENOTCONN
106
#define ENOTCONN SL_ERROR_BSD_ENOTCONN
107
#endif
108
#ifndef ETIMEDOUT
109
#define ETIMEDOUT SL_ERROR_BSD_ETIMEDOUT
110
#endif
111
#ifndef ECONNREFUSED
112
#define ECONNREFUSED SL_ERROR_BSD_ECONNREFUSED
113
#endif
114
115
116
#ifdef SL_INC_INTERNAL_ERRNO
117
int
* __errno(
void
);
118
#else
119
extern
int
slcb_SetErrno(
int
Errno);
120
#endif
121
122
123
#endif
/* ERRNO_H_ */
source
ti
drivers
net
wifi
sys
errno.h
Generated by
1.8.10