Lines Matching defs:argc
118 main(int argc, char *argv[])
134 if (argc < REQ_ARG_CNT) {
156 rc = do_list(argc, argv);
159 rc = do_disable(argc, argv);
162 rc = do_enable(argc, argv);
165 rc = do_install(argc, argv);
168 rc = do_uninstall(argc, argv);
171 rc = do_unload(argc, argv);
174 rc = do_refresh(argc);
177 rc = do_start(argc);
180 rc = do_stop(argc);
287 get_provider(int argc, char **argv)
295 while (!found && ++c < argc) {
357 * "argc" and "argv" contain values specified on the command line.
363 process_metaslot_operands(int argc, char **argv, char **meta_ks_token,
370 while (++c < argc) {
375 if ((rc = process_mech_operands(argc, argv, B_TRUE))
437 process_feature_operands(int argc, char **argv)
441 while (++c < argc) {
464 process_mech_operands(int argc, char **argv, boolean_t quiet)
475 while (!found && ++c < argc) {
535 do_list(int argc, char **argv)
544 argc -= 1;
547 if (argc == 1) {
555 if (argc > 5) {
560 while ((ch = getopt(argc, argv, "mpv")) != EOF) {
590 if ((rc = process_feature_operands(argc, argv)) != SUCCESS) {
594 prov = get_provider(argc, argv);
597 if (argc > 0) {
598 rc = process_mech_operands(argc, argv, B_TRUE);
720 do_disable(int argc, char **argv)
726 if ((argc < 3) || (argc > 5)) {
731 prov = get_provider(argc, argv);
740 if ((rc = process_feature_operands(argc, argv)) != SUCCESS) {
749 if ((argc > 3) &&
750 (rc = process_metaslot_operands(argc, argv,
756 (rc = process_mech_operands(argc, argv, B_FALSE)) != SUCCESS) {
837 do_enable(int argc, char **argv)
845 if ((argc < 3) || (argc > 6)) {
850 prov = get_provider(argc, argv);
855 if ((prov->cp_type != METASLOT) && (argc != 4)) {
866 if ((rc = process_metaslot_operands(argc, argv, &alt_token,
878 if ((rc = process_feature_operands(argc, argv)) != SUCCESS) {
887 (rc = process_mech_operands(argc, argv, B_FALSE))
952 do_install(int argc, char **argv)
957 if (argc < 3) {
962 prov = get_provider(argc, argv);
985 if (argc < 4) {
1000 if ((rc = process_mech_operands(argc, argv, B_FALSE)) != SUCCESS) {
1042 do_uninstall(int argc, char **argv)
1047 if (argc != 3) {
1052 prov = get_provider(argc, argv);
1099 do_unload(int argc, char **argv)
1107 if (argc != 3) {
1113 prov = get_provider(argc, argv);
1190 do_refresh(int argc)
1192 if (argc != 2) {
1215 do_start(int argc)
1217 if (argc != 2) {
1222 return (do_refresh(argc));
1231 do_stop(int argc)
1233 if (argc != 2) {