Lines Matching defs:commands
58 * Implementation of the common sub-commands supported by sharemgr.
5878 * Common commands that implement the sub-commands used by all
5882 static sa_command_t commands[] = {
5983 * eventually provide a way to provide protocol specific sub-commands.
5995 for (i = 0; commands[i].cmdname != NULL; i++) {
5996 if (strncmp(cmd, commands[i].cmdname, len) == 0)
5997 return (&commands[i]);
6010 (void) printf(gettext("\tsub-commands:\n"));
6011 for (i = 0; commands[i].cmdname != NULL; i++) {
6012 if (!(commands[i].flags & (CMD_ALIAS|CMD_NODISPLAY)))
6014 sa_get_usage((sa_usage_t)commands[i].cmdidx));