Lines Matching refs:basedir
185 string_t *basedir = t_str_new(256);
186 str_append(basedir, cwd);
187 str_append(basedir, "/"TEMP_DIRNAME);
188 size_t len = nearest_power(I_MAX(127, str_len(basedir) + strlen(COMPONENT_COMPONENT) + 1)) -
191 while(str_len(basedir) < len) {
192 str_append(basedir, COMPONENT_COMPONENT);
193 (void)mkdir(str_c(basedir), 0700);
196 tmpdir = str_c(basedir);
212 string_t *basedir = t_str_new(256);
213 str_append(basedir, cwd);
214 str_append(basedir, "/"TEMP_DIRNAME);
215 str_append_c(basedir, '/');
216 size_t base_len = str_len(basedir);
224 str_truncate(basedir, base_len);
225 str_append_n(basedir, buf, i);
226 tmpdir = str_c(basedir);
227 (void)mkdir(str_c(basedir), 0700);