2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2017-04-18 11:33:48 -03:00
|
|
|
#ifndef _PERF_PATH_H
|
|
|
|
|
#define _PERF_PATH_H
|
|
|
|
|
|
2019-08-30 12:52:25 -03:00
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2017-12-06 18:45:35 +01:00
|
|
|
struct dirent;
|
|
|
|
|
|
2017-04-18 11:33:48 -03:00
|
|
|
int path__join(char *bf, size_t size, const char *path1, const char *path2);
|
|
|
|
|
int path__join3(char *bf, size_t size, const char *path1, const char *path2, const char *path3);
|
|
|
|
|
|
|
|
|
|
bool is_regular_file(const char *file);
|
2017-12-06 18:45:35 +01:00
|
|
|
bool is_directory(const char *base_path, const struct dirent *dent);
|
2024-11-18 17:16:28 -08:00
|
|
|
bool is_directory_at(int dir_fd, const char *path);
|
2017-04-18 11:33:48 -03:00
|
|
|
|
|
|
|
|
#endif /* _PERF_PATH_H */
|