Home
last modified time | relevance | path

Searched refs:pollFd (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/testsuites/unittest/libc/io/full/
DIt_stdlib_poll_003.cpp44 struct pollfd pollFd; in Testcase() local
58 pollFd.fd = pipeFd[0]; in Testcase()
59 pollFd.events = POLLIN; in Testcase()
62 ret = poll(&pollFd, pollParam[i].nfds, pollParam[i].timeout); in Testcase()
/kernel/liteos_a/net/telnet/src/
Dtelnet_loop.c338 struct pollfd pollFd; in TelnetClientLoop() local
356 pollFd.fd = clientFd; in TelnetClientLoop()
357 pollFd.events = POLLIN | POLLRDHUP; in TelnetClientLoop()
358 pollFd.revents = 0; in TelnetClientLoop()
360 ret = poll(&pollFd, 1, TELNET_CLIENT_POLL_TIMEOUT); in TelnetClientLoop()
368 if ((UINT16)pollFd.revents & (POLLERR | POLLHUP | POLLRDHUP)) { in TelnetClientLoop()
372 if ((UINT16)pollFd.revents & POLLIN) { in TelnetClientLoop()