path.h 409 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PERF_PATH_H
  3. #define _PERF_PATH_H
  4. struct dirent;
  5. int path__join(char *bf, size_t size, const char *path1, const char *path2);
  6. int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
  7. bool is_regular_file(const char *file);
  8. bool is_directory(const char *base_path, const struct dirent *dent);
  9. #endif /* _PERF_PATH_H */