#if 0
foldcmp (a, b)
- register char *a;
- register char *b; {
- register char t, u;
+ char *a;
+ char *b; {
+ char t, u;
while (1) {
t = *a++;
u = *b++;
#endif
/* this function returns TRUE (1) if the file is in AFS, otherwise false (0) */
-static int InAFS(register char *apath)
+static int InAFS(char *apath)
{
struct ViceIoctl blob;
- register afs_int32 code;
+ afs_int32 code;
blob.in_size = 0;
blob.out_size = MAXSIZE;
/* return a static pointer to a buffer */
static char *Parent(apath)
char *apath; {
- register char *tp;
+ char *tp;
strcpy(tspace, apath);
tp = strrchr(tspace, '\\');
if (tp) {
}
-static ListLinkCmd(register struct cmd_syndesc *as, void *arock)
+static ListLinkCmd(struct cmd_syndesc *as, void *arock)
{
- register afs_int32 code;
+ afs_int32 code;
struct ViceIoctl blob;
int error;
- register struct cmd_item *ti;
+ struct cmd_item *ti;
char orig_name[1024]; /*Original name, may be modified*/
char true_name[1024]; /*``True'' dirname (e.g., symlink target)*/
char parent_dir[1024]; /*Parent directory of true name*/
- register char *last_component; /*Last component of true name*/
+ char *last_component; /*Last component of true name*/
#ifndef WIN32
struct stat statbuff; /*Buffer for status info*/
#endif /* not WIN32 */
return error;
}
-static MakeLinkCmd(register struct cmd_syndesc *as, void *arock)
+static MakeLinkCmd(struct cmd_syndesc *as, void *arock)
{
- register afs_int32 code;
+ afs_int32 code;
struct ViceIoctl blob;
char * parent;
char path[1024] = "";
* symlink (or ``.'' if none is provided)
* tp: Set to point to the actual name of the symlink to nuke.
*/
-static RemoveLinkCmd(register struct cmd_syndesc *as, void *arock)
+static RemoveLinkCmd(struct cmd_syndesc *as, void *arock)
{
- register afs_int32 code=0;
+ afs_int32 code=0;
struct ViceIoctl blob;
- register struct cmd_item *ti;
+ struct cmd_item *ti;
char tbuffer[1024];
char lsbuffer[1024];
- register char *tp;
+ char *tp;
for(ti=as->parms[0].items; ti; ti=ti->next) {
/* once per file */
int wmain(int argc, wchar_t **wargv)
{
- register afs_int32 code;
- register struct cmd_syndesc *ts;
+ afs_int32 code;
+ struct cmd_syndesc *ts;
char ** argv;
#ifdef AFS_AIX32_ENV
void Flush(const CStringArray& files)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
int error = 0;
void FlushVolume(const CStringArray& files)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
int error = 0;
void WhichCell(CStringArray& files)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
int error;
CString str;
void WSCellCmd()
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
HOURGLASS hourglass;
BOOL CheckVolumes()
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
blob.in_size = 0;
void SetCacheSizeCmd(LONG nNewCacheSize)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
HOURGLASS hourglass;
void WhereIs(CStringArray& files)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
CStringArray servers;
CStringArray resultFiles;
struct AclEntry *minuslist;
};
-int foldcmp (register char *a, register char *b)
+int foldcmp (char *a, char *b)
{
- register char t, u;
+ char t, u;
while (1) {
t = *a++;
u = *b++;
extern "C" void ZapList(struct AclEntry *alist)
{
- register struct AclEntry *tp, *np;
+ struct AclEntry *tp, *np;
for (tp = alist; tp; tp = np) {
np = tp->next;
return ctr;
}
-char *SkipLine (register char *astr)
+char *SkipLine (char *astr)
{
while (*astr != '\n')
astr++;
}
/* tell if a name is 23 or -45 (digits or minus digits), which are bad names we must prune */
-static int BadName(register char *aname)
+static int BadName(char *aname)
{
- register int tc;
+ int tc;
/* all must be '-' or digit to be bad */
while (tc = *aname++) {
return 1;
}
-CString GetRightsString(register LONG arights, int dfs)
+CString GetRightsString(LONG arights, int dfs)
{
CString str;
struct Acl *EmptyAcl(const CString& strCellName)
{
- register struct Acl *tp;
+ struct Acl *tp;
CStringUtf8 ustrCell(strCellName);
tp = (struct Acl *)malloc(sizeof (struct Acl));
struct Acl *EmptyAcl(char *astr)
{
- register struct Acl *tp;
+ struct Acl *tp;
int junk;
tp = (struct Acl *)malloc(sizeof (struct Acl));
any changes to the list, and 0 otherwise */
extern "C" int CleanAcl(struct Acl *aa)
{
- register struct AclEntry *te, **le, *ne;
+ struct AclEntry *te, **le, *ne;
int changes;
HOURGLASS hourglass;
void CleanACL(CStringArray& names)
{
- register LONG code;
- register struct Acl *ta;
+ LONG code;
+ struct Acl *ta;
struct ViceIoctl blob;
int changes;
// Derived from fs.c's ListAclCmd
BOOL GetRights(const CString& strDir, CStringArray& strNormal, CStringArray& strNegative)
{
- register LONG code;
- register struct Acl *ta;
+ LONG code;
+ struct Acl *ta;
struct ViceIoctl blob;
struct AclEntry *te;
int idf = 0; //getidf(as, parm_listacl_id);
return TRUE;
}
-struct AclEntry *FindList(register struct AclEntry *pCurEntry, const char *entryName)
+struct AclEntry *FindList(struct AclEntry *pCurEntry, const char *entryName)
{
while (pCurEntry) {
if (!foldcmp(pCurEntry->name, PCCHAR(entryName)))
static LONG Convert(const CString& strRights, int dfs, enum rtype *rtypep)
{
- register int i, len;
+ int i, len;
LONG mode;
*rtypep = add; /* add rights, by default */
BOOL SaveACL(const CString& strCellName, const CString& strDir, const CStringArray& normal, const CStringArray& negative)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
struct Acl *pAcl;
LONG rights;
BOOL CopyACL(const CString& strToDir, const CStringArray& normal, const CStringArray& negative, BOOL bClear)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
struct Acl *pToAcl;
int idf = 0; // getidf(as, parm_copyacl_id);
BOOL ListMount(CStringArray& files)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
int error;
BOOL IsMountPoint(const CString& path)
{
- register LONG code = 0;
+ LONG code = 0;
struct ViceIoctl blob;
char lsbuffer[1024];
*/
BOOL RemoveMount(CStringArray& files)
{
- register LONG code = 0;
+ LONG code = 0;
struct ViceIoctl blob;
BOOL error = FALSE;
CStringArray results;
BOOL GetVolumeInfo(CString strFile, CVolInfo& volInfo)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
struct VolumeStatus *status;
char *name;
BOOL SetVolInfo(CVolInfo& volInfo)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
struct VolumeStatus *status;
char *input;
BOOL CheckServers(const CString& strCellName, WHICH_CELLS nCellsToCheck, BOOL bFast)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
- register LONG j;
+ LONG j;
LONG temp = 0;
struct afsconf_cell info;
struct chservinfo checkserv;
BOOL ListSymlink(CStringArray& files)
{
- register LONG code;
+ LONG code;
struct ViceIoctl blob;
int error;
CStringArray symlinks;