Searched defs:dir (Results 1 - 25 of 31) sorted by relevance

12

/bind-9.11.3/contrib/dlz/modules/filesystem/
H A Ddir.c26 #include "dir.h"
29 dir_init(dir_t *dir) { argument
30 dir->entry.name[0] = '\0';
31 dir->entry.length = 0;
33 dir->handle = NULL;
37 dir_open(dir_t *dir, const char *dirname) { argument
41 if (strlen(dirname) + 3 > sizeof(dir->dirname))
43 strcpy(dir->dirname, dirname);
45 p = dir->dirname + strlen(dir
83 dir_read(dir_t *dir) argument
103 dir_close(dir_t *dir) argument
112 dir_reset(dir_t *dir) argument
[all...]
H A Ddir.h28 typedef struct dir { struct
35 dir_init(dir_t *dir);
38 dir_open(dir_t *dir, const char *dirname);
41 dir_read(dir_t *dir);
44 dir_reset(dir_t *dir);
47 dir_close(dir_t *dir);
H A Ddlz_filesystem_dynamic.c59 #include "dir.h"
288 * path have the "data dir" directory contained within it so
296 * 0. the base dir is "/base-dir/" and the data dir is
298 * domain.com. Path /base-dir/com/domain/.datadir since
299 * /base-dir/com/domain/.datadir does not exist, we are not
302 * path /base-dir/com/domain/long/.datadir does exist!
305 /* if client is passed append xfr dir, otherwise append data dir */
338 process_dir(dir_t *dir, void *passback, config_data_t *cd, dlist_t *dir_list, unsigned int basedirlen) argument
593 dir_t dir; local
755 dir_t dir; local
[all...]
/bind-9.11.3/lib/dns/
H A Dgen-unix.h17 * the functions declared in isc/commandline.h and isc/dir.h could not
21 * The dir stuff was shrunk to fit the needs of gen.c.
50 start_directory(const char *path, isc_dir_t *dir) { argument
51 dir->handle = opendir(path);
53 if (dir->handle != NULL)
61 next_file(isc_dir_t *dir) { argument
64 dir->filename = NULL;
66 if (dir->handle != NULL) {
67 dirent = readdir(dir->handle);
69 dir
79 end_directory(isc_dir_t *dir) argument
[all...]
H A Dgen-win32.h56 * the functions declared in isc/commandline.h and isc/dir.h could not
60 * isc/commandline.c. The dir stuff was shrunk to fit the needs of gen.c.
216 start_directory(const char *path, isc_dir_t *dir) { argument
236 dir->first_file = ISC_TRUE;
238 dir->handle = FindFirstFile(pattern, &dir->find_data);
240 if (dir->handle == INVALID_HANDLE_VALUE) {
241 dir->filename = NULL;
244 dir->filename = dir
250 next_file(isc_dir_t *dir) argument
270 end_directory(isc_dir_t *dir) argument
[all...]
H A Dgen.c464 isc_dir_t dir; local
466 if (!start_directory(dirname, &dir))
469 while (next_file(&dir)) {
470 if (sscanf(dir.filename, TYPECLASSFMT, typename, &type) != 2)
478 if (strcmp(buf, dir.filename) != 0)
483 end_directory(&dir);
528 isc_dir_t dir; local
596 if (!start_directory(buf, &dir))
599 while (next_file(&dir)) {
600 if (sscanf(dir
[all...]
/bind-9.11.3/bin/named/
H A Dgeoip.c91 ns_geoip_load(char *dir) { argument
94 UNUSED(dir);
107 if (dir != NULL) {
110 "using \"%s\" as GeoIP directory", dir);
111 GeoIP_setup_custom_directory(dir);
/bind-9.11.3/lib/isc/unix/
H A Ddir.c21 #include <isc/dir.h>
31 #define VALID_DIR(dir) ISC_MAGIC_VALID(dir, ISC_DIR_MAGIC)
34 isc_dir_init(isc_dir_t *dir) { argument
35 REQUIRE(dir != NULL);
37 dir->entry.name[0] = '\0';
38 dir->entry.length = 0;
40 dir->handle = NULL;
42 dir->magic = ISC_DIR_MAGIC;
50 isc_dir_open(isc_dir_t *dir, cons argument
96 isc_dir_read(isc_dir_t *dir) argument
129 isc_dir_close(isc_dir_t *dir) argument
140 isc_dir_reset(isc_dir_t *dir) argument
[all...]
H A Dfile.c59 #include <isc/dir.h>
622 char *dir; local
632 dir = isc_mem_strdup(mctx, "/");
635 dir = isc_mem_allocate(mctx, slash - path);
636 if (dir != NULL)
637 strlcpy(dir, path, slash - path);
640 dir = isc_mem_strdup(mctx, ".");
643 if (dir == NULL)
647 isc_mem_free(mctx, dir);
651 *dirname = dir;
709 isc_file_sanitize(const char *dir, const char *base, const char *ext, char *path, size_t length) argument
[all...]
/bind-9.11.3/lib/isc/win32/
H A Ddir.c23 #include <isc/dir.h>
32 #define VALID_DIR(dir) ISC_MAGIC_VALID(dir, ISC_DIR_MAGIC)
38 isc_dir_init(isc_dir_t *dir) { argument
39 REQUIRE(dir != NULL);
41 dir->dirname[0] = '\0';
43 dir->entry.name[0] = '\0';
44 dir->entry.length = 0;
45 memset(&(dir->entry.find_data), 0, sizeof(dir
58 isc_dir_open(isc_dir_t *dir, const char *dirname) argument
97 isc_dir_read(isc_dir_t *dir) argument
137 isc_dir_close(isc_dir_t *dir) argument
148 isc_dir_reset(isc_dir_t *dir) argument
175 start_directory(isc_dir_t *dir) argument
[all...]
H A Dfile.c699 char *dir; local
712 dir = isc_mem_strdup(mctx, "/");
715 dir = isc_mem_allocate(mctx, slash - path);
716 if (dir != NULL)
717 strlcpy(dir, path, slash - path);
720 dir = isc_mem_strdup(mctx, ".");
723 if (dir == NULL)
727 isc_mem_free(mctx, dir);
731 *dirname = dir;
780 isc_file_sanitize(const char *dir, cons argument
[all...]
/bind-9.11.3/bin/dnssec/
H A Ddnssec-revoke.c82 char *dir = NULL; local
122 dir = isc_mem_strdup(mctx, isc_commandline_argument);
123 if (dir == NULL) {
165 if (dir != NULL) {
169 &dir, &filename);
174 if (strcmp(dir, ".") == 0) {
175 isc_mem_free(mctx, dir);
176 dir = NULL;
192 result = dst_key_fromnamedfile(filename, dir,
230 dst_key_buildfilename(key, DST_TYPE_PUBLIC, dir,
[all...]
H A Ddnssec-dsfromkey.c319 fprintf(stderr, " %s options [-K dir] keyfile\n\n", program);
320 fprintf(stderr, " %s options [-K dir] [-c class] -s dnsname\n\n",
350 char *filename = NULL, *dir = NULL, *namestr; local
413 dir = isc_commandline_argument;
414 if (strlen(dir) == 0U)
523 result = loadkeyset(dir, &rdataset);
H A Ddnssec-importkey.c191 emit(const char *dir, dns_rdata_t *rdata) { argument
207 result = dst_key_buildfilename(key, DST_TYPE_PUBLIC, dir, &buf);
213 result = dst_key_buildfilename(key, DST_TYPE_PRIVATE, dir, &buf);
222 dir, mctx, &tmp);
243 dir);
252 result = dst_key_buildfilename(key, DST_TYPE_PRIVATE, dir, &buf);
267 fprintf(stderr, " %s options [-K dir] keyfile\n\n", program);
294 char *filename = NULL, *dir = NULL, *namestr; local
344 dir = isc_commandline_argument;
345 if (strlen(dir)
[all...]
/bind-9.11.3/lib/dns/tests/
H A Dgeoip_test.c89 load_geoip(const char *dir) { argument
98 if (dir != NULL) {
100 DE_CONST(dir, p);
/bind-9.11.3/unit/atf-src/atf-c/
H A Dcheck.c54 create_tmpdir(atf_fs_path_t *dir) argument
58 err = atf_fs_path_init_fmt(dir, "%s/check.XXXXXX",
63 err = atf_fs_mkdtemp(dir);
65 atf_fs_path_fini(dir);
76 cleanup_tmpdir(const atf_fs_path_t *dir, const atf_fs_path_t *outfile, argument
100 atf_error_t err = atf_fs_rmdir(dir);
297 const atf_fs_path_t *dir)
309 err = atf_fs_path_copy(&r->pimpl->m_dir, dir);
314 atf_fs_path_cstring(dir));
319 atf_fs_path_cstring(dir));
296 atf_check_result_init(atf_check_result_t *r, const char *const *argv, const atf_fs_path_t *dir) argument
459 atf_fs_path_t dir; local
[all...]
H A Dtc.c430 check_prog_in_dir(const char *dir, void *data) argument
440 err = atf_fs_path_init_fmt(&p, "%s/%s", dir, pf->prog);
/bind-9.11.3/contrib/idn/idnkit-1.0-src/wsock/common/
H A Dencoding.c263 idnGetInstallDir(char *dir, size_t len) argument
266 BOOL v = GetStringFromRegistry(IDNVAL_INSDIR, dir, len, IDN_GLOBAL);
269 (v == TRUE) ? dir : "<none>");
/bind-9.11.3/unit/atf-src/tools/
H A Datffile.cpp243 reader(std::istream& is, const tools::fs::directory& dir) : argument
245 m_dir(dir)
317 tools::fs::directory dir(filename.branch_path());
318 dir.erase(filename.leaf_name());
319 tools::fs::directory::iterator iter = dir.begin();
320 while (iter != dir.end()) {
328 dir.erase(iter++);
338 reader r(is, dir);
H A Dfs.cpp664 const path& dir = path(*iter); local
666 if (is_executable(dir / prog))
710 impl::change_directory(const path& dir) argument
714 if (olddir != dir) {
715 if (::chdir(dir.c_str()) == -1)
716 throw tools::system_error(IMPL_NAME "::chdir(" + dir.str() + ")",
/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dtp_main.c148 argv0_to_dir(const char *argv0, atf_fs_path_t *dir) argument
157 err = atf_fs_path_branch_path(&temp, dir);
/bind-9.11.3/contrib/dlz/drivers/
H A Ddlz_filesystem_driver.c57 #include <isc/dir.h>
307 * path have the "data dir" directory contained within it so
315 * 0. the base dir is "/base-dir/" and the data dir is
317 * domain.com. Path /base-dir/com/domain/.datadir since
318 * /base-dir/com/domain/.datadir does not exist, we are not
321 * path /base-dir/com/domain/long/.datadir does exist!
324 /* if client is passed append xfr dir, otherwise append data dir */
359 process_dir(isc_dir_t *dir, void *passback, config_data_t *cd, dlist_t *dir_list, unsigned int basedirlen) argument
634 isc_dir_t dir; local
792 isc_dir_t dir; local
[all...]
/bind-9.11.3/bin/tests/dst/
H A Dt_dst.c25 #include <isc/dir.h>
53 isc_dir_t dir; local
58 isc_dir_init(&dir);
59 ret = isc_dir_open(&dir, path);
66 while (isc_dir_read(&dir) == ISC_R_SUCCESS) {
67 if (!strcmp(dir.entry.name, "."))
69 if (!strcmp(dir.entry.name, ".."))
73 l = strlcat(fullname, dir.entry.name, sizeof(fullname));
80 path, dir.entry.name);
83 isc_dir_close(&dir);
[all...]
/bind-9.11.3/unit/atf-src/atf-c++/detail/
H A Dfs.cpp478 const path& dir = path(*iter); local
480 if (is_executable(dir / prog))
/bind-9.11.3/lib/isc/
H A Dlog.c23 #include <isc/dir.h>
1139 isc_dir_t dir; local
1168 isc_dir_init(&dir);
1169 result = isc_dir_open(&dir, dirname);
1183 while (isc_dir_read(&dir) == ISC_R_SUCCESS) {
1184 if (dir.entry.length > bnamelen &&
1185 strncmp(dir.entry.name, bname, bnamelen) == 0 &&
1186 dir.entry.name[bnamelen] == '.')
1188 version = strtol(&dir.entry.name[bnamelen + 1],
1194 result = isc_file_remove(dir
[all...]

Completed in 36 milliseconds

12