Searched refs:command (Results 1 - 23 of 23) sorted by relevance

/system/netd/
H A Dlogwrapper.c169 int system_nosh(const char *command) argument
177 if (!command) /* just checking... */
181 * The command to argp splitting is from code that was
184 if (strnlen(command, sizeof(buffer) - 1) == sizeof(buffer) - 1) {
185 ALOGE("command line too long while processing: %s", command);
189 strcpy(buffer, command); // Command len is already checked.
193 ALOGE("argument overflow while processing: %s", command);
H A Doem_iptables_hook.cpp29 extern "C" int system_nosh(const char *command);
38 ALOGE("command too long");
H A DIdletimerController.cpp23 * IPTABLES command sequence:
52 * ndc command sequence
80 * the numbers reported by iptables command. There shouldn't be too much
93 * A remove should be called for each add command issued during cleanup, as duplicate
114 extern "C" int system_nosh(const char *command);
131 ALOGE("command too long");
H A DThrottleController.cpp38 extern "C" int system_nosh(const char *command);
49 ALOGE("tc command too long");
H A DSecondaryTableController.cpp34 extern "C" int system_nosh(const char *command);
194 ALOGE("ip command (%s) too long", cmd);
H A DNatController.cpp36 extern "C" int system_nosh(const char *command);
54 ALOGE("command too long");
H A DBandwidthController.cpp45 extern "C" int system_nosh(const char *command);
197 ALOGE("iptables command too long");
716 /* This also removes the quota command of CostlyIface chain. */
/system/core/init/
H A Dinit.h26 struct command struct
48 struct command *current;
H A Dparser.c15 struct command *cmd;
39 cmd = node_to_item(node2, struct command, clist);
H A Dsignal_handler.c52 struct command *cmd;
112 cmd = node_to_item(node, struct command, clist);
H A Dinit.c86 static struct command *cur_command = NULL;
508 static struct command *get_first_command(struct action *act)
515 return node_to_item(node, struct command, clist);
518 static struct command *get_next_command(struct action *act, struct command *cmd)
527 return node_to_item(node, struct command, clist);
530 static int is_last_command(struct action *act, struct command *cmd)
554 INFO("command '%s' r=%d\n", cur_command->args[0], ret);
681 /* if this was given on kernel command line, override what we read
713 /* now propogate the info given on command lin
[all...]
H A Dinit_parser.c569 struct command *cmd;
644 struct command *cmd;
731 parse_error(state, "invalid command '%s'\n", args[0]);
837 struct command *cmd;
848 parse_error(state, "invalid command '%s'\n", args[0]);
/system/core/adb/
H A Dframebuffer_service.c73 const char* command = "screencap"; local
74 const char *args[2] = {command, NULL};
75 execvp(command, (char**)args);
H A Dtransport_usb.c34 p->msg.command = H4(p->msg.command);
H A Dcommandline.c83 " -d - directs command to the only connected USB device\n"
85 " -e - directs command to the only running emulator.\n"
87 " -s <specific device> - directs command to the device or emulator with the given\n"
102 " Using this command with no additional arguments\n"
112 " adb shell <command> - run remote shell command\n"
113 " adb emu <command> - run emulator console command\n"
149 " command line will be included even if -nosystem would\n"
359 static void format_host_command(char* buffer, size_t buflen, const char* command, transport_typ argument
453 char command[4096]; local
1169 char command[100]; local
[all...]
H A Dtransport_local.c32 p->msg.command = H4(p->msg.command);
66 p->msg.command, p->msg.arg0, p->msg.arg1, p->msg.data_length, p->msg.data_check, p->msg.magic);
94 p->msg.command, p->msg.arg0, p->msg.arg1, p->msg.data_length, p->msg.data_check, p->msg.magic);
H A Dadb.c232 switch(p->msg.command){
269 p->msg.command = A_OKAY;
279 p->msg.command = A_CLSE;
319 cp->msg.command = A_CNXN;
341 p->msg.command = A_AUTH;
360 p->msg.command = A_AUTH;
379 p->msg.command = A_AUTH;
496 D("handle_packet() %c%c%c%c\n", ((char*) (&(p->msg.command)))[0],
497 ((char*) (&(p->msg.command)))[1],
498 ((char*) (&(p->msg.command)))[
[all...]
H A Dtransport.c100 unsigned command = p->msg.command; local
107 int b = (command >> (n*8)) & 255;
115 /* There is some non-ASCII name in the command, so dump
117 snprintf(cmd, sizeof cmd, "%08x", command);
218 p->msg.magic = p->msg.command ^ 0xffffffff;
263 p->msg.command = A_SYNC;
294 p->msg.command = A_SYNC;
325 if(p->msg.command == A_SYNC){
1156 if(p->msg.magic != (p->msg.command
[all...]
H A Dadb.h51 unsigned command; /* command identifier constant */ member in struct:amessage
56 unsigned magic; /* command ^ 0xffffffff */
297 /* these should only be used for the "adb disconnect" command */
H A Dsockets.c469 p->msg.command = A_WRTE;
482 p->msg.command = A_OKAY;
493 p->msg.command = A_CLSE;
552 p->msg.command = A_OPEN;
/system/core/fastboot/
H A Dfastboot.c214 // at the command line with the -s option.
272 "usage: fastboot [ <option> ] <command>\n"
745 char command[256]; local
748 command[0] = 0;
750 strcat(command,*argv);
753 strcat(command," ");
756 fb_queue_command(command,"");
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp27 * This benchmark supports the following command-line options:
79 enum command { enum in class:AddIntsService
112 // Parse command line arguments
115 char *chptr; // character pointer for command-line parsing
/system/core/sh/
H A Dparser.c67 * Shell command parser.
107 STATIC union node *command(void);
123 * Read and parse a command. Returns NEOF on end of file. (NULL is a
258 n1 = command();
269 lp->n = command();
288 command(void) function
301 /* Check for redirection which may precede command */
310 TRACE(("command: TNOT recognized\n"));
476 /* Handle an empty command like other simple commands. */
479 * An empty command befor
[all...]

Completed in 162 milliseconds