Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2008 12:07:19 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 154993 for review
Message-ID:  <200812191207.mBJC7Jw5094140@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154993

Change 154993 by rwatson@rwatson_cinnamon on 2008/12/19 12:06:47

	#ifdef more errno values not present in some older OS versions,
	such as FreeBSD 4.x.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#11 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#11 (text+ko) ====

@@ -26,7 +26,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE. 
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#10 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#11 $
  */
 
 #include <sys/types.h>
@@ -275,7 +275,13 @@
 #endif
 	"Package not installed" },
 	{ BSM_EREMOTE, EREMOTE, "Too many levels of remote in path" },
-	{ BSM_ENOLINK, ENOLINK, "Link has been severed" },
+	{ BSM_ENOLINK,
+#ifdef ENOLINK
+	ENOLINK,
+#else
+	ERRNO_NO_LOCAL_MAPPING,
+#endif
+	"Link has been severed" },
 	{ BSM_EADV,
 #ifdef EADV
 	EADV,
@@ -297,7 +303,13 @@
 	ERRNO_NO_LOCAL_MAPPING,
 #endif
 	"Communication error on send" },
-	{ BSM_EPROTO, EPROTO, "Protocol error" },
+	{ BSM_EPROTO,
+#ifdef EPROTO
+	EPROTO,
+#else
+	ERRNO_NO_LOCAL_MAPPING,
+#endif
+	"Protocol error" },
 	{ BSM_ELOCKUNMAPPED,
 #ifdef ELOCKUNMAPPED
 	ELOCKUNMAPPED,
@@ -312,8 +324,20 @@
 	ERRNO_NO_LOCAL_MAPPING,
 #endif
 	"Facility is not active" },
-	{ BSM_EMULTIHOP, EMULTIHOP, "Multihop attempted" },
-	{ BSM_EBADMSG, EBADMSG, "Bad message" },
+	{ BSM_EMULTIHOP,
+#ifdef EMULTIHOP
+	EMULTIHOP,
+#else
+	ERRNO_NO_LOCAL_MAPPING,
+#endif
+	"Multihop attempted" },
+	{ BSM_EBADMSG,
+#ifdef EBADMSG
+	EBADMSG,
+#else
+	ERRNO_NO_LOCAL_MAPPING,
+#endif
+	"Bad message" },
 	{ BSM_ENAMETOOLONG, ENAMETOOLONG, "File name too long" },
 	{ BSM_EOVERFLOW, EOVERFLOW, "Value too large to be stored in data type" },
 	{ BSM_ENOTUNIQ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812191207.mBJC7Jw5094140>