Lines Matching refs:gpath
32 tchar *gpath, *gpathp, *lastgpathp; variable
65 gpath = agpath; gpathp = gpath; *gpathp = 0; in glob()
66 lastgpathp = &gpath[BUFSIZ - 2]; in glob()
148 gpathp = gpath; *gpathp = 0; globbed = 0; in acollect()
181 if (*cs == '~' && gpathp == gpath) { in expand()
186 if (gpathp != gpath + 1) { in expand()
188 if (gethdir(gpath + 1)) in expand()
192 error("Unknown user: %t", gpath + 1); in expand()
193 (void) strcpy_(gpath, gpath + 1); in expand()
195 (void) strcpy_(gpath, in expand()
197 gpathp = strend(gpath); in expand()
203 Gcat(gpath, S_ /* "" */); in expand()
204 else if (lstat_(gpath, &stb) >= 0) { in expand()
205 Gcat(gpath, S_ /* "" */); in expand()
244 if (*gpath == NULL) in matchdir_()
247 dirp = opendir_(gpath); in matchdir_()
266 Gcat(gpath, curdir_); in matchdir_()
278 Perror(gpath); in matchdir_()
480 if (stat_(gpath, &stb) == 0 && isdir(stb)) in amatch()
482 Gcat(gpath, S_ /* "" */); in amatch()