view xml/ru/docs/sys_errlist.xml @ 2034:7e7edf832099

Added the generated ngx_http_api_module and separate target for it. This avoids unnecessary build steps and dependencies. The separate 'genapi' target is added to regenerate the ngx_http_api_module from yaml source. The generated file is not removed during 'clean' step.
author Vladimir Homutov <vl@nginx.com>
date Fri, 08 Sep 2017 13:58:41 +0300
parents 764fbac1b8b4
children
line wrap: on
line source

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

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

<article name="Сообщение &ldquo;&nbsp;&lsquo;sys_errlist&rsquo;
                is deprecated;
                use &lsquo;strerror&rsquo; or &lsquo;strerror_r&rsquo;
                instead&nbsp;&rdquo;"
         link="/ru/docs/sys_errlist.html"
         lang="ru"
         rev="1">


<section>

<para>
При сборке nginx версий 0.7.66, 0.8.35 и выше на Linux
выводится предупреждение:

<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() не являются Async-Signal-Safe,
и их нельзя использовать в обработчиках сигналов.
</para>

</section>

</article>