path.h (976e3645923bdd2fe7893aae33fd7a21098bfb28) | path.h (41204da4c16071be9090940b18f566832d46becc) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _PERF_PATH_H 3#define _PERF_PATH_H 4 5#include <stddef.h> 6#include <stdbool.h> 7 8struct dirent; 9 10int path__join(char *bf, size_t size, const char *path1, const char *path2); 11int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3); 12 13bool is_regular_file(const char *file); 14bool is_directory(const char *base_path, const struct dirent *dent); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _PERF_PATH_H 3#define _PERF_PATH_H 4 5#include <stddef.h> 6#include <stdbool.h> 7 8struct dirent; 9 10int path__join(char *bf, size_t size, const char *path1, const char *path2); 11int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3); 12 13bool is_regular_file(const char *file); 14bool is_directory(const char *base_path, const struct dirent *dent); |
15bool is_executable_file(const char *base_path, const struct dirent *dent); |
|
15 16#endif /* _PERF_PATH_H */ | 16 17#endif /* _PERF_PATH_H */ |