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__ |
---|
15 | dsc_acl *acl_read(int fd); |
---|
16 | dsc_acl *acl_create(void); |
---|
17 | dsc_acl *acl_copy(dsc_acl *old); |
---|
18 | bool acl_check(dsc_acl *list, const char *principal, const char *modes); |
---|
19 | int acl_add_access(dsc_acl *list, const char *principal, const char *modes); |
---|
20 | bool acl_delete_access(dsc_acl *acl, const char *principal); |
---|
21 | bool acl_is_subset(const char *s1, const char *s2); |
---|
22 | int acl_replace_access(dsc_acl *list, const char *principal, |
---|
23 | const char *modes); |
---|
24 | const char *acl_get_access(dsc_acl *list, const char *principal); |
---|
25 | char *acl_canon(const char *s1, const char *s2, int *code); |
---|
26 | bool acl_write(int fd, dsc_acl *list); |
---|
27 | bool has_mtg_access(); |
---|
28 | bool has_trn_access(); |
---|
29 | int acl_destroy (dsc_acl *list); |
---|
30 | char *acl_intersection (const char *s1, const char *s2); |
---|
31 | char *acl_union (const char *s1, const char *s2); |
---|
32 | char *acl_subtract (const char *s1, const char *s2); |
---|
33 | #else |
---|
34 | dsc_acl *acl_read(); |
---|
35 | dsc_acl *acl_create(); |
---|
36 | dsc_acl *acl_copy(); |
---|
37 | bool acl_check(); |
---|
38 | extern int acl_add_access(); |
---|
39 | extern bool acl_delete_access(); |
---|
40 | extern bool acl_is_subset(); |
---|
41 | extern acl_replace_access(); |
---|
42 | char *acl_get_access(); |
---|
43 | char *acl_canon(); |
---|
44 | bool acl_write(); |
---|
45 | bool has_mtg_access(); |
---|
46 | bool has_trn_access(); |
---|
47 | #endif |
---|