78+ results for 'AI_IDN' (1053 ms)
156# define EAI_INTR -104 /* Interrupted by a signal. */ 157# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 158# endifvlc_network.h https://gitlab.com/evilbinary/vlc | C Header | 348 lines
197#endif 198#ifndef AI_IDN 199# define AI_IDN 0 /* GNU/libc extension */ares.h https://github.com/szakats/bzflag_mirror.git | C Header | 291 lines
142/* Reserved for future use */ 143#define ARES_AI_IDN (1 << 10) 144#define ARES_AI_IDN_ALLOW_UNASSIGNED (1 << 11) 144#define ARES_AI_IDN_ALLOW_UNASSIGNED (1 << 11) 145#define ARES_AI_IDN_USE_STD3_ASCII_RULES (1 << 12) 146#define ARES_AI_CANONIDN (1 << 13)gai_strerror.c git://pkgs.fedoraproject.org/arm-gp2x-linux-glibc | C | 61 lines
46 { EAI_INTR, N_("Interrupted by a signal") }, 47 { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") } 48 };getaddrinfo.h https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C Header | 155 lines
106# define EAI_INTR -104 /* Interrupted by a signal. */ 107# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 108# endifio.c https://gitlab.com/evilbinary/vlc | C | 411 lines
111 .ai_protocol = protocol, 112 .ai_flags = AI_PASSIVE | AI_NUMERICSERV | AI_IDN, 113 }, *res;gai_strerror.c https://gitlab.com/wilfred/guile | C | 92 lines
74 { EAI_INTR, N_("Interrupted by a signal") }, 75 { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") } 76#endifsupport_format_addrinfo.c https://gitlab.com/gbenson/glibc | C | 242 lines
67 FLAG (AI_ADDRCONFIG); 68 FLAG (AI_IDN); 69 FLAG (AI_CANONIDN);0001-apt-1.2.12-Fix-musl-build.patch https://gitlab.com/actawithamana/poky | Patch | 50 lines
8 9methods/connect.cc: Musl doesn't support AI_IDN flag in netdb.h 10header so define it manually. 41 #include <netdb.h> 42+#ifndef AI_IDN 43+#define AI_IDN 0x0040netdb.in.h https://github.com/hpc/Parallel-coreutils.git | C Header | 185 lines
134# define EAI_INTR -104 /* Interrupted by a signal. */ 135# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 136# endifMakefile https://github.com/hjl-tools/glibc.git | Makefile | 210 lines
66tests += \ 67 tst-resolv-ai_idn \ 68 tst-resolv-ai_idn-latin1 \ 68 tst-resolv-ai_idn-latin1 \ 69 tst-resolv-ai_idn-nolibidn2 \ 70 tst-resolv-canonname \ 79 80# Used by tst-resolv-ai_idn-nolibidn2 to disable libidn2 (by not 81# providing any functions in libidn2.so.0). 174$(objpfx)tst-bug18665: $(objpfx)libresolv.so $(shared-thread-library) 175$(objpfx)tst-resolv-ai_idn: \ 176 $(libdl) $(objpfx)libresolv.so $(shared-thread-library) 176 $(libdl) $(objpfx)libresolv.so $(shared-thread-library) 177$(objpfx)tst-resolv-ai_idn-latin1: \ 178 $(libdl) $(objpfx)libresolv.so $(shared-thread-library)addrinfo.c git://pkgs.fedoraproject.org/ndisc6 | C | 237 lines
38 39#ifndef AI_IDN 40# define AI_IDN 0 183 184 int val, family = AF_UNSPEC, aflags = AI_IDN, nflags = NI_NUMERICHOST; 185 bool single = true;utils.h https://gitlab.com/cronmod-dev/buildroot | C Header | 56 lines
18 19#ifndef AI_IDN 20# define AI_IDN 0tcp.c https://github.com/mstorsjo/vlc.git | C | 296 lines
169 .ai_protocol = IPPROTO_TCP, 170 .ai_flags = AI_IDN, 171 };netdb.h https://gitlab.com/gsauthof/musl | C Header | 156 lines
145#define EAI_INTR -104 146#define EAI_IDN_ENCODE -105 147#define NI_MAXHOST 255idna.c https://github.com/hjl-tools/glibc.git | C | 182 lines
124 case idna_name_encoding_error: 125 return EAI_IDN_ENCODE; 126 case idna_name_memory_error: 136 error condition due to resource shortage. */ 137 return EAI_IDN_ENCODE; 138 char *ptr = NULL; 152 else 153 return EAI_IDN_ENCODE; 154} 179 else 180 return EAI_IDN_ENCODE; 181}tst-resolv-trailing.c https://github.com/hjl-tools/glibc.git | C | 136 lines
111 AI_NUMERICHOST, 112 AI_IDN, 113 AI_IDN | AI_NUMERICHOST,getaddrinfo.h https://gitlab.com/HowTheStoryEnds/freebsd11-psm-port | C Header | 95 lines
70# define EAI_INTR -104 /* Interrupted by a signal. */ 71# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 72# endiftst-resolv-ai_idn.c https://github.com/hjl-tools/glibc.git | C | 54 lines
1/* Test getaddrinfo and getnameinfo with AI_IDN, NI_IDN (UTF-8). 2 Copyright (C) 2018-2020 Free Software Foundation, Inc. 19#define TEST_USE_UTF8 1 20#include "tst-resolv-ai_idn-common.c" 21tst-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" 21 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" 44 /* Due to missing libidn2, this fails inside getaddrinfo. */ 45 check_ai (NAEMCHEN ".example", AI_IDN, 46 "error: Parameter string not correctly encoded\n"); 46 "error: Parameter string not correctly encoded\n"); 47 check_ai (NAEMCHEN ".example", AI_IDN | AI_CANONNAME | AI_CANONIDN, 48 "error: Parameter string not correctly encoded\n");io.c https://github.com/mstorsjo/vlc.git | C | 445 lines
120 .ai_protocol = proto, 121 .ai_flags = AI_NUMERICSERV | AI_IDN, 122 }, *res; 215 .ai_protocol = protocol, 216 .ai_flags = AI_PASSIVE | AI_NUMERICSERV | AI_IDN, 217 }, *res;ares.lua git://github.com/malkia/ufo.git | Lua | 245 lines
78 ARES_AI_ADDRCONFIG (1 << 6) 79 ARES_AI_IDN (1 << 10) 80 ARES_AI_IDN_ALLOW_UNASSIGNED (1 << 11) 80 ARES_AI_IDN_ALLOW_UNASSIGNED (1 << 11) 81 ARES_AI_IDN_USE_STD3_ASCII_RULES (1 << 12) 82 ARES_AI_CANONIDN (1 << 13)tst-resolv-ai_idn.c https://gitlab.com/gbenson/glibc | C | 49 lines
1/* Test getaddrinfo and getnameinfo with AI_IDN, NI_IDN (UTF-8). 2 Copyright (C) 2018 Free Software Foundation, Inc. 19#define TEST_USE_UTF8 1 20#include "tst-resolv-ai_idn-common.c" 21getaddrinfo.h https://github.com/joelimome/aria2.git | C Header | 276 lines
173# ifdef __USE_GNU 174# define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded 175 in the current locale's character set) 177# define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */ 178# define AI_IDN_ALLOW_UNASSIGNED 0x0100 /* Don't reject unassigned Unicode 179 code points. */ 179 code points. */ 180# define AI_IDN_USE_STD3_ASCII_RULES 0x0200 /* Validate strings according to 181 STD3 rules. */ 203# define EAI_INTR -104 /* Interrupted by a signal. */ 204# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 205# endifAres.d http://gool.googlecode.com/svn/trunk/ | D | 220 lines
89 90 ARES_AI_IDN = 1 << 10, 91 ARES_AI_IDN_ALLOW_UNASSIGNED = 1 << 11, 91 ARES_AI_IDN_ALLOW_UNASSIGNED = 1 << 11, 92 ARES_AI_IDN_USE_STD3_ASCII_RULES = 1 << 12, 93 ARES_AI_CANONIDN = 1 << 13,nslook.c https://gitlab.com/jyrgenn/nslook-c | C | 424 lines
6#define __USE_GNU 7#define __USE_POSIX /* and still no AI_IDN... */ 8 323#ifdef AI_IDN 324 if (ai_flags & AI_IDN) strcat(buf, " AI_IDN"); 325 if (ai_flags & AI_CANONIDN) strcat(buf, " AI_CANONIDN"); 325 if (ai_flags & AI_CANONIDN) strcat(buf, " AI_CANONIDN"); 326 if (ai_flags & AI_IDN_ALLOW_UNASSIGNED) { 327 strcat(buf, " AI_IDN_ALLOW_UNASSIGNED"); 328 } 329 if (ai_flags & AI_IDN_USE_STD3_ASCII_RULES) { 330 strcat(buf, " AI_IDN_USE_STD3_ASCII_RULES"); 331 } 332#endif /* AI_IDN */ 333 return buf;config.m4 https://github.com/php/php-src.git | m4 | 106 lines
52 dnl Check for AI_IDN flag 53 AC_CACHE_CHECK([if getaddrinfo supports AI_IDN],[ac_cv_gai_ai_idn], 54 [ 57 ]], [[int flag = AI_IDN;]])], 58 [ac_cv_gai_ai_idn=yes], [ac_cv_gai_ai_idn=no]) 59 ]) 61 if test "$ac_cv_gai_ai_idn" = yes; then 62 AC_DEFINE(HAVE_AI_IDN,1,[Whether you have AI_IDN]) 63 fiiputils-20180629-musl.patch https://gitlab.com/argent/portage | Patch | 87 lines
8 9 Add missing AI_IDN and NI_IDN declarations. 10 22+ 23+#ifndef AI_IDN 24+#define AI_IDN 0x0040 40+ 41+#ifndef AI_IDN 42+#define AI_IDN 0x0040 50+ 51 #define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN) 52 #define getnameinfo_flags NI_IDN 62+ 63+#ifndef AI_IDN 64+#define AI_IDN 0x0040get_addrs.c git://git.savannah.gnu.org/inetutils.git | C | 248 lines
112 hints.ai_socktype = SOCK_DGRAM; 113# ifdef AI_IDN 114 hints.ai_flags |= AI_IDN;gai_strerror.c git://pkgs.fedoraproject.org/libexplain | C | 102 lines
63#ifdef EAI_IDN_ENCODE 64 { "EAI_IDN_ENCODE", EAI_IDN_ENCODE }, 65#endifnetdb.h https://github.com/tmandersson/PSL1GHT.git | C Header | 90 lines
34 returned address type.. */ 35#define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded 36 in the current locale's character set) 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. */ 40 code points. */ 41#define AI_IDN_USE_STD3_ASCII_RULES 0x0200 /* Validate strings according to 42 STD3 rules. */tst-resolv-ai_idn-latin1.c https://gitlab.com/gbenson/glibc | C | 50 lines
1/* Test getaddrinfo and getnameinfo with AI_IDN, NI_IDN (Latin-1). 2 Copyright (C) 2018 Free Software Foundation, Inc. 20#define TEST_USE_UTF8 0 21#include "tst-resolv-ai_idn-common.c" 22getent.c https://gitlab.com/Namal/glibc | C | 960 lines
78/* Additional getaddrinfo flags for IDN encoding. */ 79static int idn_flags = AI_IDN | AI_CANONIDN; 80iputils-20070202-idn.patch https://github.com/1000timesdead/portage.git | Patch | 158 lines
113+#ifdef IDN 114+ hints.ai_flags = AI_IDN; 115+#endif 123+#ifdef IDN 124+ hints.ai_flags = AI_IDN; 125+#endifgetaddrinfo.c https://github.com/hjl-tools/glibc.git | C | 1914 lines
86 87/* Former AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES 88 flags, now ignored. */ 88 flags, now ignored. */ 89#define DEPRECATED_AI_IDN 0x300 90 476 477 if (req->ai_flags & AI_IDN) 478 {tst-resolv-ai_idn-common.c https://github.com/hjl-tools/glibc.git | C | 570 lines
1/* Common code for AI_IDN/NI_IDN tests. 2 Copyright (C) 2018-2020 Free Software Foundation, Inc. 288 if (expected == NULL) 289 TEST_COMPARE (ret, EAI_IDN_ENCODE); 290 else 322 "address: STREAM/TCP 192.0.2.110 80\n"); 323 check_ai ("non-idn.example", AI_IDN, 324 "flags: AI_IDN\n" 325 "address: STREAM/TCP 192.0.2.110 80\n"); 326 check_ai ("non-idn.example", AI_IDN | AI_CANONNAME | AI_CANONIDN, 327 "flags: AI_CANONNAME AI_IDN AI_CANONIDN\n" 332 "error: Name or service not known\n"); 333 check_ai (NAEMCHEN ".example", AI_IDN, 334 "flags: AI_IDN\n" 335 "address: STREAM/TCP 192.0.2.120 80\n"); 336 check_ai (NAEMCHEN ".example", AI_IDN | AI_CANONNAME | AI_CANONIDN, 337 "flags: AI_CANONNAME AI_IDN AI_CANONIDN\n"getnameinfo.c https://github.com/hjl-tools/glibc.git | C | 544 lines
293 int rc = __idna_from_dns_encoding (h->h_name, &h_name); 294 if (rc == EAI_IDN_ENCODE) 295 /* Use the punycode name as a fallback. */tst-resolv-ai_idn-latin1.c https://github.com/hjl-tools/glibc.git | C | 55 lines
1/* Test getaddrinfo and getnameinfo with AI_IDN, NI_IDN (Latin-1). 2 Copyright (C) 2018-2020 Free Software Foundation, Inc. 20#define TEST_USE_UTF8 0 21#include "tst-resolv-ai_idn-common.c" 22solve.c git://pkgs.fedoraproject.org/tcpreen | C | 323 lines
297 sizeof (struct addrinfo)); 298 inet_hints.ai_flags |= AI_IDN; 299udp.c https://gitlab.com/evilbinary/vlc | C | 744 lines
148 .ai_protocol = protocol, 149 .ai_flags = AI_PASSIVE | AI_NUMERICSERV | AI_IDN, 150 }, *res; 522 .ai_protocol = proto, 523 .ai_flags = AI_NUMERICSERV | AI_IDN, 524 }, *res;tcp.c https://gitlab.com/evilbinary/vlc | C | 521 lines
126 .ai_protocol = proto, 127 .ai_flags = AI_NUMERICSERV | AI_IDN, 128 }, *res; 433 .ai_protocol = IPPROTO_TCP, 434 .ai_flags = AI_IDN, 435 };netdb.lua git://github.com/chatid/fend.git | Lua | 228 lines
195AI_ADDRCONFIG = 0x0020 -- Use configuration of this host to choose returned address type.. 196AI_IDN = 0x0040 -- IDN encode input (assuming it is encoded in the current locale's character set) before looking it up. 197AI_CANONIDN = 0x0080 -- Translate canonical name from IDN format. 197AI_CANONIDN = 0x0080 -- Translate canonical name from IDN format. 198AI_IDN_ALLOW_UNASSIGNED = 0x0100 -- Don't reject unassigned Unicode code points. 199AI_IDN_USE_STD3_ASCII_RULES = 0x0200 -- Validate strings according to STD3 rules. 218EAI_INTR = -104 -- Interrupted by a signal. 219EAI_IDN_ENCODE = -105 -- IDN encoding failed. 220tst-resolv-ai_idn-common.c https://gitlab.com/gbenson/glibc | C | 569 lines
1/* Common code for AI_IDN/NI_IDN tests. 2 Copyright (C) 2018 Free Software Foundation, Inc. 287 if (expected == NULL) 288 TEST_COMPARE (ret, EAI_IDN_ENCODE); 289 else 321 "address: STREAM/TCP 192.0.2.110 80\n"); 322 check_ai ("non-idn.example", AI_IDN, 323 "flags: AI_IDN\n" 324 "address: STREAM/TCP 192.0.2.110 80\n"); 325 check_ai ("non-idn.example", AI_IDN | AI_CANONNAME | AI_CANONIDN, 326 "flags: AI_CANONNAME AI_IDN AI_CANONIDN\n" 331 "error: Name or service not known\n"); 332 check_ai (NAEMCHEN ".example", AI_IDN, 333 "flags: AI_IDN\n" 334 "address: STREAM/TCP 192.0.2.120 80\n"); 335 check_ai (NAEMCHEN ".example", AI_IDN | AI_CANONNAME | AI_CANONIDN, 336 "flags: AI_CANONNAME AI_IDN AI_CANONIDN\n"Makefile https://gitlab.com/gbenson/glibc | Makefile | 210 lines
62tests += \ 63 tst-resolv-ai_idn \ 64 tst-resolv-ai_idn-latin1 \ 64 tst-resolv-ai_idn-latin1 \ 65 tst-resolv-ai_idn-nolibidn2 \ 66 tst-resolv-canonname \ 77 78# Used by tst-resolv-ai_idn-nolibidn2 to disable libidn2 (by not 79# providing any functions in libidn2.so.0). 173$(objpfx)tst-res_use_inet6: $(objpfx)libresolv.so $(shared-thread-library) 174$(objpfx)tst-resolv-ai_idn: \ 175 $(libdl) $(objpfx)libresolv.so $(shared-thread-library) 175 $(libdl) $(objpfx)libresolv.so $(shared-thread-library) 176$(objpfx)tst-resolv-ai_idn-latin1: \ 177 $(libdl) $(objpfx)libresolv.so $(shared-thread-library)err.h http://bugsec.googlecode.com/svn/trunk/ | C Header | 59 lines
43#define ORION_EAI_INTR -104 /* Interrupted by a signal. */ 44#define ORION_EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 45#define ORION_SOCKET_ERR_UNKNOWN -200getaddrinfo.h https://gitlab.com/yaksa/aria2 | C Header | 282 lines
174#ifdef __USE_GNU 175#define AI_IDN \ 176 0x0040 /* IDN encode input (assuming it is encoded \ 179#define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */ 180#define AI_IDN_ALLOW_UNASSIGNED \ 181 0x0100 /* Don't reject unassigned Unicode \ 182 code points. */ 183#define AI_IDN_USE_STD3_ASCII_RULES \ 184 0x0200 /* Validate strings according to \ 207#define EAI_INTR -104 /* Interrupted by a signal. */ 208#define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 209#endifgai_strerror-strs.h https://gitlab.com/Namal/glibc | C Header | 17 lines
16_S(EAI_INTR, N_("Interrupted by a signal")) 17_S(EAI_IDN_ENCODE, N_("Parameter string not correctly encoded")) 18ext-sockets-sockets.c.patch https://bitbucket.org/electrikyouthh/termux-packages.git | Patch | 12 lines
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); 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); 13smnet.cpp https://github.com/infil00p/openbts-ttsou.git | C++ | 542 lines
122 myhints.ai_socktype = SOCK_DGRAM; // Datagrams for now FIXME 123#ifdef AI_IDN 124 myhints.ai_flags = AI_IDN; // Int'l dom names OK.acinclude.m4 git://pkgs.fedoraproject.org/echoping | m4 | 271 lines
160# Check GNU libidn 161# TODO: check the patched libc with AI_IDN. See libidn, in libc/getaddrinfo-idn.txt. 162AC_DEFUN([CF_LIB_LIBIDN],iputils-20180629-fix-ping-on-musl.patch https://gitlab.com/argent/portage | Patch | 54 lines
52 #include <idn2.h> 53 #define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN) 54 #define getnameinfo_flags NI_IDNtcpspray.c git://pkgs.fedoraproject.org/ndisc6 | C | 447 lines
53#include "gettime.h" 54#ifndef AI_IDN 55# define AI_IDN 0 68 hints.ai_protocol = IPPROTO_TCP; 69 hints.ai_flags = AI_IDN; 70getaddrinfo.h git://pkgs.fedoraproject.org/tcpreen | C Header | 164 lines
156/*** libidn support ***/ 157# ifndef AI_IDN 158# define AI_IDN 00001-include-netdb.h-Do-not-define-IDN-related-flags.patch https://gitlab.com/hacktown/reflexio-buildroot | Patch | 54 lines
6getaddrinfo() does not implement IDN encoding, and always fail when 7provided 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; 8(such as the VLC media player) check for AI_IDN before they use it; 9providing an unimplemented AI_IDN in the libc makes these package 10fail. As a result they make calls to getaddrinfo() with AI_IDN that 10fail. As a result they make calls to getaddrinfo() with AI_IDN that 11always fail while they could have made successful calls without AI_IDN 12instead. 31-# ifdef __USE_GNU 32-# define AI_IDN 0x0040 /* IDN encode input (assuming it is encoded 33- in the current locale's character set) 35-# define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */ 36-# define AI_IDN_ALLOW_UNASSIGNED 0x0100 /* Don't reject unassigned Unicode 37- code points. */traceroute.c git://pkgs.fedoraproject.org/traceroute | C | 1557 lines
188 hints.ai_family = af; 189 hints.ai_flags = AI_IDN; 190example.c git://git.savannah.gnu.org/libidn.git | C | 75 lines
57 memset(&hints, 0, sizeof(hints)); 58 hints.ai_flags = AI_CANONNAME|AI_IDN; 59whois.c git://pkgs.fedoraproject.org/psad | C | 1033 lines
7 8/* for AI_IDN */ 9#define _GNU_SOURCEtraceroute-2.0.3-diet.patch https://github.com/tenchman/TTLinux.git | Patch | 72 lines
27+#ifndef __dietlibc__ 28 hints.ai_flags = AI_IDN; 29+#endifaddrinfo_flags.c git://pkgs.fedoraproject.org/libexplain | C | 75 lines
44#ifdef AI_IDN 45 { "AI_IDN", AI_IDN }, 46#endif 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#endifDNS.cpp https://github.com/SophistSolutions/Stroika.git | C++ | 285 lines
125 hints.ai_flags = AI_CANONNAME; 126#if defined(AI_IDN) 127 hints.ai_flags |= AI_IDN; 146 // @todo proplerly support http://www.ietf.org/rfc/rfc3987.txt and UTF8 etc. 147 // See http://linux.die.net/man/3/getaddrinfo for info on glibc support for AI_IDN etc.. 148 // and how todo on windows (or do myself portably?)config.m4 https://bitbucket.org/oglop/tomato-arm-kille72.git | m4 | 87 lines
72 dnl Check for AI_IDN flag 73 AC_CACHE_CHECK([if getaddrinfo supports AI_IDN],[ac_cv_gai_ai_idn], 74 [ 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 fignutls-win32.patch https://github.com/hiranotaka/vlc-arib.git | Patch | 28 lines
3@@ -75,7 +75,7 @@ 4 { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") } 5 #endifjsocket6.4.c https://bitbucket.org/niclabs/induceddelay.git | C | 419 lines
233 hints.ai_socktype = SOCK_STREAM; 234 // hints.ai_flags = AI_NUMERICSERV; /* | AI_IDN; */ 235 hints.ai_flags = AI_V4MAPPED|AI_ALL; /* Retornar todo IPv4 en IPv6 */ 236 // | AI_ADDRCONFIG /* retornar IPv6 solo si yo tengo: no funciona bien */ 237 /* | AI_IDN; *//* Aceptar nombres IDN: no estandar aun */ 238addrinfo.pm git://pkgs.fedoraproject.org/dnssec-tools | Perl | 298 lines
38 39our @AI_FLAGS = qw(AI_NUMERICHOST AI_NUMERICSERV AI_PASSIVE AI_V4MAPPED AI_ADDRCONFIG AI_ALL AI_CANONIDN AI_CANONNAME AI_IDN AI_IDN_ALLOW_UNASSIGNED AI_IDN_USE_STD3_ASCII_RULES); 40 43 44our @EXPORT = qw(getaddrinfo gai_strerror AI_ADDRCONFIG AI_ALL AI_CANONIDN AI_CANONNAME AI_IDN AI_IDN_ALLOW_UNASSIGNED AI_IDN_USE_STD3_ASCII_RULES AI_NUMERICHOST AI_NUMERICSERV AI_PASSIVE AI_V4MAPPED EAI_ADDRFAMILY EAI_AGAIN EAI_ALLDONE EAI_BADFLAGS EAI_CANCELED EAI_FAIL EAI_FAMILY EAI_IDN_ENCODE EAI_INPROGRESS EAI_INTR EAI_MEMORY EAI_NODATA EAI_NONAME EAI_NOTCANCELED EAI_OVERFLOW EAI_SERVICE EAI_SOCKTYPE EAI_BADHINTS EAI_SYSTEM GAI_NOWAIT GAI_WAIT NI_DGRAM NI_IDN NI_IDN_ALLOW_UNASSIGNED NI_IDN_USE_STD3_ASCII_RULES NI_MAXHOST NI_MAXSERV NI_NAMEREQD NI_NOFQDN NI_NUMERICHOST NI_NUMERICSERV IPPROTO_IP IPPROTO_HOPOPTS IPPROTO_ICMP IPPROTO_IGMP IPPROTO_IPIP IPPROTO_EGP IPPROTO_PUP IPPROTO_UDP IPPROTO_IDP IPPROTO_TP IPPROTO_IPV6 IPPROTO_ROUTING IPPROTO_FRAGMENT IPPROTO_RSVP IPPROTO_GRE IPPROTO_ESP IPPROTO_AH IPPROTO_ICMPV6 IPPROTO_NONE IPPROTO_RAW IPPROTO_DSTOPTS IPPROTO_MTP IPPROTO_ENCAP IPPROTO_PIM IPPROTO_COMP IPPROTO_SCTP); 45const-c.inc git://pkgs.fedoraproject.org/dnssec-tools | Pascal | 676 lines
26 here. However, subsequent manual editing may have added or removed some. 27 AI_ALL AI_IDN NI_IDN */ 28 /* Offset 4 gives the best switch position. */ 30 case 'D': 31 if (memEQ(name, "AI_IDN", 6)) { 32 /* ^ */ 32 /* ^ */ 33#ifdef AI_IDN 34 *iv_return = AI_IDN; 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 */ 551my @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_V4MAPPEDiputils-20070202-idn.patch https://github.com/gooselinux/iputils.git | Patch | 130 lines
94 hints.ai_family = AF_INET6; 95+ hints.ai_flags = AI_IDN; 96 gai = getaddrinfo(target, NULL, &hints, &ai); 102 hints.ai_family = AF_INET6; 103+ hints.ai_flags = AI_IDN; 104 gai = getaddrinfo(target, NULL, &hints, &ai);getaddrinfo.c https://github.com/boliu/synchronicity.git | C | 191 lines
174#endif 175#ifdef AI_IDN 176 /* Run-time I18n Domain Names support */ 176 /* Run-time I18n Domain Names support */ 177 hints.ai_flags |= AI_IDN; 178 ret = getaddrinfo (node, psz_service, &hints, res); 181 /* IDN not available: disable and retry without it */ 182 hints.ai_flags &= ~AI_IDN; 183#endif 185 186#if defined(AI_IDN) || defined(WIN32) 187out:support_format_addrinfo.c https://gitlab.com/ultr/glibc | C | 202 lines
64 FLAG (AI_ADDRCONFIG); 65 FLAG (AI_IDN); 66 FLAG (AI_CANONIDN); 66 FLAG (AI_CANONIDN); 67 FLAG (AI_IDN_ALLOW_UNASSIGNED); 68 FLAG (AI_IDN_USE_STD3_ASCII_RULES);tor6tun.cpp https://gitlab.com/cg909/tor6tun | C++ | 942 lines
71 if (retry) { 72 for (auto &&item : getaddrinfo(socks_server, AI_V4MAPPED|AI_IDN, AF_INET6, SOCK_STREAM)) { 73 std::memcpy(&socks_addr, item.ai_addr, sizeof(sockaddr_in6)); 217 // Set tor server address 218 for (auto &&item : getaddrinfo(socks_server, AI_V4MAPPED|AI_IDN, AF_INET6, SOCK_STREAM)) { 219 socks_addr = *reinterpret_cast<sockaddr_in6*>(item.ai_addr);getaddrinfo.h https://github.com/tatsuhiro-t/aria2.git | C Header | 282 lines
174#ifdef __USE_GNU 175# define AI_IDN \ 176 0x0040 /* IDN encode input (assuming it is encoded \ 179# define AI_CANONIDN 0x0080 /* Translate canonical name from IDN format. */ 180# define AI_IDN_ALLOW_UNASSIGNED \ 181 0x0100 /* Don't reject unassigned Unicode \ 182 code points. */ 183# define AI_IDN_USE_STD3_ASCII_RULES \ 184 0x0200 /* Validate strings according to \ 207# define EAI_INTR -104 /* Interrupted by a signal. */ 208# define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ 209#endifgrovel.lisp https://github.com/sheafferusa/core-server.git | Lisp | 210 lines
32(constant (flag-ai-addrconfig "AI_ADDRCONFIG")) 33(constant (flag-ai-idn "AI_IDN")) 34(constant (flag-ai-canonidn "AI_CANONIDN"))gnutls-win32.patch https://bitbucket.org/romen/vlc.git | Patch | 32 lines
3@@ -62,7 +62,7 @@ 4 { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") } 5 #endifgc-defs.tcl https://github.com/MikeSisk/ArsDigita-Community-System-3.2.3.git | TCL | 580 lines
63 set_variables_after_query 64 set url "view-category.tcl?domai_idn=[ns_urlencode $domain_id]&primary_category=[ns_urlencode $category]" 65 if { $count == 1 } {test.c https://github.com/buytenh/ivykis.git | C | 202 lines
83 } 84 if (flags & AI_IDN) { 85 printf(" AI_IDN"); 85 printf(" AI_IDN"); 86 flags &= ~AI_IDN; 87 } 91 } 92 if (flags & AI_IDN_ALLOW_UNASSIGNED) { 93 printf(" AI_IDN_ALLOW_UNASSIGNED"); 93 printf(" AI_IDN_ALLOW_UNASSIGNED"); 94 flags &= ~AI_IDN_ALLOW_UNASSIGNED; 95 } 95 } 96 if (flags & AI_IDN_USE_STD3_ASCII_RULES) { 97 printf(" AI_IDN_USE_STD3_ASCII_RULES");tst-no-libidn2.c https://gitlab.com/gbenson/glibc | C | 2 lines
1/* Compiled into an empty shared object. Used by 2 tst-resolv-ai_idn-nolibidn2 to disable libidn2. */ 3ai_idn_hotfix.patch https://github.com/giftnuss/rock-linux-persona-giftnuss.git | Patch | 15 lines
9 10 /* for AI_IDN */ 11-#define _GNU_SOURCEtraceroute-uclibc.patch https://github.com/jelaas/bifrost-build.git | Patch | 11 lines
6 hints.ai_family = af; 7- hints.ai_flags = AI_IDN; 8+ //hints.ai_flags = AI_IDN;whois-4.7.16-glibc.diff https://bitbucket.org/tzeman/frugalware-stable-tags | diff | 14 lines
7 8-/* for AI_IDN */ 9-#define _GNU_SOURCE