Home
last modified time | relevance | path

Searched refs:ptyName (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/base/startup/appspawn/modules/common/
H A Dappspawn_begetctl.c36 APPSPAWN_STATIC void RunAppSandbox(const char *ptyName) in RunAppSandbox() argument
38 if (ptyName == NULL) { in RunAppSandbox()
44 char *realPath = realpath(ptyName, NULL); in RunAppSandbox()
47 "Failed to resolve %{public}s real path err=%{public}d", ptyName, errno); in RunAppSandbox()
54 APPSPAWN_CHECK(fd >= 0, _exit(1), "Failed open %{public}s, err=%{public}d", ptyName, errno); in RunAppSandbox()
62 "app %{public}s execv sh failed! err %{public}d.", ptyName, errno); in RunAppSandbox()
65 APPSPAWN_LOGE("Exit RunAppSandbox %{public}s exit", ptyName); in RunAppSandbox()
/ohos5.0/base/startup/init/services/begetctl/
H A Ddump_service.c32 … SendAppspawnCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName) in SendAppspawnCmdMessage() argument
35 if ((agent == NULL) || (cmd == NULL) || (ptyName == NULL)) { in SendAppspawnCmdMessage()
51 ret = AppSpawnReqMsgCreate(MSG_DUMP, ptyName, &reqHandle); in SendAppspawnCmdMessage()
54 ret = AppSpawnReqMsgAddStringInfo(reqHandle, "pty-name", ptyName); in SendAppspawnCmdMessage()
56 return -1, "add %s request message error", ptyName); in SendAppspawnCmdMessage()
H A Dsandbox.cpp118 … SendAppspawnCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName) in SendAppspawnCmdMessage() argument
121 if ((agent == NULL) || (cmd == NULL) || (ptyName == NULL)) { in SendAppspawnCmdMessage()
136 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_BEGET_PTY_NAME, ptyName); in SendAppspawnCmdMessage()
138 return -1, "add %s request message error", ptyName); in SendAppspawnCmdMessage()
H A Dappspawntime_cmd.c29 static int SendAppspawnTimeMessage(const CmdAgent *agent, uint16_t type, const char *ptyName) in SendAppspawnTimeMessage() argument
32 if ((agent == NULL) || (ptyName == NULL)) { in SendAppspawnTimeMessage()
/ohos5.0/base/startup/init/interfaces/innerkits/control_fd/
H A Dcontrol_fd_client.c129 …ATIC int SendCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName) in SendCmdMessage() argument
131 if ((agent == NULL) || (cmd == NULL) || (ptyName == NULL)) { in SendCmdMessage()
143 int ret = strcpy_s(message->ptyName, PTY_PATH_SIZE - 1, ptyName); in SendCmdMessage()
145 return -1, "[control_fd] Failed to copy pty name %s", ptyName); in SendCmdMessage()
H A Dcontrol_fd.h64 …allbackSendMsgProcess)(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName);
78 char ptyName[PTY_PATH_SIZE]; member
H A Dcontrol_fd_service.c65 if ((msg->type >= ACTION_MAX) || (msg->cmd[0] == '\0') || (msg->ptyName[0] == '\0')) { in CmdOnRecvMessage()
76 char *realPath = GetRealPath(msg->ptyName); in CmdOnRecvMessage()
82 BEGET_ERROR_CHECK(fd >= 0, _exit(1), "Failed open %s, err=%d", msg->ptyName, errno); in CmdOnRecvMessage()
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_beget_test.cpp66 static int TestSendAppspawnCmdMessage(const char *cmd, const char *ptyName) in TestSendAppspawnCmdMessage() argument
78 ret = AppSpawnReqMsgAddStringInfo(reqHandle, MSG_EXT_NAME_BEGET_PTY_NAME, ptyName); in TestSendAppspawnCmdMessage()
79 APPSPAWN_CHECK(ret == 0, return -1, "add %{public}s request message error", ptyName); in TestSendAppspawnCmdMessage()
/ohos5.0/base/startup/init/test/unittest/innerkits/
H A Dinnerkits_unittest.cpp46 int SendCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName);
61 …lbackSendMsgProcessTest(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName) in CallbackSendMsgProcessTest() argument
394 cmdMsg->ptyName[0] = '\0';;
398 cmdMsg->ptyName[0] = 'a';
/ohos5.0/base/startup/appspawn/standard/
H A Dappspawn_appmgr.c397 char *ptyName = GetAppSpawnMsgExtInfo(message, "pty-name", &len); in ProcessAppSpawnDumpMsg() local
398 if (ptyName != NULL) { in ProcessAppSpawnDumpMsg()
399 APPSPAWN_LOGI("Dump info to file '%{public}s'", ptyName); in ProcessAppSpawnDumpMsg()
401 if (realpath(ptyName, canonicalPtyPath) == NULL) { in ProcessAppSpawnDumpMsg()
/ohos5.0/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.h79 void RunAppSandbox(const char *ptyName);