* Determine whether either the -id or -if switches are present, and
* return 0, 1 or 2, as appropriate. Abort if both switches are present.
*/
-static int getidf(as, id)
- struct cmd_syndesc *as;
- int id; /* Offset of -id switch; -if is next switch */
+/* int id; Offset of -id switch; -if is next switch */
+static int getidf(struct cmd_syndesc *as, int id)
{
int idf = 0;
return idf;
}
-static int PRights(arights, dfs)
- afs_int32 arights;
- int dfs;
+static int PRights(afs_int32 arights, int dfs)
{
if (!dfs) {
if (arights & PRSFS_READ) printf("r");
}
/* this function returns TRUE (1) if the file is in AFS, otherwise false (0) */
-static int InAFS(apath)
- char *apath;
+static int InAFS(char *apath)
{
struct ViceIoctl blob;
afs_int32 code;
}
/* return a static pointer to a buffer */
-static char *Parent(apath)
- char *apath;
+static char *Parent(char *apath)
{
char *tp;
strcpy(tspace, apath);
enum rtype {add, destroy, deny};
-static afs_int32 Convert(arights, dfs, rtypep)
- char *arights;
- int dfs;
- enum rtype *rtypep;
+static afs_int32 Convert(char *arights, int dfs, enum rtype *rtypep)
{
int i, len;
afs_int32 mode;
return mode;
}
-static struct AclEntry *FindList(alist, aname)
- struct AclEntry *alist;
- char *aname;
+static struct AclEntry *FindList(struct AclEntry *alist, char *aname)
{
while (alist) {
if (!foldcmp(alist->name, aname)) return alist;
}
/* if no parm specified in a particular slot, set parm to be "." instead */
-static void SetDotDefault(aitemp)
- struct cmd_item **aitemp;
+static void SetDotDefault(struct cmd_item **aitemp)
{
struct cmd_item *ti;
if (*aitemp) return; /* already has value */
*aitemp = ti;
}
-static void ChangeList(al, plus, aname, arights)
- struct Acl *al;
- afs_int32 plus;
- char *aname;
- afs_int32 arights;
+static void ChangeList(struct Acl *al, afs_int32 plus, char *aname, afs_int32 arights)
{
struct AclEntry *tlist;
tlist = (plus ? al->pluslist : al->minuslist);
}
}
-static void ZapList(alist)
- struct AclEntry *alist;
+static void ZapList(struct AclEntry *alist)
{
struct AclEntry *tp, *np;
for (tp = alist; tp; tp = np) {
}
}
-static int PruneList(ae, dfs)
- struct AclEntry **ae;
- int dfs;
+static int PruneList(struct AclEntry **ae, int dfs)
{
struct AclEntry **lp;
struct AclEntry *te, *ne;
return ctr;
}
-static char *SkipLine(astr)
- char *astr;
+static char *SkipLine(char *astr)
{
while (*astr !='\n') astr++;
astr++;
* assume that the acl is AFS: for DFS, the user can always resort to
* acl_edit, but for AFS there may be no other way out).
*/
-static struct Acl *EmptyAcl(astr)
- char *astr;
+static struct Acl *EmptyAcl(char *astr)
{
struct Acl *tp;
int junk;
return tp;
}
-static struct Acl *ParseAcl(astr)
- char *astr;
+static struct Acl *ParseAcl(char *astr)
{
int nplus, nminus, i, trights;
char tname[MAXNAME];
return ta;
}
-static PrintStatus(status, name, offmsg)
- VolumeStatus *status;
- char *name;
- char *offmsg;
+static int PrintStatus(VolumeStatus *status, char *name, char *offmsg)
{
printf("Volume status for vid = %u named %s\n",status->Vid, name);
if (*offmsg != 0)
else printf("unlimited\n");
printf("Current blocks used are %d\n",status->BlocksInUse);
printf("The partition has %d blocks available out of %d\n\n",status->PartBlocksAvail, status->PartMaxBlocks);
+ return 0;
}
-static QuickPrintStatus(status, name)
- VolumeStatus *status;
- char *name;
+static int QuickPrintStatus(VolumeStatus *status, char *name)
{
double QuotaUsed =0.0;
double PartUsed =0.0;
printf(" <<WARNING\n");
}
else printf("\n");
+ return 0;
}
-static QuickPrintSpace(status, name)
- VolumeStatus *status;
- char *name;
+static int QuickPrintSpace(VolumeStatus *status, char *name)
{
double PartUsed =0.0;
int WARN = 0;
printf(" <<WARNING\n");
}
else printf("\n");
+ return 0;
}
-static char *AclToString(acl)
- struct Acl *acl;
+static char *AclToString(struct Acl *acl)
{
static char mydata[MAXSIZE];
char tstring[MAXSIZE];
return mydata;
}
-static SetACLCmd(as)
- struct cmd_syndesc *as;
+static int SetACLCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
-static CopyACLCmd(as)
- struct cmd_syndesc *as;
+static int CopyACLCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
/* pioctl() call to get the cellname of a pathname */
-static afs_int32 GetCell(fname, cellname)
- char *fname, *cellname;
+static afs_int32 GetCell(char *fname, char *cellname)
{
afs_int32 code;
struct ViceIoctl blob;
* negative sign), then it might be bad. We then query the ptserver
* to see.
*/
-static BadName(aname, fname)
- char *aname, *fname;
+static BadName(char *aname, char *fname)
{
afs_int32 tc, code, id;
char *nm;
/* clean up an access control list of its bad entries; return 1 if we made
any changes to the list, and 0 otherwise */
-static CleanAcl(aa, fname)
- struct Acl *aa;
- char *fname; /* The file name */
+static CleanAcl(struct Acl *aa, char *fname)
{
struct AclEntry *te, **le, *ne;
int changes;
/* clean up an acl to not have bogus entries */
-static CleanACLCmd(as)
- struct cmd_syndesc *as;
+static int CleanACLCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct Acl *ta = 0;
return error;
}
-static ListACLCmd(as)
- struct cmd_syndesc *as;
+static int ListACLCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct Acl *ta;
return error;
}
-static FlushVolumeCmd(as)
- struct cmd_syndesc *as;
+static int FlushVolumeCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static FlushCmd(as)
- struct cmd_syndesc *as;
+static int FlushCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
/* all this command does is repackage its args and call SetVolCmd */
-static SetQuotaCmd(as)
- struct cmd_syndesc *as;
+static int SetQuotaCmd(struct cmd_syndesc *as)
{
struct cmd_syndesc ts;
return SetVolCmd(&ts);
}
-static SetVolCmd(as)
- struct cmd_syndesc *as;
+static int SetVolCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static ExamineCmd(as)
- struct cmd_syndesc *as;
+static int ExamineCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static ListQuotaCmd(as)
- struct cmd_syndesc *as;
+static int ListQuotaCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static WhereIsCmd(as)
- struct cmd_syndesc *as;
+static int WhereIsCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
-static DiskFreeCmd(as)
- struct cmd_syndesc *as;
+static int DiskFreeCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static QuotaCmd(as)
- struct cmd_syndesc *as;
+static int QuotaCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static ListMountCmd(as)
- struct cmd_syndesc *as;
+static int ListMountCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static MakeMountCmd(as)
- struct cmd_syndesc *as;
+static MakeMountCmd(struct cmd_syndesc *as)
{
afs_int32 code;
char *cellName, *volName, *tmpName;
* (or ``.'' if none is provided)
* tp: Set to point to the actual name of the mount point to nuke.
*/
-static RemoveMountCmd(as)
- struct cmd_syndesc *as;
+static int RemoveMountCmd(struct cmd_syndesc *as)
{
afs_int32 code=0;
struct ViceIoctl blob;
/*
*/
-static CheckServersCmd(as)
- struct cmd_syndesc *as;
+static int CheckServersCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return code;
}
-static MessagesCmd(as)
- struct cmd_syndesc *as;
+static int MessagesCmd(struct cmd_syndesc *as)
{
afs_int32 code=0;
struct ViceIoctl blob;
return 0;
}
-static CheckVolumesCmd(as)
- struct cmd_syndesc *as;
+static int CheckVolumesCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return 0;
}
-static SetCacheSizeCmd(as)
- struct cmd_syndesc *as;
+static int SetCacheSizeCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
#define MAXGCSIZE 16
-static GetCacheParmsCmd(as)
- struct cmd_syndesc *as;
+static int GetCacheParmsCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return 0;
}
-static ListCellsCmd(as)
- struct cmd_syndesc *as;
+static int ListCellsCmd(struct cmd_syndesc *as)
{
afs_int32 code;
afs_int32 i, j;
return 0;
}
-static ListAliasesCmd(as)
- struct cmd_syndesc *as;
+static int ListAliasesCmd(struct cmd_syndesc *as)
{
afs_int32 code, i;
char *tp, *aliasName, *realName;
return 0;
}
-static NewCellCmd(as)
- struct cmd_syndesc *as;
+static int NewCellCmd(struct cmd_syndesc *as)
{
afs_int32 code, linkedstate=0, size=0, *lp;
struct ViceIoctl blob;
return 0;
}
-static NewAliasCmd(as)
- struct cmd_syndesc *as;
+static int NewAliasCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return 0;
}
-static WhichCellCmd(as)
- struct cmd_syndesc *as;
+static int WhichCellCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct cmd_item *ti;
return error;
}
-static WSCellCmd(as)
- struct cmd_syndesc *as;
+static int WSCellCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
*/
-static MonitorCmd(as)
- struct cmd_syndesc *as;
+static int MonitorCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return 0;
}
-static SysNameCmd(as)
- struct cmd_syndesc *as;
+static int SysNameCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
static char *exported_types[] = {"null", "nfs", ""};
-static ExportAfsCmd(as)
- struct cmd_syndesc *as;
+static int ExportAfsCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
}
-static GetCellCmd(as)
- struct cmd_syndesc *as;
+static int GetCellCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static SetCellCmd(as)
- struct cmd_syndesc *as;
+static int SetCellCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static GetCellName(cellName, info)
- char *cellName;
- struct afsconf_cell *info;
+static int GetCellName(char *cellName, struct afsconf_cell *info)
{
struct afsconf_dir *tdir;
int code;
}
-static VLDBInit(noAuthFlag, info)
- int noAuthFlag;
- struct afsconf_cell *info;
+static int VLDBInit(int noAuthFlag, struct afsconf_cell *info)
{
afs_int32 code;
struct ktc_principal sname;
* 0 on success,
* errno value if error and no error message printed
*/
-static pokeServers()
+static int pokeServers(void)
{
int code;
* 0 on success,
* errno value if error and no error message printed
*/
-static addServer(name, rank)
- char *name;
- afs_int32 rank;
+static int addServer(char *name, afs_int32 rank)
{
int t,code;
struct setspref *ssp;
}
-static SetPrefCmd(as)
- struct cmd_syndesc *as;
+static int SetPrefCmd(struct cmd_syndesc *as)
{
FILE *infd;
afs_int32 code;
-static GetPrefCmd(as)
- struct cmd_syndesc *as;
+static int GetPrefCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct cmd_item *ti;
return 0;
}
-static StoreBehindCmd(as)
- struct cmd_syndesc *as;
+static int StoreBehindCmd(struct cmd_syndesc *as)
{
afs_int32 code=0;
struct ViceIoctl blob;
}
-static afs_int32 SetCryptCmd(as)
- struct cmd_syndesc *as;
+static afs_int32 SetCryptCmd(struct cmd_syndesc *as)
{
afs_int32 code = 0, flag;
struct ViceIoctl blob;
}
-static afs_int32 GetCryptCmd(as)
- struct cmd_syndesc *as;
+static afs_int32 GetCryptCmd(struct cmd_syndesc *as)
{
afs_int32 code = 0, flag;
struct ViceIoctl blob;
#include "AFS_component_version_number.c"
-main(argc, argv)
- int argc;
- char **argv;
+int main(int argc, char **argv)
{
afs_int32 code;
struct cmd_syndesc *ts;
return code;
}
-static void Die(errnum, filename)
- int errnum;
- char *filename;
+static void Die(int errnum, char *filename)
{
switch (errnum) {
case EINVAL:
}
/* get clients interface addresses */
-static int
-GetClientAddrsCmd(as)
- struct cmd_syndesc *as;
+static int GetClientAddrsCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct cmd_item *ti;
return 0;
}
-static int
-SetClientAddrsCmd(as)
- struct cmd_syndesc *as;
+static int SetClientAddrsCmd(struct cmd_syndesc *as)
{
afs_int32 code, addr;
struct cmd_item *ti;
return error;
}
-static int
-FlushMountCmd(as)
- struct cmd_syndesc *as;
+static int FlushMountCmd(struct cmd_syndesc *as)
{
afs_int32 code;
struct ViceIoctl blob;
return error;
}
-static int
-RxStatProcCmd(as)
- struct cmd_syndesc *as;
+static int RxStatProcCmd(struct cmd_syndesc *as)
{
afs_int32 code;
afs_int32 flags = 0;
return 0;
}
-static int
-RxStatPeerCmd(as)
- struct cmd_syndesc *as;
+static int RxStatPeerCmd(struct cmd_syndesc *as)
{
afs_int32 code;
afs_int32 flags = 0;