Searched refs:tempstore (Results 1 – 4 of 4) sorted by relevance
/curl/lib/ |
H A D | fopen.c | 99 char *tempstore = NULL; in Curl_fopen() local 122 tempstore = aprintf("%s%s.tmp", dir, randbuf); in Curl_fopen() 126 if(!tempstore) { in Curl_fopen() 134 fd = open(tempstore, O_WRONLY | O_CREAT | O_EXCL, (mode_t)(0600|sb.st_mode)); in Curl_fopen() 136 fd = open(tempstore, O_WRONLY | O_CREAT | O_EXCL, 0600|sb.st_mode); in Curl_fopen() 145 *tempname = tempstore; in Curl_fopen() 151 unlink(tempstore); in Curl_fopen() 154 free(tempstore); in Curl_fopen()
|
H A D | hsts.c | 367 char *tempstore = NULL; in Curl_hsts_save() local 381 result = Curl_fopen(data, file, &out, &tempstore); in Curl_hsts_save() 394 if(!result && tempstore && Curl_rename(tempstore, file)) in Curl_hsts_save() 397 if(result && tempstore) in Curl_hsts_save() 398 unlink(tempstore); in Curl_hsts_save() 400 free(tempstore); in Curl_hsts_save()
|
H A D | altsvc.c | 363 char *tempstore = NULL; in Curl_altsvc_save() local 377 result = Curl_fopen(data, file, &out, &tempstore); in Curl_altsvc_save() 392 if(!result && tempstore && Curl_rename(tempstore, file)) in Curl_altsvc_save() 395 if(result && tempstore) in Curl_altsvc_save() 396 unlink(tempstore); in Curl_altsvc_save() 398 free(tempstore); in Curl_altsvc_save()
|
H A D | cookie.c | 1560 char *tempstore = NULL; in cookie_output() local 1576 error = Curl_fopen(data, filename, &out, &tempstore); in cookie_output() 1628 if(tempstore && Curl_rename(tempstore, filename)) { in cookie_output() 1629 unlink(tempstore); in cookie_output() 1640 free(tempstore); in cookie_output() 1646 free(tempstore); in cookie_output()
|
Completed in 11 milliseconds