view xml/cn/docs/sys_errlist.xml @ 2635:bf8e98fe085f

Linux packages: use $releasever_major in SLES repository instructions. On SLES service packs, $releasever holds a major number (e.g. 12), a dot and a minor number of a service pack (e.g. 5). Since we don't ship packages per-SP for that distribution, but rather the lowest common, we should point our users accordingly.
author Konstantin Pavlov <thresh@nginx.com>
date Tue, 08 Dec 2020 14:07:49 +0300
parents 9934338f83af
children
line wrap: on
line source

<!--
  Copyright (C) Igor Sysoev
  Copyright (C) Nginx, Inc.
  -->

<!DOCTYPE article SYSTEM "../../../dtd/article.dtd">

<article name="关于“&lsquo;sys_errlist&rsquo; is deprecated; use &lsquo;strerror&rsquo; or &lsquo;strerror_r&rsquo; instead”的提示"
         link="/cn/docs/sys_errlist.html"
         lang="cn"
         rev="1">


<section>

<para>
在Linux环境下编译nginx 0.7.66、0.8.35或更高版本时,会出现以下警告:

<programlisting>
warning: `sys_errlist' is deprecated;
    use `strerror' or `strerror_r' instead
warning: `sys_nerr' is deprecated;
    use `strerror' or `strerror_r' instead
</programlisting>

这属于正常情况:nginx必须在信号处理函数中使用过时的sys_errlist[]和sys_nerr,因为strerror()和strerror_r()是非异步信号安全的。
</para>

</section>

</article>