1334360Sasomers/*- 2334360Sasomers * Copyright 2018 Aniket Pandey 3334360Sasomers * 4334360Sasomers * Redistribution and use in source and binary forms, with or without 5334360Sasomers * modification, are permitted provided that the following conditions 6334360Sasomers * are met: 7334360Sasomers * 1. Redistributions of source code must retain the above copyright 8334360Sasomers * notice, this list of conditions and the following disclaimer. 9334360Sasomers * 2. Redistributions in binary form must reproduce the above copyright 10334360Sasomers * notice, this list of conditions and the following disclaimer in the 11334360Sasomers * documentation and/or other materials provided with the distribution. 12334360Sasomers * 13334360Sasomers * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14334360Sasomers * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15334360Sasomers * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16334360Sasomers * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17334360Sasomers * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18334360Sasomers * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19334360Sasomers * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20334360Sasomers * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21334360Sasomers * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22334360Sasomers * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23334360Sasomers * SUCH DAMAGE. 24334360Sasomers * 25334360Sasomers * $FreeBSD: stable/11/tests/sys/audit/utils.h 339087 2018-10-02 16:23:33Z asomers $ 26334360Sasomers */ 27334360Sasomers 28334360Sasomers 29334360Sasomers#ifndef _UTILS_H_ 30334360Sasomers#define _UTILS_H_ 31334360Sasomers 32334360Sasomers#include <poll.h> 33334360Sasomers#include <stdio.h> 34334360Sasomers#include <stdbool.h> 35334360Sasomers#include <bsm/audit.h> 36334360Sasomers 37334360Sasomersvoid check_audit(struct pollfd [], const char *, FILE *); 38334360SasomersFILE *setup(struct pollfd [], const char *); 39334360Sasomersvoid cleanup(void); 40334360Sasomers 41334360Sasomers#endif /* _SETUP_H_ */ 42