nlist.c (90110) | nlist.c (90143) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993, 1994 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 | 1/*- 2 * Copyright (c) 1990, 1993, 1994 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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#ifndef lint | 34#include <sys/cdefs.h> 35 36__FBSDID("$FreeBSD: head/bin/ps/nlist.c 90143 2002-02-03 14:43:04Z markm $"); 37 |
35#if 0 | 38#if 0 |
39#ifndef lint |
|
36static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94"; | 40static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94"; |
37#endif 38static const char rcsid[] = 39 "$FreeBSD: head/bin/ps/nlist.c 90110 2002-02-02 06:48:10Z imp $"; | |
40#endif /* not lint */ | 41#endif /* not lint */ |
42#endif |
|
41 42#include <sys/types.h> 43#include <sys/sysctl.h> 44 45#include <stddef.h> 46 | 43 44#include <sys/types.h> 45#include <sys/sysctl.h> 46 47#include <stddef.h> 48 |
49#include "ps.h" 50 |
|
47fixpt_t ccpu; /* kernel _ccpu variable */ 48int nlistread; /* if nlist already read. */ 49int mempages; /* number of pages of phys. memory */ 50int fscale; /* kernel _fscale variable */ 51 52int 53donlist(void) 54{ --- 14 unchanged lines hidden --- | 51fixpt_t ccpu; /* kernel _ccpu variable */ 52int nlistread; /* if nlist already read. */ 53int mempages; /* number of pages of phys. memory */ 54int fscale; /* kernel _fscale variable */ 55 56int 57donlist(void) 58{ --- 14 unchanged lines hidden --- |