view xml/en/docs/sys_errlist.xml @ 173:6b81a1950ecb

Improved on "try_files" documentation: - documented that "root" and "alias" affect the path being checked; - provided an example of using a URI as the last argument; - documented that last argument can point to a named location.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 07 Nov 2011 08:46:15 +0000
parents 7db449e89e92
children 19c060caf965
line wrap: on
line source

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

<article name="A message &ldquo;&nbsp;&lsquo;sys_errlist&rsquo;
                is deprecated;
                use &lsquo;strerror&rsquo; or &lsquo;strerror_r&rsquo;
                instead&nbsp;&rdquo;"
         link="/en/docs/sys_errlist.html"
         lang="en">


<section>

<para>
While building nginx version 0.7.66, 0.8.35 or higher on Linux
the following warning messages are issued:

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

This is normal: nginx has to use the deprecated sys_errlist[] and sys_nerr
in signal handlers because strerror() and strerror_r() functions
are not Async-Signal-Safe.
</para>

</section>

</article>