Lines Matching defs:tmp
301 char *tmp = NULL;
411 tmp = malloc(strlen(stack_path) + 7);
412 if (!tmp) {
417 rc = sprintf(tmp, "%sXXXXXX", stack_path);
423 fd = mkstemp(tmp);
425 fprintf(stderr, "%s: mkstemp %s failed: %s\n", argv[0], tmp, strerror(errno));
431 fprintf(stderr, "%s: fchmod %s failed: %s\n", argv[0], tmp, strerror(errno));
437 fprintf(stderr, "%s: write_binary_file %s failed\n", argv[0], tmp);
441 rc = rename(tmp, stack_path);
443 fprintf(stderr, "%s: rename %s -> %s failed: %s\n", argv[0], tmp, stack_path, strerror(errno));
455 free(tmp);
459 unlink(tmp);