2002-08-07 00:39:45 +08:00
|
|
|
#ifndef _NGX_ERRNO_H_INCLUDED_
|
|
|
|
#define _NGX_ERRNO_H_INCLUDED_
|
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
|
|
|
|
typedef DWORD ngx_err_t;
|
|
|
|
|
2002-09-02 22:48:24 +08:00
|
|
|
#define ngx_errno GetLastError()
|
|
|
|
#define ngx_socket_errno WSAGetLastError()
|
|
|
|
#define ngx_set_socket_errno(err) WSASetLastError(err)
|
2002-08-07 00:39:45 +08:00
|
|
|
|
|
|
|
#define NGX_ENOENT ERROR_FILE_NOT_FOUND
|
2003-01-15 15:02:27 +08:00
|
|
|
#define NGX_EACCES ERROR_ACCESS_DENIED
|
2003-04-12 00:01:14 +08:00
|
|
|
#define NGX_EEXIST ERROR_FILE_EXISTS
|
|
|
|
#define NGX_ENOTDIR ERROR_PATH_NOT_FOUND
|
2002-08-07 00:39:45 +08:00
|
|
|
#define NGX_EAGAIN WSAEWOULDBLOCK
|
2002-12-03 00:09:40 +08:00
|
|
|
#define NGX_EINPROGRESS WSAEINPROGRESS
|
2002-08-20 22:48:28 +08:00
|
|
|
#define NGX_EADDRINUSE WSAEADDRINUSE
|
2003-03-12 04:38:13 +08:00
|
|
|
#define NGX_ECONNRESET ECONNRESET
|
2002-09-02 22:48:24 +08:00
|
|
|
#define NGX_ETIMEDOUT WSAETIMEDOUT
|
2002-08-07 00:39:45 +08:00
|
|
|
|
|
|
|
int ngx_strerror_r(ngx_err_t err, char *errstr, size_t size);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _NGX_ERRNO_H_INCLUDED_ */
|