mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Jiri Olsa](/assets/img/avatar_default.png)
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>
13 lines
409 B
C
13 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 */
|