1 d4af9e69SDag-Erling Smørgrav /* $OpenBSD: groupaccess.h,v 1.8 2008/07/04 03:44:59 djm Exp $ */ 2 1e8db6e2SBrian Feldman 3 1e8db6e2SBrian Feldman /* 4 1e8db6e2SBrian Feldman * Copyright (c) 2001 Kevin Steves. All rights reserved. 5 1e8db6e2SBrian Feldman * 6 1e8db6e2SBrian Feldman * Redistribution and use in source and binary forms, with or without 7 1e8db6e2SBrian Feldman * modification, are permitted provided that the following conditions 8 1e8db6e2SBrian Feldman * are met: 9 1e8db6e2SBrian Feldman * 1. Redistributions of source code must retain the above copyright 10 1e8db6e2SBrian Feldman * notice, this list of conditions and the following disclaimer. 11 1e8db6e2SBrian Feldman * 2. Redistributions in binary form must reproduce the above copyright 12 1e8db6e2SBrian Feldman * notice, this list of conditions and the following disclaimer in the 13 1e8db6e2SBrian Feldman * documentation and/or other materials provided with the distribution. 14 1e8db6e2SBrian Feldman * 15 1e8db6e2SBrian Feldman * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16 1e8db6e2SBrian Feldman * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17 1e8db6e2SBrian Feldman * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18 1e8db6e2SBrian Feldman * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 1e8db6e2SBrian Feldman * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 1e8db6e2SBrian Feldman * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 1e8db6e2SBrian Feldman * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 1e8db6e2SBrian Feldman * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 1e8db6e2SBrian Feldman * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 1e8db6e2SBrian Feldman * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 1e8db6e2SBrian Feldman */ 26 1e8db6e2SBrian Feldman 27 1e8db6e2SBrian Feldman #ifndef GROUPACCESS_H 28 1e8db6e2SBrian Feldman #define GROUPACCESS_H 29 1e8db6e2SBrian Feldman 30 ae1f160dSDag-Erling Smørgrav int ga_init(const char *, gid_t); 31 ae1f160dSDag-Erling Smørgrav int ga_match(char * const *, int); 32 d4af9e69SDag-Erling Smørgrav int ga_match_pattern_list(const char *); 33 1e8db6e2SBrian Feldman void ga_free(void); 34 1e8db6e2SBrian Feldman 35 1e8db6e2SBrian Feldman #endif 36