Coda Distributed File System
prs.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15
16 IBM COPYRIGHT NOTICE
17
18 Copyright (C) 1986
19 International Business Machines Corporation
20 All Rights Reserved
21
22This file contains some code identical to or derived from the 1986
23version of the Andrew File System ("AFS"), which is owned by the IBM
24Corporation. This code is provided "AS IS" and IBM does not warrant
25that it is free of infringement of any intellectual rights of any
26third party. IBM disclaims liability of any kind for any damages
27whatsoever resulting directly or indirectly from use of this software
28or of any derivative work. Carnegie Mellon University has obtained
29permission to distribute this code, which is based on Version 2 of AFS
30and does not contain the features and enhancements that are part of
31Version 3 of AFS. Version 3 of AFS is commercially available and
32supported by Transarc Corporation, Pittsburgh, PA.
33
34*/
35
36#ifndef _PRS_
37#define _PRS_
38
39#define PRS_VERSION "PRS v2003.05.23"
40
41#define PRS_MAXNAMELEN 100 /* Maximum length of group and user names */
42
43#define PRS_ANYUSERGROUP "System:AnyUser"
44#define PRS_ADMINGROUP "System:Administrators"
45
46typedef struct {
47 int InclEntries; /* Leading part of IdList */
48 int ExclEntries; /* Trailing part of IdList */
49 int IdList[1]; /* Actual bound is InclEntries+ExclEntries.
50 The first InclEntries entries are currently
51 included in this CPS: sorted in ascending order.
52 The last ExclEntries have been excluded from this
53 CPS: not sorted.*/
54
56/* Used only in VICE. Typically obtained via access list package routine
57 AL_GetInternalCPS. */
58
59typedef char *PRS_ExternalCPS;
60/* An ASCII representation of a CPS. Consists of a decimal integer in format
61 "%d\n" followed by a list of blank separated names. */
62
63/*
64An access list is associated with each directory. Possession of each of the following rights allows
65the possessor the corresponding privileges on ALL files in that directory
66*/
67#define PRSFS_READ 1 /*Read files*/
68#define PRSFS_WRITE 2 /*Write and write-lock existing files*/
69#define PRSFS_INSERT 4 /*Insert and write-lock new files*/
70#define PRSFS_LOOKUP 8 /*Enumerate files and examine access list */
71#define PRSFS_DELETE 16 /*Remove files*/
72#define PRSFS_LOCK 32 /*Read-lock files*/
73#define PRSFS_ADMINISTER 64 /*Set access list of directory*/
74#define PRSFS_ALL 127
75
76#endif
char * PRS_ExternalCPS
Definition: prs.h:59
Definition: prs.h:46
int InclEntries
Definition: prs.h:47
int ExclEntries
Definition: prs.h:48