| 16 | static COMPAT_LIST_HEAD(linear); |
| 17 | |
| 18 | static int |
| 19 | of_open_dir(const char *relative_path, struct dirent ***d) |
| 20 | { |
| 21 | int ret; |
| 22 | char full_path[PATH_MAX]; |
| 23 | |
| 24 | snprintf(full_path, PATH_MAX, "%s/%s", base_dir, relative_path); |
| 25 | ret = scandir(full_path, d, 0, versionsort); |
| 26 | if (ret < 0) |
| 27 | DPAAX_LOG(ERR, "Failed to open directory %s", |
| 28 | full_path); |
| 29 | return ret; |
| 30 | } |
| 31 | |
| 32 | static void |
| 33 | of_close_dir(struct dirent **d, int num) |
no test coverage detected