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

Revision 1932, 1.5 KB checked in by srz, 36 years ago (diff)
Added standard copyright notice.
Line 
1/*
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/*
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__
22dsc_acl *acl_read(int fd);
23dsc_acl *acl_create(void);
24dsc_acl *acl_copy(dsc_acl *old);
25bool acl_check(dsc_acl *list, const char *principal, const char *modes);
26int acl_add_access(dsc_acl *list, const char *principal, const char *modes);
27bool acl_delete_access(dsc_acl *acl, const char *principal);
28bool acl_is_subset(const char *s1, const char *s2);
29int acl_replace_access(dsc_acl *list, const char *principal,
30                       const char *modes);
31const char *acl_get_access(dsc_acl *list, const char *principal);
32char *acl_canon(const char *s1, const char *s2, int *code);
33bool acl_write(int fd, dsc_acl *list);
34bool has_mtg_access();
35bool has_trn_access();
36int acl_destroy (dsc_acl *list);
37char *acl_intersection (const char *s1, const char *s2);
38char *acl_union (const char *s1, const char *s2);
39char *acl_subtract (const char *s1, const char *s2);
40#else
41dsc_acl *acl_read();
42dsc_acl *acl_create();
43dsc_acl *acl_copy();
44bool acl_check();
45extern int acl_add_access();
46extern bool acl_delete_access();
47extern bool acl_is_subset();
48extern acl_replace_access();
49char *acl_get_access();
50char *acl_canon();
51bool acl_write();
52bool has_mtg_access();
53bool has_trn_access();
54#endif
Note: See TracBrowser for help on using the repository browser.