On Mon, Dec 06, 2010 at 09:32:07PM +0700, Edho P Arief wrote:
> On Mon, Dec 6, 2010 at 9:10 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> > As I understand it uses glibc which has sys_nerr.
> > What does
> > grep -r sys_nerr /usr/include
> > show ?
> >
>
> I tried that yesterday, too. Also I believe it uses Solaris' libc.
>
> Wikipedia:
> > Nexenta OS is the first distribution that combines the OpenSolaris C library and GNU userland with the OpenSolaris kernel.
>
>
> Here's the result:
>
> edho@nexenta:~$ grep -r sys_nerr /usr/include
> /usr/include/errno.h: * The symbols _sys_errlist and _sys_nerr are not
> visible in the
> /usr/include/iso/errno_iso.h: * The symbols _sys_errlist and _sys_nerr
> are not visible in the
> edho@nexenta:~$
>
> edho@nexenta:~$ grep -C 3 -r sys_nerr /usr/include
> /usr/include/errno.h-
> /usr/include/errno.h-#if defined(_LP64)
> /usr/include/errno.h-/*
> /usr/include/errno.h: * The symbols _sys_errlist and _sys_nerr are not
> visible in the
> /usr/include/errno.h- * LP64 libc. Use strerror(3C) instead.
> /usr/include/errno.h- */
> /usr/include/errno.h-#endif /* _LP64 */
> --
> /usr/include/iso/errno_iso.h-
> /usr/include/iso/errno_iso.h-#if defined(_LP64)
> /usr/include/iso/errno_iso.h-/*
> /usr/include/iso/errno_iso.h: * The symbols _sys_errlist and _sys_nerr
> are not visible in the
> /usr/include/iso/errno_iso.h- * LP64 libc. Use strerror(3C) instead.
> /usr/include/iso/errno_iso.h- */
> /usr/include/iso/errno_iso.h-#endif /* _LP64 */
Yes, I've just checked OpenSolaris, it has no sys_nerr.
I will detect maximum errno using EINVAL error from strerror().
--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx