fileserver-hates-pruclient-20060626

right now there is one struct ubik_client shared by all threads in the fileserve
r, which sucks when one has it locked

let's, uh, fix that.
This commit is contained in:
Derrick Brashear 2006-07-04 04:57:05 +00:00
parent 4478d3a99a
commit e117599fe1
3 changed files with 22 additions and 25 deletions

View File

@ -104,7 +104,6 @@ afs_int32 listElements(), listOwned(), isAMemberOf(), idToName();
afs_int32 listSuperGroups();
#endif
static stolower();
extern int IDCmp();
extern int prp_group_default;
@ -2217,19 +2216,6 @@ isAMemberOf(call, uid, gid, flag, cid)
return code;
}
static
stolower(s)
register char *s;
{
register int tc;
while ((tc = *s)) {
if (isupper(tc))
*s = tolower(tc);
s++;
}
}
#if IP_WILDCARDS
afs_int32
addWildCards(tt, alist, host)

View File

@ -765,14 +765,3 @@ pr_SetFieldsEntry(afs_int32 id, afs_int32 mask, afs_int32 flags, afs_int32 ngrou
nusers, 0, 0);
return code;
}
int
stolower(char *s)
{
while (*s) {
if (isupper(*s))
*s = tolower(*s);
s++;
}
return 0;
}

View File

@ -67,6 +67,28 @@ ucstring(char *d, char *s, int n)
return original_d;
}
int
stolower(char *s)
{
while (*s) {
if (isupper(*s))
*s = tolower(*s);
s++;
}
return 0;
}
int
stoupper(char *s)
{
while (*s) {
if (islower(*s))
*s = toupper(*s);
s++;
}
return 0;
}
/* strcompose - concatenate strings passed to it.
* Input:
* buf: storage for the composed string. Any data in it will be lost.