1*10f81a9bSEnji Cooper /*- 2*10f81a9bSEnji Cooper * Copyright (c) 2017 Ngie Cooper <ngie@freebsd.org> 3*10f81a9bSEnji Cooper * All rights reserved. 4*10f81a9bSEnji Cooper * 5*10f81a9bSEnji Cooper * Redistribution and use in source and binary forms, with or without 6*10f81a9bSEnji Cooper * modification, are permitted provided that the following conditions 7*10f81a9bSEnji Cooper * are met: 8*10f81a9bSEnji Cooper * 1. Redistributions of source code must retain the above copyright 9*10f81a9bSEnji Cooper * notice, this list of conditions and the following disclaimer. 10*10f81a9bSEnji Cooper * 2. Redistributions in binary form must reproduce the above copyright 11*10f81a9bSEnji Cooper * notice, this list of conditions and the following disclaimer in the 12*10f81a9bSEnji Cooper * documentation and/or other materials provided with the distribution. 13*10f81a9bSEnji Cooper * 14*10f81a9bSEnji Cooper * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*10f81a9bSEnji Cooper * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*10f81a9bSEnji Cooper * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*10f81a9bSEnji Cooper * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*10f81a9bSEnji Cooper * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*10f81a9bSEnji Cooper * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*10f81a9bSEnji Cooper * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*10f81a9bSEnji Cooper * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*10f81a9bSEnji Cooper * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*10f81a9bSEnji Cooper * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*10f81a9bSEnji Cooper * SUCH DAMAGE. 25*10f81a9bSEnji Cooper * 26*10f81a9bSEnji Cooper * $FreeBSD$ 27*10f81a9bSEnji Cooper */ 28*10f81a9bSEnji Cooper 29*10f81a9bSEnji Cooper #ifndef __KVM_TEST_COMMON_H__ 30*10f81a9bSEnji Cooper 31*10f81a9bSEnji Cooper #include <sys/types.h> 32*10f81a9bSEnji Cooper #include <limits.h> 33*10f81a9bSEnji Cooper #include <stdbool.h> 34*10f81a9bSEnji Cooper 35*10f81a9bSEnji Cooper extern char errbuf[_POSIX2_LINE_MAX]; 36*10f81a9bSEnji Cooper 37*10f81a9bSEnji Cooper void errbuf_clear(void); 38*10f81a9bSEnji Cooper bool errbuf_has_error(const char *); 39*10f81a9bSEnji Cooper 40*10f81a9bSEnji Cooper #endif 41