perf tools: Move strlcpy() from perf to tools/lib/string.c
authorJosh Poimboeuf <[email protected]>
Tue, 15 Dec 2015 15:39:33 +0000 (09:39 -0600)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 16 Dec 2015 19:09:39 +0000 (16:09 -0300)
commitce99091730c92bf560712baa0696ea5a461b1fe8
tree98730b87cc0131c5d213625d67fe8ba6f58f492a
parent1925459b4d92d92e62d67ddc763cda650d2aa79c
perf tools: Move strlcpy() from perf to tools/lib/string.c

strlcpy() will be needed by the subcmd library.  Move it to the shared
tools/lib/string.c file which can be used by other tools.

Signed-off-by: Josh Poimboeuf <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/71e2804b973bf39ad3d3b9be10f99f2ea630be46.1450193761.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/include/linux/string.h
tools/lib/string.c
tools/perf/util/cache.h
tools/perf/util/path.c