1/*- 2 * Copyright (c) 1983, 1989, 1992, 1993 3 * The Regents of the University of California. 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 --- 19 unchanged lines hidden (view full) --- 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> 35 |
36__FBSDID("$FreeBSD: head/usr.bin/systat/vmstat.c 202200 2010-01-13 18:09:54Z ed $"); |
37 38#ifdef lint 39static const char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; 40#endif 41 42/* 43 * Cursed vmstat -- from Robert Elz. 44 */ --- 15 unchanged lines hidden (view full) --- 60#include <errno.h> 61#include <langinfo.h> 62#include <nlist.h> 63#include <paths.h> 64#include <signal.h> 65#include <stdlib.h> 66#include <string.h> 67#include <time.h> |
68#include <unistd.h> |
69#include <utmpx.h> |
70#include <devstat.h> 71#include "systat.h" 72#include "extern.h" 73#include "devs.h" 74 75static struct Info { 76 long time[CPUSTATES]; 77 u_int v_swtch; /* context switches */ --- 799 unchanged lines hidden --- |