Deleted Added
full compact
pstat.c (169134) pstat.c (169177)
1/*-
2 * Copyright (c) 1980, 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technologies, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

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

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1980, 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technologies, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

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

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
46#endif /* not lint */
47#endif
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/usr.sbin/pstat/pstat.c 169134 2007-04-30 15:16:19Z ache $");
49__FBSDID("$FreeBSD: head/usr.sbin/pstat/pstat.c 169177 2007-05-01 16:02:44Z ache $");
50
51#include <sys/param.h>
52#include <sys/time.h>
53#include <sys/file.h>
54#include <sys/stat.h>
55#include <sys/stdint.h>
56#include <sys/ioctl.h>
57#include <sys/ioctl_compat.h> /* XXX NTTYDISC is too well hidden */

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

130 }
131
132 while ((ch = getopt(argc, argv, opts)) != -1)
133 switch (ch) {
134 case 'f':
135 fileflag = 1;
136 break;
137 case 'g':
50
51#include <sys/param.h>
52#include <sys/time.h>
53#include <sys/file.h>
54#include <sys/stat.h>
55#include <sys/stdint.h>
56#include <sys/ioctl.h>
57#include <sys/ioctl_compat.h> /* XXX NTTYDISC is too well hidden */

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

130 }
131
132 while ((ch = getopt(argc, argv, opts)) != -1)
133 switch (ch) {
134 case 'f':
135 fileflag = 1;
136 break;
137 case 'g':
138 putenv(strdup("BLOCKSIZE=1G"));
138 putenv("BLOCKSIZE=1G");
139 break;
140 case 'h':
141 humanflag = 1;
142 break;
143 case 'k':
139 break;
140 case 'h':
141 humanflag = 1;
142 break;
143 case 'k':
144 putenv(strdup("BLOCKSIZE=1K"));
144 putenv("BLOCKSIZE=1K");
145 break;
146 case 'm':
145 break;
146 case 'm':
147 putenv(strdup("BLOCKSIZE=1M"));
147 putenv("BLOCKSIZE=1M");
148 break;
149 case 'M':
150 memf = optarg;
151 break;
152 case 'N':
153 nlistf = optarg;
154 break;
155 case 'n':

--- 460 unchanged lines hidden ---
148 break;
149 case 'M':
150 memf = optarg;
151 break;
152 case 'N':
153 nlistf = optarg;
154 break;
155 case 'n':

--- 460 unchanged lines hidden ---