Deleted Added
full compact
memstat.c (148619) memstat.c (148627)
1/*-
2 * Copyright (c) 2005 Robert N. M. Watson
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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 *
1/*-
2 * Copyright (c) 2005 Robert N. M. Watson
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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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 * $FreeBSD: head/lib/libmemstat/memstat.c 148619 2005-08-01 13:18:21Z rwatson $
26 * $FreeBSD: head/lib/libmemstat/memstat.c 148627 2005-08-01 19:07:39Z rwatson $
27 */
28
29#include <sys/param.h>
30#include <sys/sysctl.h>
31
32#include <err.h>
33#include <errno.h>
34#include <stdio.h>

--- 13 unchanged lines hidden (view full) ---

48 case MEMSTAT_ERROR_VERSION:
49 return ("Version mismatch");
50 case MEMSTAT_ERROR_PERMISSION:
51 return ("Permission denied");
52 case MEMSTAT_ERROR_TOOMANYCPUS:
53 return ("Too many CPUs");
54 case MEMSTAT_ERROR_DATAERROR:
55 return ("Data format error");
27 */
28
29#include <sys/param.h>
30#include <sys/sysctl.h>
31
32#include <err.h>
33#include <errno.h>
34#include <stdio.h>

--- 13 unchanged lines hidden (view full) ---

48 case MEMSTAT_ERROR_VERSION:
49 return ("Version mismatch");
50 case MEMSTAT_ERROR_PERMISSION:
51 return ("Permission denied");
52 case MEMSTAT_ERROR_TOOMANYCPUS:
53 return ("Too many CPUs");
54 case MEMSTAT_ERROR_DATAERROR:
55 return ("Data format error");
56 case MEMSTAT_ERROR_KVM:
57 return ("KVM error");
58 case MEMSTAT_ERROR_KVM_NOSYMBOL:
59 return ("KVM unable to find symbol");
60 case MEMSTAT_ERROR_KVM_SHORTREAD:
61 return ("KVM short read");
56 case MEMSTAT_ERROR_UNDEFINED:
57 default:
58 return ("Unknown error");
59 }
60}
61
62struct memory_type_list *
63memstat_mtl_alloc(void)

--- 352 unchanged lines hidden ---
62 case MEMSTAT_ERROR_UNDEFINED:
63 default:
64 return ("Unknown error");
65 }
66}
67
68struct memory_type_list *
69memstat_mtl_alloc(void)

--- 352 unchanged lines hidden ---