Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nginx
GitHub Repository: nginx/nginx.org
Path: blob/main/xml/cn/docs/sys_errlist.xml
1 views
1
<!--
2
Copyright (C) Igor Sysoev
3
Copyright (C) Nginx, Inc.
4
-->
5
6
<!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
7
8
<article name="关于“&lsquo;sys_errlist&rsquo; is deprecated; use &lsquo;strerror&rsquo; or &lsquo;strerror_r&rsquo; instead”的提示"
9
link="/cn/docs/sys_errlist.html"
10
lang="cn"
11
rev="1">
12
13
14
<section>
15
16
<para>
17
在Linux环境下编译nginx 0.7.66、0.8.35或更高版本时,会出现以下警告:
18
19
<programlisting>
20
warning: `sys_errlist' is deprecated;
21
use `strerror' or `strerror_r' instead
22
warning: `sys_nerr' is deprecated;
23
use `strerror' or `strerror_r' instead
24
</programlisting>
25
26
这属于正常情况:nginx必须在信号处理函数中使用过时的sys_errlist[]和sys_nerr,因为strerror()和strerror_r()是非异步信号安全的。
27
</para>
28
29
</section>
30
31
</article>
32
33