| /dflybsd-src/usr.sbin/installer/dfuibe_installer/ |
| H A D | fn_install.c | 83 handle_altfs(struct i_fn_args *a, struct commands *cmds) in handle_altfs() argument 99 command_add(cmds, "%s%s -p %smnt%s", in handle_altfs() 102 command_add(cmds, "%s%s -p %smnt%s", in handle_altfs() 105 command_add(cmds, "%s%s %smnt%s %smnt%s", in handle_altfs() 116 command_add(cmds, "%s%s -p %smnt/tmp", in handle_altfs() 118 command_add(cmds, "%s%s 1777 %smnt/tmp", in handle_altfs() 120 command_add(cmds, "%s%s dummy %smnt/tmp", in handle_altfs() 126 unmount_altfs(struct i_fn_args *a __unused, struct commands *cmds __unused) in unmount_altfs() 144 command_add(cmds, "%s%s %smnt%s", in unmount_altfs() 154 command_add(cmds, "%s%s -p %smnt%s", in unmount_altfs() [all …]
|
| H A D | fn_disk.c | 189 struct commands *cmds; in fn_format_disk_mbr() local 207 cmds = commands_new(); in fn_format_disk_mbr() 209 command_add(cmds, in fn_format_disk_mbr() 213 command_add(cmds, "%s%s -BI %s", in fn_format_disk_mbr() 217 if (!commands_execute(a, cmds)) { in fn_format_disk_mbr() 226 commands_free(cmds); in fn_format_disk_mbr() 230 commands_free(cmds); in fn_format_disk_mbr() 278 struct commands *cmds; in fn_format_disk_uefi() local 296 cmds = commands_new(); in fn_format_disk_uefi() 298 command_add(cmds, in fn_format_disk_uefi() [all …]
|
| H A D | fn_configure.c | 97 struct commands *cmds; in fn_add_user() local 199 cmds = commands_new(); in fn_add_user() 201 command_add(cmds, "%s%s %smnt/ /%s useradd " in fn_add_user() 215 cmd = command_add(cmds, "%s%s \"$%s\" | " in fn_add_user() 224 if (commands_execute(a, cmds)) { in fn_add_user() 233 commands_free(cmds); in fn_add_user() 248 struct commands *cmds; in fn_root_passwd() local 306 cmds = commands_new(); in fn_root_passwd() 307 cmd = command_add(cmds, "%s%s \"$%s\" | " in fn_root_passwd() 314 if (commands_execute(a, cmds)) { in fn_root_passwd() [all …]
|
| H A D | fn_subpart_hammer.c | 99 struct commands *cmds; in create_subpartitions() local 116 cmds = commands_new(); in create_subpartitions() 125 command_add(cmds, "%s%s -r %s >%sinstall.disklabel.%s", in create_subpartitions() 142 command_add(cmds, in create_subpartitions() 157 command_add(cmds, "%s%s '%d partitions:' >>%sinstall.disklabel", in create_subpartitions() 159 command_add(cmds, "%s%s '%s' >>%sinstall.disklabel", in create_subpartitions() 167 command_add(cmds, "%s%s 'mountpoint: %s device: %s'", in create_subpartitions() 183 command_add(cmds, in create_subpartitions() 191 command_add(cmds, in create_subpartitions() 199 command_add(cmds, in create_subpartitions() [all …]
|
| H A D | fn_subpart_ufs.c | 97 struct commands *cmds; in create_subpartitions() local 101 cmds = commands_new(); in create_subpartitions() 110 command_add(cmds, "%s%s -r %s >%sinstall.disklabel.%s", in create_subpartitions() 127 …command_add(cmds, "%s%s '$2==\"partitions:\" || cut { cut = 1 } !cut { print $0 }' <%sinstall.disk… in create_subpartitions() 139 command_add(cmds, "%s%s '%d partitions:' >>%sinstall.disklabel", in create_subpartitions() 141 command_add(cmds, "%s%s '%s' >>%sinstall.disklabel", in create_subpartitions() 149 command_add(cmds, "%s%s 'mountpoint: %s device: %s'", in create_subpartitions() 165 command_add(cmds, "%s%s ' %c:\t%s\t*\tswap' >>%sinstall.disklabel", in create_subpartitions() 171 command_add(cmds, "%s%s ' %c:\t%s\t%s\t4.2BSD' >>%sinstall.disklabel", in create_subpartitions() 184 command_add(cmds, "%s%s -R -B -r %s %sinstall.disklabel", in create_subpartitions() [all …]
|
| H A D | flow.c | 366 struct commands *cmds; in state_configure_menu() local 528 cmds = commands_new(); in state_configure_menu() 529 unmount_all_under(a, cmds, "%smnt", a->os_root); in state_configure_menu() 530 commands_execute(a, cmds); in state_configure_menu() 531 commands_free(cmds); in state_configure_menu() 1184 struct commands *cmds; in state_create_subpartitions() local 1196 cmds = commands_new(); in state_create_subpartitions() 1203 command_add(cmds, "%s%s -W %s", in state_create_subpartitions() 1206 command_add(cmds, "%s%s if=/dev/zero of=/dev/%s bs=32k count=16", in state_create_subpartitions() 1209 command_add(cmds, "%s%s -B -r -w %s", in state_create_subpartitions() [all …]
|
| /dflybsd-src/usr.sbin/installer/libinstaller/ |
| H A D | commands.c | 71 struct commands *cmds; in commands_new() local 73 AURA_MALLOC(cmds, commands); in commands_new() 75 cmds->head = NULL; in commands_new() 76 cmds->tail = NULL; in commands_new() 78 return(cmds); in commands_new() 85 command_new(struct commands *cmds) in command_new() argument 100 if (cmds->head == NULL) in command_new() 101 cmds->head = cmd; in command_new() 103 cmds->tail->next = cmd; in command_new() 105 cmd->prev = cmds->tail; in command_new() [all …]
|
| H A D | survey.c | 150 struct commands *cmds; in survey_storage() local 202 cmds = commands_new(); in survey_storage() 203 cmd = command_add(cmds, "%s%s -n '' >%ssurvey.txt", in survey_storage() 224 cmd = command_add(cmds, "%s%s '@DISK' >>%ssurvey.txt", in survey_storage() 227 cmd = command_add(cmds, "%s%s '%s' >>%ssurvey.txt", in survey_storage() 234 cmd = command_add(cmds, "%s%s '@DESC' >>%ssurvey.txt", in survey_storage() 237 cmd = command_add(cmds, "%s%s '%s: %luMB' >>%ssurvey.txt", in survey_storage() 243 cmd = command_add(cmds, "%s%s '@END' >>%ssurvey.txt", in survey_storage() 250 cmd = command_add(cmds, "%s%s '@SERNO' >>%ssurvey.txt", in survey_storage() 253 …cmd = command_add(cmds, "if %s%s -d /dev/serno; then %s%s -l /dev/serno | %s%s \"`%s%s -l /dev/%s … in survey_storage() [all …]
|
| H A D | confed.c | 176 struct commands *cmds; in config_vars_read() local 205 cmds = commands_new(); in config_vars_read() 206 command_add(cmds, "%sbin/sh %sextract_vars >%sextracted_vars.txt", in config_vars_read() 209 if (!commands_execute(a, cmds)) { in config_vars_read() 210 commands_free(cmds); in config_vars_read() 213 commands_free(cmds); in config_vars_read()
|
| H A D | mount.c | 70 unmount_all_under(struct i_fn_args *a, struct commands *cmds, const char *fmt, ...) in unmount_all_under() argument 92 command_add(cmds, "%s%s %s", in unmount_all_under()
|
| /dflybsd-src/usr.bin/objformat/ |
| H A D | objformat.c | 102 struct command *cmds; in main() local 127 for (cmds = commands; cmds < &commands[NELEM(commands) - 1]; ++cmds) { in main() 128 if (strcmp(cmd, cmds->cmd) == 0) in main() 132 if (cmds) { in main() 133 switch (cmds->type) { in main() 173 if (cmds->type == OBJFORMAT) { in main() 222 if (cmds && cmds->type == COMPILER && in main()
|
| /dflybsd-src/contrib/nvi2/ex/ |
| H A D | ex_usage.c | 69 for (cp = cmds; cp->name != NULL && in ex_usage() 85 if (cp != &cmds[C_VISUAL_EX] && in ex_usage() 86 cp != &cmds[C_VISUAL_VI]) in ex_usage() 88 if (cp == &cmds[C_VISUAL_EX]) in ex_usage() 89 cp = &cmds[C_VISUAL_VI]; in ex_usage() 91 cp = &cmds[C_VISUAL_EX]; in ex_usage() 97 for (cp = cmds; cp->name != NULL && !INTERRUPTED(sp); ++cp) { in ex_usage() 106 if (cp == &cmds[C_SCROLL]) in ex_usage()
|
| H A D | ex.c | 414 n = cmds[C_DELETE].name; *s == *n; ++s, ++n); in ex_cmd() 420 ecp->rcmd = cmds[C_DELETE]; in ex_cmd() 456 ecp->cmd = &cmds[C_K]; in ex_cmd() 468 ecp->rcmd = cmds[C_SUBSTITUTE]; in ex_cmd() 487 skip_srch: if (ecp->cmd == &cmds[C_VISUAL_EX] && F_ISSET(sp, SC_VI)) in ex_cmd() 488 ecp->cmd = &cmds[C_VISUAL_VI]; in ex_cmd() 499 (ecp->cmd == &cmds[C_PRINT] || in ex_cmd() 500 ecp->cmd == &cmds[C_PRESERVE])) in ex_cmd() 518 if ((ecp->cmd == &cmds[C_SHIFTL] && *p == '<') || in ex_cmd() 519 (ecp->cmd == &cmds[C_SHIFTR] && *p == '>')) { in ex_cmd() [all …]
|
| H A D | ex_edit.c | 83 if (F_ISSET(cmdp, E_NEWSCREEN) || cmdp->cmd == &cmds[C_VSPLIT]) in ex_edit() 116 if ((cmdp->cmd == &cmds[C_VSPLIT] && vs_vsplit(sp, new)) || in ex_N_edit() 117 (cmdp->cmd != &cmds[C_VSPLIT] && vs_split(sp, new, 0))) { in ex_N_edit()
|
| /dflybsd-src/usr.bin/usbhidaction/ |
| H A D | usbhidaction.c | 243 struct command *cmds = in main() local 245 if (cmds) { in main() 247 commands = cmds; in main() 284 struct command *cmd, *cmds; in parse_conf() local 293 cmds = NULL; in parse_conf() 312 freecommands(cmds); in parse_conf() 329 cmd->next = cmds; in parse_conf() 330 cmds = cmd; in parse_conf() 343 freecommands(cmds); in parse_conf() 359 freecommands(cmds); in parse_conf() [all …]
|
| /dflybsd-src/contrib/gdb-7/gdb/cli/ |
| H A D | cli-setshow.c | 427 struct cmd_list_element **cmds; in do_set_command() local 446 cmds = xmalloc (sizeof (struct cmd_list_element *) * i); in do_set_command() 451 cmds[i] = p; in do_set_command() 458 if (cmds[i]->prefixlist != &setlist) in do_set_command() 460 xfree (cmds); in do_set_command() 469 memcpy (cp, cmds[i]->name, strlen (cmds[i]->name)); in do_set_command() 470 cp += strlen (cmds[i]->name); in do_set_command() 480 xfree (cmds); in do_set_command()
|
| H A D | cli-script.c | 1363 copy_command_lines (struct command_line *cmds) in copy_command_lines() argument 1367 if (cmds) in copy_command_lines() 1371 result->next = copy_command_lines (cmds->next); in copy_command_lines() 1372 result->line = xstrdup (cmds->line); in copy_command_lines() 1373 result->control_type = cmds->control_type; in copy_command_lines() 1374 result->body_count = cmds->body_count; in copy_command_lines() 1375 if (cmds->body_count > 0) in copy_command_lines() 1380 xmalloc (sizeof (struct command_line *) * cmds->body_count); in copy_command_lines() 1382 for (i = 0; i < cmds->body_count; i++) in copy_command_lines() 1383 result->body_list[i] = copy_command_lines (cmds->body_list[i]); in copy_command_lines() [all …]
|
| /dflybsd-src/sys/dev/netif/iwm/ |
| H A D | if_iwm_notif_wait.c | 138 if (cmd == wait_entry->cmds[i]) { in iwm_notification_wait_notify() 170 struct iwm_notification_wait *wait_entry, const uint16_t *cmds, int n_cmds, in iwm_init_notification_wait() argument 179 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(uint16_t)); in iwm_init_notification_wait()
|
| H A D | if_iwm_notif_wait.h | 110 uint16_t cmds[IWM_MAX_NOTIF_CMDS]; member 128 const uint16_t *cmds, int n_cmds,
|
| /dflybsd-src/contrib/libedit/src/ |
| H A D | parse.c | 66 } cmds[] = { variable 128 for (i = 0; cmds[i].name != NULL; i++) in el_wparse() 129 if (wcscmp(cmds[i].name, ptr) == 0) { in el_wparse() 130 i = (*cmds[i].func) (el, argc, argv); in el_wparse()
|
| /dflybsd-src/contrib/lvm2/dist/test/ |
| H A D | mkdtemp | 46 cmds='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n' 47 data=$( (eval "$cmds") 2>&1 | gzip ) 55 data=$( (echo "$data"; eval "$cmds") 2>&1 | gzip )
|
| /dflybsd-src/contrib/bmake/ |
| H A D | for.c | 333 AddEscaped(Buffer *cmds, Substring item, char endc) in AddEscaped() argument 339 Buf_AddBytesBetween(cmds, item.start, item.end); in AddEscaped() 352 Buf_AddBytes(cmds, p, 1 + len); in AddEscaped() 356 Buf_AddByte(cmds, '\\'); in AddEscaped() 358 Buf_AddByte(cmds, '\\'); in AddEscaped() 363 Buf_AddByte(cmds, ch); in AddEscaped()
|
| /dflybsd-src/usr.sbin/ngctl/ |
| H A D | main.c | 61 static const struct ngcmd *const cmds[] = { variable 313 for (k = 0; cmds[k] != NULL; k++) { in FindCommand() 314 if (MatchCommand(cmds[k], string)) { in FindCommand() 326 return(cmds[found]); in FindCommand() 396 for (k = 0; cmds[k] != NULL; k++) { in HelpCmd() 399 cmd = cmds[k]; in HelpCmd()
|
| /dflybsd-src/sys/dev/drm/i915/ |
| H A D | intel_guc_ct.c | 165 ctch->ctbs[i].cmds = blob + PAGE_SIZE/4 * i + PAGE_SIZE/2; in ctch_init() 276 u32 *cmds = ctb->cmds; in ctb_write() local 306 cmds[tail] = header; in ctb_write() 309 cmds[tail] = fence; in ctb_write() 313 cmds[tail] = action[i]; in ctb_write()
|
| /dflybsd-src/sys/vfs/ufs/ |
| H A D | ufs_vfsops.c | 74 ufs_quotactl(struct mount *mp, int cmds, uid_t uid, caddr_t arg, in ufs_quotactl() argument 82 type = cmds & SUBCMDMASK; in ufs_quotactl() 83 cmd = cmds >> SUBCMDSHIFT; in ufs_quotactl()
|