54+ results for 'AI_IDN' (0 ms)
Not the results you expected?
gai_strerror.c (git://pkgs.fedoraproject.org/arm-gp2x-linux-glibc) C · 61 lines
support_format_addrinfo.c (https://github.com/hjl-tools/glibc.git) C · 242 lines
0001-apt-1.2.12-Fix-musl-build.patch (https://gitlab.com/actawithamana/poky) Patch · 50 lines
utils.h (https://gitlab.com/atilla/buildroot) C Header · 56 lines
netdb.h (https://gitlab.com/gsauthof/musl) C Header · 156 lines
idna.c (https://github.com/hjl-tools/glibc.git) C · 182 lines
123 case idna_name_nonascii_backslash:
124 case idna_name_encoding_error:
125 return EAI_IDN_ENCODE;
126 case idna_name_memory_error:
127 return EAI_MEMORY;
135 not installed), although the root cause may be a temporary
136 error condition due to resource shortage. */
137 return EAI_IDN_ENCODE;
138 char *ptr = NULL;
139 __typeof__ (functions->lookup_ul) fptr = functions->lookup_ul;
151 return EAI_MEMORY;
152 else
153 return EAI_IDN_ENCODE;
154 }
155 libc_hidden_def (__idna_to_dns_encoding)
0001-Fix-musl-build.patch (https://github.com/openbmc/openbmc.git) Patch · 45 lines
config.m4 (https://github.com/apple-open-source/macos.git) m4 · 93 lines
70 dnl Check for AI_IDN flag
71 AC_CACHE_CHECK([if getaddrinfo supports AI_IDN],[ac_cv_gai_ai_idn],
72 [
73 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
75 ]], [[int flag = AI_IDN;]])],
76 [ac_cv_gai_ai_idn=yes], [ac_cv_gai_ai_idn=no])
77 ])
79 if test "$ac_cv_gai_ai_idn" = yes; then
80 AC_DEFINE(HAVE_AI_IDN,1,[Whether you have AI_IDN])
81 fi
tst-resolv-trailing.c (https://github.com/hjl-tools/glibc.git) C · 136 lines
getaddrinfo.h (https://gitlab.com/HowTheStoryEnds/freebsd11-psm-port) C Header · 95 lines
tst-resolv-ai_idn-nolibidn2.c (https://github.com/hjl-tools/glibc.git) C · 151 lines
19 #define TEST_USE_UTF8 1
20 #include "tst-resolv-ai_idn-common.c"
22 #include <locale.h>
30 check_ai ("non-idn.example", 0,
31 "address: STREAM/TCP 192.0.2.110 80\n");
32 check_ai ("non-idn.example", AI_IDN,
33 "flags: AI_IDN\n"
34 "address: STREAM/TCP 192.0.2.110 80\n");
35 check_ai ("non-idn.example", AI_IDN | AI_CANONNAME | AI_CANONIDN,
36 "flags: AI_CANONNAME AI_IDN AI_CANONIDN\n"
43 "error: Name or service not known\n");
44 /* Due to missing libidn2, this fails inside getaddrinfo. */
45 check_ai (NAEMCHEN ".example", AI_IDN,
46 "error: Parameter string not correctly encoded\n");
47 check_ai (NAEMCHEN ".example", AI_IDN | AI_CANONNAME | AI_CANONIDN,
tst-resolv-ai_idn.c (https://github.com/hjl-tools/glibc.git) C · 54 lines
tst-resolv-ai_idn.c (https://gitlab.com/gbenson/glibc) C · 49 lines
netdb.h (https://github.com/bigboss-ps3dev/PSL1GHT.git) C Header · 90 lines
33 #define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose
34 returned address type.. */
35 #define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded
36 in the current locale's character set)
37 before looking it up. */
38 #define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */
39 #define AI_IDN_ALLOW_UNASSIGNED 0x0100 /* Don't reject unassigned Unicode
40 code points. */
41 #define AI_IDN_USE_STD3_ASCII_RULES 0x0200 /* Validate strings according to
iputils-20180629-musl.patch (https://gitlab.com/argent/portage) Patch · 87 lines
7 Fix build on MUSL
9 Add missing AI_IDN and NI_IDN declarations.
11 Bug: https://bugs.gentoo.org/503914
21 #include <locale.h>
22 +
23 +#ifndef AI_IDN
24 +#define AI_IDN 0x0040
39 #include <idn2.h>
40 +
41 +#ifndef AI_IDN
42 +#define AI_IDN 0x0040
49 +#endif
50 +
51 #define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN)
52 #define getnameinfo_flags NI_IDN
53 #else
gai_strerror.c (git://pkgs.fedoraproject.org/libexplain) C · 102 lines
udp.c (https://github.com/hilbix/misc.git) C · 47 lines
tst-resolv-ai_idn-latin1.c (https://gitlab.com/gbenson/glibc) C · 50 lines
iputils-20070202-idn.patch (https://github.com/1000timesdead/portage.git) Patch · 158 lines
tst-resolv-ai_idn-latin1.c (https://github.com/hjl-tools/glibc.git) C · 55 lines
netdb.lua (git://github.com/chatid/fend.git) Lua · 228 lines
194 AI_ALL = 0x0010 -- Return IPv4 mapped and IPv6 addresses.
195 AI_ADDRCONFIG = 0x0020 -- Use configuration of this host to choose returned address type..
196 AI_IDN = 0x0040 -- IDN encode input (assuming it is encoded in the current locale's character set) before looking it up.
197 AI_CANONIDN = 0x0080 -- Translate canonical name from IDN format.
198 AI_IDN_ALLOW_UNASSIGNED = 0x0100 -- Don't reject unassigned Unicode code points.
199 AI_IDN_USE_STD3_ASCII_RULES = 0x0200 -- Validate strings according to STD3 rules.
200 AI_NUMERICSERV = 0x0400 -- Don't use name resolution.
217 EAI_ALLDONE = -103 -- All requests done.
218 EAI_INTR = -104 -- Interrupted by a signal.
219 EAI_IDN_ENCODE = -105 -- IDN encoding failed.
221 NI_MAXSERV = 32
err.h (http://bugsec.googlecode.com/svn/trunk/) C Header · 59 lines
gai_strerror-strs.h (https://github.com/nitinkamble/x32-glibc.git) C Header · 17 lines
ext-sockets-sockets.c.patch (https://bitbucket.org/electrikyouthh/termux-packages.git) Patch · 12 lines
8 -#ifdef __USE_GNU
9 +#if defined(__USE_GNU) && !defined(__ANDROID__)
10 REGISTER_LONG_CONSTANT("AI_IDN", AI_IDN, CONST_CS | CONST_PERSISTENT);
11 REGISTER_LONG_CONSTANT("AI_CANONIDN", AI_CANONIDN, CONST_CS | CONST_PERSISTENT);
12 REGISTER_LONG_CONSTANT("AI_IDN_ALLOW_UNASSIGNED", AI_IDN_ALLOW_UNASSIGNED, CONST_CS | CONST_PERSISTENT);
netdb.h (https://github.com/vsrinivas/fuchsia.git) C Header · 155 lines
config.m4 (https://github.com/source-comment/php7.git) m4 · 95 lines
72 dnl Check for AI_IDN flag
73 AC_CACHE_CHECK([if getaddrinfo supports AI_IDN],[ac_cv_gai_ai_idn],
74 [
75 AC_TRY_COMPILE([
77 ], [int flag = AI_IDN;],
78 ac_cv_gai_ai_idn=yes, ac_cv_gai_ai_idn=no)
79 ])
81 if test "$ac_cv_gai_ai_idn" = yes; then
82 AC_DEFINE(HAVE_AI_IDN,1,[Whether you have AI_IDN])
83 fi
iputils-20180629-fix-ping-on-musl.patch (https://gitlab.com/argent/portage) Patch · 54 lines
getaddrinfo.h (https://github.com/dscho/msys.git) C Header · 110 lines
0001-include-netdb.h-Do-not-define-IDN-related-flags.patch (https://gitlab.com/hacktown/reflexio-buildroot) Patch · 54 lines
6 getaddrinfo() does not implement IDN encoding, and always fail when
7 provided an IDN flag (e.g., AI_IDN) with EAI_BADFLAGS. Some packages
8 (such as the VLC media player) check for AI_IDN before they use it;
9 providing an unimplemented AI_IDN in the libc makes these package
10 fail. As a result they make calls to getaddrinfo() with AI_IDN that
11 always fail while they could have made successful calls without AI_IDN
12 instead.
30 returned address type.. */
31 -# ifdef __USE_GNU
32 -# define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded
33 - in the current locale's character set)
34 - before looking it up. */
getaddrinfo.h (git://pkgs.fedoraproject.org/tcpreen) C Header · 164 lines
netdb.h (https://github.com/google/asylo.git) C Header · 90 lines
39 #define AI_PASSIVE 0x0040
40 #define AI_NUMERICSERV 0x0080
41 #define AI_IDN 0x0100
42 #define AI_CANONIDN 0x0200
60 #define EAI_ALLDONE -103 // All requests done.
61 #define EAI_INTR -104 // Interrupted by a signal.
62 #define EAI_IDN_ENCODE -105 // IDN encoding failed.
64 // Description of data base entry for a single host.
traceroute-2.0.3-diet.patch (https://github.com/tenchman/TTLinux.git) Patch · 72 lines
addrinfo_flags.c (git://pkgs.fedoraproject.org/libexplain) C · 75 lines
44 #ifdef AI_IDN
45 { "AI_IDN", AI_IDN },
46 #endif
47 #ifdef AI_CANONIDN
50 #ifdef AI_IDN_ALLOW_UNASSIGNED
51 { "AI_IDN_ALLOW_UNASSIGNED", AI_IDN_ALLOW_UNASSIGNED },
52 #endif
53 #ifdef AI_IDN_USE_STD3_ASCII_RULES
54 { "AI_IDN_USE_STD3_ASCII_RULES", AI_IDN_USE_STD3_ASCII_RULES },
55 #endif
56 #ifdef AI_NUMERICSERV
ares.h (https://github.com/gamemaster101gr/libcurl.git) C Header · 190 lines
0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch (https://github.com/teslamotors/buildroot.git) Patch · 57 lines
gnutls-win32.patch (https://github.com/hiranotaka/vlc-arib.git) Patch · 28 lines
7.4.php (https://github.com/wapmorgan/PhpCodeFixer.git) PHP · 30 lines
netdb.h (https://github.com/Microsoft/openenclave.git) C Header · 67 lines
const-c.inc (git://pkgs.fedoraproject.org/dnssec-tools) Pascal · 676 lines
33 #ifdef AI_IDN
34 *iv_return = AI_IDN;
35 return PERL_constant_ISIV;
36 #else
407 /* When generated this function returned values for the list of names given
408 here. However, subsequent manual editing may have added or removed some.
409 AI_NUMERICHOST AI_NUMERICSERV EAI_ADDRFAMILY EAI_IDN_ENCODE EAI_INPROGRESS
410 NI_NUMERICHOST NI_NUMERICSERV */
411 /* Offset 13 gives the best switch position. */
551 my @names = (qw(AI_ADDRCONFIG AI_ALL AI_CANONIDN AI_CANONNAME AI_IDN
552 AI_IDN_ALLOW_UNASSIGNED AI_IDN_USE_STD3_ASCII_RULES
553 AI_NUMERICHOST AI_NUMERICSERV AI_PASSIVE AI_V4MAPPED
554 EAI_ADDRFAMILY EAI_AGAIN EAI_ALLDONE EAI_BADFLAGS EAI_CANCELED
555 EAI_FAIL EAI_FAMILY EAI_IDN_ENCODE EAI_INPROGRESS EAI_INTR
556 EAI_MEMORY EAI_NODATA EAI_NONAME EAI_NOTCANCELED EAI_OVERFLOW
557 EAI_SERVICE EAI_SOCKTYPE EAI_BADHINTS EAI_SYSTEM GAI_NOWAIT GAI_WAIT
tst-resolv-ai_idn-latin1.c (https://github.com/barkovv/glibc.git) C · 50 lines
iputils-20070202-idn.patch (https://github.com/gooselinux/iputils.git) Patch · 130 lines
93 memset(&hints, 0, sizeof(hints));
94 hints.ai_family = AF_INET6;
95 + hints.ai_flags = AI_IDN;
96 gai = getaddrinfo(target, NULL, &hints, &ai);
97 if (gai) {
101 memset(&hints, 0, sizeof(hints));
102 hints.ai_family = AF_INET6;
103 + hints.ai_flags = AI_IDN;
104 gai = getaddrinfo(target, NULL, &hints, &ai);
105 if (gai) {
support_format_addrinfo.c (https://gitlab.com/ultr/glibc) C · 202 lines
tst-resolv-ai_idn.c (https://github.com/barkovv/glibc.git) C · 49 lines
gnutls-win32.patch (https://bitbucket.org/romen/vlc.git) Patch · 32 lines
test.c (https://github.com/buytenh/ivykis.git) C · 202 lines
82 flags &= ~AI_ADDRCONFIG;
83 }
84 if (flags & AI_IDN) {
85 printf(" AI_IDN");
86 flags &= ~AI_IDN;
87 }
88 if (flags & AI_CANONIDN) {
90 flags &= ~AI_CANONIDN;
91 }
92 if (flags & AI_IDN_ALLOW_UNASSIGNED) {
93 printf(" AI_IDN_ALLOW_UNASSIGNED");
94 flags &= ~AI_IDN_ALLOW_UNASSIGNED;
95 }
96 if (flags & AI_IDN_USE_STD3_ASCII_RULES) {
libmail-0.3-1bl4.src.patch (https://github.com/Devjam81/yacp.git) Patch · 34 lines
tst-no-libidn2.c (https://github.com/hjl-tools/glibc.git) C · 2 lines
const-c.inc (https://github.com/gitpan/Net-addrinfo.git) Pascal · 665 lines
33 #ifdef AI_IDN
34 *iv_return = AI_IDN;
35 return PERL_constant_ISIV;
36 #else
396 /* When generated this function returned values for the list of names given
397 here. However, subsequent manual editing may have added or removed some.
398 AI_NUMERICHOST AI_NUMERICSERV EAI_ADDRFAMILY EAI_IDN_ENCODE EAI_INPROGRESS
399 NI_NUMERICHOST NI_NUMERICSERV */
400 /* Offset 13 gives the best switch position. */
540 my @names = (qw(AI_ADDRCONFIG AI_ALL AI_CANONIDN AI_CANONNAME AI_IDN
541 AI_IDN_ALLOW_UNASSIGNED AI_IDN_USE_STD3_ASCII_RULES
542 AI_NUMERICHOST AI_NUMERICSERV AI_PASSIVE AI_V4MAPPED
543 EAI_ADDRFAMILY EAI_AGAIN EAI_ALLDONE EAI_BADFLAGS EAI_CANCELED
544 EAI_FAIL EAI_FAMILY EAI_IDN_ENCODE EAI_INPROGRESS EAI_INTR
545 EAI_MEMORY EAI_NODATA EAI_NONAME EAI_NOTCANCELED EAI_OVERFLOW
546 EAI_SERVICE EAI_SOCKTYPE EAI_SYSTEM GAI_NOWAIT GAI_WAIT