Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 217) sorted by relevance

123456789

/trafficserver/proxy/
H A DPlugin.cc129 if (argc < 1) { in single_plugin_init()
181 init(argc, argv); in single_plugin_init()
268 int argc; in plugin_init() local
289 argc = 0; in plugin_init()
302 if (argc >= MAX_PLUGIN_ARGS) { in plugin_init()
317 argv[argc++] = p; in plugin_init()
327 argv[argc++] = p; in plugin_init()
339 for (i = 0; i < argc; i++) { in plugin_init()
346 if (argc < MAX_PLUGIN_ARGS) { in plugin_init()
347 argv[argc] = nullptr; in plugin_init()
[all …]
/trafficserver/lib/yamlcpp/util/
H A Dparse.cpp13 Params ParseArgs(int argc, char** argv) { in ParseArgs() argument
16 std::vector<std::string> args(argv + 1, argv + argc); in ParseArgs()
49 int main(int argc, char** argv) { in main() argument
50 Params p = ParseArgs(argc, argv); in main()
52 if (argc > 1) { in main()
H A Dread.cpp43 int main(int argc, char** argv) { in main() argument
47 for (int i = 1; i < argc; i++) { in main()
51 if (i >= argc) { in main()
64 if (i + 1 != argc) { in main()
/trafficserver/example/plugins/c-api/remap/
H A Dremap.cc53 int argc; member in remap_entry
67 remap_entry::remap_entry(int _argc, char *_argv[]) : next(nullptr), argc(0), argv(nullptr) in remap_entry()
71 argc = _argc; in remap_entry()
72 for (i = 0; i < argc; i++) { in remap_entry()
82 if (argc && argv) { in ~remap_entry()
83 for (int i = 0; i < argc; i++) { in ~remap_entry()
168 TSRemapNewInstance(int argc, char *argv[], void **ih, char *errbuf, int errbuf_size) in TSRemapNewInstance() argument
175 if (argc < 2) { in TSRemapNewInstance()
176 …sage(TS_ERROR, errbuf, errbuf_size, "Incorrect number of arguments - %d", argc); in TSRemapNewInstance()
182 for (i = 0; i < argc; i++) { in TSRemapNewInstance()
[all …]
/trafficserver/example/plugins/c-api/remap_header_add/
H A Dremap_header_add.cc38 int argc; member
88 TSRemapNewInstance(int argc, char *argv[], void **ih, char *, int) in TSRemapNewInstance() argument
102 rl->argc = argc; in TSRemapNewInstance()
104 rl->nvc = argc - 2; // the first two are the remap from and to in TSRemapNewInstance()
111 for (int i = 2; i < argc; i++) { in TSRemapNewInstance()
/trafficserver/tests/tools/plugins/
H A Dssl_verify_test.cc70 parse_callbacks(int argc, const char *argv[], int &count) in parse_callbacks() argument
74 for (i = 0; i < argc; i++) { in parse_callbacks()
111 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
122 parse_callbacks(argc, argv, verify_count); in TSPluginInit()
H A Dssl_client_verify_test.cc136 parse_callbacks(int argc, const char *argv[], int &count) in parse_callbacks() argument
140 for (i = 0; i < argc; i++) { in parse_callbacks()
177 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
188 parse_callbacks(argc, argv, verify_count); in TSPluginInit()
/trafficserver/proxy/http/remap/
H A DRemapConfig.h52 int argc = 0; member
71 const char *remap_validate_filter_args(acl_filter_rule **rule_pp, const char **argv, int argc, char…
74 unsigned long remap_check_option(const char **argv, int argc, unsigned long findmode = 0, int *_ret…
H A DRemapConfig.cc98 this->paramc = this->argc = 0; in reset()
116 rp->filter_name ? rp->filter_name : "<nullptr>", rp->argc); in process_filter_opt()
175 if (bti->argc < 1) { in parse_define_directive()
436 for (i = 0; i < argc; i++) { in remap_validate_filter_args()
452 for (i = 0; i < argc; i++) { in remap_validate_filter_args()
611 if (argv && argc > 0) { in remap_check_option()
612 for (int i = 0; i < argc; i++) { in remap_check_option()
745 ink_assert((unsigned)argc < countof(new_argv)); in remap_load_plugin()
748 argc -= jump_to_argc; in remap_load_plugin()
755 if (!remap_check_option(argv, argc, REMAP_OPTFLG_PLUGIN, &idx)) { in remap_load_plugin()
[all …]
H A DAclFiltering.cc35 for (i = (argc = 0); i < ACL_FILTER_MAX_ARGV; i++) { in reset()
72 for (int i = 0; i < _argc && argc < ACL_FILTER_MAX_ARGV; i++) { in add_argv()
73 if (likely(_argv[i] && (argv[argc] = ats_strdup(_argv[i])) != nullptr)) { in add_argv()
75 argc++; in add_argv()
122 for (i = 0; i < argc; i++) { in print()
/trafficserver/plugins/cache_range_requests/
H A Dcache_range_requests.cc75 struct pluginconfig *create_pluginconfig(int argc, char *const argv[]);
84 create_pluginconfig(int argc, char *const argv[]) in create_pluginconfig() argument
86 DEBUG_LOG("Number of arguments: %d", argc); in create_pluginconfig()
87 for (int index = 0; index < argc; ++index) { in create_pluginconfig()
106 ++argc; in create_pluginconfig()
110 int const opt = getopt_long(argc, argv, "", longopts, nullptr); in create_pluginconfig()
134 if (optind < argc && 0 == strcmp("ps_mode:cache_key_url", argv[optind])) { in create_pluginconfig()
567 if (argc < 2) { in TSRemapNewInstance()
576 *ih = static_cast<void *>(create_pluginconfig(argc - 2, plugin_argv + 2)); in TSRemapNewInstance()
615 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
[all …]
/trafficserver/plugins/experimental/sslheaders/
H A Dsslheaders.cc211 SslHdrParseOptions(int argc, const char **argv) in SslHdrParseOptions() argument
223 opt = getopt_long(argc, const_cast<char *const *>(argv), "", longopt, nullptr); in SslHdrParseOptions()
246 hdr->expansions.resize(argc - optind); in SslHdrParseOptions()
247 for (int i = optind; i < argc; ++i) { in SslHdrParseOptions()
258 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
271 hdr = SslHdrParseOptions(argc, static_cast<const char **>(argv)); in TSPluginInit()
293 TSRemapNewInstance(int argc, char *argv[], void **instance, char * /* err */, int /* errsz */) in TSRemapNewInstance() argument
297 hdr = SslHdrParseOptions(argc, (const char **)argv); in TSRemapNewInstance()
/trafficserver/plugins/cachekey/
H A Dplugin.cc94 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
107 if (nullptr != globalConfig && globalConfig->init(argc, argv, /* perRemapConfig */ false)) { in TSPluginInit()
145 TSRemapNewInstance(int argc, char *argv[], void **instance, char *errBuf, int errBufSize) in TSRemapNewInstance() argument
148 …if (nullptr != config && config->init(argc, const_cast<const char **>(argv), /* perRemapConfig */ … in TSRemapNewInstance()
/trafficserver/src/tscore/
H A Dmkdfa.c598 main(int argc, char *argv[]) in main() argument
600 if (argc < 2) in main()
604 mkdfa(fields, SIZEOF(fields), 1, (argc == 3)); in main()
606 mkdfa(methods, SIZEOF(methods), 0, (argc == 3)); in main()
608 mkdfa(statuses, SIZEOF(statuses), 0, (argc == 3)); in main()
610 mkdfa(schemes, SIZEOF(schemes), 0, (argc == 3)); in main()
612 mkdfa(days, SIZEOF(days), 0, (argc == 3)); in main()
614 mkdfa(months, SIZEOF(months), 0, (argc == 3)); in main()
616 mkdfa(connections, SIZEOF(connections), 0, (argc == 3)); in main()
618 mkdfa(cache_controls, SIZEOF(cache_controls), 0, (argc == 3)); in main()
H A Dtest_geometry.cc33 main(int argc, const char **argv) in main() argument
35 for (int i = 1; i < argc; ++i) { in main()
/trafficserver/example/plugins/c-api/disable_http2/
H A Ddisable_http2.cc60 TSPluginInit(int argc, char const *argv[]) in TSPluginInit() argument
73 } else if (argc < 2) { in TSPluginInit()
80 for (int i = 1; i < argc; i++) { in TSPluginInit()
/trafficserver/lib/yamlcpp/test/
H A Dmain.cpp3 int main(int argc, char** argv) { in main() argument
4 ::testing::InitGoogleTest(&argc, argv); in main()
/trafficserver/plugins/experimental/geoip_acl/
H A Dgeoip_acl.cc57 TSRemapNewInstance(int argc, char *argv[], void **ih, char * /* errbuf */, int /* errbuf_size */) in TSRemapNewInstance() argument
59 if (argc < 3) { in TSRemapNewInstance()
73 if (a->process_args(argc, argv) > 0) { in TSRemapNewInstance()
/trafficserver/proxy/http/remap/unit-tests/
H A Dplugin_testing_calls.cc66 TSRemapNewInstance(int argc, char *argv[], void **ih, char *errbuf, int errbuf_size) in TSRemapNewInstance() argument
74 debugObject.argc = argc; in TSRemapNewInstance()
/trafficserver/proxy/hdrs/unit_tests/
H A Dunit_test_main.cc32 main(int argc, char *argv[]) in main() argument
39 int result = Catch::Session().run(argc, argv); in main()
/trafficserver/example/plugins/c-api/thread_pool/include/
H A Dgen.c27 main(int argc, char *argv[]) in main() argument
31 if (argc != 2) { in main()
/trafficserver/lib/records/unit_tests/
H A Dunit_test_main.cc33 main(int argc, char *argv[]) in main() argument
42 int result = Catch::Session().run(argc, argv); in main()
/trafficserver/plugins/experimental/slice/
H A DConfig.cc77 Config::fromArgs(int const argc, char const *const argv[]) in fromArgs() argument
79 DEBUG_LOG("Number of arguments: %d", argc); in fromArgs()
80 for (int index = 0; index < argc; ++index) { in fromArgs()
88 for (int index = 0; index < argc; ++index) { in fromArgs()
125 int const opt = getopt_long(argc + 1, argvp, "b:de:i:lop:r:t:", longopts, nullptr); in fromArgs()
/trafficserver/example/plugins/c-api/file_1/
H A Dfile_1.c42 TSPluginInit(int argc, const char *argv[]) in TSPluginInit() argument
56 for (i = 1; i < argc; i++) { in TSPluginInit()
/trafficserver/plugins/prefetch/
H A Dconfigs.cc55 PrefetchConfig::init(int argc, char *argv[]) in init() argument
75 argc--; in init()
80 opt = getopt_long(argc, (char *const *)argv, "", longopt, nullptr); in init()

Completed in 53 milliseconds

123456789