Lines Matching refs:filename
338 zonecfg_destroy_impl(char *filename)
340 if (unlink(filename) == -1) {
579 zonecfg_get_handle_impl(const char *zonename, const char *filename,
589 if ((handle->zone_dh_doc = xmlParseFile(filename)) == NULL) {
591 if (stat(filename, &statbuf) == 0)
1197 zonecfg_save_impl(zone_dochandle_t handle, char *filename)
1205 (void) strlcpy(tmpfile, filename, sizeof (tmpfile));
1234 * original file in .backup.<pid>.filename so we can restore it if
1240 (void) strlcpy(bakdir, filename, sizeof (bakdir));
1241 (void) strlcpy(bakbase, filename, sizeof (bakbase));
1245 if (link(filename, bakfile) == -1) {
1258 if (rename(tmpfile, filename) == -1) {
1280 (void) unlink(filename);
1281 (void) rename(bakfile, filename);
1288 (void) unlink(filename);
1353 zonecfg_verify_save(zone_dochandle_t handle, char *filename)
1373 if (xmlSaveFormatFile(filename, handle->zone_dh_doc, 1) <= 0)