main.c (114601) | main.c (124830) |
---|---|
1/* 2 * Copyright (c) 1994 Christopher G. Demetriou 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 --- 22 unchanged lines hidden (view full) --- 31#if 0 32#ifndef lint 33static const char copyright[] = 34"@(#) Copyright (c) 1994 Christopher G. Demetriou\n\ 35 All rights reserved.\n"; 36#endif 37#endif 38#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1994 Christopher G. Demetriou 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 --- 22 unchanged lines hidden (view full) --- 31#if 0 32#ifndef lint 33static const char copyright[] = 34"@(#) Copyright (c) 1994 Christopher G. Demetriou\n\ 35 All rights reserved.\n"; 36#endif 37#endif 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/usr.sbin/sa/main.c 114601 2003-05-03 21:06:42Z obrien $"); | 39__FBSDID("$FreeBSD: head/usr.sbin/sa/main.c 124830 2004-01-22 07:23:36Z grehan $"); |
40 41/* 42 * sa: system accounting 43 */ 44 45#include <sys/types.h> 46#include <sys/acct.h> 47#include <ctype.h> --- 28 unchanged lines hidden (view full) --- 76static int dfltargc = (sizeof dfltargv/sizeof(char *)); 77 78/* default to comparing by sum of user + system time */ 79cmpf_t sa_cmp = cmp_usrsys; 80 81int 82main(int argc, char **argv) 83{ | 40 41/* 42 * sa: system accounting 43 */ 44 45#include <sys/types.h> 46#include <sys/acct.h> 47#include <ctype.h> --- 28 unchanged lines hidden (view full) --- 76static int dfltargc = (sizeof dfltargv/sizeof(char *)); 77 78/* default to comparing by sum of user + system time */ 79cmpf_t sa_cmp = cmp_usrsys; 80 81int 82main(int argc, char **argv) 83{ |
84 char ch; | |
85 char pathacct[] = _PATH_ACCT; | 84 char pathacct[] = _PATH_ACCT; |
86 int error = 0; | 85 int ch, error = 0; |
87 88 dfltargv[0] = pathacct; 89 90 while ((ch = getopt(argc, argv, "abcdDfijkKlmnqrstuv:")) != -1) 91 switch (ch) { 92 case 'a': 93 /* print all commands */ 94 aflag = 1; --- 461 unchanged lines hidden --- | 86 87 dfltargv[0] = pathacct; 88 89 while ((ch = getopt(argc, argv, "abcdDfijkKlmnqrstuv:")) != -1) 90 switch (ch) { 91 case 'a': 92 /* print all commands */ 93 aflag = 1; --- 461 unchanged lines hidden --- |