PERFORCE change 154803 for review
Stacey Son
sson at FreeBSD.org
Tue Dec 16 09:07:37 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=154803
Change 154803 by sson at 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);
More information about the p4-projects
mailing list