Lines Matching full:pathname
203 char pathname[MAX_PATH];
204 if (!GetTempPath(MAX_PATH, pathname)) {
211 result.set(pathname);
217 sprintf(pathname, "LLVM_%u", unsigned(GetCurrentProcessId()));
219 sprintf(pathname, "LLVM_%u", GetCurrentProcessId());
221 result.appendComponent(pathname);
311 char pathname[MAX_PATH];
312 ::GetCurrentDirectoryA(MAX_PATH,pathname);
313 return Path(pathname);
319 char pathname[MAX_PATH];
320 DWORD ret = ::GetModuleFileNameA(NULL, pathname, MAX_PATH);
321 return ret != MAX_PATH ? Path(pathname) : Path();
610 inline bool PathMsg(std::string* ErrMsg, const char* pathname, const char*msg) {
612 *ErrMsg = std::string(pathname) + ": " + std::string(msg);
620 char *pathname = reinterpret_cast<char *>(_alloca(len+2));
621 path.copy(pathname, len);
622 pathname[len] = 0;
625 if (len == 0 || pathname[len - 1] != '/') {
626 pathname[len] = '/';
627 pathname[++len] = 0;
631 char *next = pathname;
632 if (pathname[0] == '/' && pathname[1] == '/') {
634 next = strchr(pathname+2, '/');
636 return PathMsg(ErrMsg, pathname, "badly formed remote directory");
641 return PathMsg(ErrMsg, pathname,"badly formed remote directory");
645 return PathMsg(ErrMsg, pathname, "badly formed remote directory");
648 if (pathname[1] == ':')
660 if (!CreateDirectory(pathname, NULL) &&
663 std::string(pathname) + ": Can't create directory: ");
668 pathname[len-1] = 0;
669 if (!CreateDirectory(pathname, NULL) &&
671 return MakeErrMsg(ErrMsg, std::string(pathname) +
702 char *pathname = reinterpret_cast<char *>(_alloca(path.length()+3));
704 path.copy(pathname, lastchar+1);
707 if (pathname[lastchar] != '/')
708 pathname[++lastchar] = '/';
709 pathname[lastchar+1] = '*';
710 pathname[lastchar+2] = 0;
714 HANDLE h = FindFirstFile(pathname, &fd);
751 pathname[lastchar] = 0;
752 if (!RemoveDirectory(pathname))
754 std::string(pathname) + ": Can't destroy directory: ");