mpsutil.h (286180) | mpsutil.h (289364) |
---|---|
1/*- 2 * Copyright (c) 2008 Yahoo!, Inc. 3 * All rights reserved. 4 * Written by: John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 2008 Yahoo!, Inc. 3 * All rights reserved. 4 * Written by: John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: projects/mpsutil/usr.sbin/mpsutil/mpsutil.h 286180 2015-08-02 03:52:51Z scottl $ | 30 * $FreeBSD: projects/mpsutil/usr.sbin/mpsutil/mpsutil.h 289364 2015-10-15 15:19:38Z bapt $ |
31 */ 32 33#ifndef __MPSUTIL_H__ 34#define __MPSUTIL_H__ 35 36#include <sys/cdefs.h> 37#include <sys/linker_set.h> 38 --- 47 unchanged lines hidden (view full) --- 86 mpsutil_ ## name ## _table_handler(int ac, char **av) \ 87 { \ 88 return (mps_table_handler(SET_BEGIN(MPS_DATASET(name)), \ 89 SET_LIMIT(MPS_DATASET(name)), ac, av)); \ 90 } \ 91 _MPS_COMMAND(set, name, mpsutil_ ## name ## _table_handler) 92 93extern int mps_unit; | 31 */ 32 33#ifndef __MPSUTIL_H__ 34#define __MPSUTIL_H__ 35 36#include <sys/cdefs.h> 37#include <sys/linker_set.h> 38 --- 47 unchanged lines hidden (view full) --- 86 mpsutil_ ## name ## _table_handler(int ac, char **av) \ 87 { \ 88 return (mps_table_handler(SET_BEGIN(MPS_DATASET(name)), \ 89 SET_LIMIT(MPS_DATASET(name)), ac, av)); \ 90 } \ 91 _MPS_COMMAND(set, name, mpsutil_ ## name ## _table_handler) 92 93extern int mps_unit; |
94extern int is_mps; |
|
94#define MPS_MAX_UNIT 10 95 96void hexdump(const void *ptr, int length, const char *hdr, int flags); 97#define HD_COLUMN_MASK 0xff 98#define HD_DELIM_MASK 0xff00 99#define HD_OMIT_COUNT (1 << 16) 100#define HD_OMIT_HEX (1 << 17) 101#define HD_OMIT_CHARS (1 << 18) --- 99 unchanged lines hidden --- | 95#define MPS_MAX_UNIT 10 96 97void hexdump(const void *ptr, int length, const char *hdr, int flags); 98#define HD_COLUMN_MASK 0xff 99#define HD_DELIM_MASK 0xff00 100#define HD_OMIT_COUNT (1 << 16) 101#define HD_OMIT_HEX (1 << 17) 102#define HD_OMIT_CHARS (1 << 18) --- 99 unchanged lines hidden --- |