162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _PERF_PATH_H
362306a36Sopenharmony_ci#define _PERF_PATH_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <stddef.h>
662306a36Sopenharmony_ci#include <stdbool.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct dirent;
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciint path__join(char *bf, size_t size, const char *path1, const char *path2);
1162306a36Sopenharmony_ciint path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cibool is_regular_file(const char *file);
1462306a36Sopenharmony_cibool is_directory(const char *base_path, const struct dirent *dent);
1562306a36Sopenharmony_cibool is_executable_file(const char *base_path, const struct dirent *dent);
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#endif /* _PERF_PATH_H */
18