Lines Matching refs:tmp_name
558 char tmp_name[MAXPATHLEN+1]; in remove_file() local
575 (void) strcpy(tmp_name, root_dir); in remove_file()
576 (void) strcat(tmp_name, SYSEVENT_CONFIG_DIR); in remove_file()
577 (void) strcat(tmp_name, "/tmp.XXXXXX"); in remove_file()
578 if (mktemp(tmp_name) == NULL) { in remove_file()
583 if (creat(tmp_name, 0644) == -1) { in remove_file()
585 whoami, tmp_name, strerror(errno)); in remove_file()
589 tmp_fp = fopen(tmp_name, "a"); in remove_file()
592 whoami, tmp_name, strerror(errno)); in remove_file()
593 (void) unlink(tmp_name); in remove_file()
619 whoami, tmp_name, strerror(errno)); in remove_file()
623 if (unlink(tmp_name) == -1) { in remove_file()
625 whoami, tmp_name, strerror(errno)); in remove_file()
639 if (rename(tmp_name, fname) == -1) { in remove_file()
641 whoami, tmp_name, fname, strerror(errno)); in remove_file()