Home
last modified time | relevance | path

Searched refs:zfile (Results 1 – 6 of 6) sorted by relevance

/openbsd/usr.sbin/nsd/
H A Ddbcreate.c216 const char* zfile; in namedb_write_zonefile() local
228 zfile = config_make_zonefile(zopt, nsd); in namedb_write_zonefile()
229 if(!create_path_components(zfile, &notexist)) { in namedb_write_zonefile()
231 "the path could not be created", zopt->name, zfile); in namedb_write_zonefile()
241 snprintf(bakfile, sizeof(bakfile), "%s~", zfile); in namedb_write_zonefile()
247 zone->opts->name, zfile)); in namedb_write_zonefile()
252 if(rename(bakfile, zfile) == -1) { in namedb_write_zonefile()
254 bakfile, zfile, strerror(errno)); in namedb_write_zonefile()
261 if(!file_get_mtime(zfile, &mtime, &notexist)) { in namedb_write_zonefile()
268 zone->filename = region_strdup(nsd->db->region, zfile); in namedb_write_zonefile()
[all …]
H A Dixfr.h234 void ixfr_write_to_file(struct zone* zone, const char* zfile);
237 void ixfr_read_from_file(struct nsd* nsd, struct zone* zone, const char* zfile);
244 const char* zfile, int file_num);
247 int ixfr_file_exists(const char* zfile, int file_num);
250 int ixfr_rename_it(const char* zname, const char* zfile, int oldnum,
254 int ixfr_read_file_header(const char* zname, const char* zfile,
259 int ixfr_unlink_it(const char* zname, const char* zfile, int file_num,
263 void ixfr_delete_superfluous_files(struct zone* zone, const char* zfile,
H A Dixfrcreate.c195 const char* zfile) in create_ixfr_spool_name() argument
226 if(!create_ixfr_spool_name(ixfrcr, zfile)) { in ixfr_create_start()
883 zfile); in ixfr_create_already_done_serial()
965 while(ixfr_file_exists(zfile, num)) { in ixfr_create_rename_and_delete_files()
982 (void)ixfr_unlink_it(zname, zfile, num, 0); in ixfr_create_rename_and_delete_files()
1003 ixfr_delete_superfluous_files(zone, zfile, 0); in ixfr_create_finishup()
1038 const char* zfile) in ixfr_readup_exist() argument
1050 ixfr_read_from_file(nsd, zone, zfile); in ixfr_readup_exist()
1073 ixfr_delete_superfluous_files(zone, zfile, 0); in ixfr_create_perform()
1084 ixfr_readup_exist(zone, nsd, zfile); in ixfr_create_perform()
[all …]
H A Dixfrcreate.h35 struct ixfr_create* ixfr_create_start(struct zone* zone, const char* zfile,
46 int append_mem, struct nsd* nsd, const char* zfile,
55 int ixfr_create_from_difference(struct zone* zone, const char* zfile,
59 void ixfr_readup_exist(struct zone* zone, struct nsd* nsd, const char* zfile);
H A Dixfr.c1685 snprintf(buf, len, "%s.ixfr", zfile); in make_ixfr_name()
1817 const char* zfile, int temp) in ixfr_delete_rest_files() argument
1835 if(!ixfr_file_exists(zfile, i)) in ixfr_delete_superfluous_files()
1915 ixfr_delete_rest_files(zone, data, zfile, 1); in ixfr_rename_files()
1932 if(ixfr_file_exists(zfile, destnum)) { in ixfr_rename_files()
1933 (void)ixfr_unlink_it(zone->opts->name, zfile, in ixfr_rename_files()
1939 ixfr_delete_rest_files(zone, data, zfile, 1); in ixfr_rename_files()
2155 const char* zfile, int file_num) in ixfr_write_file() argument
2198 if(!ixfr_write_file(zone, data, zfile, num)) { in ixfr_write_files()
2210 ixfr_delete_rest_files(zone, data, zfile, 0); in ixfr_write_files()
[all …]
/openbsd/usr.sbin/unbound/testcode/
H A Dunitzonemd.c60 static void zonemd_generate_test(const char* zname, char* zfile, in zonemd_generate_test() argument
87 z = authtest_addzone(az, zname, zfile); in zonemd_generate_test()
177 char* zfile = SRCDIRSTR "/testdata/zonemd.example1.zone"; in zonemd_check_test() local
204 z = authtest_addzone(az, zname, zfile); in zonemd_check_test()
249 static void zonemd_verify_test(char* zname, char* zfile, char* tastr, in zonemd_verify_test() argument
299 z = authtest_addzone(env.auth_zones, zname, zfile); in zonemd_verify_test()
301 fatal_exit("could not addzone %s %s", zname, zfile); in zonemd_verify_test()