=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/machine.c,v retrieving revision 1.87 retrieving revision 1.88 diff -c -r1.87 -r1.88 *** src/usr.bin/top/machine.c 2016/07/28 21:45:00 1.87 --- src/usr.bin/top/machine.c 2017/03/15 04:24:14 1.88 *************** *** 1,4 **** ! /* $OpenBSD: machine.c,v 1.87 2016/07/28 21:45:00 tedu Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert --- 1,4 ---- ! /* $OpenBSD: machine.c,v 1.88 2017/03/15 04:24:14 deraadt Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert *************** *** 93,101 **** }; /* these are for calculating cpu state percentages */ ! static int64_t **cp_time; ! static int64_t **cp_old; ! static int64_t **cp_diff; /* these are for detailing the process states */ int process_states[8]; --- 93,101 ---- }; /* these are for calculating cpu state percentages */ ! static int64_t **cp_time; ! static int64_t **cp_old; ! static int64_t **cp_diff; /* these are for detailing the process states */ int process_states[8]; *************** *** 126,139 **** }; /* these are for keeping track of the proc array */ ! static int nproc; ! static int onproc = -1; ! static int pref_len; static struct kinfo_proc *pbase; static struct kinfo_proc **pref; /* these are for getting the memory statistics */ ! static int pageshift; /* log base 2 of the pagesize */ /* define pagetok in terms of pageshift */ #define pagetok(size) ((size) << pageshift) --- 126,139 ---- }; /* these are for keeping track of the proc array */ ! static int nproc; ! static int onproc = -1; ! static int pref_len; static struct kinfo_proc *pbase; static struct kinfo_proc **pref; /* these are for getting the memory statistics */ ! static int pageshift; /* log base 2 of the pagesize */ /* define pagetok in terms of pageshift */ #define pagetok(size) ((size) << pageshift)