Lines Matching defs:dir
63 char dir[PATH_MAX * 2], file[PATH_MAX * 2];
73 if (strlen(path) > sizeof(dir) - 5)
95 sprintf(dir, "%s/cur", path);
96 if (stat(dir, &st_tmp) || S_ISDIR(st_tmp.st_mode) == 0)
101 sprintf(dir, "%s/tmp", path);
102 if (stat(dir, &st_tmp) || S_ISDIR(st_tmp.st_mode) == 0)
107 sprintf(dir, "%s/new", path);
108 if (stat(dir, &st_tmp) || S_ISDIR(st_tmp.st_mode) == 0)
126 sprintf(dir, "%s/%s", path, i ? "cur" : "new");
127 sprintf(file, "%s/", dir);
129 if ((dd = opendir(dir)) == NULL)