static char gpath
[100], *gpathp
;
return (ncoll
== 0 ? 0 : &ava
[2]);
register char **p1
, **p2
, **c
;
if (strcmp(*p1
, *p2
) > 0) {
while (*cs
!= '*' && *cs
!= '?' && *cs
!= '[') {
if (gpathp
>= &gpath
[PTHSIZ
])
else if ((*gpathp
++ = *cs
++) == 0) {
else if (stat(gpath
, &stbuff
) >= 0) {
while (cs
>= as
&& *cs
!= '/')
if (gpathp
>= &gpath
[PTHSIZ
])
while (read(dirf
, &entry
, 16) == 16) {
if (match(entry
.name
, cs
)) {
*av
++ = cat(gpath
, entry
.name
);
panic("Arg list too long");
if (*s
== '.' && *p
!= '.')
if (lc
<= scc
&& scc
<= *p
++)
if (stat(gpath
, &stbuff
) == 0)
if ((stbuff
[2] & 060000) == 040000)
while (*s2
++ = (*s1
++ & 0177))