Home
last modified time | relevance | path

Searched refs:cmds (Results 1 – 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dpktool.c522 static verbcmd cmds[] = { variable
547 cmds[TOKEN_IDX].verb = TOKEN_VERB; in init_command_list()
551 cmds[SETPIN_IDX].verb = SETPIN_VERB; in init_command_list()
555 cmds[LIST_IDX].verb = LIST_VERB; in init_command_list()
556 cmds[LIST_IDX].summary = LIST_SUMM; in init_command_list()
557 cmds[LIST_IDX].synopsis = LIST_SYN; in init_command_list()
559 cmds[DELETE_IDX].verb = DELETE_VERB; in init_command_list()
599 cmds[HELP_IDX].verb = HELP_VERB; in init_command_list()
600 cmds[HELP_IDX].summary = HELP_SUMM; in init_command_list()
601 cmds[HELP_IDX].synopsis = HELP_SYN; in init_command_list()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil.c1056 curr_row = &cmds->commands[cmds->current_row]; in process_endrow()
1067 cmds->commands[cmds->current_tbl].tablecmd_tblh, in process_endrow()
1186 cmds->commands[cmds->current_row].rowcmd_nproph++; in parse_and_tokenize_line()
1203 cmds->commands[cmds->current_row].rowcmd_nproph++; in parse_and_tokenize_line()
1283 if (cmds->count == cmds->allocated) { in check_line_syntax()
1284 cmds->commands = realloc(cmds->commands, in check_line_syntax()
1291 cmds->commands[cmds->count] = command; /* copy */ in check_line_syntax()
1297 cmds->current_row = cmds->count; in check_line_syntax()
1532 cmds->commands[cmds->current_row] in process_commands()
1646 cmds = malloc(sizeof (*cmds)); in picld_pluginutil_parse_config_file()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_tar.c84 tlm_commands_t *cmds; in backup_create_structs() local
96 cmds = &nlp->nlp_cmds; in backup_create_structs()
97 (void) memset(cmds, 0, sizeof (*cmds)); in backup_create_structs()
153 tlm_commands_t *cmds; in restore_create_structs() local
164 cmds = &nlp->nlp_cmds; in restore_create_structs()
165 (void) memset(cmds, 0, sizeof (*cmds)); in restore_create_structs()
272 tlm_commands_t *cmds; in backup_release_structs() local
278 cmds = &nlp->nlp_cmds; in backup_release_structs()
279 if (cmds == NULL) { in backup_release_structs()
1208 cmds->tcs_reader = cmds->tcs_writer = TLM_BACKUP_RUN; in ndmpd_tar_backup()
[all …]
H A Dndmpd_tar3.c1458 (void) memset(cmds, 0, sizeof (*cmds)); in backup_alloc_structs_v3()
1535 (void) memset(cmds, 0, sizeof (*cmds)); in restore_alloc_structs_v3()
1593 if (!cmds) { in free_structs_v3()
2259 bp.bp_cmds = cmds; in backup_reader_v3()
2406 cmds->tcs_reader = cmds->tcs_writer = TLM_BACKUP_RUN; in tar_backup_v3()
2932 (void) memset(cmds, 0, sizeof (*cmds)); in restore_dar_alloc_structs_v3()
2971 if (!cmds) { in free_dar_structs_v3()
3182 cmds->tcs_reader = cmds->tcs_writer = TLM_RESTORE_RUN; in ndmpd_dar_tar_v3()
3226 err = (tm_tar_ops.tm_getdir)(cmds, cmds->tcs_command, in ndmpd_dar_tar_v3()
3541 cmds->tcs_reader = cmds->tcs_writer = TLM_RESTORE_RUN; in ndmpd_rs_sar_tar_v3()
[all …]
H A Dndmpd_util.c1314 if (cmds != NULL && cmds->tcs_reader_count > 0) { in ndmp_stop_local_reader()
1361 if (cmds == NULL) { in ndmp_wait_for_reader()
1574 tlm_commands_t *cmds; in ndmp_stop_buffer_worker() local
1580 cmds = &nlp->nlp_cmds; in ndmp_stop_buffer_worker()
1584 cmds->tcs_reader = cmds->tcs_writer = TLM_ABORT; in ndmp_stop_buffer_worker()
1613 tlm_commands_t *cmds; in ndmp_stop_reader_thread() local
1618 cmds = &nlp->nlp_cmds; in ndmp_stop_reader_thread()
1649 tlm_commands_t *cmds; in ndmp_stop_writer_thread() local
1654 cmds = &nlp->nlp_cmds; in ndmp_stop_writer_thread()
1689 tlm_commands_t *cmds; in ndmp_free_reader_writer_ipc() local
[all …]
H A Dndmpd_mover.c2523 cmds = &nlp->nlp_cmds; in mover_tape_reader()
2672 cmds = &nlp->nlp_cmds; in mover_socket_writer()
2751 tlm_commands_t *cmds; in start_mover_for_restore() local
2760 cmds = &nlp->nlp_cmds; in start_mover_for_restore()
2761 (void) memset(cmds, 0, sizeof (*cmds)); in start_mover_for_restore()
2762 cmds->tcs_reader = cmds->tcs_writer = TLM_RESTORE_RUN; in start_mover_for_restore()
2896 cmds = &nlp->nlp_cmds; in mover_socket_reader()
3028 tlm_commands_t *cmds; in mover_tape_writer() local
3125 tlm_commands_t *cmds; in start_mover_for_backup() local
3134 (void) memset(cmds, 0, sizeof (*cmds)); in start_mover_for_backup()
[all …]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dprinter.c90 char *cmds[32]; in ieee1284_devid_to_printer_info() local
93 memset(&cmds, 0, sizeof (cmds)); in ieee1284_devid_to_printer_info()
96 ((v != NULL) && (i < NELEM(cmds))); in ieee1284_devid_to_printer_info()
98 cmds[i++] = strdup(strip_ws(v)); in ieee1284_devid_to_printer_info()
102 for (i = 0; (cmds)[i] != NULL; i++) in ieee1284_devid_to_printer_info()
103 (*command_set)[i] = cmds[i]; in ieee1284_devid_to_printer_info()
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dkmfcfg.c61 static verbcmd cmds[] = { variable
154 static int num_cmds = sizeof (cmds) / sizeof (verbcmd);
171 (void) fprintf(stdout, "\t%s\n", cmds[i].synopsis); in usage()
216 if (strcmp(cmds[i].verb, argv[0]) == 0) { in main()
233 ret = (*cmds[found].action)(argc, argv); in main()
267 "error 0x%02x\n"), cmds[found].verb, ret); in main()
/illumos-gate/usr/src/lib/krb5/ss/
H A Dutils.c33 char * generate_cmds_string(cmds) in generate_cmds_string() argument
34 char const *cmds; in generate_cmds_string()
40 fputs(cmds, output_file);
53 char * generate_rqte(func_name, info_string, cmds, options) in generate_rqte() argument
56 char const *cmds;
61 var_name = generate_cmds_string(cmds);
/illumos-gate/usr/src/test/zfs-tests/cmd/chg_usr_exec/
H A Dchg_usr_exec.c40 char cmds[BUFSIZ] = { 0 }; in main() local
53 (void) snprintf(cmds+len, sizeof (cmds)-len, in main()
71 if (execl(EXECSHELL, "sh", "-c", cmds, (char *)NULL) != 0) { in main()
/illumos-gate/usr/src/uts/i86pc/io/fipe/
H A Dfipe_pm.c779 bzero(cmds, sizeof (cmds)); in fipe_ioat_alloc()
791 cmds[idx] = cmds[idx + 1]; in fipe_ioat_alloc()
829 cmds[idx]->dp.copy.cc_size = 1; in fipe_ioat_alloc()
852 if (cmds[0] != NULL) { in fipe_ioat_alloc()
853 dcopy_cmd_free(&cmds[0]); in fipe_ioat_alloc()
857 if (cmds[idx] != NULL) { in fipe_ioat_alloc()
858 dcopy_cmd_free(&cmds[idx]); in fipe_ioat_alloc()
911 if (cmds[0] != NULL) { in fipe_ioat_free()
912 dcopy_cmd_free(&cmds[0]); in fipe_ioat_free()
915 if (cmds[idx] != NULL) { in fipe_ioat_free()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddocmd.c57 struct subcmd *cmds);
60 struct subcmd *cmds);
104 extern struct cmd *cmds; in docmds()
119 if (!cmds) in docmds()
123 prcmd(cmds); in docmds()
126 for (c = cmds; c != NULL; c = c->c_next) { in docmds()
182 subcmds = cmds; in doarrow()
207 for (sc = cmds; sc != NULL; sc = sc->sc_next) { in doarrow()
224 for (sc = cmds; sc != NULL; sc = sc->sc_next) in doarrow()
522 subcmds = cmds; in dodcolon()
[all …]
H A Dgram.y21 struct cmd *cmds = NULL; variable
371 if (cmds)
372 prcmd(cmds);
380 for (prev = NULL, c = cmds; c!=NULL; prev = c, c = c->c_next) {
403 cmds = nc;
434 if (cmds == NULL)
435 cmds = last_cmd = c;
H A Dmain.c426 struct subcmd *cmds; local
454 cmds = NULL;
456 cmds = makesubcmd(INSTALL);
457 cmds->sc_options = options;
458 cmds->sc_name = dest;
467 insert(NULL, files, hosts, cmds);
/illumos-gate/usr/src/cmd/svr4pkg/pkgadm/
H A Dmain.c60 struct cmd cmds[] = { variable
118 for (cur_cmd = 0; cmds[cur_cmd].c_name != NULL; cur_cmd++) { in main()
119 if (ci_streq(argv[optind], cmds[cur_cmd].c_name)) { in main()
124 return (cmds[cur_cmd].c_func(newargc, newargv)); in main()
/illumos-gate/usr/src/cmd/devctl/
H A Ddevctl.c99 typedef struct cmds { struct
113 static struct cmds *dc_cmd(); argument
139 static struct cmds device_cmds[] = {
158 static struct cmds bus_cmds[] = {
186 struct cmds *dcmd; in main()
525 static struct cmds *
526 dc_cmd(struct cmds *cmd_tbl, char *devctl_cmdname) in dc_cmd()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dobject.c355 const struct rep_protocol_transaction_cmd *cmds; in tx_check_and_setup() local
368 cmds = (struct rep_protocol_transaction_cmd *)loc; in tx_check_and_setup()
369 cur->tx_cmd = cmds; in tx_check_and_setup()
371 sz = cmds->rptc_size; in tx_check_and_setup()
376 len = cmds->rptc_name_len; in tx_check_and_setup()
457 const struct rep_protocol_transaction_cmd *cmds; in tx_commit_data_new() local
472 cmds = (struct rep_protocol_transaction_cmd *)loc; in tx_commit_data_new()
477 sz = cmds->rptc_size; in tx_commit_data_new()
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Druntests.c79 static short cmds[8] = { variable
618 for (i = 0; i < sizeof (cmds) / sizeof (short); i++) { in flock_runtests()
619 flock_test_invalid(&flock_fileA, cmds[i], 200, 0, 0, 0); in flock_runtests()
620 flock_test_invalid(&flock_fileA, cmds[i], -1, 0, 0, 0); in flock_runtests()
622 for (i = 3; i < sizeof (cmds) / sizeof (short); i++) { in flock_runtests()
623 flock_test_invalid(&flock_fileA, cmds[i], F_WRLCK, 1, 0, 0); in flock_runtests()
624 flock_test_invalid(&flock_fileA, cmds[i], F_WRLCK, 0, 1, 0); in flock_runtests()
625 flock_test_invalid(&flock_fileA, cmds[i], F_WRLCK, 0, 0, 1); in flock_runtests()
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfmadm.c102 } cmds[] = { variable
131 for (cp = cmds; cp->cmd_name != NULL; cp++) { in usage()
200 for (cp = cmds; cp->cmd_name != NULL; cp++) { in main()
/illumos-gate/usr/src/cmd/bhyve/
H A Daudio.c76 cap_ioctl_t cmds[] = { in audio_init() local
113 if (caph_ioctls_limit(aud->fd, cmds, nitems(cmds)) == -1) in audio_init()
H A Duart_emul.c894 cap_ioctl_t cmds[] = { TIOCGETA, TIOCSETA, TIOCGWINSZ }; in uart_stdio_backend() local
913 if (caph_ioctls_limit(sc->tty.rfd, cmds, nitems(cmds)) == -1) in uart_stdio_backend()
927 cap_ioctl_t cmds[] = { TIOCGETA, TIOCSETA, TIOCGWINSZ }; in uart_tty_backend() local
947 if (caph_ioctls_limit(fd, cmds, nitems(cmds)) == -1) in uart_tty_backend()
/illumos-gate/usr/src/uts/i86pc/io/
H A Dhrtimers.c76 int cmds; member
150 if (uap->cmds <= 0)
159 for (cnt = 0; cnt < uap->cmds; cnt++, hrcmdp++) {
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c51 static cmd_t cmds[] = { variable
161 for (i = 0; i < sizeof (cmds) / sizeof (cmd_t); i++) { in main()
162 cp = &cmds[i]; in main()
675 for (i = 0; i < sizeof (cmds) / sizeof (cmd_t); i++) { in usage()
676 cp = &cmds[i]; in usage()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/lmrc/
H A Dlmrc_ddi.c937 lmrc_mpt_cmd_t **cmds; in lmrc_alloc_mpt_cmds() local
951 cmds = kmem_zalloc(ncmd * sizeof (lmrc_mpt_cmd_t *), KM_SLEEP); in lmrc_alloc_mpt_cmds()
1003 cmds[i] = cmd; in lmrc_alloc_mpt_cmds()
1007 lmrc->l_mpt_cmds = cmds; in lmrc_alloc_mpt_cmds()
1047 lmrc_mfi_cmd_t **cmds; in lmrc_alloc_mfi_cmds() local
1051 cmds = kmem_zalloc(ncmd * sizeof (lmrc_mfi_cmd_t *), KM_SLEEP); in lmrc_alloc_mfi_cmds()
1072 cmds[i] = mfi; in lmrc_alloc_mfi_cmds()
1076 lmrc->l_mfi_cmds = cmds; in lmrc_alloc_mfi_cmds()
/illumos-gate/usr/src/cmd/mdb/common/modules/smartpqi/
H A Dsmartpqi.c324 pqi_cmd_list_head(list_t cmds, uint8_t *addr, in pqi_cmd_list_head() argument
329 pqi_list_head(cmds, (uint8_t *)addr, in pqi_cmd_list_head()
334 (uintptr_t)cmds.list_head.list_next); in pqi_cmd_list_head()
337 "command list (0x%p)\n", cmds.list_head.list_next); in pqi_cmd_list_head()

123