Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2008 19:44:01 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 152890 for review
Message-ID:  <200811121944.mACJi1uS043632@repoman.freebsd.org>

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

Change 152890 by rwatson@rwatson_cinnamon on 2008/11/12 19:43:55

	Add BSM_ESUCCESS to represent a success errno value, and map it
	to and from '0' locally.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#5 edit
.. //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#4 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#5 (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#4 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#5 $
  */
 
 #include <sys/types.h>
@@ -76,6 +76,7 @@
  * yet.
  */
 static const struct bsm_errors bsm_errors[] = {
+	{ BSM_ESUCCESS, 0 },
 	{ BSM_EPERM, EPERM },
 	{ BSM_ENOENT, ENOENT },
 	{ BSM_ESRCH, ESRCH },

==== //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#4 (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/sys/bsm/audit_errno.h#3 $
+ * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_errno.h#4 $
  */
 
 #ifndef _BSM_AUDIT_ERRNO_H_
@@ -41,6 +41,7 @@
  *
  * When adding constants here, also add them to bsm_errno.c.
  */
+#define	BSM_ESUCCESS		0
 #define	BSM_EPERM		1
 #define	BSM_ENOENT		2
 #define	BSM_ESRCH		3



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