source: trunk/athena/bin/discuss/include/internal.h @ 1931

Revision 1931, 1.3 KB checked in by srz, 35 years ago (diff)
Initial revision
Line 
1/*
2 * Discuss server internal routines
3 */
4
5#ifndef __STDC__
6#define const
7#define volatile
8#endif
9
10/*
11 * ACL-manipulation routines
12 */
13
14#ifdef __STDC__
15dsc_acl *acl_read(int fd);
16dsc_acl *acl_create(void);
17dsc_acl *acl_copy(dsc_acl *old);
18bool acl_check(dsc_acl *list, const char *principal, const char *modes);
19int acl_add_access(dsc_acl *list, const char *principal, const char *modes);
20bool acl_delete_access(dsc_acl *acl, const char *principal);
21bool acl_is_subset(const char *s1, const char *s2);
22int acl_replace_access(dsc_acl *list, const char *principal,
23                       const char *modes);
24const char *acl_get_access(dsc_acl *list, const char *principal);
25char *acl_canon(const char *s1, const char *s2, int *code);
26bool acl_write(int fd, dsc_acl *list);
27bool has_mtg_access();
28bool has_trn_access();
29int acl_destroy (dsc_acl *list);
30char *acl_intersection (const char *s1, const char *s2);
31char *acl_union (const char *s1, const char *s2);
32char *acl_subtract (const char *s1, const char *s2);
33#else
34dsc_acl *acl_read();
35dsc_acl *acl_create();
36dsc_acl *acl_copy();
37bool acl_check();
38extern int acl_add_access();
39extern bool acl_delete_access();
40extern bool acl_is_subset();
41extern acl_replace_access();
42char *acl_get_access();
43char *acl_canon();
44bool acl_write();
45bool has_mtg_access();
46bool has_trn_access();
47#endif
Note: See TracBrowser for help on using the repository browser.