[1931] | 1 | /* |
---|
[1932] | 2 | * |
---|
| 3 | * Copyright (C) 1988, 1989 by the Massachusetts Institute of Technology |
---|
| 4 | * Developed by the MIT Student Information Processing Board (SIPB). |
---|
| 5 | * For copying information, see the file mit-copyright.h in this release. |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | /* |
---|
[1931] | 9 | * Discuss server internal routines |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | #ifndef __STDC__ |
---|
| 13 | #define const |
---|
| 14 | #define volatile |
---|
| 15 | #endif |
---|
| 16 | |
---|
| 17 | /* |
---|
| 18 | * ACL-manipulation routines |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #ifdef __STDC__ |
---|
| 22 | dsc_acl *acl_read(int fd); |
---|
| 23 | dsc_acl *acl_create(void); |
---|
| 24 | dsc_acl *acl_copy(dsc_acl *old); |
---|
| 25 | bool acl_check(dsc_acl *list, const char *principal, const char *modes); |
---|
| 26 | int acl_add_access(dsc_acl *list, const char *principal, const char *modes); |
---|
| 27 | bool acl_delete_access(dsc_acl *acl, const char *principal); |
---|
| 28 | bool acl_is_subset(const char *s1, const char *s2); |
---|
| 29 | int acl_replace_access(dsc_acl *list, const char *principal, |
---|
| 30 | const char *modes); |
---|
| 31 | const char *acl_get_access(dsc_acl *list, const char *principal); |
---|
| 32 | char *acl_canon(const char *s1, const char *s2, int *code); |
---|
| 33 | bool acl_write(int fd, dsc_acl *list); |
---|
| 34 | bool has_mtg_access(); |
---|
| 35 | bool has_trn_access(); |
---|
| 36 | int acl_destroy (dsc_acl *list); |
---|
| 37 | char *acl_intersection (const char *s1, const char *s2); |
---|
| 38 | char *acl_union (const char *s1, const char *s2); |
---|
| 39 | char *acl_subtract (const char *s1, const char *s2); |
---|
| 40 | #else |
---|
| 41 | dsc_acl *acl_read(); |
---|
| 42 | dsc_acl *acl_create(); |
---|
| 43 | dsc_acl *acl_copy(); |
---|
| 44 | bool acl_check(); |
---|
| 45 | extern int acl_add_access(); |
---|
| 46 | extern bool acl_delete_access(); |
---|
| 47 | extern bool acl_is_subset(); |
---|
| 48 | extern acl_replace_access(); |
---|
| 49 | char *acl_get_access(); |
---|
| 50 | char *acl_canon(); |
---|
| 51 | bool acl_write(); |
---|
| 52 | bool has_mtg_access(); |
---|
| 53 | bool has_trn_access(); |
---|
| 54 | #endif |
---|