Bug 205582: map EHOSTUNREACH to PR_HOST_UNREACHABLE_ERROR on Unix. r=darin. NSPRPUB_PRE_4_2_CLIENT_BRANCH FIREBIRD_0_6_RELEASE
authorwtc%netscape.com
Wed, 14 May 2003 21:44:13 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 2831 70634845824200cbe57a9bf7c42f3e465253b999
parent 2830 cd9523ada76936ce61cdb56325f38691fb7e302f
child 2840 845811bb82754fd23de8dc76b9b70eb8f35eca9a
push idunknown
push userunknown
push dateunknown
reviewersdarin
bugs205582
Bug 205582: map EHOSTUNREACH to PR_HOST_UNREACHABLE_ERROR on Unix. r=darin. a=asa (on behalf of drivers) for checkin to mozilla 1.4. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
pr/src/md/unix/unix_errors.c
--- a/pr/src/md/unix/unix_errors.c
+++ b/pr/src/md/unix/unix_errors.c
@@ -103,16 +103,19 @@ void _MD_unix_map_default_error(int err)
             prError = PR_FILE_EXISTS_ERROR;
             break;
         case EFAULT:
             prError = PR_ACCESS_FAULT_ERROR;
             break;
         case EFBIG:
             prError = PR_FILE_TOO_BIG_ERROR;
             break;
+        case EHOSTUNREACH:
+            prError = PR_HOST_UNREACHABLE_ERROR;
+            break;
         case EINPROGRESS:
             prError = PR_IN_PROGRESS_ERROR;
             break;
         case EINTR:
             prError = PR_PENDING_INTERRUPT_ERROR;
             break;
         case EINVAL:
             prError = PR_INVALID_ARGUMENT_ERROR;