Deleted Added
full compact
audit.c (155131) audit.c (155364)
1/*
2 * Copyright (c) 2005 Apple Computer, Inc.
3 * All rights reserved.
4 *
5 * @APPLE_BSD_LICENSE_HEADER_START@
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * @APPLE_BSD_LICENSE_HEADER_END@
32 *
1/*
2 * Copyright (c) 2005 Apple Computer, Inc.
3 * All rights reserved.
4 *
5 * @APPLE_BSD_LICENSE_HEADER_START@
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * @APPLE_BSD_LICENSE_HEADER_END@
32 *
33 * $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.c#2 $
33 * $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.c#4 $
34 */
35/*
36 * Program to trigger the audit daemon with a message that is either:
37 * - Open a new audit log file
38 * - Read the audit control file and take action on it
39 * - Close the audit log file and exit
40 *
41 */

--- 18 unchanged lines hidden (view full) ---

60}
61
62/*
63 * Main routine to process command line options.
64 */
65int
66main(int argc, char **argv)
67{
34 */
35/*
36 * Program to trigger the audit daemon with a message that is either:
37 * - Open a new audit log file
38 * - Read the audit control file and take action on it
39 * - Close the audit log file and exit
40 *
41 */

--- 18 unchanged lines hidden (view full) ---

60}
61
62/*
63 * Main routine to process command line options.
64 */
65int
66main(int argc, char **argv)
67{
68 char ch;
68 int ch;
69 unsigned int trigger = 0;
70
71 if (argc != 2)
72 usage();
73
74 while ((ch = getopt(argc, argv, "nst")) != -1) {
75 switch(ch) {
76

--- 26 unchanged lines hidden ---
69 unsigned int trigger = 0;
70
71 if (argc != 2)
72 usage();
73
74 while ((ch = getopt(argc, argv, "nst")) != -1) {
75 switch(ch) {
76

--- 26 unchanged lines hidden ---