Lines Matching refs:gpath
34 tchar *gpath, *gpathp, *lastgpathp; variable
68 gpath = agpath; gpathp = gpath; *gpathp = 0; in glob()
69 lastgpathp = &gpath[BUFSIZ - 2]; in glob()
151 gpathp = gpath; *gpathp = 0; globbed = 0; in acollect()
184 if (*cs == '~' && gpathp == gpath) { in expand()
189 if (gpathp != gpath + 1) { in expand()
191 if (gethdir(gpath + 1)) in expand()
195 error("Unknown user: %t", gpath + 1); in expand()
196 (void) strcpy_(gpath, gpath + 1); in expand()
198 (void) strcpy_(gpath, in expand()
200 gpathp = strend(gpath); in expand()
206 Gcat(gpath, S_ /* "" */); in expand()
207 else if (lstat_(gpath, &stb) >= 0) { in expand()
208 Gcat(gpath, S_ /* "" */); in expand()
247 if (*gpath == '\0') in matchdir_()
250 dirp = opendir_(gpath); in matchdir_()
269 Gcat(gpath, curdir_); in matchdir_()
281 Perror(gpath); in matchdir_()
483 if (stat_(gpath, &stb) == 0 && isdir(stb)) in amatch()
485 Gcat(gpath, S_ /* "" */); in amatch()