88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
#include <time.h>
/*
* Define EINPROGRESS in terms of WSAEINPROGRESS.
*/
#ifndef EINPROGRESS
# define EINPROGRESS WSAEINPROGRESS
#endif
/*
* If ENOTSUP is not defined, define it to a value that will never occur.
*/
#ifndef ENOTSUP
# define ENOTSUP -1030507
#endif
/*
* Not all mingw32 versions have this struct.
*/
#if !defined(__BORLANDC__) && !defined(_MSC_VER) && !defined(_WIN64) && defined(HAVE_NO_STRUCT_STAT32I64)
struct _stat32i64 {
dev_t st_dev;
|
|
|
<
|
|
|
<
|
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
#include <time.h>
/*
* Define EINPROGRESS in terms of WSAEINPROGRESS.
*/
#undef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
/*
* Define ENOTSUP to a value that will never occur.
*/
#undef ENOTSUP
#define ENOTSUP -1030507
/*
* Not all mingw32 versions have this struct.
*/
#if !defined(__BORLANDC__) && !defined(_MSC_VER) && !defined(_WIN64) && defined(HAVE_NO_STRUCT_STAT32I64)
struct _stat32i64 {
dev_t st_dev;
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
|
long st_atime;
long st_mtime;
long st_ctime;
#endif
};
#endif
/*
* The following defines redefine the Windows Socket errors as
* BSD errors so Tcl_PosixError can do the right thing.
*/
#ifndef EWOULDBLOCK
# define EWOULDBLOCK EAGAIN
#endif
#ifndef EALREADY
# define EALREADY 149 /* operation already in progress */
#endif
#ifndef ENOTSOCK
# define ENOTSOCK 95 /* Socket operation on non-socket */
#endif
#ifndef EDESTADDRREQ
# define EDESTADDRREQ 96 /* Destination address required */
#endif
#ifndef EMSGSIZE
# define EMSGSIZE 97 /* Message too long */
#endif
#ifndef EPROTOTYPE
# define EPROTOTYPE 98 /* Protocol wrong type for socket */
#endif
#ifndef ENOPROTOOPT
# define ENOPROTOOPT 99 /* Protocol not available */
#endif
#ifndef EPROTONOSUPPORT
# define EPROTONOSUPPORT 120 /* Protocol not supported */
#endif
#ifndef ESOCKTNOSUPPORT
# define ESOCKTNOSUPPORT 121 /* Socket type not supported */
#endif
#ifndef EOPNOTSUPP
# define EOPNOTSUPP 122 /* Operation not supported on socket */
#endif
#ifndef EPFNOSUPPORT
# define EPFNOSUPPORT 123 /* Protocol family not supported */
#endif
#ifndef EAFNOSUPPORT
# define EAFNOSUPPORT 124 /* Address family not supported */
#endif
#ifndef EADDRINUSE
# define EADDRINUSE 125 /* Address already in use */
#endif
#ifndef EADDRNOTAVAIL
# define EADDRNOTAVAIL 126 /* Can't assign requested address */
#endif
#ifndef ENETDOWN
# define ENETDOWN 127 /* Network is down */
#endif
#ifndef ENETUNREACH
# define ENETUNREACH 128 /* Network is unreachable */
#endif
#ifndef ENETRESET
# define ENETRESET 129 /* Network dropped connection on reset */
#endif
#ifndef ECONNABORTED
# define ECONNABORTED 130 /* Software caused connection abort */
#endif
#ifndef ECONNRESET
# define ECONNRESET 131 /* Connection reset by peer */
#endif
#ifndef ENOBUFS
# define ENOBUFS 132 /* No buffer space available */
#endif
#ifndef EISCONN
# define EISCONN 133 /* Socket is already connected */
#endif
#ifndef ENOTCONN
# define ENOTCONN 134 /* Socket is not connected */
#endif
#ifndef ESHUTDOWN
# define ESHUTDOWN 143 /* Can't send after socket shutdown */
#endif
#ifndef ETOOMANYREFS
# define ETOOMANYREFS 144 /* Too many references: can't splice */
#endif
#ifndef ETIMEDOUT
# define ETIMEDOUT 145 /* Connection timed out */
#endif
#ifndef ECONNREFUSED
# define ECONNREFUSED 146 /* Connection refused */
#endif
#ifndef ELOOP
# define ELOOP 90 /* Symbolic link loop */
#endif
#ifndef EHOSTDOWN
# define EHOSTDOWN 147 /* Host is down */
#endif
#ifndef EHOSTUNREACH
# define EHOSTUNREACH 148 /* No route to host */
#endif
#ifndef ENOTEMPTY
# define ENOTEMPTY 93 /* directory not empty */
#endif
#ifndef EUSERS
# define EUSERS 94 /* Too many users (for UFS) */
#endif
#ifndef EDQUOT
# define EDQUOT 69 /* Disc quota exceeded */
#endif
#ifndef ESTALE
# define ESTALE 151 /* Stale NFS file handle */
#endif
#ifndef EREMOTE
# define EREMOTE 66 /* The object is remote */
#endif
/*
* It is very hard to determine how Windows reacts to attempting to
* set a file pointer outside the input datatype's representable
* region. So we fake the error code ourselves.
*/
#ifndef EOVERFLOW
# ifdef EFBIG
# define EOVERFLOW EFBIG /* The object couldn't fit in the datatype */
# else /* !EFBIG */
# define EOVERFLOW EINVAL /* Better than nothing! */
# endif /* EFBIG */
#endif /* !EOVERFLOW */
/*
* Signals not known to the standard ANSI signal.h. These are used
* by Tcl_WaitPid() and generic/tclPosixStr.c
*/
#ifndef SIGTRAP
|
>
>
>
>
>
>
>
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
|
<
|
<
|
<
<
<
<
|
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
long st_atime;
long st_mtime;
long st_ctime;
#endif
};
#endif
/* Those codes, from Visual Studio 2010, conflict with other values */
#undef ENODATA
#undef ENOMSG
#undef ENOSR
#undef ENOSTR
#undef EPROTO
/*
* The following defines redefine the Windows Socket errors as
* BSD errors so Tcl_PosixError can do the right thing.
*/
#undef EWOULDBLOCK
#define EWOULDBLOCK EAGAIN
#undef EALREADY
#define EALREADY 149 /* operation already in progress */
#undef ENOTSOCK
#define ENOTSOCK 95 /* Socket operation on non-socket */
#undef EDESTADDRREQ
#define EDESTADDRREQ 96 /* Destination address required */
#undef EMSGSIZE
#define EMSGSIZE 97 /* Message too long */
#undef EPROTOTYPE
#define EPROTOTYPE 98 /* Protocol wrong type for socket */
#undef ENOPROTOOPT
#define ENOPROTOOPT 99 /* Protocol not available */
#undef EPROTONOSUPPORT
#define EPROTONOSUPPORT 120 /* Protocol not supported */
#undef ESOCKTNOSUPPORT
#define ESOCKTNOSUPPORT 121 /* Socket type not supported */
#undef EOPNOTSUPP
#define EOPNOTSUPP 122 /* Operation not supported on socket */
#undef EPFNOSUPPORT
#define EPFNOSUPPORT 123 /* Protocol family not supported */
#undef EAFNOSUPPORT
#define EAFNOSUPPORT 124 /* Address family not supported */
#undef EADDRINUSE
#define EADDRINUSE 125 /* Address already in use */
#undef EADDRNOTAVAIL
#define EADDRNOTAVAIL 126 /* Can't assign requested address */
#undef ENETDOWN
#define ENETDOWN 127 /* Network is down */
#undef ENETUNREACH
#define ENETUNREACH 128 /* Network is unreachable */
#undef ENETRESET
#define ENETRESET 129 /* Network dropped connection on reset */
#undef ECONNABORTED
#define ECONNABORTED 130 /* Software caused connection abort */
#undef ECONNRESET
#define ECONNRESET 131 /* Connection reset by peer */
#undef ENOBUFS
#define ENOBUFS 132 /* No buffer space available */
#undef EISCONN
#define EISCONN 133 /* Socket is already connected */
#undef ENOTCONN
#define ENOTCONN 134 /* Socket is not connected */
#undef ESHUTDOWN
#define ESHUTDOWN 143 /* Can't send after socket shutdown */
#undef ETOOMANYREFS
#define ETOOMANYREFS 144 /* Too many references: can't splice */
#undef ETIMEDOUT
#define ETIMEDOUT 145 /* Connection timed out */
#undef ECONNREFUSED
#define ECONNREFUSED 146 /* Connection refused */
#undef ELOOP
#define ELOOP 90 /* Symbolic link loop */
#undef EHOSTDOWN
#define EHOSTDOWN 147 /* Host is down */
#undef EHOSTUNREACH
#define EHOSTUNREACH 148 /* No route to host */
#undef ENOTEMPTY
#define ENOTEMPTY 93 /* directory not empty */
#undef EUSERS
#define EUSERS 94 /* Too many users (for UFS) */
#undef EDQUOT
#define EDQUOT 69 /* Disc quota exceeded */
#undef ESTALE
#define ESTALE 151 /* Stale NFS file handle */
#undef EREMOTE
#define EREMOTE 66 /* The object is remote */
/*
* It is very hard to determine how Windows reacts to attempting to
* set a file pointer outside the input datatype's representable
* region. So we fake the error code ourselves.
*/
#undef EOVERFLOW
#define EOVERFLOW EFBIG /* The object couldn't fit in the datatype */
/*
* Signals not known to the standard ANSI signal.h. These are used
* by Tcl_WaitPid() and generic/tclPosixStr.c
*/
#ifndef SIGTRAP
|