| 38 | } |
| 39 | |
| 40 | static int |
| 41 | of_open_file(const char *relative_path) |
| 42 | { |
| 43 | int ret; |
| 44 | char full_path[PATH_MAX]; |
| 45 | |
| 46 | snprintf(full_path, PATH_MAX, "%s/%s", base_dir, relative_path); |
| 47 | ret = open(full_path, O_RDONLY); |
| 48 | if (ret < 0) |
| 49 | DPAAX_LOG(ERR, "Failed to open directory %s", |
| 50 | full_path); |
| 51 | return ret; |
| 52 | } |
| 53 | |
| 54 | static void |
| 55 | process_file(struct dirent *dent, struct dt_dir *parent) |
no test coverage detected