Mercurial > hg > nginx
comparison src/os/win32/ngx_errno.c @ 3787:e294f37401c0
use copied strerror() messages and autoconfigured sys_nerr value
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Nov 2010 11:04:03 +0000 |
parents | e70ac6e13f31 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
3786:8a8eb335313d | 3787:e294f37401c0 |
---|---|
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 | 9 |
10 | 10 |
11 u_char * | 11 u_char * |
12 ngx_strerror_r(ngx_err_t err, u_char *errstr, size_t size) | 12 ngx_strerror(ngx_err_t err, u_char *errstr, size_t size) |
13 { | 13 { |
14 u_int len; | 14 u_int len; |
15 static u_long lang = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US); | 15 static u_long lang = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US); |
16 | 16 |
17 if (size == 0) { | 17 if (size == 0) { |
48 --len; | 48 --len; |
49 } | 49 } |
50 | 50 |
51 return &errstr[++len]; | 51 return &errstr[++len]; |
52 } | 52 } |
53 | |
54 | |
55 ngx_uint_t | |
56 ngx_strerror_init(void) | |
57 { | |
58 return NGX_OK; | |
59 } |