1316099Sngie/*-
2316099Sngie * Copyright (c) 2017 Ngie Cooper <ngie@freebsd.org>
3316099Sngie * All rights reserved.
4316099Sngie *
5316099Sngie * Redistribution and use in source and binary forms, with or without
6316099Sngie * modification, are permitted provided that the following conditions
7316099Sngie * are met:
8316099Sngie * 1. Redistributions of source code must retain the above copyright
9316099Sngie *    notice, this list of conditions and the following disclaimer.
10316099Sngie * 2. Redistributions in binary form must reproduce the above copyright
11316099Sngie *    notice, this list of conditions and the following disclaimer in the
12316099Sngie *    documentation and/or other materials provided with the distribution.
13316099Sngie *
14316099Sngie * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15316099Sngie * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16316099Sngie * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17316099Sngie * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18316099Sngie * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19316099Sngie * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20316099Sngie * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21316099Sngie * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22316099Sngie * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23316099Sngie * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24316099Sngie * SUCH DAMAGE.
25316099Sngie *
26316099Sngie * $FreeBSD: stable/10/lib/libkvm/tests/kvm_test_common.h 316099 2017-03-28 17:37:49Z ngie $
27316099Sngie */
28316099Sngie
29316099Sngie#ifndef	__KVM_TEST_COMMON_H__
30316099Sngie
31316099Sngie#include <sys/types.h>
32316099Sngie#include <limits.h>
33316099Sngie#include <stdbool.h>
34316099Sngie
35316099Sngieextern char	errbuf[_POSIX2_LINE_MAX];
36316099Sngie
37316099Sngievoid	errbuf_clear(void);
38316099Sngiebool	errbuf_has_error(const char *);
39316099Sngie
40316099Sngie#endif
41