Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 7 of 7) sorted by relevance

/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_client.c163 int pfd = open("/dev/ptmx", O_RDWR | O_CLOEXEC); in InitPtyInterface() local
164 BEGET_ERROR_CHECK(pfd >= 0, return -1, "Failed open pty err=%d", errno); in InitPtyInterface()
165 BEGET_ERROR_CHECK(grantpt(pfd) >= 0, close(pfd); return -1, "Failed to call grantpt"); in InitPtyInterface()
166 BEGET_ERROR_CHECK(unlockpt(pfd) >= 0, close(pfd); return -1, "Failed to call unlockpt"); in InitPtyInterface()
168 ret = ptsname_r(pfd, ptsbuffer, sizeof(ptsbuffer)); in InitPtyInterface()
169 BEGET_ERROR_CHECK(ret >= 0, close(pfd); return -1, "Failed to get pts name err=%d", errno); in InitPtyInterface()
172 close(pfd); return -1, "Failed to chmod %s, err=%d", ptsbuffer, errno); in InitPtyInterface()
173 agent->ptyFd = pfd; in InitPtyInterface()
179 info.fd = pfd; // read ptmx in InitPtyInterface()
181 close(pfd); return -1, "[control_fd] Failed le_loop start watcher ptmx read"); in InitPtyInterface()
[all …]
/base/startup/init/ueventd/
Dueventd_main.c29 struct pollfd pfd = {}; in PollUeventdSocketTimeout() local
30 pfd.events = POLLIN; in PollUeventdSocketTimeout()
31 pfd.fd = ueventSockFd; in PollUeventdSocketTimeout()
36 pfd.revents = 0; in PollUeventdSocketTimeout()
37 ret = poll(&pfd, 1, timeout); in PollUeventdSocketTimeout()
45 if (pfd.revents & POLLIN) { in PollUeventdSocketTimeout()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_file.c84 file->pfd = HcFileOpenRead(path); in HcFileOpen()
86 file->pfd = HcFileOpenWrite(path); in HcFileOpen()
88 if (file->pfd == NULL) { in HcFileOpen()
97 FILE *fp = (FILE *)file.pfd; in HcFileSize()
114 FILE *fp = (FILE *)file.pfd; in HcFileRead()
138 FILE *fp = (FILE *)file.pfd; in HcFileWrite()
169 FILE *fp = (FILE *)file.pfd; in HcFileClose()
/base/startup/init/services/modules/init_context/
Dinit_context.c224 struct pollfd pfd = {}; in SubInitMain() local
225 pfd.events = POLLIN; in SubInitMain()
226 pfd.fd = readFd; in SubInitMain()
232 pfd.revents = 0; in SubInitMain()
233 int ret = poll(&pfd, 1, timeout); in SubInitMain()
241 if (pfd.revents & POLLIN) { in SubInitMain()
/base/security/device_auth/deps_adapter/os_adapter/interfaces/linux/
Dhc_file.h26 void *pfd; member
/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/
Dhc_file.h29 void *pfd; member
/base/update/updater/services/
Dupdater.cpp431 int pfd[DEFAULT_PIPE_NUM]; /* communication between parent and child */ in StartUpdaterProc() local
432 if (pipe(pfd) < 0) { in StartUpdaterProc()
443 int pipeRead = pfd[0]; in StartUpdaterProc()
444 int pipeWrite = pfd[1]; in StartUpdaterProc()