Lines Matching refs:dir
90 char** dir; member
102 pathtemp(char* buf, size_t len, const char* dir, const char* pfx, int* fdp) in pathtemp() argument
123 if (!dir) in pathtemp()
126 if (tmp.dir && !*tmp.dir++) in pathtemp()
127 tmp.dir = tmp.vec; in pathtemp()
130 tmp.manual = streq(dir, "manual"); in pathtemp()
137 tmp.pfx = dir ? strdup(dir) : (char*)0; in pathtemp()
152 …tmp.key = (tmp.seed = (tmp.rng = dir ? (uint32_t)strtoul(dir, NiL, 0) : (uint32_t)1) != 0)? (uint3… in pathtemp()
164 tmp.tmpdir = dir ? strdup(dir) : (char*)0; in pathtemp()
176 tmp.tmppath = dir ? strdup(dir) : (char*)0; in pathtemp()
185 if (!(d = (char*)dir) || *d && eaccess(d, W_OK|X_OK)) in pathtemp()
200 tmp.dir = tmp.vec; in pathtemp()
201 x = strcpy((char*)(tmp.dir + n), x); in pathtemp()
202 *tmp.dir++ = x; in pathtemp()
206 if (!VALID(*(tmp.dir - 1))) in pathtemp()
207 tmp.dir--; in pathtemp()
208 *tmp.dir++ = x; in pathtemp()
210 if (!VALID(*(tmp.dir - 1))) in pathtemp()
211 tmp.dir--; in pathtemp()
212 *tmp.dir = 0; in pathtemp()
223 tmp.dir = tmp.vec; in pathtemp()
225 if (!(d = *tmp.dir++)) in pathtemp()
227 tmp.dir = tmp.vec; in pathtemp()
228 d = *tmp.dir++; in pathtemp()
242 …if (buf && dir && (buf == (char*)dir && (buf + strlen(buf) + 1) == (char*)pfx || buf == (char*)pfx… in pathtemp()
244 d = (char*)dir; in pathtemp()
300 …_t)tmp.pid * ((uintptr_t)time(NiL) ^ (((uintptr_t)(&attempt)) >> 3) ^ (((uintptr_t)tmp.dir) >> 3)); in pathtemp()