/dragonfly/usr.sbin/pflogd/ |
H A D | privsep.c | 68 int i, fd, socks[2], cmd; in priv_init() local 124 switch (cmd) { in priv_init() 235 int cmd, ret; in priv_set_snaplen() local 240 cmd = PRIV_SET_SNAPLEN; in priv_set_snaplen() 242 must_write(priv_fd, &cmd, sizeof(int)); in priv_set_snaplen() 258 int cmd, fd; in priv_open_log() local 263 cmd = PRIV_OPEN_LOG; in priv_open_log() 264 must_write(priv_fd, &cmd, sizeof(int)); in priv_open_log() 273 int cmd, ret; in priv_move_log() local 278 cmd = PRIV_MOVE_LOG; in priv_move_log() [all …]
|
/dragonfly/contrib/gdb-7/gdb/mi/ |
H A D | mi-parse.c | 232 mi_parse (const char *cmd, char **token) in mi_parse() argument 247 cmd = skip_spaces_const (cmd); in mi_parse() 250 for (chp = cmd; *chp >= '0' && *chp <= '9'; chp++) in mi_parse() 252 *token = xmalloc (chp - cmd + 1); in mi_parse() 253 memcpy (*token, cmd, (chp - cmd)); in mi_parse() 254 (*token)[chp - cmd] = '\0'; in mi_parse() 280 parse->cmd = mi_lookup (parse->command); in mi_parse() 281 if (parse->cmd == NULL) in mi_parse() 357 if (parse->cmd->argv_func != NULL) in mi_parse() 367 if (parse->cmd->cli.cmd != NULL) in mi_parse()
|
/dragonfly/crypto/libressl/crypto/engine/ |
H A D | eng_ctrl.c | 117 if (cmd == ENGINE_CTRL_GET_FIRST_CMD_TYPE) { in int_ctrl_helper() 124 if ((cmd == ENGINE_CTRL_GET_CMD_FROM_NAME) || in int_ctrl_helper() 125 (cmd == ENGINE_CTRL_GET_NAME_FROM_CMD) || in int_ctrl_helper() 126 (cmd == ENGINE_CTRL_GET_DESC_FROM_CMD)) { in int_ctrl_helper() 133 if (cmd == ENGINE_CTRL_GET_CMD_FROM_NAME) { in int_ctrl_helper() 149 switch (cmd) { in int_ctrl_helper() 211 switch (cmd) { in ENGINE_ctrl() 223 return int_ctrl_helper(e, cmd, i, p, f); in ENGINE_ctrl() 239 return e->ctrl(e, cmd, i, p, f); in ENGINE_ctrl() 243 ENGINE_cmd_is_executable(ENGINE *e, int cmd) in ENGINE_cmd_is_executable() argument [all …]
|
/dragonfly/sys/dev/raid/twa/ |
H A D | tw_cl_io.c | 75 struct tw_cl_command_9k *cmd; in tw_cl_start_io() local 122 cmd->status = 0; in tw_cl_start_io() 131 cmd->lun_h4__sgl_entries = in tw_cl_start_io() 135 cmd->lun_h4__sgl_entries = in tw_cl_start_io() 387 switch (cmd) { in tw_cl_ioctl() 753 cmd->param.sgl_off__opcode = in tw_cli_get_param() 764 cmd->param.size = 2 + 3; in tw_cli_get_param() 770 cmd->param.size = 2 + 2; in tw_cli_get_param() 870 cmd->param.sgl_off__opcode = in tw_cli_set_param() 881 cmd->param.size = 2 + 3; in tw_cli_set_param() [all …]
|
/dragonfly/sys/dev/drm/i915/ |
H A D | i915_cmd_parser.c | 123 } cmd; member 728 u32 curr = desc->cmd.value & desc->cmd.mask; in validate_cmds_sorted() 977 if (((cmd_header ^ desc->cmd.value) & desc->cmd.mask) == 0) in find_cmd_in_table() 1000 if (((cmd_header ^ desc->cmd.value) & desc->cmd.mask) == 0) in find_cmd() 1149 *cmd); in check_cmd() 1226 *cmd, in check_cmd() 1262 u32 *cmd, *batch_end; in intel_engine_cmd_parser() local 1271 if (IS_ERR(cmd)) { in intel_engine_cmd_parser() 1297 *cmd); in intel_engine_cmd_parser() 1319 *cmd, in intel_engine_cmd_parser() [all …]
|
/dragonfly/contrib/bmake/ |
H A D | metachar.h | 45 needshell(const char *cmd) in needshell() argument 47 while (!ch_is_shell_meta(*cmd) && *cmd != ':' && *cmd != '=') in needshell() 48 cmd++; in needshell() 49 return *cmd != '\0'; in needshell()
|
/dragonfly/contrib/lvm2/dist/lib/format1/ |
H A D | format1.c | 130 vg->cmd = fid->fmt->cmd; in _build_vg() 153 if (!import_extents(fid->fmt->cmd, vg, pvs)) in _build_vg() 179 vg_name = strip_dir(vg_name, fid->fmt->cmd->dev_dir); in _format1_vg_read() 210 if (!export_pv(fid->fmt->cmd, mem, vg, &dl->pvd, pv) || in _flatten_pv() 258 fid->fmt->cmd->filter) && in _format1_vg_write() 280 if (!(dev = dev_cache_get(pv_name, fmt->cmd->filter))) in _format1_pv_read() 311 display_size(fmt->cmd, (uint64_t) MAX_PV_SIZE)); in _format1_pv_setup() 349 display_size(fid->fmt->cmd, max_size)); in _format1_lv_setup() 389 if (!export_pv(fmt->cmd, mem, NULL, &dl->pvd, pv)) in _format1_pv_write() 472 dm_pool_free(fmt->cmd->mem, fid); in _format1_create_instance() [all …]
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_add_filter_program.c | 57 return (archive_write_add_filter_program(a, cmd)); in archive_write_set_compression_program() 77 char *cmd; member 105 data->cmd = strdup(cmd); in archive_write_add_filter_program() 106 if (data->cmd == NULL) in archive_write_add_filter_program() 109 data->pdata = __archive_write_program_allocate(cmd); in archive_write_add_filter_program() 115 strlen(prefix) + strlen(cmd) + 1) == NULL) in archive_write_add_filter_program() 118 archive_strcat(&data->description, cmd); in archive_write_add_filter_program() 165 free(data->cmd); in archive_compressor_program_free() 208 struct archive_write_program_data *data, const char *cmd) in __archive_write_program_open() argument 224 ret = __archive_create_child(cmd, &data->child_stdin, in __archive_write_program_open() [all …]
|
/dragonfly/contrib/openresolv/ |
H A D | resolvconf.in | 441 cmd="$1" 560 if [ "$cmd" = i ] || [ "$cmd" = "-i" ]; then 567 [ "$cmd" = i ] || [ "$cmd" = "-i" ] && echo 750 if [ "$cmd" = I ]; then 758 if [ "$cmd" = D ]; then 764 if [ "$cmd" = l ] || [ "$cmd" = i ]; then 772 if [ "$cmd" = r ] || [ "$cmd" = R ]; then 791 case "$cmd" in 799 if [ -n "$cmd" ] && [ "$cmd" != h ]; then 806 if [ "$cmd" = a ]; then [all …]
|
/dragonfly/contrib/gdb-7/gdb/cli/ |
H A D | cli-script.c | 87 struct command_line *cmd; in build_command_line() local 94 cmd->next = NULL; in build_command_line() 95 cmd->control_type = type; in build_command_line() 97 cmd->body_count = 1; in build_command_line() 98 cmd->body_list in build_command_line() 100 * cmd->body_count); in build_command_line() 101 memset (cmd->body_list, 0, sizeof (struct command_line *) * cmd->body_count); in build_command_line() 104 return cmd; in build_command_line() 113 struct command_line *cmd; in get_command_line() local 131 return cmd; in get_command_line() [all …]
|
/dragonfly/bin/ed/ |
H A D | glbl.c | 83 char *cmd = NULL; in exec_global() local 88 cmd = "p\n"; /* null cmd-list == `p' */ in exec_global() 89 else if ((cmd = get_extended_line(&n, 0)) == NULL) in exec_global() 92 if (!interact && (cmd = get_extended_line(&n, 0)) == NULL) in exec_global() 114 if (cmd == NULL) { in exec_global() 117 } else cmd = ocmd; in exec_global() 118 } else if ((cmd = get_extended_line(&n, 0)) == NULL) in exec_global() 122 memcpy(ocmd, cmd, n + 1); in exec_global() 123 cmd = ocmd; in exec_global() 127 ibufp = cmd; in exec_global()
|
/dragonfly/contrib/lvm2/dist/tools/ |
H A D | polldaemon.h | 34 struct volume_group *(*get_copy_vg) (struct cmd_context *cmd, 37 struct logical_volume *(*get_copy_lv) (struct cmd_context *cmd, 42 progress_t (*poll_progress)(struct cmd_context *cmd, 46 int (*update_metadata) (struct cmd_context *cmd, 50 int (*finish_copy) (struct cmd_context *cmd, 67 int poll_daemon(struct cmd_context *cmd, const char *name, const char *uuid, 72 progress_t poll_mirror_progress(struct cmd_context *cmd,
|
H A D | lvremove.c | 20 static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, in lvremove_single() argument 31 if (!lv_remove_with_dependencies(cmd, lv, arg_count(cmd, force_ARG))) { in lvremove_single() 39 int lvremove(struct cmd_context *cmd, int argc, char **argv) in lvremove() argument 46 cmd->handles_missing_pvs = 1; in lvremove() 48 return process_each_lv(cmd, argc, argv, READ_FOR_UPDATE, NULL, in lvremove()
|
H A D | vgcfgbackup.c | 52 static int vg_backup_single(struct cmd_context *cmd, const char *vg_name, in vg_backup_single() argument 59 if (arg_count(cmd, file_ARG)) { in vg_backup_single() 60 if (!(filename = _expand_filename(arg_value(cmd, file_ARG), in vg_backup_single() 66 if (!backup_to_file(filename, vg->cmd->cmd_line, vg)) { in vg_backup_single() 79 backup_enable(cmd, 1); /* force a backup */ in vg_backup_single() 90 int vgcfgbackup(struct cmd_context *cmd, int argc, char **argv) in vgcfgbackup() argument 97 ret = process_each_vg(cmd, argc, argv, READ_ALLOW_INCONSISTENT, in vgcfgbackup()
|
H A D | lvscan.c | 20 static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv, in lvscan_single() argument 33 if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv)) in lvscan_single() 36 inkernel = lv_info(cmd, lv, &info, 1, 0) && info.exists; in lvscan_single() 70 cmd->dev_dir, lv->vg->name, lv->name, in lvscan_single() 71 display_size(cmd, lv->size), in lvscan_single() 81 int lvscan(struct cmd_context *cmd, int argc, char **argv) in lvscan() argument 88 return process_each_lv(cmd, argc, argv, 0, NULL, in lvscan()
|
/dragonfly/sys/net/ipfw3_basic/ |
H A D | ip_fw3_sync.c | 211 struct cmd_send_test *cmd; in ip_fw3_sync_edge_socket_handler() local 215 struct cmd_send_state *cmd; in ip_fw3_sync_edge_socket_handler() local 315 struct cmd_send_test cmd; in ip_fw3_ctl_sync_centre_test() local 331 cmd.type = 0; in ip_fw3_ctl_sync_centre_test() 332 cmd.num = *num; in ip_fw3_ctl_sync_centre_test() 333 memcpy(m->m_data, &cmd, len); in ip_fw3_ctl_sync_centre_test() 443 struct cmd_send_state cmd; in ip_fw3_sync_send_state() local 448 cmd.type = 1; in ip_fw3_sync_send_state() 449 cmd.cpu = cpu; in ip_fw3_sync_send_state() 450 cmd.hash = hash; in ip_fw3_sync_send_state() [all …]
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | command.h | 150 extern void set_cmd_cfunc (struct cmd_list_element *cmd, 155 extern void set_cmd_sfunc (struct cmd_list_element *cmd, 165 extern int cmd_cfunc_eq (struct cmd_list_element *cmd, 169 extern void set_cmd_context (struct cmd_list_element *cmd, 171 extern void *get_cmd_context (struct cmd_list_element *cmd); 177 extern void execute_cmd_pre_hook (struct cmd_list_element *cmd); 181 extern enum cmd_types cmd_type (struct cmd_list_element *cmd); 203 struct cmd_list_element **cmd); 234 struct cmd_list_element *cmd, 394 extern int cmd_func_p (struct cmd_list_element *cmd); [all …]
|
/dragonfly/contrib/lvm2/dist/daemons/clvmd/ |
H A D | clvmd.c | 1797 process_local_command(cmd->msg, cmd->msglen, cmd->client, in process_work_item() 1801 process_remote_command(cmd->msg, cmd->msglen, cmd->client->fd, in process_work_item() 1841 cmd = in lvm_thread_fn() 1847 free(cmd->msg); in lvm_thread_fn() 1848 free(cmd); in lvm_thread_fn() 1863 if (!cmd) in add_to_lvmqueue() 1868 if (!cmd->msg) { in add_to_lvmqueue() 1870 free(cmd); in add_to_lvmqueue() 1876 cmd->msg = NULL; in add_to_lvmqueue() 1884 cmd->remote = 1; in add_to_lvmqueue() [all …]
|
/dragonfly/contrib/lvm2/dist/lib/format_pool/ |
H A D | format_pool.c | 107 struct dm_pool *smem = fid->fmt->cmd->mem; in _build_vg_from_pds() 117 vg->cmd = fid->fmt->cmd; in _build_vg_from_pds() 177 vg_name = strip_dir(vg_name, fid->fmt->cmd->dev_dir); in _pool_vg_read() 223 if (!(dev = dev_cache_get(pv_name, fmt->cmd->filter))) in _pool_pv_read() 234 if (!import_pool_pv(fmt, fmt->cmd->mem, NULL, pv, pl)) in _pool_pv_read() 260 if (!(fid = dm_pool_zalloc(fmt->cmd->mem, sizeof(*fid)))) { in _pool_create_instance() 270 if (!(mda = dm_pool_zalloc(fmt->cmd->mem, sizeof(*mda)))) { in _pool_create_instance() 273 dm_pool_free(fmt->cmd->mem, fid); in _pool_create_instance() 307 struct format_type *init_format(struct cmd_context *cmd); in init_pool_format() 308 struct format_type *init_format(struct cmd_context *cmd) [all …]
|
/dragonfly/contrib/lvm2/dist/lib/locking/ |
H A D | external_locking.c | 27 static int (*_lock_fn) (struct cmd_context * cmd, const char *resource, 33 static int _lock_resource(struct cmd_context *cmd, const char *resource, in _lock_resource() argument 37 return _lock_fn(cmd, resource, flags); in _lock_resource() 62 int init_external_locking(struct locking_type *locking, struct cmd_context *cmd) in init_external_locking() argument 76 libname = find_config_tree_str(cmd, "global/locking_library", in init_external_locking() 79 if (!(_locking_lib = load_shared_library(cmd, libname, "locking", 1))) in init_external_locking() 99 return _init_fn(2, cmd->cft, &locking->flags); in init_external_locking()
|
H A D | locking_types.h | 21 typedef int (*lock_resource_fn) (struct cmd_context * cmd, const char *resource, 43 int init_no_locking(struct locking_type *locking, struct cmd_context *cmd); 45 int init_readonly_locking(struct locking_type *locking, struct cmd_context *cmd); 47 int init_file_locking(struct locking_type *locking, struct cmd_context *cmd); 49 int init_external_locking(struct locking_type *locking, struct cmd_context *cmd); 51 int init_cluster_locking(struct locking_type *locking, struct cmd_context *cmd);
|
/dragonfly/crypto/libressl/crypto/evp/ |
H A D | bio_md.c | 75 static long md_ctrl(BIO *h, int cmd, long arg1, void *arg2); 78 static long md_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp); 180 md_ctrl(BIO *b, int cmd, long num, void *ptr) in md_ctrl() argument 190 switch (cmd) { in md_ctrl() 197 ret = BIO_ctrl(b->next_bio, cmd, num, ptr); in md_ctrl() 219 ret = BIO_ctrl(b->next_bio, cmd, num, ptr); in md_ctrl() 237 ret = BIO_ctrl(b->next_bio, cmd, num, ptr); in md_ctrl() 244 md_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) in md_callback_ctrl() argument 250 switch (cmd) { in md_callback_ctrl() 252 ret = BIO_callback_ctrl(b->next_bio, cmd, fp); in md_callback_ctrl()
|
/dragonfly/contrib/tcsh-6/ |
H A D | tc.sched.c | 188 struct wordent cmd, *nextword, *lastword; in sched_run() local 216 cmd.word = STRNULL; in sched_run() 217 lastword = &cmd; in sched_run() 220 nextword = xcalloc(1, sizeof cmd); in sched_run() 226 lastword->next = &cmd; in sched_run() 227 cmd.prev = lastword; in sched_run() 232 cleanup_push(&cmd, lex_cleanup); in sched_run() 234 alias(&cmd); in sched_run() 236 t = syntax(cmd.next, &cmd, 0); in sched_run() 243 cleanup_until(&cmd); in sched_run()
|
/dragonfly/sys/net/ipfw/ |
H A D | ip_fw2.c | 1416 cmd += F_LEN(cmd); /* point to first action */ in ipfw_log() 1418 cmd += F_LEN(cmd); in ipfw_log() 3008 cmd += F_LEN(cmd); in lookup_next_rule() 3098 cmd->addr.s_addr &= cmd->mask.s_addr; in ipfw_match_ifip() 3612 cmd = f->cmd; in ipfw_chk() 4425 cmd = fwa->rule->cmd + fwa->rule->act_ofs; in ipfw_dummynet_io() 4427 cmd += F_LEN(cmd); in ipfw_dummynet_io() 5169 if (cmd == 0 || cmd == 2) { in ipfw_ctl_alter() 5340 for (l = rule->cmd_len, cmd = rule->cmd; l > 0; in ipfw_check_ioc_rule() 5457 if (cmd->arg1 == 0 || cmd->arg1 > 256) { in ipfw_check_ioc_rule() [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | setmode.c | 56 char cmd; member 88 switch(set->cmd) { in getmode() 211 set->cmd = 0; in setmode() 320 set->cmd = 0; in setmode() 338 set->cmd = '-'; in addcmd() 347 set->cmd = op; in addcmd() 354 set->cmd = op; in addcmd() 380 for (; set->cmd; ++set) in dumpmode() 426 set->cmd = '-'; in compress_mode() 432 set->cmd = '+'; in compress_mode() [all …]
|