util.h revision 267654
1223328Sgavin/*	$FreeBSD: releng/9.3/lib/libnetbsd/util.h 244557 2012-12-21 20:37:38Z brooks $	*/
2223328Sgavin
379971Sobrien/*-
4223328Sgavin * Copyright (c) 2012 SRI International
5223328Sgavin * Copyright (c) 1995
6223328Sgavin *	The Regents of the University of California.  All rights reserved.
7223328Sgavin *
8223328Sgavin * Redistribution and use in source and binary forms, with or without
9223328Sgavin * modification, are permitted provided that the following conditions
1079971Sobrien * are met:
11223328Sgavin * 1. Redistributions of source code must retain the above copyright
12223328Sgavin *    notice, this list of conditions and the following disclaimer.
13223328Sgavin * 2. Redistributions in binary form must reproduce the above copyright
14223328Sgavin *    notice, this list of conditions and the following disclaimer in the
15223328Sgavin *    documentation and/or other materials provided with the distribution.
1679971Sobrien * 3. Neither the name of the University nor the names of its contributors
17223328Sgavin *    may be used to endorse or promote products derived from this software
18223328Sgavin *    without specific prior written permission.
19223328Sgavin *
20223328Sgavin * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21223328Sgavin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22223328Sgavin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23223328Sgavin * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24223328Sgavin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25223328Sgavin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26223328Sgavin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27223328Sgavin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28223328Sgavin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29223328Sgavin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30223328Sgavin * SUCH DAMAGE.
31223328Sgavin */
32223328Sgavin
33223328Sgavin#ifndef _UTIL_H_
34223328Sgavin#define _UTIL_H_
35223328Sgavin
36223328Sgavin#include <libutil.h>
37223328Sgavin
38223328Sgavinchar	*flags_to_string(u_long flags, const char *def);
39223328Sgavinint	 string_to_flags(char **stringp, u_long *setp, u_long *clrp);
40223328Sgavin
41223328Sgavin#endif	/* _UTIL_H_ */
42223328Sgavin