Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #ifndef _NGX_ERRNO_H_INCLUDED_
0009 #define _NGX_ERRNO_H_INCLUDED_
0010 
0011 
0012 #include <ngx_config.h>
0013 #include <ngx_core.h>
0014 
0015 
0016 typedef int               ngx_err_t;
0017 
0018 #define NGX_EPERM         EPERM
0019 #define NGX_ENOENT        ENOENT
0020 #define NGX_ENOPATH       ENOENT
0021 #define NGX_ESRCH         ESRCH
0022 #define NGX_EINTR         EINTR
0023 #define NGX_ECHILD        ECHILD
0024 #define NGX_ENOMEM        ENOMEM
0025 #define NGX_EACCES        EACCES
0026 #define NGX_EBUSY         EBUSY
0027 #define NGX_EEXIST        EEXIST
0028 #define NGX_EEXIST_FILE   EEXIST
0029 #define NGX_EXDEV         EXDEV
0030 #define NGX_ENOTDIR       ENOTDIR
0031 #define NGX_EISDIR        EISDIR
0032 #define NGX_EINVAL        EINVAL
0033 #define NGX_ENFILE        ENFILE
0034 #define NGX_EMFILE        EMFILE
0035 #define NGX_ENOSPC        ENOSPC
0036 #define NGX_EPIPE         EPIPE
0037 #define NGX_EINPROGRESS   EINPROGRESS
0038 #define NGX_ENOPROTOOPT   ENOPROTOOPT
0039 #define NGX_EOPNOTSUPP    EOPNOTSUPP
0040 #define NGX_EADDRINUSE    EADDRINUSE
0041 #define NGX_ECONNABORTED  ECONNABORTED
0042 #define NGX_ECONNRESET    ECONNRESET
0043 #define NGX_ENOTCONN      ENOTCONN
0044 #define NGX_ETIMEDOUT     ETIMEDOUT
0045 #define NGX_ECONNREFUSED  ECONNREFUSED
0046 #define NGX_ENAMETOOLONG  ENAMETOOLONG
0047 #define NGX_ENETDOWN      ENETDOWN
0048 #define NGX_ENETUNREACH   ENETUNREACH
0049 #define NGX_EHOSTDOWN     EHOSTDOWN
0050 #define NGX_EHOSTUNREACH  EHOSTUNREACH
0051 #define NGX_ENOSYS        ENOSYS
0052 #define NGX_ECANCELED     ECANCELED
0053 #define NGX_EILSEQ        EILSEQ
0054 #define NGX_ENOMOREFILES  0
0055 #define NGX_ELOOP         ELOOP
0056 #define NGX_EBADF         EBADF
0057 
0058 #if (NGX_HAVE_OPENAT)
0059 #define NGX_EMLINK        EMLINK
0060 #endif
0061 
0062 #if (__hpux__)
0063 #define NGX_EAGAIN        EWOULDBLOCK
0064 #else
0065 #define NGX_EAGAIN        EAGAIN
0066 #endif
0067 
0068 
0069 #define ngx_errno                  errno
0070 #define ngx_socket_errno           errno
0071 #define ngx_set_errno(err)         errno = err
0072 #define ngx_set_socket_errno(err)  errno = err
0073 
0074 
0075 u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
0076 ngx_int_t ngx_strerror_init(void);
0077 
0078 
0079 #endif /* _NGX_ERRNO_H_INCLUDED_ */