vm.c (48678) | vm.c (50186) |
---|---|
1/*- 2 * Copyright (c) 1998 Andrzej Bialecki 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 --- 12 unchanged lines hidden (view full) --- 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $Id: vm.c,v 1.2 1998/10/29 12:38:06 abial Exp $ 27 */ 28 | 1/*- 2 * Copyright (c) 1998 Andrzej Bialecki 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 --- 12 unchanged lines hidden (view full) --- 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $Id: vm.c,v 1.2 1998/10/29 12:38:06 abial Exp $ 27 */ 28 |
29#include <stdio.h> |
|
29#include <sys/types.h> | 30#include <sys/types.h> |
30#include <sys/param.h> | |
31#include <sys/sysctl.h> 32#include <sys/vmmeter.h> | 31#include <sys/sysctl.h> 32#include <sys/vmmeter.h> |
33 | |
34#include <vm/vm_param.h> 35 | 33#include <vm/vm_param.h> 34 |
36#include <stdio.h> | 35#define pgtok(a) ((a) * (u_int) DEFAULT_PAGE_SIZE >> 10) |
37 38int 39main(int argc, char *argv[]) 40{ 41 int mib[2],i=0,len; 42 struct vmtotal v; 43 44 len=sizeof(struct vmtotal); --- 23 unchanged lines hidden --- | 36 37int 38main(int argc, char *argv[]) 39{ 40 int mib[2],i=0,len; 41 struct vmtotal v; 42 43 len=sizeof(struct vmtotal); --- 23 unchanged lines hidden --- |