From owner-p4-projects@FreeBSD.ORG Wed Nov 12 19:44:02 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6CD3E1065743; Wed, 12 Nov 2008 19:44:02 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EA071065688 for ; Wed, 12 Nov 2008 19:44:02 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1C3238FC0C for ; Wed, 12 Nov 2008 19:44:02 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mACJi15n043634 for ; Wed, 12 Nov 2008 19:44:01 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mACJi1uS043632 for perforce@freebsd.org; Wed, 12 Nov 2008 19:44:01 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 12 Nov 2008 19:44:01 GMT Message-Id: <200811121944.mACJi1uS043632@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 152890 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 19:44:02 -0000 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 @@ -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