Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2008 17:07:36 GMT
From:      Stacey Son <sson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 154803 for review
Message-ID:  <200812161707.mBGH7a3T099077@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsm/libbsm.h> 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 <sys/types.h>
@@ -48,6 +48,7 @@
 #endif /* !HAVE_SYS_ENDIAN_H */
 
 #include <bsm/audit_errno.h>
+#include <bsm/libbsm.h>
 
 #include <errno.h>
 #include <string.h>

==== //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);



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