PERFORCE change 152890 for review

Robert Watson rwatson at FreeBSD.org
Wed Nov 12 11:44:02 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=152890

Change 152890 by rwatson at 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


More information about the p4-projects mailing list