Lines Matching refs:lde
78 lws_dir_via_stat(char *combo, size_t l, const char *path, struct lws_dir_entry *lde) in lws_dir_via_stat() argument
84 lde->type = LDOT_UNKNOWN; in lws_dir_via_stat()
89 lde->type = LDOT_BLOCK; in lws_dir_via_stat()
92 lde->type = LDOT_CHAR; in lws_dir_via_stat()
95 lde->type = LDOT_DIR; in lws_dir_via_stat()
98 lde->type = LDOT_FIFO; in lws_dir_via_stat()
102 lde->type = LDOT_LINK; in lws_dir_via_stat()
106 lde->type = LDOT_FILE; in lws_dir_via_stat()
117 struct lws_dir_entry lde; in lws_dir() local
139 lde.name = namelist[i]->d_name; in lws_dir()
147 lws_dir_via_stat(combo, l, namelist[i]->d_name, &lde); in lws_dir()
154 lde.type = LDOT_BLOCK; in lws_dir()
156 lde.type = LDOT_CHAR; in lws_dir()
158 lde.type = LDOT_DIR; in lws_dir()
160 lde.type = LDOT_FIFO; in lws_dir()
162 lde.type = LDOT_LINK; in lws_dir()
164 lde.type = LDOT_FILE; in lws_dir()
166 lde.type = LDOTT_SOCKET; in lws_dir()
168 lde.type = LDOT_UNKNOWN; in lws_dir()
169 lws_dir_via_stat(combo, l, namelist[i]->d_name, &lde); in lws_dir()
172 if (cb(dirpath, user, &lde)) { in lws_dir()
217 lws_dir_glob_cb(const char *dirpath, void *user, struct lws_dir_entry *lde) in lws_dir_glob_cb() argument
222 if (!strcmp(lde->name, ".") || !strcmp(lde->name, "..")) in lws_dir_glob_cb()
225 if (lde->type == LDOT_DIR) in lws_dir_glob_cb()
228 if (lws_dir_glob_check(lde->name, filter->filter)) { in lws_dir_glob_cb()
230 lde->name); in lws_dir_glob_cb()
238 lws_dir_rm_rf_cb(const char *dirpath, void *user, struct lws_dir_entry *lde) in lws_dir_rm_rf_cb() argument
242 if (!strcmp(lde->name, ".") || !strcmp(lde->name, "..")) in lws_dir_rm_rf_cb()
245 lws_snprintf(path, sizeof(path), "%s%c%s", dirpath, csep, lde->name); in lws_dir_rm_rf_cb()
247 if (lde->type == LDOT_DIR) { in lws_dir_rm_rf_cb()
277 __func__, path, errno, lde->type); in lws_dir_rm_rf_cb()
298 lws_plugins_dir_cb(const char *dirpath, void *user, struct lws_dir_entry *lde) in lws_plugins_dir_cb() argument
305 if (strlen(lde->name) < 7) in lws_plugins_dir_cb()
316 p = lde->name; in lws_plugins_dir_cb()
330 lws_snprintf(path, sizeof(path) - 1, "%s/%s", dirpath, lde->name); in lws_plugins_dir_cb()