0001
0002 #ifndef _PERF_PATH_H
0003 #define _PERF_PATH_H
0004
0005 #include <stddef.h>
0006 #include <stdbool.h>
0007
0008 struct dirent;
0009
0010 int path__join(char *bf, size_t size, const char *path1, const char *path2);
0011 int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
0012
0013 bool is_regular_file(const char *file);
0014 bool is_directory(const char *base_path, const struct dirent *dent);
0015 bool is_executable_file(const char *base_path, const struct dirent *dent);
0016
0017 #endif