Lines Matching refs:errno
26 #include <errno.h>
210 NET_ThrowNew(env, errno, "can't create socket");
220 NET_ThrowNew(env, errno, "cannot set IPPROTO_IPV6");
237 NET_ThrowNew(env, errno, "cannot set SO_REUSEADDR");
303 if (connect_rv == JVM_IO_ERR && errno == EINPROGRESS ) {
331 if (errno == EINTR) {
343 connect_rv = errno;
347 /* restore errno */
348 errno = connect_rv;
372 if (errno != EINPROGRESS) {
393 errno = 0;
409 errno = 0;
417 if (errno != EINTR) {
454 connect_rv = errno;
461 /* restore errno */
463 errno = connect_rv;
482 if (connect_rv == JVM_IO_ERR && errno == EINVAL) {
492 } else if (errno == EPROTO) {
496 } else if (errno == ECONNREFUSED) {
499 } else if (errno == ETIMEDOUT) {
502 } else if (errno == EHOSTUNREACH) {
505 } else if (errno == EADDRNOTAVAIL) {
508 } else if ((errno == EISCONN) || (errno == EBADF)) {
578 if (errno == EADDRINUSE || errno == EADDRNOTAVAIL ||
579 errno == EPERM || errno == EACCES) {
717 if (errno == EBADF) {
738 if (!(errno == ECONNABORTED || errno == EWOULDBLOCK)) {
761 if (errno == EINVAL) {
762 errno = EBADF;
764 if (errno == EBADF) {
818 if (errno == ECONNRESET) {
967 if (errno == EINVAL) {
968 // On Solaris setsockopt will set errno to EINVAL if the socket