Home
last modified time | relevance | path

Searched refs:cmdbuf (Results 1 – 6 of 6) sorted by relevance

/external/wpa_supplicant_8/src/utils/
Dedit.c24 static char cmdbuf[CMD_BUF_LEN]; variable
93 while (cmdbuf_pos > 0 && cmdbuf[cmdbuf_pos - 1] == ' ') in move_word_left()
95 while (cmdbuf_pos > 0 && cmdbuf[cmdbuf_pos - 1] != ' ') in move_word_left()
103 while (cmdbuf_pos < cmdbuf_len && cmdbuf[cmdbuf_pos] == ' ') in move_word_right()
105 while (cmdbuf_pos < cmdbuf_len && cmdbuf[cmdbuf_pos] != ' ') in move_word_right()
117 os_memmove(cmdbuf + cmdbuf_pos - 1, cmdbuf + cmdbuf_pos, in delete_left()
131 os_memmove(cmdbuf + cmdbuf_pos, cmdbuf + cmdbuf_pos + 1, in delete_current()
144 while (pos > 0 && cmdbuf[pos - 1] == ' ') in delete_word()
146 while (pos > 0 && cmdbuf[pos - 1] != ' ') in delete_word()
148 os_memmove(cmdbuf + pos, cmdbuf + cmdbuf_pos, cmdbuf_len - cmdbuf_pos); in delete_word()
[all …]
Dedit_simple.c23 static char cmdbuf[CMD_BUF_LEN]; variable
47 cmdbuf[cmdbuf_pos] = '\0'; in edit_read_char()
49 edit_cmd_cb(edit_cb_ctx, cmdbuf); in edit_read_char()
56 if (cmdbuf_pos < (int) sizeof(cmdbuf) - 1) { in edit_read_char()
57 cmdbuf[cmdbuf_pos++] = c; in edit_read_char()
94 cmdbuf[cmdbuf_pos] = '\0'; in edit_redraw()
95 printf("\r> %s", cmdbuf); in edit_redraw()
/external/tcpdump/
Dtcpdump.c453 register char *cp, *infile, *cmdbuf, *device, *RFileName, *WFileName, *WFileNameAlt; in main() local
939 cmdbuf = read_infile(infile); in main()
941 cmdbuf = copy_argv(&argv[optind]); in main()
943 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) in main()
/external/wpa_supplicant/
Dwpa_cli.c1343 char cmdbuf[256], *cmd, *argv[max_args], *pos; in wpa_cli_interactive() local
1385 cmd = fgets(cmdbuf, sizeof(cmdbuf), stdin); in wpa_cli_interactive()
1425 if (cmd != cmdbuf) in wpa_cli_interactive()
/external/valgrind/main/callgrind/
Ddump.c44 static Char cmdbuf[BUF_LEN]; variable
1345 my_fwrite(fd, (void*)cmdbuf, VG_(strlen)(cmdbuf)); in new_dumpfile()
1646 size = VG_(sprintf)(cmdbuf, " %s", VG_(args_the_exename)); in init_cmdbuf()
1651 if ((size>0) && (size < BUF_LEN)) cmdbuf[size++] = ' '; in init_cmdbuf()
1653 if (size < BUF_LEN) cmdbuf[size++] = argv[j]; in init_cmdbuf()
1657 cmdbuf[size] = 0; in init_cmdbuf()
/external/wpa_supplicant_6/wpa_supplicant/
Dwpa_cli.c1681 char cmdbuf[256], *cmd, *argv[max_args], *pos; in wpa_cli_interactive() local
1727 cmd = fgets(cmdbuf, sizeof(cmdbuf), stdin); in wpa_cli_interactive()
1767 if (cmd != cmdbuf) in wpa_cli_interactive()