Lines Matching refs:dir
26 char *dir, *p; in rrmdir() local
31 dir = strdup(path); in rrmdir()
32 p = dir + strlen(dir) - 1; in rrmdir()
33 while ((*p == '/') && (p > dir)) { in rrmdir()
38 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in rrmdir()
39 aos_cli_printf("%s is neither existed nor a directory\n", dir); in rrmdir()
43 pdir = opendir(dir); in rrmdir()
45 aos_cli_printf("opendir %s failed - %s\n", dir, strerror(errno)); in rrmdir()
53 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in rrmdir()
74 ret = rmdir(dir); in rrmdir()
76 aos_cli_printf("rmdir %s failed\n", dir); in rrmdir()
79 free(dir); in rrmdir()