praudit.c (155131) | praudit.c (155364) |
---|---|
1/* 2 * Copyright (c) 2004 Apple Computer, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 2004 Apple Computer, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/praudit/praudit.c#7 $ | 29 * $P4: //depot/projects/trustedbsd/openbsm/bin/praudit/praudit.c#9 $ |
30 */ 31 32/* 33 * Tool used to parse audit records conforming to the BSM structure. 34 */ 35 36/* 37 * praudit [-lrs] [-ddel] [filenames] --- 62 unchanged lines hidden (view full) --- 100 printf("\n"); 101 } 102 return (0); 103} 104 105int 106main(int argc, char **argv) 107{ | 30 */ 31 32/* 33 * Tool used to parse audit records conforming to the BSM structure. 34 */ 35 36/* 37 * praudit [-lrs] [-ddel] [filenames] --- 62 unchanged lines hidden (view full) --- 100 printf("\n"); 101 } 102 return (0); 103} 104 105int 106main(int argc, char **argv) 107{ |
108 char ch; | 108 int ch; |
109 int i; 110 FILE *fp; 111 112 while ((ch = getopt(argc, argv, "lprsd:")) != -1) { 113 switch(ch) { 114 case 'l': 115 oneline = 1; 116 break; --- 41 unchanged lines hidden --- | 109 int i; 110 FILE *fp; 111 112 while ((ch = getopt(argc, argv, "lprsd:")) != -1) { 113 switch(ch) { 114 case 'l': 115 oneline = 1; 116 break; --- 41 unchanged lines hidden --- |