/external/linux-tools-perf/util/ |
D | run-command.c | 18 int start_command(struct child_process *cmd) in start_command() argument 28 need_in = !cmd->no_stdin && cmd->in < 0; in start_command() 31 if (cmd->out > 0) in start_command() 32 close(cmd->out); in start_command() 35 cmd->in = fdin[1]; in start_command() 38 need_out = !cmd->no_stdout in start_command() 39 && !cmd->stdout_to_stderr in start_command() 40 && cmd->out < 0; in start_command() 45 else if (cmd->in) in start_command() 46 close(cmd->in); in start_command() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_cli.c | 399 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print) in _wpa_ctrl_command() argument 419 arg = os_strchr(cmd, ' '); in _wpa_ctrl_command() 422 ret = os_snprintf(_cmd, sizeof(_cmd), "%s %s %s", cmd, redirect_interface, arg); in _wpa_ctrl_command() 425 ret = os_snprintf(_cmd, sizeof(_cmd), "%s %s", cmd, redirect_interface); in _wpa_ctrl_command() 427 cmd = _cmd; in _wpa_ctrl_command() 433 ret = wpa_ctrl_request(ctrl, cmd, os_strlen(cmd), buf, &len, in _wpa_ctrl_command() 436 printf("'%s' command timed out.\n", cmd); in _wpa_ctrl_command() 439 printf("'%s' command failed.\n", cmd); in _wpa_ctrl_command() 452 static int wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd) in wpa_ctrl_command() argument 454 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() [all …]
|
D | ctrl_iface.c | 118 char *cmd) in wpa_supplicant_ctrl_iface_set() argument 123 value = os_strchr(cmd, ' '); in wpa_supplicant_ctrl_iface_set() 128 wpa_printf(MSG_DEBUG, "CTRL_IFACE SET '%s'='%s'", cmd, value); in wpa_supplicant_ctrl_iface_set() 129 if (os_strcasecmp(cmd, "EAPOL::heldPeriod") == 0) { in wpa_supplicant_ctrl_iface_set() 132 } else if (os_strcasecmp(cmd, "EAPOL::authPeriod") == 0) { in wpa_supplicant_ctrl_iface_set() 135 } else if (os_strcasecmp(cmd, "EAPOL::startPeriod") == 0) { in wpa_supplicant_ctrl_iface_set() 138 } else if (os_strcasecmp(cmd, "EAPOL::maxStart") == 0) { in wpa_supplicant_ctrl_iface_set() 141 } else if (os_strcasecmp(cmd, "dot11RSNAConfigPMKLifetime") == 0) { in wpa_supplicant_ctrl_iface_set() 145 } else if (os_strcasecmp(cmd, "dot11RSNAConfigPMKReauthThreshold") == in wpa_supplicant_ctrl_iface_set() 150 } else if (os_strcasecmp(cmd, "dot11RSNAConfigSATimeout") == 0) { in wpa_supplicant_ctrl_iface_set() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | wpa_cli.c | 201 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print) in _wpa_ctrl_command() argument 212 ret = wpa_ctrl_request(ctrl, cmd, os_strlen(cmd), buf, &len, in _wpa_ctrl_command() 215 printf("'%s' command timed out.\n", cmd); in _wpa_ctrl_command() 218 printf("'%s' command failed.\n", cmd); in _wpa_ctrl_command() 229 static int wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd) in wpa_ctrl_command() argument 231 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 303 char cmd[256]; in wpa_cli_cmd_set() local 317 res = os_snprintf(cmd, sizeof(cmd), "SET %s %s", argv[0], argv[1]); in wpa_cli_cmd_set() 318 if (res < 0 || (size_t) res >= sizeof(cmd) - 1) { in wpa_cli_cmd_set() 322 return wpa_ctrl_command(ctrl, cmd); in wpa_cli_cmd_set() [all …]
|
/external/kernel-headers/original/linux/ |
D | fcntl.h | 41 #define IS_GETLK32(cmd) ((cmd) == F_GETLK) argument 42 #define IS_SETLK32(cmd) ((cmd) == F_SETLK) argument 43 #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW) argument 44 #define IS_GETLK64(cmd) ((cmd) == F_GETLK64) argument 45 #define IS_SETLK64(cmd) ((cmd) == F_SETLK64) argument 46 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64) argument 48 #define IS_GETLK32(cmd) (0) argument 49 #define IS_SETLK32(cmd) (0) argument 50 #define IS_SETLKW32(cmd) (0) argument 51 #define IS_GETLK64(cmd) ((cmd) == F_GETLK) argument [all …]
|
/external/bluetooth/bluez/tools/ |
D | hciattach.c | 209 char cmd[5]; in ericsson() local 211 cmd[0] = HCI_COMMAND_PKT; in ericsson() 212 cmd[1] = 0x09; in ericsson() 213 cmd[2] = 0xfc; in ericsson() 214 cmd[3] = 0x01; in ericsson() 218 cmd[4] = 0x03; in ericsson() 221 cmd[4] = 0x02; in ericsson() 224 cmd[4] = 0x01; in ericsson() 227 cmd[4] = 0x00; in ericsson() 230 cmd[4] = 0x20; in ericsson() [all …]
|
D | hciattach_tialt.c | 102 texas_speed_change_cmd_t cmd; in texas_change_speed() local 105 cmd.uart_prefix = HCI_COMMAND_PKT; in texas_change_speed() 106 cmd.hci_hdr.opcode = 0xff36; in texas_change_speed() 107 cmd.hci_hdr.plen = sizeof(uint32_t); in texas_change_speed() 108 cmd.speed = speed; in texas_change_speed() 111 n = write(fd, &cmd, sizeof(cmd)); in texas_change_speed() 116 if (n < (int)sizeof(cmd)) { in texas_change_speed() 118 "Stop\n", (int)sizeof(cmd), n); in texas_change_speed() 122 if (read_command_complete(fd, cmd.hci_hdr.opcode, cmd.hci_hdr.plen) < 0) { in texas_change_speed() 147 hci_command_hdr *cmd = (hci_command_hdr *)(cmdp + 1); in texas_load_firmware() local [all …]
|
D | hciattach_qualcomm.c | 117 hci_command_hdr *cmd = (hci_command_hdr *) (cmdp + 1); in qualcomm_load_firmware() local 129 FAILIF(read(fw, data, cmd->plen) != cmd->plen, in qualcomm_load_firmware() 132 cmd->plen, cmd->opcode); in qualcomm_load_firmware() 148 iov_cmd[1].iov_len = cmd->plen; in qualcomm_load_firmware() 150 FAILIF(nw != (int) sizeof(cmdp) + cmd->plen, in qualcomm_load_firmware() 157 if (read_command_complete(fd, cmd->opcode, cmd->plen) < 0) in qualcomm_load_firmware() 170 char cmd[5]; in qualcomm_init() local 178 cmd[0] = HCI_COMMAND_PKT; in qualcomm_init() 179 cmd[1] = 0x01; in qualcomm_init() 180 cmd[2] = 0x10; in qualcomm_init() [all …]
|
D | hciattach_ath3k.c | 65 static void load_hci_ps_hdr(uint8_t *cmd, uint8_t ps_op, int len, int index) in load_hci_ps_hdr() argument 67 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() 72 cmd += HCI_COMMAND_HDR_SIZE; in load_hci_ps_hdr() 74 cmd[0] = ps_op; in load_hci_ps_hdr() 75 cmd[1] = index; in load_hci_ps_hdr() 76 cmd[2] = index >> 8; in load_hci_ps_hdr() 77 cmd[3] = len; in load_hci_ps_hdr() 86 static int send_hci_cmd_sync(int dev, uint8_t *cmd, int len, uint8_t **event) in send_hci_cmd_sync() argument 97 if (write(dev, (unsigned char *)cmd, len) != len) in send_hci_cmd_sync() 173 uint8_t cmd[HCI_MAX_CMD_SIZE]; in write_ps_cmd() local [all …]
|
D | csr_hci.c | 91 uint8_t cmd[10]; in do_command() local 96 cmd[0] = command & 0xff; in do_command() 97 cmd[1] = command >> 8; in do_command() 98 cmd[2] = size & 0xff; in do_command() 99 cmd[3] = size >> 8; in do_command() 100 cmd[4] = seqnum & 0xff; in do_command() 101 cmd[5] = seqnum >> 8; in do_command() 102 cmd[6] = varid & 0xff; in do_command() 103 cmd[7] = varid >> 8; in do_command() 104 cmd[8] = 0x00; in do_command() [all …]
|
D | csr_h4.c | 87 uint8_t cmd[10]; in do_command() local 93 cmd[0] = command & 0xff; in do_command() 94 cmd[1] = command >> 8; in do_command() 95 cmd[2] = size & 0xff; in do_command() 96 cmd[3] = size >> 8; in do_command() 97 cmd[4] = seqnum & 0xff; in do_command() 98 cmd[5] = seqnum >> 8; in do_command() 99 cmd[6] = varid & 0xff; in do_command() 100 cmd[7] = varid >> 8; in do_command() 101 cmd[8] = 0x00; in do_command() [all …]
|
/external/valgrind/main/coregrind/ |
D | link_tool_exe_darwin.in | 140 my $cmd = "/usr/bin/ld"; 142 $cmd = "$cmd -static"; 143 $cmd = "$cmd -arch $archstr"; 144 $cmd = "$cmd -macosx_version_min 10.5"; 145 $cmd = "$cmd -o $outname"; 146 $cmd = "$cmd -u __start -e __start"; 152 $cmd = "$cmd -image_base $ala"; 153 $cmd = "$cmd -stack_addr $stack_addr_str"; 154 $cmd = "$cmd -stack_size $stack_size_str"; 159 $cmd = "$cmd $str"; [all …]
|
/external/linux-tools-perf/ |
D | perf.c | 28 const char *cmd; member 37 if (!prefixcmp(var, "pager.") && !strcmp(var + 6, c->cmd)) in pager_command_config() 43 int check_pager_config(const char *cmd) in check_pager_config() argument 46 c.cmd = cmd; in check_pager_config() 55 if (!prefixcmp(var, "tui.") && !strcmp(var + 4, c->cmd)) in tui_command_config() 61 static int check_tui_config(const char *cmd) in check_tui_config() argument 64 c.cmd = cmd; in check_tui_config() 98 const char *cmd = (*argv)[0]; in handle_options() local 99 if (cmd[0] != '-') in handle_options() 107 if (!strcmp(cmd, "--help") || !strcmp(cmd, "--version")) in handle_options() [all …]
|
/external/bluetooth/bluez/test/ |
D | apitest | 124 self.cmd = args[0] 177 for cmd in mgr_cmds: 178 print '\t%s' % cmd 180 for cmd in dev_cmds: 181 print '\t%s' % cmd 206 if self.cmd == 'InterfaceVersion': 210 print 'Sending %s failed: %s' % (self.cmd, e) 211 if self.cmd == 'ListAdapters': 215 print 'Sending %s failed: %s' % (self.cmd, e) 219 elif self.cmd == 'DefaultAdapter': [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | hostapd_cli.c | 164 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print) in _wpa_ctrl_command() argument 175 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, in _wpa_ctrl_command() 178 printf("'%s' command timed out.\n", cmd); in _wpa_ctrl_command() 181 printf("'%s' command failed.\n", cmd); in _wpa_ctrl_command() 192 static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd) in wpa_ctrl_command() argument 194 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 219 char *cmd; in hostapd_cli_exec() local 225 cmd = os_malloc(len); in hostapd_cli_exec() 226 if (cmd == NULL) in hostapd_cli_exec() 228 res = os_snprintf(cmd, len, "%s %s %s", program, arg1, arg2); in hostapd_cli_exec() [all …]
|
/external/quake/quake/src/QW/client/ |
D | cmd.c | 339 char cmd[1024]; in Cmd_Alias_f() local 377 cmd[0] = 0; // start out with a null string in Cmd_Alias_f() 381 strcat (cmd, Cmd_Argv(i)); in Cmd_Alias_f() 383 strcat (cmd, " "); in Cmd_Alias_f() 385 strcat (cmd, "\n"); in Cmd_Alias_f() 387 a->value = CopyString (cmd); in Cmd_Alias_f() 514 cmd_function_t *cmd; in Cmd_AddCommand() local 527 for (cmd=cmd_functions ; cmd ; cmd=cmd->next) in Cmd_AddCommand() 529 if (!Q_strcmp (cmd_name, cmd->name)) in Cmd_AddCommand() 536 cmd = Hunk_Alloc (sizeof(cmd_function_t)); in Cmd_AddCommand() [all …]
|
D | cl_input.c | 286 void CL_BaseMove (usercmd_t *cmd) in CL_BaseMove() argument 290 memset (cmd, 0, sizeof(*cmd)); in CL_BaseMove() 292 VectorCopy (cl.viewangles, cmd->angles); in CL_BaseMove() 295 cmd->sidemove += cl_sidespeed.value * CL_KeyState (&in_right); in CL_BaseMove() 296 cmd->sidemove -= cl_sidespeed.value * CL_KeyState (&in_left); in CL_BaseMove() 299 cmd->sidemove += cl_sidespeed.value * CL_KeyState (&in_moveright); in CL_BaseMove() 300 cmd->sidemove -= cl_sidespeed.value * CL_KeyState (&in_moveleft); in CL_BaseMove() 302 cmd->upmove += cl_upspeed.value * CL_KeyState (&in_up); in CL_BaseMove() 303 cmd->upmove -= cl_upspeed.value * CL_KeyState (&in_down); in CL_BaseMove() 307 cmd->forwardmove += cl_forwardspeed.value * CL_KeyState (&in_forward); in CL_BaseMove() [all …]
|
/external/quake/quake/src/WinQuake/ |
D | cmd.cpp | 344 char cmd[1024]; in Cmd_Alias_f() local 382 cmd[0] = 0; // start out with a null string in Cmd_Alias_f() 386 strcat (cmd, Cmd_Argv(i)); in Cmd_Alias_f() 388 strcat (cmd, " "); in Cmd_Alias_f() 390 strcat (cmd, "\n"); in Cmd_Alias_f() 392 a->value = CopyString (cmd); in Cmd_Alias_f() 534 cmd_function_t *cmd; in Cmd_AddCommand() local 547 for (cmd=cmd_functions ; cmd ; cmd=cmd->next) in Cmd_AddCommand() 549 if (!Q_strcmp (cmd_name, cmd->name)) in Cmd_AddCommand() 556 cmd = (cmd_function_t*) Hunk_Alloc (sizeof(cmd_function_t)); in Cmd_AddCommand() [all …]
|
/external/qemu/telephony/ |
D | android_modem.c | 1009 unknownCommand( const char* cmd, AModem modem ) in unknownCommand() argument 1012 fprintf(stderr, ">>> unknown command '%s'\n", cmd ); in unknownCommand() 1150 handleSubscriptionSource( const char* cmd, AModem modem ) in handleSubscriptionSource() argument 1154 D("handleSubscriptionSource(%s)\n",cmd); in handleSubscriptionSource() 1156 assert( !memcmp( "+CCSS", cmd, 5 ) ); in handleSubscriptionSource() 1157 cmd += 5; in handleSubscriptionSource() 1158 if (cmd[0] == '?') { in handleSubscriptionSource() 1160 } else if (cmd[0] == '=') { in handleSubscriptionSource() 1161 switch (cmd[1]) { in handleSubscriptionSource() 1164 newsource = (ACdmaSubscriptionSource)cmd[1] - '0'; in handleSubscriptionSource() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui/ |
D | networkconfig.ui.h | 100 char reply[10], cmd[256]; in addNetwork() local 207 snprintf(cmd, sizeof(cmd), "ENABLE_NETWORK %d", id); in addNetwork() 209 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork() 230 char reply[10], cmd[256]; in setNetworkParam() local 232 snprintf(cmd, sizeof(cmd), "SET_NETWORK %d %s %s%s%s", in setNetworkParam() 235 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam() 309 char reply[1024], cmd[256], *pos; in paramsFromConfig() local 312 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", network_id); in paramsFromConfig() 314 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 2 && in paramsFromConfig() 323 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d id_str", network_id); in paramsFromConfig() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/cdrom/aix/ |
D | SDL_syscdrom.c | 469 struct cd_audio_cmd cmd; in SDL_SYS_CDGetTOC() local 474 cmd.audio_cmds = CD_TRK_INFO_AUDIO; in SDL_SYS_CDGetTOC() 475 cmd.msf_flag = FALSE; in SDL_SYS_CDGetTOC() 476 if ( SDL_SYS_CDioctl(cdrom->id, DKAUDIO, &cmd) < 0 ) { in SDL_SYS_CDGetTOC() 481 cdrom->numtracks = cmd.indexing.track_index.last_track in SDL_SYS_CDGetTOC() 482 - cmd.indexing.track_index.first_track+1; in SDL_SYS_CDGetTOC() 492 cdrom->track[i].id = cmd.indexing.track_index.first_track+i; in SDL_SYS_CDGetTOC() 521 struct cd_audio_cmd cmd; in SDL_SYS_CDStatus() local 522 cmd.audio_cmds = CD_INFO_AUDIO; in SDL_SYS_CDStatus() 524 if ( SDL_SYS_CDioctl(cdrom->id, DKAUDIO, &cmd) < 0 ) { in SDL_SYS_CDStatus() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
D | networkconfig.cpp | 186 char reply[10], cmd[256]; in addNetwork() local 403 snprintf(cmd, sizeof(cmd), "ENABLE_NETWORK %d", id); in addNetwork() 405 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork() 429 char reply[10], cmd[256]; in setNetworkParam() local 431 snprintf(cmd, sizeof(cmd), "SET_NETWORK %d %s %s%s%s", in setNetworkParam() 434 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam() 508 char reply[1024], cmd[256], *pos; in paramsFromConfig() local 511 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", network_id); in paramsFromConfig() 513 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && in paramsFromConfig() 522 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d proto", network_id); in paramsFromConfig() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui-qt4/ |
D | networkconfig.cpp | 184 char reply[10], cmd[256]; in addNetwork() local 390 snprintf(cmd, sizeof(cmd), "ENABLE_NETWORK %d", id); in addNetwork() 392 wpagui->ctrlRequest(cmd, reply, &reply_len); in addNetwork() 415 char reply[10], cmd[256]; in setNetworkParam() local 417 snprintf(cmd, sizeof(cmd), "SET_NETWORK %d %s %s%s%s", in setNetworkParam() 420 wpagui->ctrlRequest(cmd, reply, &reply_len); in setNetworkParam() 495 char reply[1024], cmd[256], *pos; in paramsFromConfig() local 498 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", network_id); in paramsFromConfig() 500 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && in paramsFromConfig() 509 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d proto", network_id); in paramsFromConfig() [all …]
|
/external/bluetooth/bluez/health/ |
D | mcap_sync.c | 113 mcap_md_sync_cap_rsp *cmd; in send_unsupported_cap_req() local 116 cmd = g_new0(mcap_md_sync_cap_rsp, 1); in send_unsupported_cap_req() 117 cmd->op = MCAP_MD_SYNC_CAP_RSP; in send_unsupported_cap_req() 118 cmd->rc = MCAP_REQUEST_NOT_SUPPORTED; in send_unsupported_cap_req() 120 sent = send_sync_cmd(mcl, cmd, sizeof(*cmd)); in send_unsupported_cap_req() 121 g_free(cmd); in send_unsupported_cap_req() 128 mcap_md_sync_set_rsp *cmd; in send_unsupported_set_req() local 131 cmd = g_new0(mcap_md_sync_set_rsp, 1); in send_unsupported_set_req() 132 cmd->op = MCAP_MD_SYNC_SET_RSP; in send_unsupported_set_req() 133 cmd->rc = MCAP_REQUEST_NOT_SUPPORTED; in send_unsupported_set_req() [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_rss/ |
D | feedPublish.sh | 35 cmd="$JAVA_HOME/bin/java -debug -Dant.home=$ANT_HOME -Dant.library.dir=$JAVA_HOME/lib -classpath $C… 36 cmd=$cmd" -buildfile feedPublish.xml -propertyfile ../properties/feedPublish.$projectName.propertie… 37 cmd=$cmd" -Dbranch=$branch -Dversion=$version -DbuildID=$buildID -DbuildAlias=$buildAlias -DbuildTy… 38 cmd=$cmd" -DdependencyURLs=$dependencyURLs -Ddebug=$debug"; 39 echo ""; echo $cmd | sed -e "s/ \-/# \-/g" -e "s/.jar:/.jar# :/g" | tr "#" "\n"; echo ""; 40 $cmd;
|