Lines Matching refs:dir

28  *	[<dir>/][<pfx>]<bas>.<suf>
46 * dir and pfx may be 0
59 * /cycle dir specifies TMPPATH cycle control
61 * manual cycled by application with dir=(nil)
63 * /prefix dir specifies the default prefix (default ast)
64 * /private private file/dir modes
65 * /public public file/dir modes
66 * /seed dir specifies pseudo-random generator seed
68 * /TMPPATH dir overrides the env value
69 * /TMPDIR dir overrides the env value
90 char** dir;
102 pathtemp(char* buf, size_t len, const char* dir, const char* pfx, int* fdp)
123 if (!dir)
126 if (tmp.dir && !*tmp.dir++)
127 tmp.dir = tmp.vec;
130 tmp.manual = streq(dir, "manual");
137 tmp.pfx = dir ? strdup(dir) : (char*)0;
152 tmp.key = (tmp.seed = (tmp.rng = dir ? (uint32_t)strtoul(dir, NiL, 0) : (uint32_t)1) != 0)? (uint32_t)0x63c63cd9L : 0;
164 tmp.tmpdir = dir ? strdup(dir) : (char*)0;
176 tmp.tmppath = dir ? strdup(dir) : (char*)0;
185 if (!(d = (char*)dir) || *d && eaccess(d, W_OK|X_OK))
200 tmp.dir = tmp.vec;
201 x = strcpy((char*)(tmp.dir + n), x);
202 *tmp.dir++ = x;
206 if (!VALID(*(tmp.dir - 1)))
207 tmp.dir--;
208 *tmp.dir++ = x;
210 if (!VALID(*(tmp.dir - 1)))
211 tmp.dir--;
212 *tmp.dir = 0;
223 tmp.dir = tmp.vec;
225 if (!(d = *tmp.dir++))
227 tmp.dir = tmp.vec;
228 d = *tmp.dir++;
242 if (buf && dir && (buf == (char*)dir && (buf + strlen(buf) + 1) == (char*)pfx || buf == (char*)pfx && !*dir) && !strcmp((char*)pfx + m + 1, "XXXXX"))
244 d = (char*)dir;
300 tmp.rng = (uint32_t)tmp.pid * ((uint32_t)time(NiL) ^ (((uint32_t)integralof(&attempt)) >> 3) ^ (((uint32_t)integralof(tmp.dir)) >> 3));