Lines Matching defs:tmpfile_name
704 char tmpfile_name[MAXPATHLEN];
764 (void) strlcpy(tmpfile_name, TMPFILE_TEMPLATE, sizeof (tmpfile_name));
765 if (mkstemp(tmpfile_name) == -1) {
775 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) {
778 tmpfile_name, strerror(err));
838 if (unlink(tmpfile_name) != 0) {
841 "(Warning) failed to remove %s: %s"), tmpfile_name,
855 "failed to write to %s: %s"), tmpfile_name,
858 if (unlink(tmpfile_name) != 0) {
862 tmpfile_name, strerror(err));
872 gettext("failed to close %s: %s"), tmpfile_name,
878 if (rename(tmpfile_name, _PATH_KCF_CONF) == -1) {
883 cryptodebug("failed to rename %s to %s: %s", tmpfile_name,
900 if (unlink(tmpfile_name) != 0) {
904 tmpfile_name, strerror(err));