summaryrefslogtreecommitdiff
path: root/groupaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'groupaccess.h')
-rw-r--r--groupaccess.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/groupaccess.h b/groupaccess.h
index 01e394f69..ede4805c2 100644
--- a/groupaccess.h
+++ b/groupaccess.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: groupaccess.h,v 1.3 2001/06/26 06:32:52 itojun Exp $ */ 1/* $OpenBSD: groupaccess.h,v 1.4 2001/06/26 17:27:23 markus Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Kevin Steves. All rights reserved. 4 * Copyright (c) 2001 Kevin Steves. All rights reserved.
@@ -29,21 +29,8 @@
29 29
30#include <grp.h> 30#include <grp.h>
31 31
32/* 32int ga_init(const char *, gid_t);
33 * Initialize group access list for user with primary (base) and 33int ga_match(char * const *, int);
34 * supplementary groups. Return the number of groups in the list. 34void ga_free(void);
35 */
36int ga_init(const char *, gid_t);
37
38/*
39 * Return 1 if one of user's groups is contained in groups.
40 * Return 0 otherwise. Use match_pattern() for string comparison.
41 */
42int ga_match(char * const *, int);
43
44/*
45 * Free memory allocated for group access list.
46 */
47void ga_free(void);
48 35
49#endif 36#endif