Lines Matching defs:pfx
28 * [<dir>/][<pfx>]<bas>.<suf>
30 * length(<pfx>)<=5
46 * dir and pfx may be 0
47 * if pfx contains trailing X's then it is a mktemp(3) template
48 * otherwise only first 5 chars of pfx are used
56 * / as first pfx char provides tmp file generation control
96 char* pfx;
102 pathtemp(char* buf, size_t len, const char* dir, const char* pfx, int* fdp)
118 if (pfx && *pfx == '/')
120 pfx++;
121 if (streq(pfx, "cycle"))
131 return (char*)pfx;
133 else if (streq(pfx, "prefix"))
135 if (tmp.pfx)
136 free(tmp.pfx);
137 tmp.pfx = dir ? strdup(dir) : (char*)0;
138 return (char*)pfx;
140 else if (streq(pfx, "private"))
143 return (char*)pfx;
145 else if (streq(pfx, "public"))
148 return (char*)pfx;
150 else if (streq(pfx, "seed"))
153 return (char*)pfx;
155 else if (streq(pfx, TMP_ENV))
165 return (char*)pfx;
167 else if (streq(pfx, TMP_PATH_ENV))
177 return (char*)pfx;
239 if (!pfx && !(pfx = tmp.pfx))
240 pfx = "ast";
241 m = strlen(pfx);
242 if (buf && dir && (buf == (char*)dir && (buf + strlen(buf) + 1) == (char*)pfx || buf == (char*)pfx && !*dir) && !strcmp((char*)pfx + m + 1, "XXXXX"))
249 else if (*pfx && pfx[m - 1] == 'X')
251 for (l = m; l && pfx[l - 1] == 'X'; l--);
257 else if (strchr(pfx, '.'))
281 while (s < x && (n = *pfx++))