return( !((*p->L->F)(p->L)));
}
glob(p)
-register struct { int f; char *pat; } *p;
+register struct anode *p;
{
- return(gmatch(Fname, p->pat));
+ return(gmatch(Fname, (char *)p->L));
}
print(p)
struct anode *p;
return(1);
}
mtime(p)
-register struct { int f, t, s; } *p;
+register struct anode *p;
{
- return(scomp((int)((Now - Statb.st_mtime) / A_DAY), p->t, p->s));
+ /* p->L is formerly int t */
+ /* p->R is formerly int s */
+ return(scomp((int)((Now - Statb.st_mtime) / A_DAY), (int)p->L, (int)p->R));
}
atime(p)
-register struct { int f, t, s; } *p;
+register struct anode *p;
{
- return(scomp((int)((Now - Statb.st_atime) / A_DAY), p->t, p->s));
+ /* p->L is formerly int t */
+ /* p->R is formerly int s */
+ return(scomp((int)((Now - Statb.st_atime) / A_DAY), (int)p->L, (int)p->R));
}
user(p)
-register struct { int f, u, s; } *p;
+register struct anode *p;
{
- return(scomp(Statb.st_uid, p->u, p->s));
+ /* p->L is formerly int u */
+ /* p->R is formerly int s */
+ return(scomp(Statb.st_uid, (int)p->L, (int)p->R));
}
nouser(p)
struct anode *p;
return (getname(Statb.st_uid) == NULL);
}
ino(p)
-register struct { int f, u, s; } *p;
+register struct anode *p;
{
- return(scomp((int)Statb.st_ino, p->u, p->s));
+ /* p->L is formerly int u */
+ /* p->R is formerly int s */
+ return(scomp((int)Statb.st_ino, (int)p->L, (int)p->R));
}
group(p)
-register struct { int f, u; } *p;
+register struct anode *p;
{
- return(p->u == Statb.st_gid);
+ /* p->L is formerly int u */
+ return((int)p->L == Statb.st_gid);
}
nogroup(p)
struct anode *p;
return (getgroup(Statb.st_gid) == NULL);
}
links(p)
-register struct { int f, link, s; } *p;
+register struct anode *p;
{
- return(scomp(Statb.st_nlink, p->link, p->s));
+ /* p->L is formerly int link */
+ /* p->R is formerly int s */
+ return(scomp(Statb.st_nlink, (int)p->L, (int)p->R));
}
size(p)
-register struct { int f, sz, s; } *p;
+register struct anode *p;
{
- return(scomp((int)((Statb.st_size+511)>>9), p->sz, p->s));
+ /* p->L is formerly int sz */
+ /* p->R is formerly int s */
+ return(scomp((int)((Statb.st_size+511)>>9), (int)p->L, (int)p->R));
}
perm(p)
-register struct { int f, per, s; } *p;
+register struct anode *p;
{
+ /* p->L is formerly int per */
+ /* p->R is formerly int s */
register i;
- i = (p->s=='-') ? p->per : 07777; /* '-' means only arg bits */
- return((Statb.st_mode & i & 07777) == p->per);
+ i = ((int)p->R=='-') ? (int)p->L : 07777; /* '-' means only arg bits */
+ return((Statb.st_mode & i & 07777) == (int)p->L);
}
type(p)
-register struct { int f, per, s; } *p;
+register struct anode *p;
{
- return((Statb.st_mode&S_IFMT)==p->per);
+ /* p->L is formerly int per */
+ return((Statb.st_mode&S_IFMT)==(int)p->L);
}
exeq(p)
-register struct { int f, com; } *p;
+register struct anode *p;
{
+ /* p->L is formerly int com */
fflush(stdout); /* to flush possible `-print' */
- return(doex(p->com));
+ return(doex((int)p->L));
}
ok(p)
-struct { int f, com; } *p;
+struct anode *p;
{
+ /* p->L is formerly int com */
char c; int yes;
yes = 0;
fflush(stdout); /* to flush possible `-print' */
- fprintf(stderr, "< %s ... %s > ? ", Argv[p->com], Pathname);
+ fprintf(stderr, "< %s ... %s > ? ", Argv[(int)p->L], Pathname);
fflush(stderr);
if((c=getchar())=='y') yes = 1;
while(c!='\n') c = getchar();
- if(yes) return(doex(p->com));
+ if(yes) return(doex((int)p->L));
return(0);
}
U.s[0] = v[0], U.s[1] = v[1];
return U.l;
}
-cpio(p)
-struct anode *p;
+cpio()
{
#define MAGIC 070707
struct header {
case 0:
chdir(Home);
- execvp(nargv[0], nargv, np);
+ execvp(nargv[0], nargv);
write(2, "find: Can't execute ", 20);
perror(nargv[0]);
/*