Prototypes for aclprocs.
Also some other prototypes for viced.
typedef struct acl_accessList AL_AccessList;
+extern int acl_NewACL(int nEntries, struct acl_accessList **acl);
+extern int acl_FreeACL(struct acl_accessList **acl);
+extern int acl_NewExternalACL(int nEntries, char **r);
+extern int acl_FreeExternalACL(char **r);
+extern int acl_Externalize(struct acl_accessList *acl, char **elist);
+extern int acl_Internalize(char *elist, struct acl_accessList **acl);
+extern int acl_Initialize(char *version);
+#ifdef _RXGEN_PTINT_
+extern int acl_CheckRights(struct acl_accessList *acl, prlist *groups, int *rights);
+extern int acl_IsAMember(afs_int32 aid, prlist *cps);
+#endif
+
#endif
int
-acl_NewACL(nEntries, acl)
- int nEntries;
- struct acl_accessList **acl;
+acl_NewACL(int nEntries, struct acl_accessList **acl)
{
/* Creates an access list capable of holding at least nEntries entries.
* Returns 0 on success; aborts if we run out of memory. */
int
-acl_FreeACL(acl)
- struct acl_accessList **acl;
+acl_FreeACL(struct acl_accessList **acl)
{
/* Releases the access list defined by acl. Returns 0 always. */
struct freeListEntry *x;
}
int
-acl_NewExternalACL(nEntries, r)
- int nEntries;
- char **r;
+acl_NewExternalACL(int nEntries, char **r)
{
/* Puts an external acl big enough to hold nEntries in r. Returns 0 on success, aborts if insufficient memory. */
}
int
-acl_FreeExternalACL(r)
- char **r;
+acl_FreeExternalACL(char **r)
{
/* Releases the external access list defined by r. Returns 0 always. */
int
-acl_Externalize(acl, elist)
- struct acl_accessList *acl;
- char **elist;
+acl_Externalize(struct acl_accessList *acl, char **elist)
{
/* Converts the access list defined by acl into the external access list in elist. Non-translatable id's are converted to their ASCII string representations. Returns 0 on success, -1 if number of entries exceeds ACL_MAXENTRIES, or a failure code from the protection server if the problem occured there. */
int
-acl_Internalize(elist, acl)
- char *elist;
- struct acl_accessList **acl;
+acl_Internalize(char *elist, struct acl_accessList **acl)
{
/* Converts the external access list elist into the access list acl. Returns 0 on success, -1 if ANY name is not translatable, or if the number of entries exceeds al_maxExtEntries. */
register int i;
int
-acl_CheckRights(acl, groups, rights)
- struct acl_accessList *acl;
- prlist *groups;
- int *rights;
+acl_CheckRights(struct acl_accessList *acl, prlist *groups, int *rights)
{
/* Returns the rights given by acl to groups */
}
int
-acl_Initialize(version)
- char *version;
+acl_Initialize(char *version)
{
/* I'm sure we need to do some initialization, I'm just not quite sure what yet! */
if (strcmp(version, ACL_VERSION) != 0) {
}
int
-acl_IsAMember(aid, cps)
- afs_int32 aid;
- prlist *cps;
+acl_IsAMember(afs_int32 aid, prlist *cps)
{
afs_int32 i;
#include <afs/ihandle.h>
#include <afs/vnode.h>
#include <afs/volume.h>
-#include <afs/acl.h>
#include <afs/ptclient.h>
+#include <afs/ptuser.h>
#include <afs/prs_fs.h>
+#include <afs/acl.h>
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <sys/stat.h>
#define FreeFE(fe) iFreeFE((struct FileEntry *)fe, &cbstuff.nFEs)
/* Other protos - move out sometime */
-extern void ShutDown();
void PrintCB(register struct CallBack *cb, afs_uint32 now);
#define VHASH 512 /* Power of 2 */
#endif
#include <afs/acl.h>
#include <afs/ptclient.h>
+#include <afs/ptuser.h>
#include <afs/prs_fs.h>
#include <afs/auth.h>
#include <afs/afsutil.h>
struct AFSCBFids *afidp);
extern int DumpCallBackState(void);
extern int PrintCallBackStats(void);
+extern int ShutDown(void);
extern void ShutDownAndCore(int dopanic);
extern struct host *h_Alloc(register struct rx_connection *r_con);
#include <afs/vlserver.h>
#include <afs/afsutil.h>
#include <afs/fileutil.h>
+#include <afs/ptuser.h>
+#include <afs/audit.h>
+#include <afs/partition.h>
#ifndef AFS_NT40_ENV
#include <afs/netutils.h>
#endif
extern int LogLevel, etext;
extern afs_int32 BlocksSpare, PctSpare;
-void ShutDown(void);
+int ShutDown(void);
static void ClearXStatValues(), NewParms(), PrintCounters();
static void ResetCheckDescriptors(void), ResetCheckSignal(void);
-static void CheckSignal(void);
+static int CheckSignal(void);
extern int GetKeysFromToken();
extern int RXAFS_ExecuteRequest();
extern int RXSTATS_ExecuteRequest();
*/
/* DEBUG HACK */
-static void
+static int
CheckDescriptors()
{
#ifndef AFS_NT40_ENV
}
fflush(stdout);
ResetCheckDescriptors();
+ return 0;
#endif
} /*CheckDescriptors */
-static void
+static int
CheckSignal()
{
if (FS_registered > 0) {
DumpCallBackState();
PrintCounters();
ResetCheckSignal();
-
+ return 0;
} /*CheckSignal */
void
}
exit(0);
+}
-} /*ShutDown */
-
-void
+int
ShutDown(void)
{ /* backward compatibility */
ShutDownAndCore(DONTPANIC);
+ return 0;
}