Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/sa/main.c
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | usage(void) | ||||
(void)fprintf(stderr, | (void)fprintf(stderr, | ||||
"usage: sa [-abcdDfijkKlmnqrstu] [-P file] [-U file] [-v cutoff] [file ...]\n"); | "usage: sa [-abcdDfijkKlmnqrstu] [-P file] [-U file] [-v cutoff] [file ...]\n"); | ||||
exit(1); | exit(1); | ||||
} | } | ||||
static FILE * | static FILE * | ||||
acct_load(const char *pn, int wr) | acct_load(const char *pn, int wr) | ||||
{ | { | ||||
struct acctv2 ac; | struct acctv3 ac; | ||||
struct cmdinfo ci; | struct cmdinfo ci; | ||||
ssize_t rv; | ssize_t rv; | ||||
FILE *f; | FILE *f; | ||||
int i; | int i; | ||||
/* | /* | ||||
* open the file | * open the file | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |