src/java.base/unix/native/libnet/net_util_md.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
   284     return JNI_FALSE;
   284     return JNI_FALSE;
   285 }
   285 }
   286 
   286 
   287 #else /* !DONT_ENABLE_IPV6 */
   287 #else /* !DONT_ENABLE_IPV6 */
   288 
   288 
   289 jint  IPv6_supported()
   289 jint  IPv6_supported(void)
   290 {
   290 {
   291     int fd;
   291     int fd;
   292     void *ipv6_fn;
   292     void *ipv6_fn;
   293     SOCKETADDRESS sa;
   293     SOCKETADDRESS sa;
   294     socklen_t sa_len = sizeof(SOCKETADDRESS);
   294     socklen_t sa_len = sizeof(SOCKETADDRESS);
   393         return JNI_TRUE;
   393         return JNI_TRUE;
   394     }
   394     }
   395 }
   395 }
   396 #endif /* DONT_ENABLE_IPV6 */
   396 #endif /* DONT_ENABLE_IPV6 */
   397 
   397 
   398 jint reuseport_supported()
   398 jint reuseport_supported(void)
   399 {
   399 {
   400     /* Do a simple dummy call, and try to figure out from that */
   400     /* Do a simple dummy call, and try to figure out from that */
   401     int one = 1;
   401     int one = 1;
   402     int rv, s;
   402     int rv, s;
   403     s = socket(PF_INET, SOCK_STREAM, 0);
   403     s = socket(PF_INET, SOCK_STREAM, 0);
   716 #elif defined(_AIX)
   716 #elif defined(_AIX)
   717 
   717 
   718 /* Initialize stubs for blocking I/O workarounds (see src/solaris/native/java/net/linux_close.c) */
   718 /* Initialize stubs for blocking I/O workarounds (see src/solaris/native/java/net/linux_close.c) */
   719 extern void aix_close_init();
   719 extern void aix_close_init();
   720 
   720 
   721 void platformInit () {
   721 void platformInit (void) {
   722     aix_close_init();
   722     aix_close_init();
   723 }
   723 }
   724 
   724 
   725 #else
   725 #else
   726 
   726 
   727 void platformInit () {}
   727 void platformInit (void) {}
   728 
   728 
   729 #endif
   729 #endif
   730 
   730 
   731 void parseExclusiveBindProperty(JNIEnv *env) {
   731 void parseExclusiveBindProperty(JNIEnv *env) {
   732 #ifdef __solaris__
   732 #ifdef __solaris__