Lines Matching defs:dir
123 char dir[256];
132 lws_snprintf(dir, sizeof(dir), "%s/%c", cache_base_dir, hex[n]);
133 (void)mkdir(dir, (mode_t)mode);
134 if (chown(dir, uid, (uid_t)-1))
136 dir, uid);
138 lws_snprintf(dir, sizeof(dir), "%s/%c/%c",
140 (void)mkdir(dir, (mode_t)mode);
141 if (chown(dir, uid, (uid_t)-1))
143 __func__, dir, uid);
246 * the dirs under the cache dir. Since we don't need or want a full list of
264 * one cache dir at a time and track state in the repodir struct.
283 DIR *dir;
307 dir = opendir(dirpath);
308 if (!dir) {
309 lwsl_err("Unable to walk repo dir '%s'\n",
315 de = readdir(dir);
487 closedir(dir);