diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-10-14 13:43:41 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-14 10:29:23 -0300 |
commit | 9a17d7268d71674f0bbff6821f7d8e6dc0ece19a (patch) | |
tree | 8d07c360badff5c323188e0124f0770924ea8632 /tools/perf/util/util.h | |
parent | 6e427ab02c8886ca6c9ecdbb318e68fe8f605469 (diff) | |
download | linux-stable-9a17d7268d71674f0bbff6821f7d8e6dc0ece19a.tar.gz linux-stable-9a17d7268d71674f0bbff6821f7d8e6dc0ece19a.tar.bz2 linux-stable-9a17d7268d71674f0bbff6821f7d8e6dc0ece19a.zip |
perf tools: Add copyfile_mode()
Add a function to copy a file specifying the permissions to use for the
created file.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1381747424-3557-5-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 1f06ba44cd53..42dfba70fbfc 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -243,6 +243,7 @@ static inline int sane_case(int x, int high) int mkdir_p(char *path, mode_t mode); int copyfile(const char *from, const char *to); +int copyfile_mode(const char *from, const char *to, mode_t mode); s64 perf_atoll(const char *str); char **argv_split(const char *str, int *argcp); |