Lines Matching refs:cmd
32 static int SendAppspawnCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName)
35 if ((agent == NULL) || (cmd == NULL) || (ptyName == NULL)) {
42 if (strcmp(cmd, "dump_appspawn") == 0) {
44 } else if (strcmp(cmd, "dump_nwebspawn") == 0) {
69 static void DumpAppspawnClientInit(const char *cmd, CallbackSendMsgProcess sendMsg)
71 if (cmd == NULL) {
77 int ret = InitPtyInterface(&agent, ACTION_DUMP, cmd, sendMsg);
79 BEGET_LOGE("App with pid=%s does not support entering sandbox environment", cmd);
99 char *cmd = (char *)calloc(1, serviceNameLen);
100 BEGET_ERROR_CHECK(cmd != NULL, return 0, "failed to allocate cmd memory");
101 BEGET_ERROR_CHECK(sprintf_s(cmd, serviceNameLen, "%s#%s", argv[1], argv[2]) >= 0, free(cmd);
103 CmdClientInit(INIT_CONTROL_FD_SOCKET_PATH, ACTION_DUMP, cmd, NULL);
104 free(cmd);