Searched refs:pfd (Results 1 – 7 of 7) sorted by relevance
/base/startup/init/interfaces/innerkits/control_fd/ |
D | control_fd_client.c | 163 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/ |
D | ueventd_main.c | 29 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/ |
D | hc_file.c | 84 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/ |
D | init_context.c | 224 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/ |
D | hc_file.h | 26 void *pfd; member
|
/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/ |
D | hc_file.h | 29 void *pfd; member
|
/base/update/updater/services/ |
D | updater.cpp | 431 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()
|