blob: f014f905df509385a78afeae81921a91a4b03487 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Arnaldo Carvalho de Melo9a3993d2017-04-18 11:33:48 -03002#ifndef _PERF_PATH_H
3#define _PERF_PATH_H
4
Jiri Olsa06c3f2a2017-12-06 18:45:35 +01005struct dirent;
6
Arnaldo Carvalho de Melo9a3993d2017-04-18 11:33:48 -03007int path__join(char *bf, size_t size, const char *path1, const char *path2);
8int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
9
10bool is_regular_file(const char *file);
Jiri Olsa06c3f2a2017-12-06 18:45:35 +010011bool is_directory(const char *base_path, const struct dirent *dent);
Arnaldo Carvalho de Melo9a3993d2017-04-18 11:33:48 -030012
13#endif /* _PERF_PATH_H */