Home
last modified time | relevance | path

Searched refs:nfds (Results 1 - 21 of 21) sorted by relevance

/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_epoll.c75 int32_t i, nfds; in EpollLoop() local
79 nfds = epoll_wait(epollfd, events, MAX_EPOLL_SIZE, timeout); in EpollLoop()
80 if (nfds < 0) { in EpollLoop()
85 LOGE(TAG, "epoll_wait returned n=%d, error: %d", nfds, errno); in EpollLoop()
89 for (i = 0; i < nfds; i++) { in EpollLoop()
108 return ((nfds > 0) ? nfds : NSTACKX_ETIMEOUT); in EpollLoop()
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/liteos/dfile/
H A Dsys_dfile_session.c24 int32_t nfds = fd + 1; in WaitSocketEvent() local
54 if (nfds < pipe + 1) { in WaitSocketEvent()
55 nfds = pipe + 1; in WaitSocketEvent()
63 int32_t ret = select(nfds, &readFds, &writeFds, NULL, &tv); in WaitSocketEvent()
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/unix/dfile/
H A Dsys_dfile_session.c24 int32_t nfds = fd + 1; in WaitSocketEvent() local
54 if (nfds < pipe + 1) { in WaitSocketEvent()
55 nfds = pipe + 1; in WaitSocketEvent()
63 int32_t ret = select(nfds, &readFds, &writeFds, NULL, &tv); in WaitSocketEvent()
/foundation/resourceschedule/ffrt/src/sync/
H A Dpoller.cpp154 int nfds = FetchCachedEventAndDoUnmask(syncTaskIter->second, eventsVec); variable
156 return nfds;
171 int nfds = 0; variable
192 m_waitTaskMap[task] = {static_cast<void*>(eventsVec), maxevents, &nfds, currTime};
199 FFRT_LOGD("task[%s] id[%d] has [%d] events", task->label.c_str(), task->gid, nfds);
200 return nfds;
210 nfds = cachedNfds;
220 m_waitTaskMap[task] = {static_cast<void*>(eventsVec), maxevents, &nfds, currTime};
229 FFRT_LOGD("task[%s] id[%d] has [%d] events", task->label.c_str(), task->gid, nfds);
230 return nfds;
279 int nfds = cachedEventsVec.size(); global() variable
380 int nfds = epoll_wait(m_epFd, waitedEvents.data(), waitedEvents.size(), realTimeout); global() variable
[all...]
H A Ddelayed_worker.cpp73 int nfds = epoll_wait(epollfd_, waitedEvents.data(), waitedEvents.size(), -1); in ThreadInit()
74 if (nfds < 0) { in ThreadInit()
79 for (int i = 0; i < nfds; i++) { in ThreadInit()
H A Dpoller.h121 void ProcessWaitedFds(int nfds, std::unordered_map<CPUEUTask*, EventVec>& syncTaskEvents,
/foundation/CastEngine/castengine_wifi_display/tests/demo/network/
H A Dudp_server_demo.cpp71 int listener, kdpfd, nfds, n; in main() local
126 nfds = epoll_wait(kdpfd, events, 10000, -1); in main()
127 if (nfds == -1) { in main()
132 for (n = 0; n < nfds; ++n) { in main()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/
H A Dsocket_listener.cpp118 int nfds; in OnListenEvents() local
119 CHECK_EXCEPT_INTR(nfds = epoll_wait(epollFd_, events, MAX_EPOLL, -1)); in OnListenEvents()
120 if (nfds == -1) { in OnListenEvents()
124 for (int i = 0; i < nfds; ++i) { in OnListenEvents()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/internal/
H A Dtimer_linux.cpp135 int nfds; in OnTimer() local
136 CHECK_EXCEPT_INTR(nfds = epoll_wait(epollFd_, events, MAXEPOLLEVENTS, -1)); in OnTimer()
137 if (nfds == -1) { in OnTimer()
141 for (int i = 0; i < nfds; ++i) { in OnTimer()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dreactor_linux.c131 int nfds; in ReactorStart() local
132 CHECK_EXCEPT_INTR(nfds = epoll_wait(reactor->epollFd, events, MAXEPOLLEVENTS, -1)); in ReactorStart()
133 if (nfds == -1) { in ReactorStart()
139 for (int i = 0; i < nfds; ++i) { in ReactorStart()
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Dmock_system_func.cpp146 int __real_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
147 int __wrap_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) in __wrap_select() argument
151 int nRet = MockSystemFunc::GetInstance().select(nfds, readfds, writefds, exceptfds, timeout); in __wrap_select()
162 return __real_select(nfds, readfds, writefds, exceptfds, timeout); in __wrap_select()
H A Dmock_system_func.h43 MOCK_METHOD5(select, int(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout));
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_proxy_listen.cpp219 int32_t nfds = in StartListen() local
222 if (nfds < 0) { in StartListen()
226 if (nfds == 0) { in StartListen()
231 for (int i = 0; i < nfds; ++i) { in StartListen()
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Dsystem_func_mock.h42 MOCK_METHOD5(select, int(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout));
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_socket_listener.cpp387 int nfds = ctrlPair_[0] + 1; in Run() local
390 nfds = std::max(nfds, socks_[i] + 1); in Run()
393 int res = select(nfds, &rfds, 0, 0, &timeout); in Run()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.cpp168 nfds_t nfds = 2; in GetNotifyEvent()
175 int ret = poll(fds, nfds, -1); in GetNotifyEvent()
H A Dcopy.cpp528 nfds_t nfds = 2; in GetNotifyEvent() local
535 auto ret = poll(fds, nfds, -1); in GetNotifyEvent()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.cpp188 nfds_t nfds = 2; in GetNotifyEvent() local
196 ret = poll(fds, nfds, -1); in GetNotifyEvent()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_socket.c305 int32_t nfds, SoftBusFdSet *readFds, SoftBusFdSet *writeFds, SoftBusFdSet *exceptFds, SoftBusSockTimeOut *timeout) in SoftBusSocketSelect()
334 int32_t ret = select(nfds, tempReadSet, tempWriteSet, tempExceptSet, timeoutPtr); in SoftBusSocketSelect()
304 SoftBusSocketSelect( int32_t nfds, SoftBusFdSet *readFds, SoftBusFdSet *writeFds, SoftBusFdSet *exceptFds, SoftBusSockTimeOut *timeout) SoftBusSocketSelect() argument
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_socket.h155 int32_t SoftBusSocketSelect(int32_t nfds, SoftBusFdSet *readFds, SoftBusFdSet *writeFds, SoftBusFdSet *exceptFds,
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcopy.cpp768 nfds_t nfds = 2; in GetNotifyEvent() local
775 auto ret = poll(fds, nfds, -1); in GetNotifyEvent()

Completed in 11 milliseconds