Home
last modified time | relevance | path

Searched refs:tmpfile_name (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_util.c116 char tmpfile_name[MAXPATHLEN]; in update_conf() local
146 (void) strlcpy(tmpfile_name, TMPFILE_TEMPLATE, sizeof (tmpfile_name)); in update_conf()
147 if (mkstemp(tmpfile_name) == -1) { in update_conf()
156 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in update_conf()
159 tmpfile_name, strerror(err)); in update_conf()
261 if (unlink(tmpfile_name) != 0) { in update_conf()
264 "(Warning) failed to remove %s: %s"), tmpfile_name, in update_conf()
277 "failed to write to %s: %s"), tmpfile_name, in update_conf()
280 if (unlink(tmpfile_name) != 0) { in update_conf()
284 tmpfile_name, strerror(err)); in update_conf()
[all …]
H A Dadm_uef.c788 char tmpfile_name[MAXPATHLEN]; in uninstall_uef_lib() local
833 (void) strlcpy(tmpfile_name, TMPFILE_TEMPLATE, sizeof (tmpfile_name)); in uninstall_uef_lib()
834 if (mkstemp(tmpfile_name) == -1) { in uninstall_uef_lib()
843 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in uninstall_uef_lib()
846 tmpfile_name, strerror(err)); in uninstall_uef_lib()
847 if (unlink(tmpfile_name) != 0) { in uninstall_uef_lib()
851 tmpfile_name, strerror(err)); in uninstall_uef_lib()
914 if (unlink(tmpfile_name) != 0) { in uninstall_uef_lib()
918 tmpfile_name, strerror(err)); in uninstall_uef_lib()
933 if (rename(tmpfile_name, _PATH_PKCS11_CONF) == -1) { in uninstall_uef_lib()
[all …]
H A Dadm_kef.c704 char tmpfile_name[MAXPATHLEN]; in install_kef() local
764 (void) strlcpy(tmpfile_name, TMPFILE_TEMPLATE, sizeof (tmpfile_name)); in install_kef()
765 if (mkstemp(tmpfile_name) == -1) { in install_kef()
775 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in install_kef()
778 tmpfile_name, strerror(err)); in install_kef()
838 if (unlink(tmpfile_name) != 0) { in install_kef()
841 "(Warning) failed to remove %s: %s"), tmpfile_name, in install_kef()
855 "failed to write to %s: %s"), tmpfile_name, in install_kef()
858 if (unlink(tmpfile_name) != 0) { in install_kef()
862 tmpfile_name, strerror(err)); in install_kef()
[all …]
H A Dadm_kef_util.c957 char tmpfile_name[MAXPATHLEN]; in update_kcfconf() local
1014 (void) strlcpy(tmpfile_name, TMPFILE_TEMPLATE, sizeof (tmpfile_name)); in update_kcfconf()
1015 if (mkstemp(tmpfile_name) == -1) { in update_kcfconf()
1024 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in update_kcfconf()
1027 tmpfile_name, strerror(err)); in update_kcfconf()
1114 gettext("failed to close %s: %s"), tmpfile_name, in update_kcfconf()
1120 if (rename(tmpfile_name, _PATH_KCF_CONF) == -1) { in update_kcfconf()
1141 if ((rc == FAILURE) && (unlink(tmpfile_name) != 0)) { in update_kcfconf()
1145 tmpfile_name, strerror(err)); in update_kcfconf()
/titanic_50/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dinstall.c56 char tmpfile_name[MAXPATHLEN]; in kc_install() local
194 (void) strlcpy(tmpfile_name, CONF_TEMPFILE, sizeof (tmpfile_name)); in kc_install()
195 if (mkstemp(tmpfile_name) == -1) { in kc_install()
204 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in kc_install()
208 tmpfile_name, strerror(err)); in kc_install()
274 "failed to write to %s: %s\n"), tmpfile_name, in kc_install()
286 (void) unlink(tmpfile_name); in kc_install()
292 if (rename(tmpfile_name, _PATH_KMF_CONF) == -1) { in kc_install()
H A Duninstall.c52 char tmpfile_name[MAXPATHLEN]; in kc_uninstall() local
136 (void) strlcpy(tmpfile_name, CONF_TEMPFILE, sizeof (tmpfile_name)); in kc_uninstall()
137 if (mkstemp(tmpfile_name) == -1) { in kc_uninstall()
146 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in kc_uninstall()
223 (void) unlink(tmpfile_name); in kc_uninstall()
229 if (rename(tmpfile_name, _PATH_KMF_CONF) == -1) { in kc_uninstall()
H A Dmodify.c958 char tmpfile_name[MAXPATHLEN]; in kc_modify_plugin() local
1071 (void) strlcpy(tmpfile_name, CONF_TEMPFILE, sizeof (tmpfile_name)); in kc_modify_plugin()
1072 if (mkstemp(tmpfile_name) == -1) { in kc_modify_plugin()
1081 if ((pfile_tmp = fopen(tmpfile_name, "w")) == NULL) { in kc_modify_plugin()
1085 tmpfile_name, strerror(err)); in kc_modify_plugin()
1138 tmpfile_name, strerror(err)); in kc_modify_plugin()
1151 if (rename(tmpfile_name, _PATH_KMF_CONF) == -1) { in kc_modify_plugin()
1177 (void) unlink(tmpfile_name); in kc_modify_plugin()