[PVFS2-CVS] commit by walt in pvfs2-1/include: pvfs2-types.h

CVS commit program cvs at parl.clemson.edu
Wed Jul 13 12:45:53 EDT 2005


Update of /projects/cvsroot/pvfs2-1/include
In directory parlweb:/tmp/cvs-serv31772/include

Modified Files:
	pvfs2-types.h 
Log Message:
fixed error reporting for gethostbyname in BMI-TCP
also fixed simple omissions and errors in related code


Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/include/pvfs2-types.h,v
diff -p -u -r1.106 -r1.107
--- pvfs2-types.h	11 Jul 2005 20:06:22 -0000	1.106
+++ pvfs2-types.h	13 Jul 2005 15:45:52 -0000	1.107
@@ -431,6 +431,10 @@ PVFS_error PVFS_get_errno_mapping(PVFS_e
 #define PVFS_ECANCEL    (1|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
 #define PVFS_EDEVINIT   (2|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
 #define PVFS_EDETAIL    (3|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
+#define PVFS_EHOSTNTFD  (4|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
+#define PVFS_EADDRNTFD  (5|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
+#define PVFS_ENORECVR   (6|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
+#define PVFS_ETRYAGAIN  (7|(PVFS_NON_ERRNO_ERROR_BIT|PVFS_ERROR_BIT))
 
 /* NOTE: PLEASE DO NOT ARBITRARILY ADD NEW ERRNO ERROR CODES!
  *
@@ -508,13 +512,21 @@ char *PINT_non_errno_strerror_mapping[] 
     "Success", /* 0 */                                \
     "Operation cancelled (possibly due to timeout)",  \
     "Device initialization failed",                   \
-    "Detailed per-server errors are available"        \
+    "Detailed per-server errors are available",       \
+    "Host not found",                                 \
+    "Valid host name but no IP address found",        \
+    "Non recoverable error",                          \
+    "Try Again"                                       \
 };                                                    \
 PVFS_error PINT_non_errno_mapping[] = {               \
     0,     /* leave this one empty */                 \
     PVFS_ECANCEL,   /* 1 */                           \
     PVFS_EDEVINIT,  /* 2 */                           \
-    PVFS_EDETAIL    /* 3 */                           \
+    PVFS_EDETAIL,   /* 3 */                           \
+    PVFS_EHOSTNTFD, /* 4 */                           \
+    PVFS_EADDRNTFD, /* 5 */                           \
+    PVFS_ENORECVR,  /* 6 */                           \
+    PVFS_ETRYAGAIN  /* 7 */                           \
 }
 
 /*



More information about the PVFS2-CVS mailing list