mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
cmd-protos-20060313
Fix protos for cmd funcs.
This commit is contained in:
parent
9afcb2529a
commit
b89082ac89
@ -73,21 +73,21 @@ struct sourcestack {
|
|||||||
} *shead;
|
} *shead;
|
||||||
|
|
||||||
int
|
int
|
||||||
Interactive(register struct cmd_syndesc *as)
|
Interactive(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
finished = 0;
|
finished = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Quit(register struct cmd_syndesc *as)
|
Quit(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
finished = 1;
|
finished = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Source(register struct cmd_syndesc *as)
|
Source(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
struct sourcestack *sp;
|
struct sourcestack *sp;
|
||||||
@ -115,7 +115,7 @@ Source(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Sleep(register struct cmd_syndesc *as)
|
Sleep(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
int delay;
|
int delay;
|
||||||
if (!as->parms[0].items) {
|
if (!as->parms[0].items) {
|
||||||
@ -153,7 +153,7 @@ osi_audit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
GetGlobals(register struct cmd_syndesc *as)
|
GetGlobals(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
char *cell;
|
char *cell;
|
||||||
@ -185,7 +185,7 @@ GetGlobals(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
CleanUp(register struct cmd_syndesc *as)
|
CleanUp(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
#if defined(SUPERGROUPS)
|
#if defined(SUPERGROUPS)
|
||||||
if (as && !strcmp(as->name, "help"))
|
if (as && !strcmp(as->name, "help"))
|
||||||
@ -207,7 +207,7 @@ CleanUp(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
CreateGroup(register struct cmd_syndesc *as)
|
CreateGroup(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
afs_int32 id;
|
afs_int32 id;
|
||||||
@ -267,7 +267,7 @@ CreateGroup(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
CreateUser(register struct cmd_syndesc *as)
|
CreateUser(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
afs_int32 id;
|
afs_int32 id;
|
||||||
@ -492,7 +492,7 @@ GetNameOrId(register struct cmd_syndesc *as, struct idlist *lids, struct namelis
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
AddToGroup(register struct cmd_syndesc *as)
|
AddToGroup(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
struct cmd_item *u, *g;
|
struct cmd_item *u, *g;
|
||||||
@ -513,7 +513,7 @@ AddToGroup(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
RemoveFromGroup(register struct cmd_syndesc *as)
|
RemoveFromGroup(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
struct cmd_item *u, *g;
|
struct cmd_item *u, *g;
|
||||||
@ -534,7 +534,7 @@ RemoveFromGroup(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ListMembership(register struct cmd_syndesc *as)
|
ListMembership(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
idlist ids;
|
idlist ids;
|
||||||
@ -579,7 +579,7 @@ ListMembership(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Delete(register struct cmd_syndesc *as)
|
Delete(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
idlist ids;
|
idlist ids;
|
||||||
@ -618,7 +618,7 @@ char *flags_dncase = "s mar"; /* legal member acces values */
|
|||||||
int flags_shift[5] = { 2, 1, 2, 2, 1 }; /* bits for each */
|
int flags_shift[5] = { 2, 1, 2, 2, 1 }; /* bits for each */
|
||||||
|
|
||||||
int
|
int
|
||||||
CheckEntry(register struct cmd_syndesc *as)
|
CheckEntry(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
afs_int32 rcode = 1;
|
afs_int32 rcode = 1;
|
||||||
@ -717,7 +717,7 @@ CheckEntry(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ListEntries(struct cmd_syndesc *as)
|
ListEntries(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
afs_int32 code = 0;
|
afs_int32 code = 0;
|
||||||
afs_int32 flag, startindex, nentries, nextstartindex;
|
afs_int32 flag, startindex, nentries, nextstartindex;
|
||||||
@ -754,7 +754,7 @@ ListEntries(struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ChownGroup(register struct cmd_syndesc *as)
|
ChownGroup(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
char *name;
|
char *name;
|
||||||
@ -770,7 +770,7 @@ ChownGroup(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ChangeName(register struct cmd_syndesc *as)
|
ChangeName(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
char *oldname;
|
char *oldname;
|
||||||
@ -786,7 +786,7 @@ ChangeName(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ListMax(register struct cmd_syndesc *as)
|
ListMax(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
afs_int32 maxUser, maxGroup;
|
afs_int32 maxUser, maxGroup;
|
||||||
@ -807,7 +807,7 @@ ListMax(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
SetMax(register struct cmd_syndesc *as)
|
SetMax(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
afs_int32 maxid;
|
afs_int32 maxid;
|
||||||
@ -847,7 +847,7 @@ SetMax(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
SetFields(register struct cmd_syndesc *as)
|
SetFields(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
idlist ids;
|
idlist ids;
|
||||||
@ -942,7 +942,7 @@ SetFields(register struct cmd_syndesc *as)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ListOwned(register struct cmd_syndesc *as)
|
ListOwned(struct cmd_syndesc *as, char *arock)
|
||||||
{
|
{
|
||||||
register afs_int32 code;
|
register afs_int32 code;
|
||||||
idlist ids;
|
idlist ids;
|
||||||
@ -1162,7 +1162,7 @@ main(int argc, char **argv)
|
|||||||
#if defined(SUPERGROUPS)
|
#if defined(SUPERGROUPS)
|
||||||
finished = 1;
|
finished = 1;
|
||||||
if (code = cmd_Dispatch(argc, argv)) {
|
if (code = cmd_Dispatch(argc, argv)) {
|
||||||
CleanUp(0);
|
CleanUp(NULL, NULL);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
source = stdin;
|
source = stdin;
|
||||||
@ -1197,7 +1197,7 @@ main(int argc, char **argv)
|
|||||||
parsev[0] = savec;
|
parsev[0] = savec;
|
||||||
cmd_FreeArgv(parsev);
|
cmd_FreeArgv(parsev);
|
||||||
}
|
}
|
||||||
CleanUp(0);
|
CleanUp(NULL, NULL);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
#else /* SUPERGROUPS */
|
#else /* SUPERGROUPS */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user