The official NGINX Open Source repository.
Go to file
Maxim Dounin 71eb19da43 Improved maximum errno detection.
Previously, systems without sys_nerr (or _sys_nerr) were handled with an
assumption that errors start at 0 and continuous.  This is, however, not
something POSIX requires, and not true on some platforms.

Notably, on Linux, where sys_nerr is no longer available for newly linked
binaries starting with glibc 2.32, there are gaps in error list, which
used to stop us from properly detecting maximum errno.  Further, on
GNU/Hurd errors start at 0x40000001.

With this change, maximum errno detection is moved to the runtime code,
now able to ignore gaps, and also detects the first error if needed.
This fixes observed "Unknown error" messages as seen on Linux with
glibc 2.32 and on GNU/Hurd.
2021-03-01 20:00:43 +03:00
auto Improved maximum errno detection. 2021-03-01 20:00:43 +03:00
conf MIME: added font/woff2 type (ticket #1243). 2018-06-15 17:29:55 +03:00
contrib Contrib: vim syntax, default highlighting (ticket #2141). 2021-02-25 23:42:25 +03:00
docs nginx-1.19.7-RELEASE 2021-02-16 18:57:18 +03:00
misc Updated OpenSSL used for win32 builds. 2020-12-15 16:49:24 +03:00
src Improved maximum errno detection. 2021-03-01 20:00:43 +03:00
.hgtags release-1.19.7 tag 2021-02-16 18:57:18 +03:00