Lines Matching defs:commands
30 /* List to hold groups of commands.
42 handle completion of commands for readline
49 struct cmd_list *commands = cmd_list;
59 /* make sure we have a list of valid commands */
60 if (!commands)
69 while (commands && count < MAX_COMPLETIONS-1)
71 if (!commands->cmd_set)
74 for (i=0; commands->cmd_set[i].name; i++)
76 if ((strncmp(text, commands->cmd_set[i].name, strlen(text)) == 0) &&
77 (( commands->cmd_set[i].returntype == RPC_RTYPE_NTSTATUS &&
78 commands->cmd_set[i].ntfn ) ||
79 ( commands->cmd_set[i].returntype == RPC_RTYPE_WERROR &&
80 commands->cmd_set[i].wfn)))
82 matches[count] = SMB_STRDUP(commands->cmd_set[i].name);
89 commands = commands->next;
179 /* List the available commands on a given pipe */
203 printf("Available commands on the %s pipe:\n\n", tmp_set->name);
224 /* Display help on commands */
265 /* List all commands */
430 /* Built in rpcclient commands */
436 { "help", RPC_RTYPE_NTSTATUS, cmd_help, NULL, -1, "Get help on commands", "[command]" },
437 { "?", RPC_RTYPE_NTSTATUS, cmd_help, NULL, -1, "Get help on commands", "[command]" },
439 { "list", RPC_RTYPE_NTSTATUS, cmd_listcommands, NULL, -1, "List available commands on <pipe>", "pipe" },
457 /* Various pipe commands */
537 /* some of the DsXXX commands use the netlogon pipe */
605 /* Walk through a dlist of arrays of commands. */
786 /* Loop around accepting commands */