Home
last modified time | relevance | path

Searched refs:ptsbuffer (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_beget_test.cpp56 char ptsbuffer[128] = {0}; in InitPtyInterface() local
57 int ret = ptsname_r(pfd, ptsbuffer, sizeof(ptsbuffer)); in InitPtyInterface()
60 APPSPAWN_LOGI("ptsbuffer is %{public}s", ptsbuffer); in InitPtyInterface()
61 … APPSPAWN_CHECK(chmod(ptsbuffer, S_IRWXU | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) == 0, close(pfd); in InitPtyInterface()
62 return, "Failed to chmod %{public}s, err=%{public}d", ptsbuffer, errno); in InitPtyInterface()
63 g_ptyName = std::string(ptsbuffer); in InitPtyInterface()
/ohos5.0/base/startup/init/interfaces/innerkits/control_fd/
H A Dcontrol_fd_client.c176 char ptsbuffer[PTY_PATH_SIZE] = {0}; in InitPtyInterface() local
177 ret = ptsname_r(pfd, ptsbuffer, sizeof(ptsbuffer)); in InitPtyInterface()
179 BEGET_LOGI("ptsbuffer is %s", ptsbuffer); in InitPtyInterface()
180 BEGET_ERROR_CHECK(chmod(ptsbuffer, S_IRWXU | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) == 0, in InitPtyInterface()
181 close(pfd); return -1, "Failed to chmod %s, err=%d", ptsbuffer, errno); in InitPtyInterface()
196 ret = SendCmdMessage(agent, type, cmd, ptsbuffer); in InitPtyInterface()
198 ret = g_sendMsg(agent, type, cmd, ptsbuffer); in InitPtyInterface()
/ohos5.0/base/startup/appspawn/test/moduletest/
H A Dappspawn_test_cmder.cpp604 char ptsbuffer[PTY_PATH_SIZE] = {0}; in InitPtyInterface() local
605 int ret = ptsname_r(pfd, ptsbuffer, sizeof(ptsbuffer)); in InitPtyInterface()
608 APPSPAWN_LOGI("ptsbuffer is %{public}s", ptsbuffer); in InitPtyInterface()
609 … APPSPAWN_CHECK(chmod(ptsbuffer, S_IRWXU | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) == 0, close(pfd); in InitPtyInterface()
610 return -1, "Failed to chmod %{public}s, err=%{public}d", ptsbuffer, errno); in InitPtyInterface()
612 ptyName_ = std::string(ptsbuffer); in InitPtyInterface()