Searched refs:tmp_file (Results 1 – 6 of 6) sorted by relevance
/dragonfly/usr.bin/patch/ |
H A D | backupfile.c | 56 char *dir, *base_versions, *tmp_file; in find_backup_file_name() local 61 tmp_file = strdup(file); in find_backup_file_name() 62 if (tmp_file == NULL) in find_backup_file_name() 64 base_versions = concat(basename(tmp_file), ".~"); in find_backup_file_name() 65 free(tmp_file); in find_backup_file_name() 68 tmp_file = strdup(file); in find_backup_file_name() 69 if (tmp_file == NULL) { in find_backup_file_name() 73 dir = dirname(tmp_file); in find_backup_file_name() 76 free(tmp_file); in find_backup_file_name() 81 free(tmp_file); in find_backup_file_name()
|
/dragonfly/tools/regression/priv/ |
H A D | test_acct.c | 7 static char *tmp_file; variable 11 tmp_file = "./tmpfile"; in setup() 12 int fh = open(tmp_file, O_CREAT | O_TRUNC | O_WRONLY, 0666); in setup() 18 unlink(tmp_file); in teardown() 25 error = acct(tmp_file); in test_acct()
|
/dragonfly/contrib/lvm2/dist/lib/filters/ |
H A D | filter-persistent.c | 183 char *tmp_file; in persistent_filter_dump() local 236 tmp_file = alloca(strlen(pf->file) + 5); in persistent_filter_dump() 237 sprintf(tmp_file, "%s.tmp", pf->file); in persistent_filter_dump() 239 if (!(fp = fopen(tmp_file, "w"))) { in persistent_filter_dump() 242 log_sys_error("fopen", tmp_file); in persistent_filter_dump() 254 if (lvm_fclose(fp, tmp_file)) in persistent_filter_dump() 257 if (rename(tmp_file, pf->file)) in persistent_filter_dump() 258 log_error("%s: rename to %s failed: %s", tmp_file, pf->file, in persistent_filter_dump()
|
/dragonfly/contrib/ee/ |
H A D | ee.c | 1717 free(tmp_file); 1730 tmp_file = cmd_str; 1735 free(tmp_file); 2205 get_file(tmp_file); in check_fp() 2233 if ((tmp_file != NULL) && (*tmp_file != '\0')) in check_fp() 2427 file_name = tmp_file; in finish() 3775 if (tmp_file != string) 3776 free(tmp_file); 3785 free(tmp_file); 3817 string = tmp_file; [all …]
|
/dragonfly/usr.bin/sort/ |
H A D | file.h | 106 void tmp_file_atexit(const char *tmp_file);
|
H A D | file.c | 137 tmp_file_atexit(const char *tmp_file) in tmp_file_atexit() argument 140 if (tmp_file) { in tmp_file_atexit() 144 item->fn = sort_strdup(tmp_file); in tmp_file_atexit()
|