/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "vcs_rscs.h"
time_t t;
{
register char* s;
register int len;
int num;
/* mm.dd.yy:nn */
len = 8;
{
{
{
}
else
seq = 0;
}
}
seq++;
if (seq)
{
}
}
{
return (0);
}
{
return (0);
}
{
return (0);
}
{
return (0);
}
/* chop(s,w,n,c) - break string into fields
* a common usage:
* elist[num=chop(s, elist, MAXDEPTH, '/')] = NULL;
* s is modified in place with '\0' replacing occurrences of separator char c.
* w is an array of n char pointers to receive addresses of the fields. The
* return value gives the number of fields actually found; additional entries
* in w are given the address of a null string.
*/
int chop(s,w,n,c)
register char *s;
char *w[];
int n;
char c;
{
register int i;
for (i = 0; i < n && *s;)
{
w[i++] = s;
while (*s && *s != c)
s++;
if (!*s)
break;
*s++ = '\0';
}
while (i < n)
w[--n] = s;
return i;
}
/*
* skip(w,n)
* skip empty string in w;
*
*/
int skip(w, n)
char *w[];
register int n;
{
register int i;
register int j;
for (i = 0, j = 0; i < n; i++)
if (w[i][0]) w[j++] = w[i];
return (j);
}
/*
* maintain domain table
*/
static int NumDomain = 0;
static int MyDomainID = 0;
static void domaininit()
{
register char* s;
register int i;
/* first entry is reserved */
for (i = NumDomain; i ; i--)
NumDomain++;
#if 0
#else
{
register char* t = MyDomain;
while (t < e && (*t = *++s) && *t != '.')
t++;
*t = 0;
}
#endif
for (i = 1; i < NumDomain; i++)
{
{
MyDomainID = i;
return;
}
}
MyDomainID = 0;
return;
}
int getmydomain()
{
if (!NumDomain)
domaininit();
return (MyDomainID);
}
int getdomainbyname(s)
register char* s;
{
register int i;
if (!NumDomain)
domaininit();
for (i = 0; i < NumDomain; i++)
{
return i;
}
return (-1);
}
char* getdomainbyid(i)
register int i;
{
if (!NumDomain)
domaininit();
if (i >= NumDomain)
return (NULL);
return (DomainTbl[i]);
}
/*
* return permission for access the version marked by a marker
* 0 : warnning
* 1 : warnning & check_out file is read-ony
* 2 : checkout is prohibited
*/
{
else
}