Changeset 444
- Timestamp:
- Jul 14, 2020, 11:32:49 PM (3 years ago)
- Location:
- EcnlProtoTool/trunk
- Files:
-
- 1410 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/musl-1.1.18/.project
r331 r444 6 6 </projects> 7 7 <buildSpec> 8 <buildCommand> 9 <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> 10 <triggers>clean,full,incremental,</triggers> 11 <arguments> 12 </arguments> 13 </buildCommand> 14 <buildCommand> 15 <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> 16 <triggers>full,incremental,</triggers> 17 <arguments> 18 </arguments> 19 </buildCommand> 8 20 </buildSpec> 9 21 <natures> 22 <nature>org.eclipse.cdt.core.cnature</nature> 23 <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> 24 <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> 10 25 </natures> 11 26 </projectDescription> -
EcnlProtoTool/trunk/musl-1.1.18/include/byteswap.h
r321 r444 7 7 static __inline uint16_t __bswap_16(uint16_t __x) 8 8 { 9 return __x<<8 | __x>>8;9 return (__x<<8) | (__x>>8); 10 10 } 11 11 12 12 static __inline uint32_t __bswap_32(uint32_t __x) 13 13 { 14 return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;14 return (__x>>24) | ((__x>>8)&0xff00) | ((__x<<8)&0xff0000) | (__x<<24); 15 15 } 16 16 17 17 static __inline uint64_t __bswap_64(uint64_t __x) 18 18 { 19 return __bswap_32(__x)+0ULL<<32| __bswap_32(__x>>32);19 return ((__bswap_32(__x)+0ULL)<<32) | __bswap_32(__x>>32); 20 20 } 21 21 -
EcnlProtoTool/trunk/musl-1.1.18/include/endian.h
r331 r444 25 25 static __inline uint16_t __bswap16(uint16_t __x) 26 26 { 27 return __x<<8 | __x>>8;27 return (__x<<8) | (__x>>8); 28 28 } 29 29 30 30 static __inline uint32_t __bswap32(uint32_t __x) 31 31 { 32 return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;32 return (__x>>24) | ((__x>>8)&0xff00) | ((__x<<8)&0xff0000) | (__x<<24); 33 33 } 34 34 35 35 static __inline uint64_t __bswap64(uint64_t __x) 36 36 { 37 return __bswap32(__x)+0ULL<<32| __bswap32(__x>>32);37 return ((__bswap32(__x)+0ULL)<<32) | __bswap32(__x>>32); 38 38 } 39 39 -
EcnlProtoTool/trunk/musl-1.1.18/include/stddef.h
r331 r444 11 11 #define __NEED_size_t 12 12 #define __NEED_wchar_t 13 #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L13 #if __STDC_VERSION__ >= 201112L || (defined(__cplusplus) && __cplusplus >= 201103L) 14 14 #define __NEED_max_align_t 15 15 #endif -
EcnlProtoTool/trunk/musl-1.1.18/include/time.h
r331 r444 61 61 int timespec_get(struct timespec *, int); 62 62 63 #ifndef CLOCKS_PER_SEC 63 64 #define CLOCKS_PER_SEC 1000000L 65 #endif // CLOCKS_PER_SEC 64 66 65 67 #define TIME_UTC 1 -
EcnlProtoTool/trunk/musl-1.1.18/src/network/lookup_name.c
r331 r444 11 11 #include <pthread.h> 12 12 #include <errno.h> 13 #include <resolv.h> 13 14 #include "lookup.h" 14 15 #include "stdio_impl.h" … … 30 31 if (family != AF_INET6) 31 32 buf[cnt++] = (struct address){ .family = AF_INET }; 32 /*if (family != AF_INET)33 buf[cnt++] = (struct address){ .family = AF_INET6 }; */33 if (family != AF_INET) 34 buf[cnt++] = (struct address){ .family = AF_INET6 }; 34 35 } else { 35 36 if (family != AF_INET6) 36 37 buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; 37 /*if (family != AF_INET)38 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; */38 if (family != AF_INET) 39 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; 39 40 } 40 41 return cnt; … … 185 186 if (dots >= conf.ndots || name[l-1]=='.') *search = 0; 186 187 188 /* Strip final dot for canon, fail if multiple trailing dots. */ 189 if (name[l-1]=='.') l--; 190 if (!l || name[l-1]=='.') return EAI_NONAME; 191 187 192 /* This can never happen; the caller already checked length. */ 188 193 if (l >= 256) return EAI_NONAME; … … 311 316 if (!cnt && !(flags & AI_NUMERICHOST)) { 312 317 cnt = name_from_hosts(buf, canon, name, family); 313 if ( !cnt) cnt = name_from_dns_search(buf, canon, name, family);318 if (cnt<=0) cnt = name_from_dns_search(buf, canon, name, family); 314 319 } 315 320 if (cnt<=0) return cnt ? cnt : EAI_NONAME; … … 352 357 * So far the label/precedence table cannot be customized. */ 353 358 for (i=0; i<cnt; i++) { 359 int family = buf[i].family; 354 360 int key = 0; 355 struct sockaddr_in6 sa , da= {361 struct sockaddr_in6 sa6 = { 0 }, da6 = { 356 362 .sin6_family = AF_INET6, 357 363 .sin6_scope_id = buf[i].scopeid, 358 364 .sin6_port = 65535 359 365 }; 360 if (buf[i].family == AF_INET6) { 361 memcpy(da.sin6_addr.s6_addr, buf[i].addr, 16); 366 struct sockaddr_in sa4 = { 0 }, da4 = { 367 .sin_family = AF_INET, 368 .sin_port = 65535 369 }; 370 void *sa, *da; 371 socklen_t salen, dalen; 372 if (family == AF_INET6) { 373 memcpy(da6.sin6_addr.s6_addr, buf[i].addr, 16); 374 da = &da6; dalen = sizeof da6; 375 sa = &sa6; salen = sizeof sa6; 362 376 } else { 363 memcpy( da.sin6_addr.s6_addr,377 memcpy(sa6.sin6_addr.s6_addr, 364 378 "\0\0\0\0\0\0\0\0\0\0\xff\xff", 12); 365 memcpy(da.sin6_addr.s6_addr+12, buf[i].addr, 4); 366 } 367 const struct policy *dpolicy = policyof(&da.sin6_addr); 368 int dscope = scopeof(&da.sin6_addr); 379 memcpy(da6.sin6_addr.s6_addr+12, buf[i].addr, 4); 380 memcpy(da6.sin6_addr.s6_addr, 381 "\0\0\0\0\0\0\0\0\0\0\xff\xff", 12); 382 memcpy(da6.sin6_addr.s6_addr+12, buf[i].addr, 4); 383 memcpy(&da4.sin_addr, buf[i].addr, 4); 384 da = &da4; dalen = sizeof da4; 385 sa = &sa4; salen = sizeof sa4; 386 } 387 const struct policy *dpolicy = policyof(&da6.sin6_addr); 388 int dscope = scopeof(&da6.sin6_addr); 369 389 int dlabel = dpolicy->label; 370 390 int dprec = dpolicy->prec; 371 391 int prefixlen = 0; 372 int fd = socket( AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_UDP);392 int fd = socket(family, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_UDP); 373 393 if (fd >= 0) { 374 if (!connect(fd, (void *)&da, sizeof da)) {394 if (!connect(fd, da, dalen)) { 375 395 key |= DAS_USABLE; 376 if (!getsockname(fd, (void *)&sa, 377 &(socklen_t){sizeof sa})) { 378 if (dscope == scopeof(&sa.sin6_addr)) 396 if (!getsockname(fd, sa, &salen)) { 397 if (family == AF_INET) memcpy( 398 sa6.sin6_addr.s6_addr+12, 399 &sa4.sin_addr, 4); 400 if (dscope == scopeof(&sa6.sin6_addr)) 379 401 key |= DAS_MATCHINGSCOPE; 380 if (dlabel == labelof(&sa .sin6_addr))402 if (dlabel == labelof(&sa6.sin6_addr)) 381 403 key |= DAS_MATCHINGLABEL; 382 prefixlen = prefixmatch(&sa .sin6_addr,383 &da .sin6_addr);404 prefixlen = prefixmatch(&sa6.sin6_addr, 405 &da6.sin6_addr); 384 406 } 385 407 } -
EcnlProtoTool/trunk/prototool/.cproject
r440 r444 143 143 <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections.1434992496" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections" useByScannerDiscovery="false" value="true" valueType="boolean"/> 144 144 <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.gcc.rz.archives.userIncludePath.299863743" name="User defined archive search directories (-L)" superClass="com.renesas.cdt.managedbuild.gcc.rz.archives.userIncludePath" useByScannerDiscovery="false" valueType="stringList"> 145 <listOptionValue builtIn="false" value=""${workspace_loc:/musl-1.1.18/ lib}""/>145 <listOptionValue builtIn="false" value=""${workspace_loc:/musl-1.1.18/Debug}""/> 146 146 <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lib}""/> 147 147 <listOptionValue builtIn="false" value=""${workspace_loc:/openssl-1.1.0e/Debug}""/> … … 157 157 <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs.2115660767" name="Other objects" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs" useByScannerDiscovery="false" valueType="userObjs"> 158 158 <listOptionValue builtIn="false" value=""${workspace_loc:/musl-1.1.18/lib/crt1.o}""/> 159 <listOptionValue builtIn="false" value=""${workspace_loc:/musl-1.1.18/ lib/libc.a}""/>159 <listOptionValue builtIn="false" value=""${workspace_loc:/musl-1.1.18/Debug/libmusl.a}""/> 160 160 <listOptionValue builtIn="false" value=""${TCINSTALL}/lib/gcc/arm-none-eabi/${GCC_VERSION}/thumb/v7-ar/fpv3/hard/libgcc.a""/> 161 161 <listOptionValue builtIn="false" value=""${workspace_loc:/ntshell/Debug/ntshell_bin.o}""/> 162 <listOptionValue builtIn="false" value=""${workspace_loc:/musl-1.1.18/lib}/libce.a""/>163 162 <listOptionValue builtIn="false" value=""${workspace_loc:/openssl-1.1.0e/Debug}/libopenssl.a""/> 164 163 <listOptionValue builtIn="false" value=""${workspace_loc:/zlib-1.2.11/Debug}/libzlib.a""/> … … 171 170 </option> 172 171 <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.gcc.rz.archives.userIncludeFiles.1706968451" name="User defined archive (library) files (-l)" superClass="com.renesas.cdt.managedbuild.gcc.rz.archives.userIncludeFiles" useByScannerDiscovery="false" valueType="stringList"> 173 <listOptionValue builtIn="false" value=" ce"/>172 <listOptionValue builtIn="false" value="musl"/> 174 173 <listOptionValue builtIn="false" value="gcc"/> 175 174 <listOptionValue builtIn="false" value="openssl"/> -
EcnlProtoTool/trunk/prototool/.project
r439 r444 7 7 <project>mbed_api</project> 8 8 <project>mruby-2.1.1</project> 9 <project>musl-1.1.18</project> 9 10 <project>ntshell</project> 10 11 <project>onigmo-6.1.3</project>
Note:
See TracChangeset
for help on using the changeset viewer.