Lines Matching refs:gp
78 static char *nextdir(glob_t *gp, char *dir) in nextdir() argument
80 Pathcomp_t *pp = (Pathcomp_t*)gp->gl_handle; in nextdir()
85 gp->gl_handle = (void*)pp; in nextdir()
97 register glob_t *gp= &gdata; in path_expand() local
104 memset(gp,0,sizeof(gdata)); in path_expand()
126 gp->gl_nextdir = nextdir; in path_expand()
181 gp->gl_fignore = stakfreeze(1); in path_expand()
184 gp->gl_fignore = ""; in path_expand()
188 gp->gl_fignore = nv_getval(sh_scoped(shp,FIGNORENOD)); in path_expand()
190 gp->gl_suffix = sufstr; in path_expand()
191 gp->gl_intr = &shp->trapnote; in path_expand()
195 glob(pattern, flags, 0, gp); in path_expand()
203 for(ap= (struct argnod*)gp->gl_list; ap; ap = ap->argnxt.ap) in path_expand()
209 if(gp->gl_list) in path_expand()
210 *arghead = (struct argnod*)gp->gl_list; in path_expand()
211 return(gp->gl_pathc+extra); in path_expand()