annotate src/os/unix/ngx_errno.h @ 678:981b4c44593b NGINX_1_3_2

nginx 1.3.2 *) Change: the "single" parameter of the "keepalive" directive is now ignored. *) Change: SSL compression is now disabled when using all versions of OpenSSL, including ones prior to 1.0.0. *) Feature: it is now possible to use the "ip_hash" directive to balance IPv6 clients. *) Feature: the $status variable can now be used not only in the "log_format" directive. *) Bugfix: a segmentation fault might occur in a worker process on shutdown if the "resolver" directive was used. *) Bugfix: a segmentation fault might occur in a worker process if the ngx_http_mp4_module was used. *) Bugfix: in the ngx_http_mp4_module. *) Bugfix: a segmentation fault might occur in a worker process if conflicting wildcard server names were used. *) Bugfix: nginx might be terminated abnormally on a SIGBUS signal on ARM platform. *) Bugfix: an alert "sendmsg() failed (9: Bad file number)" on HP-UX while reconfiguration.
author Igor Sysoev <http://sysoev.ru>
date Tue, 26 Jun 2012 00:00:00 +0400
parents 4dcaf40cc702
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
1
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
2 /*
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
3 * Copyright (C) Igor Sysoev
660
d0f7a625f27c nginx 1.1.14
Igor Sysoev <http://sysoev.ru>
parents: 604
diff changeset
4 * Copyright (C) Nginx, Inc.
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
5 */
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
6
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
7
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
8 #ifndef _NGX_ERRNO_H_INCLUDED_
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
9 #define _NGX_ERRNO_H_INCLUDED_
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
10
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
11
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
12 #include <ngx_config.h>
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
13 #include <ngx_core.h>
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
14
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
15
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
16 typedef int ngx_err_t;
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
17
186
54aabf2b0bc6 nginx 0.3.40
Igor Sysoev <http://sysoev.ru>
parents: 182
diff changeset
18 #define NGX_EPERM EPERM
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
19 #define NGX_ENOENT ENOENT
514
43cc6f0b77ce nginx 0.8.9
Igor Sysoev <http://sysoev.ru>
parents: 470
diff changeset
20 #define NGX_ENOPATH ENOENT
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
21 #define NGX_ESRCH ESRCH
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
22 #define NGX_EINTR EINTR
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
23 #define NGX_ECHILD ECHILD
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
24 #define NGX_ENOMEM ENOMEM
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
25 #define NGX_EACCES EACCES
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
26 #define NGX_EBUSY EBUSY
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
27 #define NGX_EEXIST EEXIST
430
dac47e9ef0d5 nginx 0.7.27
Igor Sysoev <http://sysoev.ru>
parents: 364
diff changeset
28 #define NGX_EXDEV EXDEV
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
29 #define NGX_ENOTDIR ENOTDIR
212
56688ed172c8 nginx 0.3.53
Igor Sysoev <http://sysoev.ru>
parents: 186
diff changeset
30 #define NGX_EISDIR EISDIR
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
31 #define NGX_EINVAL EINVAL
674
4dcaf40cc702 nginx 1.3.0
Igor Sysoev <http://sysoev.ru>
parents: 662
diff changeset
32 #define NGX_ENFILE ENFILE
4dcaf40cc702 nginx 1.3.0
Igor Sysoev <http://sysoev.ru>
parents: 662
diff changeset
33 #define NGX_EMFILE EMFILE
182
13710a1813ad nginx 0.3.38
Igor Sysoev <http://sysoev.ru>
parents: 92
diff changeset
34 #define NGX_ENOSPC ENOSPC
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
35 #define NGX_EPIPE EPIPE
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
36 #define NGX_EINPROGRESS EINPROGRESS
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
37 #define NGX_EADDRINUSE EADDRINUSE
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
38 #define NGX_ECONNABORTED ECONNABORTED
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
39 #define NGX_ECONNRESET ECONNRESET
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
40 #define NGX_ENOTCONN ENOTCONN
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
41 #define NGX_ETIMEDOUT ETIMEDOUT
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
42 #define NGX_ECONNREFUSED ECONNREFUSED
92
45945fa8b8ba nginx 0.2.0
Igor Sysoev <http://sysoev.ru>
parents: 66
diff changeset
43 #define NGX_ENAMETOOLONG ENAMETOOLONG
364
a39aab45a53f nginx 0.6.26
Igor Sysoev <http://sysoev.ru>
parents: 212
diff changeset
44 #define NGX_ENETDOWN ENETDOWN
a39aab45a53f nginx 0.6.26
Igor Sysoev <http://sysoev.ru>
parents: 212
diff changeset
45 #define NGX_ENETUNREACH ENETUNREACH
a39aab45a53f nginx 0.6.26
Igor Sysoev <http://sysoev.ru>
parents: 212
diff changeset
46 #define NGX_EHOSTDOWN EHOSTDOWN
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
47 #define NGX_EHOSTUNREACH EHOSTUNREACH
16
74b1868dd3cd nginx 0.1.8
Igor Sysoev <http://sysoev.ru>
parents: 10
diff changeset
48 #define NGX_ENOSYS ENOSYS
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
49 #define NGX_ECANCELED ECANCELED
470
6866b490272e nginx 0.7.47
Igor Sysoev <http://sysoev.ru>
parents: 430
diff changeset
50 #define NGX_EILSEQ EILSEQ
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
51 #define NGX_ENOMOREFILES 0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
52
662
e5fa0a4a7d27 nginx 1.1.15
Igor Sysoev <http://sysoev.ru>
parents: 660
diff changeset
53 #if (NGX_HAVE_OPENAT)
e5fa0a4a7d27 nginx 1.1.15
Igor Sysoev <http://sysoev.ru>
parents: 660
diff changeset
54 #define NGX_EMLINK EMLINK
e5fa0a4a7d27 nginx 1.1.15
Igor Sysoev <http://sysoev.ru>
parents: 660
diff changeset
55 #define NGX_ELOOP ELOOP
e5fa0a4a7d27 nginx 1.1.15
Igor Sysoev <http://sysoev.ru>
parents: 660
diff changeset
56 #endif
e5fa0a4a7d27 nginx 1.1.15
Igor Sysoev <http://sysoev.ru>
parents: 660
diff changeset
57
584
016632f0fb18 nginx 0.8.44
Igor Sysoev <http://sysoev.ru>
parents: 566
diff changeset
58 #if (__hpux__)
016632f0fb18 nginx 0.8.44
Igor Sysoev <http://sysoev.ru>
parents: 566
diff changeset
59 #define NGX_EAGAIN EWOULDBLOCK
016632f0fb18 nginx 0.8.44
Igor Sysoev <http://sysoev.ru>
parents: 566
diff changeset
60 #else
016632f0fb18 nginx 0.8.44
Igor Sysoev <http://sysoev.ru>
parents: 566
diff changeset
61 #define NGX_EAGAIN EAGAIN
016632f0fb18 nginx 0.8.44
Igor Sysoev <http://sysoev.ru>
parents: 566
diff changeset
62 #endif
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
63
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
64
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
65 #define ngx_errno errno
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
66 #define ngx_socket_errno errno
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
67 #define ngx_set_errno(err) errno = err
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
68 #define ngx_set_socket_errno(err) errno = err
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
69
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
70
604
428c6e58046a nginx 0.9.0
Igor Sysoev <http://sysoev.ru>
parents: 584
diff changeset
71 u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
678
981b4c44593b nginx 1.3.2
Igor Sysoev <http://sysoev.ru>
parents: 674
diff changeset
72 ngx_int_t ngx_strerror_init(void);
566
be4f34123024 nginx 0.8.35
Igor Sysoev <http://sysoev.ru>
parents: 514
diff changeset
73
be4f34123024 nginx 0.8.35
Igor Sysoev <http://sysoev.ru>
parents: 514
diff changeset
74
0
f0b350454894 nginx 0.1.0
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
75 #endif /* _NGX_ERRNO_H_INCLUDED_ */