mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 23:19:49 +07:00
06c3f2aa9f
So that it can be used more widely, like in the next patch, when it will be used to fix a bug in 'perf test' handling of dirent.d_type == DT_UNKNOWN. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20171206174535.25380-1-jolsa@kernel.org [ Split from a larger patch, removed needless includes in path.h ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
14 lines
409 B
C
14 lines
409 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _PERF_PATH_H
|
|
#define _PERF_PATH_H
|
|
|
|
struct dirent;
|
|
|
|
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);
|
|
bool is_directory(const char *base_path, const struct dirent *dent);
|
|
|
|
#endif /* _PERF_PATH_H */
|