xref: /freebsd/crypto/openssh/groupaccess.h (revision ae1f160d56b2d59d406f1af34cbdcc88a9e1b914)
1ae1f160dSDag-Erling Smørgrav /*	$OpenBSD: groupaccess.h,v 1.4 2001/06/26 17:27:23 markus Exp $	*/
21e8db6e2SBrian Feldman 
31e8db6e2SBrian Feldman /*
41e8db6e2SBrian Feldman  * Copyright (c) 2001 Kevin Steves.  All rights reserved.
51e8db6e2SBrian Feldman  *
61e8db6e2SBrian Feldman  * Redistribution and use in source and binary forms, with or without
71e8db6e2SBrian Feldman  * modification, are permitted provided that the following conditions
81e8db6e2SBrian Feldman  * are met:
91e8db6e2SBrian Feldman  * 1. Redistributions of source code must retain the above copyright
101e8db6e2SBrian Feldman  *    notice, this list of conditions and the following disclaimer.
111e8db6e2SBrian Feldman  * 2. Redistributions in binary form must reproduce the above copyright
121e8db6e2SBrian Feldman  *    notice, this list of conditions and the following disclaimer in the
131e8db6e2SBrian Feldman  *    documentation and/or other materials provided with the distribution.
141e8db6e2SBrian Feldman  *
151e8db6e2SBrian Feldman  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
161e8db6e2SBrian Feldman  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
171e8db6e2SBrian Feldman  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
181e8db6e2SBrian Feldman  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
191e8db6e2SBrian Feldman  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
201e8db6e2SBrian Feldman  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
211e8db6e2SBrian Feldman  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
221e8db6e2SBrian Feldman  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
231e8db6e2SBrian Feldman  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
241e8db6e2SBrian Feldman  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
251e8db6e2SBrian Feldman  */
261e8db6e2SBrian Feldman 
271e8db6e2SBrian Feldman #ifndef GROUPACCESS_H
281e8db6e2SBrian Feldman #define GROUPACCESS_H
291e8db6e2SBrian Feldman 
301e8db6e2SBrian Feldman #include <grp.h>
311e8db6e2SBrian Feldman 
32ae1f160dSDag-Erling Smørgrav int	 ga_init(const char *, gid_t);
33ae1f160dSDag-Erling Smørgrav int	 ga_match(char * const *, int);
341e8db6e2SBrian Feldman void	 ga_free(void);
351e8db6e2SBrian Feldman 
361e8db6e2SBrian Feldman #endif
37