view xml/en/docs/sys_errlist.xml @ 1878:127ae107e5a9

Removed clause about shared memory and Windows versions with ASLR. Starting with nginx 1.9.0 shared memory can be used on Windows versions with address space layout randomization.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 26 Dec 2016 19:38:06 +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="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"
         rev="1">


<section>

<para>
<initial>Q:</initial>
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>

</para>

<para>
<initial>A:</initial>
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>