Home
last modified time | relevance | path

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

/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_client.c120 …ATIC int SendCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName) in SendCmdMessage() argument
122 if ((agent == NULL) || (cmd == NULL) || (ptyName == NULL)) { in SendCmdMessage()
134 int ret = strcpy_s(message->ptyName, PTY_PATH_SIZE - 1, ptyName); in SendCmdMessage()
136 return -1, "[control_fd] Failed to copy pty name %s", ptyName); in SendCmdMessage()
Dcontrol_fd_service.c65 if ((msg->type >= ACTION_MAX) || (msg->cmd[0] == '\0') || (msg->ptyName[0] == '\0')) { in CmdOnRecvMessage()
78 char *realPath = GetRealPath(msg->ptyName); in CmdOnRecvMessage()
84 BEGET_ERROR_CHECK(fd >= 0, return, "Failed open %s, err=%d", msg->ptyName, errno); in CmdOnRecvMessage()
Dcontrol_fd.h75 char ptyName[PTY_PATH_SIZE]; member
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp47 int SendCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName);
378 cmdMsg->ptyName[0] = '\0';;
382 cmdMsg->ptyName[0] = 'a';