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