Lines Matching defs:dirpath
54 bozo_dir_index(bozo_httpreq_t *request, const char *dirpath, int isindex)
68 if (strlen(dirpath) <= strlen(httpd->index_html))
69 dirpath = ".";
71 file = bozostrdup(httpd, request, dirpath);
74 dirpath = file;
76 debug((httpd, DEBUG_FAT, "bozo_dir_index: dirpath '%s'", dirpath));
77 if (stat(dirpath, &sb) < 0 ||
78 (dp = opendir(dirpath)) == NULL) {
144 for (j = k = scandir(dirpath, &de, NULL, alphasort), deo = de;
158 snprintf(buf, sizeof buf, "%s/%s", dirpath, name);
208 snprintf(buf, sizeof buf, "%s/%s", dirpath, httpd->dir_readme);