Mercurial > hg > nginx
comparison auto/unix @ 7785:c43a2e8fdf7e
Introduced strerrordesc_np() support.
The strerrordesc_np() function, introduced in glibc 2.32, provides an
async-signal-safe way to obtain error messages. This makes it possible
to avoid copying error messages.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 01 Mar 2021 20:00:45 +0300 |
parents | 8cc5b0365ee5 |
children | e2e9e0fae747 |
comparison
equal
deleted
inserted
replaced
7784:8cc5b0365ee5 | 7785:c43a2e8fdf7e |
---|---|
725 n = pwritev(1, vec, 1, 0); | 725 n = pwritev(1, vec, 1, 0); |
726 if (n == -1) return 1" | 726 if (n == -1) return 1" |
727 . auto/feature | 727 . auto/feature |
728 | 728 |
729 | 729 |
730 ngx_feature="sys_nerr" | 730 # strerrordesc_np(), introduced in glibc 2.32 |
731 ngx_feature_name="NGX_SYS_NERR" | 731 |
732 ngx_feature_run=value | 732 ngx_feature="strerrordesc_np()" |
733 ngx_feature_incs='#include <errno.h> | 733 ngx_feature_name="NGX_HAVE_STRERRORDESC_NP" |
734 #include <stdio.h>' | 734 ngx_feature_run=no |
735 ngx_feature_path= | 735 ngx_feature_incs='#include <string.h>' |
736 ngx_feature_libs= | 736 ngx_feature_path= |
737 ngx_feature_test='printf("%d", sys_nerr);' | 737 ngx_feature_libs= |
738 . auto/feature | 738 ngx_feature_test="char *p; p = strerrordesc_np(0); |
739 if (p == NULL) return 1" | |
740 . auto/feature | |
741 | |
742 | |
743 if [ $ngx_found = no ]; then | |
744 | |
745 ngx_feature="sys_nerr" | |
746 ngx_feature_name="NGX_SYS_NERR" | |
747 ngx_feature_run=value | |
748 ngx_feature_incs='#include <errno.h> | |
749 #include <stdio.h>' | |
750 ngx_feature_path= | |
751 ngx_feature_libs= | |
752 ngx_feature_test='printf("%d", sys_nerr);' | |
753 . auto/feature | |
754 fi | |
739 | 755 |
740 | 756 |
741 if [ $ngx_found = no ]; then | 757 if [ $ngx_found = no ]; then |
742 | 758 |
743 # Cygiwn defines _sys_nerr | 759 # Cygiwn defines _sys_nerr |