From owner-p4-projects@FreeBSD.ORG Tue Dec 16 17:07:37 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5397D1065676; Tue, 16 Dec 2008 17:07:37 +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 17D6A1065673 for ; Tue, 16 Dec 2008 17:07:37 +0000 (UTC) (envelope-from sson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 05C3F8FC13 for ; Tue, 16 Dec 2008 17:07:37 +0000 (UTC) (envelope-from sson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBGH7ab3099079 for ; Tue, 16 Dec 2008 17:07:36 GMT (envelope-from sson@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBGH7a3T099077 for perforce@freebsd.org; Tue, 16 Dec 2008 17:07:36 GMT (envelope-from sson@FreeBSD.org) Date: Tue, 16 Dec 2008 17:07:36 GMT Message-Id: <200812161707.mBGH7a3T099077@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sson@FreeBSD.org using -f From: Stacey Son To: Perforce Change Reviews Cc: Subject: PERFORCE change 154803 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: Tue, 16 Dec 2008 17:07:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=154803 Change 154803 by sson@sson_amd64 on 2008/12/16 17:06:52 Additional changes for compile time warnings: - Added missing prototypes for au_notify_initialize(), au_notify_terminate() and au_to_header32_ex(). - Included in libbsm/bsm_errno.c. Affected files ... .. //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#39 edit .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#8 edit .. //depot/projects/trustedbsd/openbsm/sys/bsm/audit_record.h#8 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#39 (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/bsm/libbsm.h#38 $ + * $P4: //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#39 $ */ #ifndef _LIBBSM_H_ @@ -937,6 +937,19 @@ * XXXRW: In Apple's bsm-8, these are marked __APPLE_API_PRIVATE. */ int au_get_state(void); + +/* + * Initialize the audit notification. If it has not already been initialized + * it will automatically on the first call of au_get_state(). + */ +uint32_t au_notify_initialize(void); + +/* + * Cancel audit notification and free the resources associated with it. + * Responsible code that no longer needs to use au_get_state() should call + * this. + */ +int au_notify_terminate(void); __END_DECLS /* OpenSSH compatibility */ ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#8 (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#7 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#8 $ */ #include @@ -48,6 +48,7 @@ #endif /* !HAVE_SYS_ENDIAN_H */ #include +#include #include #include ==== //depot/projects/trustedbsd/openbsm/sys/bsm/audit_record.h#8 (text+ko) ==== @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 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_record.h#7 $ + * $P4: //depot/projects/trustedbsd/openbsm/sys/bsm/audit_record.h#8 $ */ #ifndef _BSM_AUDIT_RECORD_H_ @@ -206,6 +206,7 @@ token_t *au_to_header_ex(int rec_size, au_event_t e_type, au_emod_t e_mod); token_t *au_to_header32(int rec_size, au_event_t e_type, au_emod_t e_mod); token_t *au_to_header64(int rec_size, au_event_t e_type, au_emod_t e_mod); +token_t *au_to_header32_ex(int rec_size, au_event_t e_type, au_emod_t e_mod); #endif token_t *au_to_me(void);