geom_stats.c (110545) | geom_stats.c (110603) |
---|---|
1/*- 2 * Copyright (c) 2003 Poul-Henning Kamp 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2003 Poul-Henning Kamp 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 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/lib/libgeom/geom_stats.c 110545 2003-02-08 15:15:56Z phk $ | 29 * $FreeBSD: head/lib/libgeom/geom_stats.c 110603 2003-02-10 00:11:43Z phk $ |
30 */ 31 32#include <paths.h> 33#include <errno.h> 34#include <fcntl.h> 35#include <stdlib.h> 36#include <string.h> 37#include <unistd.h> 38#include <libgeom.h> 39 40#include <sys/mman.h> 41#include <sys/time.h> 42#include <sys/types.h> 43 44#include <geom/geom_stats.h> | 30 */ 31 32#include <paths.h> 33#include <errno.h> 34#include <fcntl.h> 35#include <stdlib.h> 36#include <string.h> 37#include <unistd.h> 38#include <libgeom.h> 39 40#include <sys/mman.h> 41#include <sys/time.h> 42#include <sys/types.h> 43 44#include <geom/geom_stats.h> |
45#if 0 46#include <stdio.h> 47#include <stdint.h> 48#include <err.h> 49#endif | |
50 51/************************************************************/ 52static uint npages, pagesize, spp; 53static int statsfd = -1; 54static u_char *statp; 55 56void 57geom_stats_close(void) --- 133 unchanged lines hidden --- | 45 46/************************************************************/ 47static uint npages, pagesize, spp; 48static int statsfd = -1; 49static u_char *statp; 50 51void 52geom_stats_close(void) --- 133 unchanged lines hidden --- |