proc.c (7c478bd95313f5f23a4c958a745db2134aa03244) | proc.c (d0fa49b78d1f40d84ec76c363cdc38cf128511dd) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright 2003 Sun Microsystems, Inc. 24 * All rights reserved. | 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
25 * Use is subject to license terms. 26 */ 27 | 23 * Use is subject to license terms. 24 */ 25 |
28#pragma ident "%Z%%M% %I% %E% SMI" | |
29 30/* 31 * Main processor for auditreduce. 32 * Mproc() is the entry point for this module. It is the only visible 33 * function in this module. 34 */ 35 36#include <sys/types.h> 37#include <locale.h> 38#include <bsm/libbsm.h> | 26 27/* 28 * Main processor for auditreduce. 29 * Mproc() is the entry point for this module. It is the only visible 30 * function in this module. 31 */ 32 33#include <sys/types.h> 34#include <locale.h> 35#include <bsm/libbsm.h> |
36#include <bsm/audit.h> |
|
39#include "auditr.h" 40 41extern int write_header(); 42extern int token_processing(); 43 44static void asort(); 45static audit_pcb_t *aget(); 46static int get_file(); --- 579 unchanged lines hidden (view full) --- 626 */ 627static int 628check_rec(pcb) 629register audit_pcb_t *pcb; 630{ 631 adr_t adr; 632 struct timeval tv; 633 uint_t bytes; | 37#include "auditr.h" 38 39extern int write_header(); 40extern int token_processing(); 41 42static void asort(); 43static audit_pcb_t *aget(); 44static int get_file(); --- 579 unchanged lines hidden (view full) --- 624 */ 625static int 626check_rec(pcb) 627register audit_pcb_t *pcb; 628{ 629 adr_t adr; 630 struct timeval tv; 631 uint_t bytes; |
634 ushort_t id_modifier; | 632 au_emod_t id_modifier; |
635 char version; | 633 char version; |
636 ushort_t event_type; | 634 au_event_t event_type; |
637 char tokenid; 638 int rc; /* return code */ 639 640 adrm_start(&adr, pcb->pcb_rec); 641 (void) adrm_char(&adr, &tokenid, 1); 642 643 /* 644 * checkflags will be my data structure for determining if --- 406 unchanged lines hidden --- | 635 char tokenid; 636 int rc; /* return code */ 637 638 adrm_start(&adr, pcb->pcb_rec); 639 (void) adrm_char(&adr, &tokenid, 1); 640 641 /* 642 * checkflags will be my data structure for determining if --- 406 unchanged lines hidden --- |