Lines Matching refs:tmp_file
1832 static char tmp_file[PATH_MAX] = ""; in write_ca_file() local
1841 if (((len = snprintf(tmp_file, PATH_MAX, "%s/%sXXXXXX", tmpdir, in write_ca_file()
1848 if ((fd = mkstemp(tmp_file)) == -1) { in write_ca_file()
1849 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file()
1854 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file()
1859 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file()
1864 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTMPFIL), tmp_file); in write_ca_file()
1870 gettext(ERR_KEYSTORE_FORM), tmp_file); in write_ca_file()
1876 gettext(ERR_KEYSTORE_FORM), tmp_file); in write_ca_file()
1885 ret = tmp_file; in write_ca_file()
1894 (void) unlink(tmp_file); in write_ca_file()
2152 char tmp_file[PATH_MAX]; in web_get_file() local
2270 if (((len = snprintf(tmp_file, PATH_MAX, in web_get_file()
2279 if ((fd = mkstemp(tmp_file)) == -1) { in web_get_file()
2281 gettext(MSG_NOTMPFIL), tmp_file); in web_get_file()
2296 ps->uniqfile = xstrdup(tmp_file); in web_get_file()