xref: /netbsd-src/usr.bin/newgrp/grutil.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: grutil.h,v 1.2 2008/04/28 20:24:14 martin Exp $	*/
2542b6466Schristos 
3542b6466Schristos /*-
4542b6466Schristos  * Copyright (c) 2007 The NetBSD Foundation, Inc.
5542b6466Schristos  * All rights reserved.
6542b6466Schristos  *
7542b6466Schristos  * This code is derived from software contributed to The NetBSD Foundation
8542b6466Schristos  * by Brian Ginsbach.
9542b6466Schristos  *
10542b6466Schristos  * Redistribution and use in source and binary forms, with or without
11542b6466Schristos  * modification, are permitted provided that the following conditions
12542b6466Schristos  * are met:
13542b6466Schristos  * 1. Redistributions of source code must retain the above copyright
14542b6466Schristos  *    notice, this list of conditions and the following disclaimer.
15542b6466Schristos  * 2. Redistributions in binary form must reproduce the above copyright
16542b6466Schristos  *    notice, this list of conditions and the following disclaimer in the
17542b6466Schristos  *    documentation and/or other materials provided with the distribution.
18542b6466Schristos  *
19542b6466Schristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20542b6466Schristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21542b6466Schristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22542b6466Schristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23542b6466Schristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24542b6466Schristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25542b6466Schristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26542b6466Schristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27542b6466Schristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28542b6466Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29542b6466Schristos  * POSSIBILITY OF SUCH DAMAGE.
30542b6466Schristos  */
31542b6466Schristos #ifndef _GRUTIL_H_
32542b6466Schristos #define _GRUTIL_H_
33542b6466Schristos 
34542b6466Schristos void addgroup(
35542b6466Schristos #ifdef LOGIN_CAP
36542b6466Schristos     login_cap_t *,
37542b6466Schristos #endif
38542b6466Schristos     const char *, struct passwd *, uid_t, const char *);
39542b6466Schristos 
40542b6466Schristos #endif /* _GRUTIL_H_ */
41