10Sstevel@tonic-gate /* $OpenBSD: groupaccess.h,v 1.4 2001/06/26 17:27:23 markus Exp $ */ 20Sstevel@tonic-gate 30Sstevel@tonic-gate #ifndef _GROUPACCESS_H 40Sstevel@tonic-gate #define _GROUPACCESS_H 50Sstevel@tonic-gate 60Sstevel@tonic-gate #ifdef __cplusplus 70Sstevel@tonic-gate extern "C" { 80Sstevel@tonic-gate #endif 90Sstevel@tonic-gate 100Sstevel@tonic-gate 110Sstevel@tonic-gate /* 120Sstevel@tonic-gate * Copyright (c) 2001 Kevin Steves. All rights reserved. 130Sstevel@tonic-gate * 140Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 150Sstevel@tonic-gate * modification, are permitted provided that the following conditions 160Sstevel@tonic-gate * are met: 170Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright 180Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer. 190Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright 200Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer in the 210Sstevel@tonic-gate * documentation and/or other materials provided with the distribution. 220Sstevel@tonic-gate * 230Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 240Sstevel@tonic-gate * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 250Sstevel@tonic-gate * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 260Sstevel@tonic-gate * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 270Sstevel@tonic-gate * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 280Sstevel@tonic-gate * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 290Sstevel@tonic-gate * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 300Sstevel@tonic-gate * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 310Sstevel@tonic-gate * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 320Sstevel@tonic-gate * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 330Sstevel@tonic-gate */ 340Sstevel@tonic-gate 350Sstevel@tonic-gate #include <grp.h> 360Sstevel@tonic-gate 370Sstevel@tonic-gate int ga_init(const char *, gid_t); 380Sstevel@tonic-gate int ga_match(char * const *, int); 39*11044SHuie-Ying.Lee@Sun.COM int ga_match_pattern_list(const char *); 400Sstevel@tonic-gate void ga_free(void); 410Sstevel@tonic-gate 420Sstevel@tonic-gate #ifdef __cplusplus 430Sstevel@tonic-gate } 440Sstevel@tonic-gate #endif 450Sstevel@tonic-gate 460Sstevel@tonic-gate #endif /* _GROUPACCESS_H */ 47