Lines Matching refs:first

91 	/* system call so we can save us to call access(2) first */
305 void path_delete(Pathcomp_t *first)
307 register Pathcomp_t *pp=first, *old=0, *ppnext;
391 register Pathcomp_t *oldpp,*first;
405 first = (pp->flags&PATH_CDPATH)?pp->shp->cdpathlist:path_get("");
406 for(oldpp=first; oldpp && oldpp!=pp; oldpp=oldpp->next)
419 path_chkpaths(first,0,pp,offset);
985 /* find first path that has a library component */
1414 static Pathcomp_t *path_addcomp(Pathcomp_t *first, Pathcomp_t *old,const char *name, int flag)
1430 for(pp=first; pp; pp=pp->next)
1435 return(first);
1438 for(pp=first, oldpp=0; pp; oldpp=pp, pp=pp->next);
1447 first = pp;
1455 return(first);
1458 path_chkpaths(first,old,pp,offset);
1459 return(first);
1466 static int path_chkpaths(Pathcomp_t *first, Pathcomp_t* old,Pathcomp_t *pp, int offset)
1503 if(first)
1508 path_addcomp(first,old,stakptr(offset),PATH_FPATH|PATH_BFPATH);
1547 if(!first)
1563 Pathcomp_t *path_addpath(Pathcomp_t *first, register const char *path,int type)
1571 return(first);
1574 old = first;
1575 first = 0;
1584 first = path_addcomp(first,old,".",type);
1593 first = path_addcomp(first,old,cp,type);
1602 if(!first && !path)
1607 first = path_dup(pp);
1610 first = (void*)path_addpath((Pathcomp_t*)first,cp,PATH_FPATH);
1617 return(first);
1621 * duplicate the path give by <first> by incremented reference counts
1623 Pathcomp_t *path_dup(Pathcomp_t *first)
1625 register Pathcomp_t *pp=first;
1631 return(first);
1637 void path_newdir(Pathcomp_t *first)
1639 register Pathcomp_t *pp=first, *next, *pq;
1641 for(pp=first; pp; pp=pp->next)
1662 for(pq=first;pq!=pp;pq=pq->next)
1680 path_chkpaths(first,(Pathcomp_t*)0,pp,offset);
1687 path_dump(first);
1691 Pathcomp_t *path_unsetfpath(Pathcomp_t *first)
1693 register Pathcomp_t *pp=first, *old=0;
1718 first = pp->next;
1733 return(first);
1736 Pathcomp_t *path_dirfind(Pathcomp_t *first,const char *name,int c)
1738 register Pathcomp_t *pp=first;