Lines Matching refs:temp
175 char *b, *temp = NULL;
240 if (mktemplate(&temp, f->path, sess->opts->recursive) == -1) {
244 if (mkstemplinkat(f->link, p->rootfd, temp) == NULL) {
246 free(temp);
253 p->rootfd, f, newlink ? temp : f->path);
256 if (renameat(p->rootfd, temp, p->rootfd, f->path) == -1) {
257 ERR("%s: renameat %s", temp, f->path);
258 (void)unlinkat(p->rootfd, temp, 0);
259 free(temp);
262 free(temp);
280 char *temp = NULL;
329 if (mktemplate(&temp, f->path, sess->opts->recursive) == -1) {
333 if (mkstempnodat(p->rootfd, temp,
336 free(temp);
342 p->rootfd, f, newdev ? temp : f->path);
345 if (renameat(p->rootfd, temp, p->rootfd, f->path) == -1) {
346 ERR("%s: renameat %s", temp, f->path);
347 (void)unlinkat(p->rootfd, temp, 0);
348 free(temp);
351 free(temp);
369 char *temp = NULL;
407 if (mktemplate(&temp, f->path, sess->opts->recursive) == -1) {
411 if (mkstempfifoat(p->rootfd, temp) == NULL) {
413 free(temp);
419 p->rootfd, f, newfifo ? temp : f->path);
422 if (renameat(p->rootfd, temp, p->rootfd, f->path) == -1) {
423 ERR("%s: renameat %s", temp, f->path);
424 (void)unlinkat(p->rootfd, temp, 0);
425 free(temp);
428 free(temp);
446 char *temp = NULL;
484 if (mktemplate(&temp, f->path, sess->opts->recursive) == -1) {
488 if (mkstempsock(p->root, temp) == NULL) {
490 free(temp);
496 p->rootfd, f, newsock ? temp : f->path);
499 if (renameat(p->rootfd, temp, p->rootfd, f->path) == -1) {
500 ERR("%s: renameat %s", temp, f->path);
501 (void)unlinkat(p->rootfd, temp, 0);
502 free(temp);
505 free(temp);