Lines Matching refs:tmpdir
44 const char *tmpdir; /* TMPDIR environment var */ in cupsTempFd() local
60 if ((tmpdir = getenv("TEMP")) == NULL) in cupsTempFd()
63 tmpdir = tmppath; in cupsTempFd()
74 if ((tmpdir = getenv("TMPDIR")) != NULL && access(tmpdir, W_OK)) in cupsTempFd()
75 tmpdir = NULL; in cupsTempFd()
77 if (!tmpdir) in cupsTempFd()
80 tmpdir = tmppath; in cupsTempFd()
82 tmpdir = "/private/tmp"; /* This should never happen */ in cupsTempFd()
93 if ((tmpdir = getenv("TMPDIR")) == NULL) in cupsTempFd()
94 tmpdir = "/tmp"; in cupsTempFd()
116 snprintf(filename, (size_t)len - 1, "%s/%05lx%08lx", tmpdir, GetCurrentProcessId(), curtime); in cupsTempFd()
128 …snprintf(filename, (size_t)len - 1, "%s/%05x%08x", tmpdir, (unsigned)getpid(), (unsigned)(curtime.… in cupsTempFd()