Lines Matching defs:tmpdir
108 const char *tmpdir;
118 if ((tmpdir = GetTempDir()) != NULL && (execname = GetExecName()) != NULL && stat(execname, &sb) == 0)
122 lockfile = (char *)MemAlloc(strlen(tmpdir) + strlen(title) + 45);
123 sprintf(lockfile, "%s" FILE_SEPARATOR "%s.%lu.%llu.%lu", tmpdir, title, (unsigned long)sb.st_dev, (unsigned long long)sb.st_ino, (unsigned long)geteuid());
152 static char *tmpdir = NULL;
173 if (tmpdir)
174 free(tmpdir);
175 tmpdir = tmppath;
302 if (!tmpdir)
304 return tmpdir;