2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * Transarc does not currently use opcodes past 520, but
12 * they *could* decide at any time to use more opcodes.
13 * If they did, then one part of our local mods,
14 * ListSupergroups, would break. I've therefore
15 * renumbered it to 530, and put logic in to enable the
16 * old opcode to work (for now).
27 const PR_MAXNAMELEN=64;
28 const PR_MAXGROUPS=5000;
29 const PR_MAXLIST=5000;
38 afs_int32 reserved[5];
39 afs_int32 entries[PRSIZE];
53 char name[PR_MAXNAMELEN];
64 afs_int32 reserved[5];
65 char name[PR_MAXNAMELEN];
68 struct prlistentries {
76 afs_int32 reserved[5];
77 char name[PR_MAXNAMELEN];
80 struct PrUpdateEntry {
89 afs_int32 reserved[5];
90 char name[PR_MAXNAMELEN];
93 /* struct VldbUpdateEntry Mask bit values */
94 const PRUPDATE_NAME = 0x0001;
95 const PRUPDATE_ID = 0x0002;
96 const PRUPDATE_FLAGS = 0x0004;
97 const PRUPDATE_NAMEHASH= 0x0008;
98 const PRUPDATE_IDHASH = 0x0010;
100 /* These bits are used when calling SetFieldsEntry. */
101 %#define PR_SF_ALLBITS 0xff /* set all access bits */
102 %#define PR_SF_NGROUPS (1u<<31) /* set field limiting group creation */
103 %#define PR_SF_NUSERS (1u<<30) /* " " foreign users " */
105 /* OpenAFS implementation limit. This limit can be modified in future releases
106 * and does not need to match the limis applied by other implementations. */
107 const OPENAFS_MAXPRLIST=50000;
109 typedef char prname[PR_MAXNAMELEN];
110 typedef prname namelist<OPENAFS_MAXPRLIST>;
111 typedef afs_int32 idlist<OPENAFS_MAXPRLIST>;
112 typedef afs_int32 prlist<OPENAFS_MAXPRLIST>;
113 typedef prlistentries prentries<OPENAFS_MAXPRLIST>;
116 IN string name<PR_MAXNAMELEN>,
128 OUT struct prdebugentry *entry
162 IN string name<PR_MAXNAMELEN>,
180 OUT struct prcheckentry *entry
185 IN string name<PR_MAXNAMELEN>,
206 IN afs_int32 ngroups,
215 INOUT afs_int32 *lastp
233 IN string name<PR_MAXNAMELEN>,
234 IN PrUpdateEntry *uentry
239 IN afs_int32 startindex,
240 OUT prentries *bulkentries,
241 OUT afs_int32 *nextstartindex
244 /* #if defined(SUPERGROUPS) */