Searched defs:cmd (Results 1 - 25 of 44) sorted by relevance

12

/system/netd/
H A DNetdCommand.cpp19 NetdCommand::NetdCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
H A Doem_iptables_hook.cpp32 static int runIptablesCmd(const char *cmd) { argument
34 size_t len = strnlen(cmd, 255);
42 asprintf(&buffer, "%s %s", IPTABLES_PATH, cmd);
H A DThrottleController.cpp43 int ThrottleController::runTcCmd(const char *cmd) { argument
45 size_t len = strnlen(cmd, 255);
54 asprintf(&buffer, "%s %s", TC_PATH, cmd);
61 char cmd[512]; local
82 sprintf(cmd, "qdisc add dev %s root handle 1: htb default 1 r2q 1000", ifn);
83 if (runTcCmd(cmd)) {
91 sprintf(cmd, "class add dev %s parent 1: classid 1:1 htb rate %dkbit", ifn, txKbps);
92 if (runTcCmd(cmd)) {
109 sprintf(cmd, "qdisc add dev ifb0 root handle 1: htb default 1 r2q 1000");
110 if (runTcCmd(cmd)) {
150 char cmd[128]; local
[all...]
H A DIdletimerController.cpp125 int IdletimerController::runIpxtablesCmd(const char *cmd) { argument
127 size_t len = strnlen(cmd, 255);
135 asprintf(&buffer, "%s %s", IPTABLES_PATH, cmd);
H A DSecondaryTableController.cpp84 char *cmd; local
88 asprintf(&cmd, "%s route %s %s/%d dev %s table %d",
91 asprintf(&cmd, "%s route %s %s/%d via %s dev %s table %d",
95 if (runAndFree(cli, cmd)) {
160 char *cmd; local
165 asprintf(&cmd, "%s %s rule %s from %s table %d", IP_PATH, getVersion(addr),
167 if (runAndFree(NULL, cmd)) {
177 char *cmd; local
185 asprintf(&cmd, "%s route %s %s dev %s table %d", IP_PATH, action, addr, iface,
187 return runAndFree(NULL, cmd);
190 runAndFree(SocketClient *cli, char *cmd) argument
[all...]
H A DNatController.cpp48 int NatController::runCmd(const char *path, const char *cmd) { argument
50 size_t len = strnlen(cmd, 255);
59 asprintf(&buffer, "%s %s", path, cmd);
98 char cmd[255]; local
143 snprintf(cmd, sizeof(cmd), "-D natctrl_FORWARD -j DROP");
144 runCmd(IPTABLES_PATH, cmd);
145 snprintf(cmd, sizeof(cmd), "-A natctrl_FORWARD -j DROP");
146 runCmd(IPTABLES_PATH, cmd);
170 char cmd[255]; local
219 char cmd[255]; local
[all...]
/system/vold/
H A DVoldCommand.cpp19 VoldCommand::VoldCommand(const char *cmd) : argument
20 FrameworkCommand(cmd) {
/system/core/libsysutils/src/
H A DFrameworkCommand.cpp24 FrameworkCommand::FrameworkCommand(const char *cmd) { argument
25 mCommand = cmd;
H A DFrameworkListener.cpp69 void FrameworkListener::registerCmd(FrameworkCommand *cmd) { argument
70 mCommands->push_back(cmd);
/system/core/toolbox/
H A Dtoolbox.c44 char *cmd = strrchr(argv[0], '/'); local
45 if (cmd)
46 name = cmd + 1;
H A Drenice.c81 char *cmd = argv[0]; local
88 usage(cmd);
99 usage(cmd);
105 usage(cmd);
112 usage(cmd);
H A Dsyren.c64 int cmd = -1; local
76 cmd = SYREN_RD;
79 cmd = SYREN_WR;
82 cmd = SYREN_OLD_RD;
85 cmd = SYREN_OLD_WR;
91 if (cmd == SYREN_WR || cmd == SYREN_OLD_WR) {
105 if (cmd != SYREN_RD && cmd != SYREN_OLD_RD) {
113 if (ioctl(fd, cmd,
[all...]
H A Diftop.c221 static void usage(const char *cmd) argument
223 fprintf(stderr, "usage: %s [ -r repeats] [ -d delay ]\n", cmd);
H A Dvmstat.c70 static void usage(char *cmd);
239 static void usage(char *cmd) { argument
246 cmd);
/system/core/init/
H A Dsignal_handler.c52 struct command *cmd; local
112 cmd = node_to_item(node, struct command, clist);
113 cmd->func(cmd->nargs, cmd->args);
/system/core/libcutils/
H A Dandroid_reboot.c104 int android_reboot(int cmd, int flags, char *arg) argument
114 switch (cmd) {
H A Dqtaguid.c60 static int write_ctrl(const char *cmd) { argument
63 ALOGV("write_ctrl(%s)", cmd);
70 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
77 ALOGI("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno);
/system/core/fastboot/
H A Dusbtest.c128 const char *cmd; member in struct:__anon291
145 for(i = 0; tests[i].cmd; i++) {
146 fprintf(stderr," %-8s %s\n", tests[i].cmd, tests[i].help);
191 for(i = 0; tests[i].cmd; i++) {
192 if(!strcmp(argv[1], tests[i].cmd)) {
197 tests[i].cmd);
201 fprintf(stderr,"usbtest: %s: FAIL\n", tests[i].cmd);
204 fprintf(stderr,"usbtest: %s: OKAY\n", tests[i].cmd);
H A Dprotocol.c109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, argument
112 int cmdsize = strlen(cmd);
124 if(usb_write(usb, cmd, cmdsize) != cmdsize) {
162 static int _command_send(usb_handle *usb, const char *cmd, argument
171 r = _command_start(usb, cmd, size, response);
189 static int _command_send_no_data(usb_handle *usb, const char *cmd, argument
194 return _command_start(usb, cmd, 0, response);
197 int fb_command(usb_handle *usb, const char *cmd) argument
199 return _command_send_no_data(usb, cmd, 0);
202 int fb_command_response(usb_handle *usb, const char *cmd, cha argument
209 char cmd[64]; local
293 char cmd[64]; local
[all...]
/system/security/keystore/
H A Dkeystore_client.cpp25 ResponseCode keystore_cmd(command_code_t cmd, Keystore_Reply* reply, int numArgs, ...) { argument
33 if (TEMP_FAILURE_RETRY(send(sock, &cmd, 1, MSG_NOSIGNAL)) != 1) {
/system/core/sh/
H A Djobs.h65 char cmd[MAXCMDTEXT];/* text of command being run */ member in struct:procstat
H A Dmiscbltin.c293 int cmd; member in struct:limits
395 getrlimit(l->cmd, &limit);
417 getrlimit(l->cmd, &limit);
423 if (setrlimit(l->cmd, &limit) < 0)
H A Dshow.c124 shcmd(union node *cmd, FILE *fp) argument
132 for (np = cmd->ncmd.args ; np ; np = np->narg.next) {
138 for (np = cmd->ncmd.redirect ; np ; np = np->nfile.next) {
/system/core/adb/
H A Dservices.c260 static int create_subprocess(const char *cmd, const char *arg0, const char *arg1, pid_t *pid) argument
263 D("create_subprocess(cmd=%s, arg0=%s, arg1=%s)\n", cmd, arg0, arg1);
264 fprintf(stderr, "error: create_subprocess not implemented on Win32 (%s %s %s)\n", cmd, arg0, arg1);
319 execl(cmd, cmd, arg0, arg1, NULL);
321 cmd, strerror(errno), errno);
/system/core/libnl_2/genl/
H A Dgenl.c50 int hdrlen, int flags, uint8_t cmd, uint8_t version)
77 gmh->cmd = (__u8) cmd;
119 gmhhdr.cmd = CTRL_CMD_GETFAMILY;
49 genlmsg_put(struct nl_msg *msg, uint32_t pid, uint32_t seq, int family, int hdrlen, int flags, uint8_t cmd, uint8_t version) argument

Completed in 193 milliseconds

12