Lines Matching defs:dir
59 #include <isc/dir.h>
622 char *dir;
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,
727 if (dir != NULL)
728 l += strlen(dir) + 1;
738 dir != NULL ? dir : "", dir != NULL ? "/" : "",
748 dir != NULL ? dir : "", dir != NULL ? "/" : "",
766 dir != NULL ? dir : "", dir != NULL ? "/" : "",