ktrdump.c (129574) | ktrdump.c (135842) |
---|---|
1/*- 2 * Copyright (c) 2002 Jake Burkholder 3 * Copyright (c) 2004 Robert Watson 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Jake Burkholder 3 * Copyright (c) 2004 Robert Watson 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/usr.bin/ktrdump/ktrdump.c 129574 2004-05-22 08:26:10Z rwatson $"); | 29__FBSDID("$FreeBSD: head/usr.bin/ktrdump/ktrdump.c 135842 2004-09-27 05:56:57Z julian $"); |
30 31#include <sys/types.h> 32#include <sys/ktr.h> 33#include <sys/mman.h> 34#include <sys/stat.h> 35 36#include <err.h> 37#include <fcntl.h> --- 55 unchanged lines hidden (view full) --- 93 FILE *out; 94 char *p; 95 int version; 96 int entries; 97 int index; 98 int parm; 99 int in; 100 int c; | 30 31#include <sys/types.h> 32#include <sys/ktr.h> 33#include <sys/mman.h> 34#include <sys/stat.h> 35 36#include <err.h> 37#include <fcntl.h> --- 55 unchanged lines hidden (view full) --- 93 FILE *out; 94 char *p; 95 int version; 96 int entries; 97 int index; 98 int parm; 99 int in; 100 int c; |
101 int i; | 101 int i = 0; |
102 103 /* 104 * Parse commandline arguments. 105 */ 106 out = stdout; 107 while ((c = getopt(ac, av, "cfqrte:i:m:o:")) != -1) 108 switch (c) { 109 case 'c': --- 180 unchanged lines hidden --- | 102 103 /* 104 * Parse commandline arguments. 105 */ 106 out = stdout; 107 while ((c = getopt(ac, av, "cfqrte:i:m:o:")) != -1) 108 switch (c) { 109 case 'c': --- 180 unchanged lines hidden --- |