Searched refs:tmpfilename (Results 1 – 7 of 7) sorted by relevance
/titanic_44/usr/src/lib/libnisdb/ |
H A D | db.cc | 74 tmpfilename = new char[len+5]; in db() 75 if (tmpfilename == NULL) { in db() 82 sprintf(tmpfilename, "%s.tmp", dbname); in db() 100 delete tmpfilename; in ~db() 632 unlink(tmpfilename); /* get rid of partial checkpoints */ in load() 671 unlink(tmpfilename); /* delete partial checkpoints */ in init() 703 if (internal_db.dump(tmpfilename) < 0) { /* dump to tempfile */ in checkpoint() 711 if (rename(tmpfilename, dbfilename) < 0){ /* rename permanently */ in checkpoint() 818 unlink(tmpfilename); /* delete partial checkpoints */ in remove_files()
|
H A D | db_c.x | 54 char* tmpfilename; member 69 % char* tmpfilename;
|
H A D | db_dictionary.cc | 616 tmpfilename = NULL; in db_dictionary() 771 tmpfilename = new char[len+5]; in inittemp() 772 if (tmpfilename == NULL) { in inittemp() 782 delete tmpfilename; in inittemp() 789 sprintf(tmpfilename, "%s.tmp", filename); in inittemp() 791 unlink(tmpfilename); /* get rid of partial checkpoints */ in inittemp() 1128 tmpfilename = new char[len+5]; in init() 1129 if (tmpfilename == NULL) { in init() 1139 delete tmpfilename; in init() 1146 sprintf(tmpfilename, "%s.tmp", filename); in init() [all …]
|
H A D | db_dictionary_c.x | 119 % char* tmpfilename;
|
/titanic_44/usr/src/lib/libkmf/libkmf/common/ |
H A D | policy.c | 1039 char tmpfilename[MAXPATHLEN]; in update_policyfile() local 1062 (void) memset(tmpfilename, 0, sizeof (tmpfilename)); in update_policyfile() 1069 if (strlcpy(tmpfilename, TMPFILE_TEMPLATE, in update_policyfile() 1070 sizeof (tmpfilename)) >= sizeof (tmpfilename)) in update_policyfile() 1078 (void) strncpy(tmpfilename, filename, prefix_len); in update_policyfile() 1079 (void) strncat(tmpfilename, "/", 1); in update_policyfile() 1080 (void) strncat(tmpfilename, TMPFILE_TEMPLATE, in update_policyfile() 1085 tmpfd = mkstemp(tmpfilename); in update_policyfile() 1093 (void) unlink(tmpfilename); in update_policyfile() 1104 (void) unlink(tmpfilename); in update_policyfile() [all …]
|
/titanic_44/usr/src/cmd/lofiadm/ |
H A D | main.c | 1287 char tmpfilename[MAXPATHLEN]; in lofi_uncompress() local 1336 (void) snprintf(tmpfilename, sizeof (tmpfilename), in lofi_uncompress() 1341 if ((uncompfd = mkstemp64(tmpfilename)) == -1) { in lofi_uncompress() 1384 (void) unlink(tmpfilename); in lofi_uncompress() 1389 if (rename(tmpfilename, filename) == -1) in lofi_uncompress() 1390 (void) unlink(tmpfilename); in lofi_uncompress() 1403 char tmpfilename[MAXPATHLEN]; in lofi_compress() local 1496 (void) snprintf(tmpfilename, sizeof (tmpfilename), in lofi_compress() 1503 if ((tfd = mkstemp64(tmpfilename)) == -1) in lofi_compress() 1684 (void) unlink(tmpfilename); in lofi_compress() [all …]
|
/titanic_44/usr/src/lib/libnwam/common/ |
H A D | libnwam_files.c | 738 char tmpfilename[MAXPATHLEN], filename_copy[MAXPATHLEN]; in nwam_write_object_to_files_backend() local 756 (void) snprintf(tmpfilename, MAXPATHLEN, "%s.new", filename); in nwam_write_object_to_files_backend() 758 if ((fd = open(tmpfilename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0) in nwam_write_object_to_files_backend() 801 if (rename(tmpfilename, filename) == 0) { in nwam_write_object_to_files_backend() 811 (void) unlink(tmpfilename); in nwam_write_object_to_files_backend()
|