linux/tools/lib/subcmd
Arnaldo Carvalho de Melo 8e99b6d453 tools include: Adopt strstarts() from the kernel
Replacing prefixcmp(), same purpose, inverted result, so standardize on
the kernel variant, to reduce silly differences among tools/ and the
kernel sources, making it easier for people to work in both codebases.

And then doing:

	if (strstarts(option, "no-"))

Looks clearer than doing:

	if (!prefixcmp(option, "no-"))

To figure out if option starts witn "no-".

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-kaei42gi7lpa8subwtv7eug8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-07-20 15:46:10 -03:00
..
Build
exec-cmd.c
exec-cmd.h tools subcmd: Rename subcmd header include guards 2015-12-17 14:27:14 -03:00
help.c tools include: Adopt strstarts() from the kernel 2017-07-20 15:46:10 -03:00
help.h perf tools: Remove string.h, unistd.h and sys/stat.h from util.h 2017-04-24 13:43:33 -03:00
Makefile tools: Set the maximum optimization level according to the compiler being used 2017-02-14 10:55:27 -03:00
pager.c perf tools: Query terminal width and use in perf list 2016-10-03 21:35:45 -03:00
pager.h perf tools: Query terminal width and use in perf list 2016-10-03 21:35:45 -03:00
parse-options.c tools include: Adopt strstarts() from the kernel 2017-07-20 15:46:10 -03:00
parse-options.h tools lib subcmd: Fix missing member name 2017-01-16 14:59:15 -03:00
run-command.c tools lib subcmd: Use str_error_r() 2016-07-12 15:20:30 -03:00
run-command.h tools subcmd: Rename subcmd header include guards 2015-12-17 14:27:14 -03:00
sigchain.c
sigchain.h tools subcmd: Rename subcmd header include guards 2015-12-17 14:27:14 -03:00
subcmd-config.c
subcmd-config.h
subcmd-util.h tools lib string: Adopt prefixcmp() from perf and subcmd 2017-04-26 15:49:21 -03:00