Home
last modified time | relevance | path

Searched refs:nfds (Results 26 - 50 of 152) sorted by relevance

1234567

/third_party/ninja/src/
H A Dsubprocess-posix.cc254 nfds_t nfds = 0; in DoWork() local
263 ++nfds; in DoWork()
267 int ret = ppoll(&fds.front(), nfds, NULL, &old_mask_); in DoWork()
304 int nfds = 0; in DoWork() local
312 if (nfds < fd+1) in DoWork()
313 nfds = fd+1; in DoWork()
318 int ret = pselect(nfds, &set, 0, 0, 0, &old_mask_); in DoWork()
/third_party/libuv/src/unix/
H A Dsunos.c117 uintptr_t nfds; in uv__platform_invalidate_fd() local
123 nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1]; in uv__platform_invalidate_fd()
128 for (i = 0; i < nfds; i++) in uv__platform_invalidate_fd()
157 unsigned int nfds; in uv__io_poll() local
168 if (loop->nfds == 0) { in uv__io_poll()
224 /* Work around a kernel bug where nfds is not updated. */ in uv__io_poll()
227 nfds = 1; in uv__io_poll()
236 &nfds, in uv__io_poll()
275 if (nfds == 0) { in uv__io_poll()
285 loop->watchers[loop->nwatchers + 1] = (void*) (uintptr_t) nfds; in uv__io_poll()
[all...]
H A Dos390.c591 uintptr_t nfds; in uv__platform_invalidate_fd() local
597 nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1]; in uv__platform_invalidate_fd()
600 for (i = 0; i < nfds; i++) in uv__platform_invalidate_fd()
824 int nfds; in uv__io_poll() local
831 if (loop->nfds == 0) { in uv__io_poll()
893 nfds = 0; in uv__io_poll()
910 nfds = epoll_wait(loop->ep, events, in uv__io_poll()
919 if (nfds == 0) { in uv__io_poll()
939 if (nfds == -1) { in uv__io_poll()
962 loop->watchers[loop->nwatchers + 1] = (void*) (uintptr_t) nfds; in uv__io_poll()
[all...]
H A Dposix-poll.c144 int nfds; in uv__io_poll() local
151 if (loop->nfds == 0) { in uv__io_poll()
213 nfds = poll(loop->poll_fds, (nfds_t)loop->poll_fds_used, timeout); in uv__io_poll()
224 if (nfds == 0) { in uv__io_poll()
238 if (nfds == -1) { in uv__io_poll()
H A Daix.c146 int nfds; in uv__io_poll() local
153 if (loop->nfds == 0) { in uv__io_poll()
244 nfds = pollset_poll(loop->backend_fd, in uv__io_poll()
255 if (nfds == 0) { in uv__io_poll()
269 if (nfds == -1) { in uv__io_poll()
294 loop->watchers[loop->nwatchers + 1] = (void*) (uintptr_t) nfds; in uv__io_poll()
296 for (i = 0; i < nfds; i++) { in uv__io_poll()
352 if (nfds == ARRAY_SIZE(events) && --count != 0) { in uv__io_poll()
1299 uintptr_t nfds; in uv__platform_invalidate_fd() local
1306 nfds in uv__platform_invalidate_fd()
[all...]
H A Dlinux.c64 int nfds = 0; in uv__epoll_wait() local
67 nfds = ffrt_epoll_wait(qos, events, eventsize, timeout); in uv__epoll_wait()
69 return nfds; in uv__epoll_wait()
724 int nfds; member
739 for (i = 0; i < inv->nfds; i++) in uv__platform_invalidate_fd()
1401 int nfds; in uv__io_poll() local
1456 inv.nfds = -1; in uv__io_poll()
1459 if (loop->nfds == 0) in uv__io_poll()
1483 nfds = epoll_pwait(epollfd, events, ARRAY_SIZE(events), timeout, sigmask); in uv__io_poll()
1485 nfds in uv__io_poll()
[all...]
/third_party/node/deps/uv/src/unix/
H A Dsunos.c117 uintptr_t nfds; in uv__platform_invalidate_fd() local
123 nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1]; in uv__platform_invalidate_fd()
128 for (i = 0; i < nfds; i++) in uv__platform_invalidate_fd()
157 unsigned int nfds; in uv__io_poll() local
168 if (loop->nfds == 0) { in uv__io_poll()
224 /* Work around a kernel bug where nfds is not updated. */ in uv__io_poll()
227 nfds = 1; in uv__io_poll()
236 &nfds, in uv__io_poll()
275 if (nfds == 0) { in uv__io_poll()
285 loop->watchers[loop->nwatchers + 1] = (void*) (uintptr_t) nfds; in uv__io_poll()
[all...]
H A Dos390.c584 uintptr_t nfds; in uv__platform_invalidate_fd() local
590 nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1]; in uv__platform_invalidate_fd()
593 for (i = 0; i < nfds; i++) in uv__platform_invalidate_fd()
816 int nfds; in uv__io_poll() local
823 if (loop->nfds == 0) { in uv__io_poll()
883 nfds = 0; in uv__io_poll()
894 nfds = epoll_wait(loop->ep, events, in uv__io_poll()
903 if (nfds == 0) { in uv__io_poll()
923 if (nfds == -1) { in uv__io_poll()
946 loop->watchers[loop->nwatchers + 1] = (void*) (uintptr_t) nfds; in uv__io_poll()
[all...]
H A Dposix-poll.c143 int nfds; in uv__io_poll() local
150 if (loop->nfds == 0) { in uv__io_poll()
204 nfds = poll(loop->poll_fds, (nfds_t)loop->poll_fds_used, timeout); in uv__io_poll()
215 if (nfds == 0) { in uv__io_poll()
229 if (nfds == -1) { in uv__io_poll()
H A Daix.c145 int nfds; in uv__io_poll() local
152 if (loop->nfds == 0) { in uv__io_poll()
235 nfds = pollset_poll(loop->backend_fd, in uv__io_poll()
246 if (nfds == 0) { in uv__io_poll()
260 if (nfds == -1) { in uv__io_poll()
285 loop->watchers[loop->nwatchers + 1] = (void*) (uintptr_t) nfds; in uv__io_poll()
287 for (i = 0; i < nfds; i++) { in uv__io_poll()
341 if (nfds == ARRAY_SIZE(events) && --count != 0) { in uv__io_poll()
1283 uintptr_t nfds; in uv__platform_invalidate_fd() local
1290 nfds in uv__platform_invalidate_fd()
[all...]
/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()
/third_party/ltp/testcases/network/lib6/
H A Dasapi_02.c111 int maxfd, nfds, gotall, gotone; in ic6_recv() local
129 nfds = select(maxfd + 1, &readfds, 0, 0, &tv); in ic6_recv()
130 if (nfds == 0) in ic6_recv()
133 if (nfds < 0) { in ic6_recv()
/third_party/curl/lib/
H A Dselect.c272 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms) in Curl_poll() argument
287 for(i = 0; i < nfds; i++) { in Curl_poll()
317 r = poll(ufds, nfds, pending_ms); in Curl_poll()
325 for(i = 0; i < nfds; i++) { in Curl_poll()
341 for(i = 0; i < nfds; i++) { in Curl_poll()
374 for(i = 0; i < nfds; i++) { in Curl_poll()
H A Dmulti.c1225 unsigned int nfds = 0; local
1253 nfds += ps.num;
1263 curlfds = nfds; /* number of internal file descriptors */
1264 nfds += extra_nfds; /* add the externally provided ones */
1272 ++nfds;
1276 if(nfds > NUM_POLLS_ON_STACK) {
1277 /* 'nfds' is a 32 bit value and 'struct pollfd' is typically 8 bytes
1281 ufds = malloc(nfds * sizeof(struct pollfd));
1286 nfds = 0;
1297 struct pollfd *ufd = &ufds[nfds
[all...]
/third_party/NuttX/fs/vfs/
H A Dfs_poll.c274 static int query_fds(struct pollfd *fds, nfds_t nfds, poll_table *wait) in query_fds() argument
280 if ((nfds != 0 && fds == NULL) || wait == NULL || wait->wait == NULL) in query_fds()
286 for (i = 0; i < nfds; ++i) in query_fds()
376 * nfds - The number of entries in the list
389 * EINVAL - The nfds value exceeds a system limit.
396 int poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll() argument
420 count = query_fds(fds, nfds, &wait_table); in poll()
493 count = query_fds(fds, nfds, &wait_table); in poll()
/third_party/ltp/testcases/kernel/syscalls/sendto/
H A Dsendto01.c282 int nfds, cc, fd; in do_child() local
287 nfds = sfd + 1; in do_child()
295 if (select(nfds, &rfds, NULL, NULL, NULL) < 0 && errno != EINTR) in do_child()
305 nfds = MAX(nfds, newfd + 1); in do_child()
308 for (fd = 0; fd < nfds; ++fd) { in do_child()
/third_party/ltp/testcases/kernel/syscalls/recvfrom/
H A Drecvfrom01.c297 int nfds, cc, fd; in do_child() local
302 nfds = sfd + 1; in do_child()
310 if (select(nfds, &rfds, NULL, NULL, in do_child()
321 nfds = MAX(nfds, newfd + 1); in do_child()
326 for (fd = 0; fd < nfds; ++fd) in do_child()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
H A Drecvmsg01.c431 int nfds, fd; in do_child() local
437 nfds = MAX(sfd + 1, ufd + 1); in do_child()
445 if (select(nfds, &rfds, NULL, NULL, in do_child()
460 nfds = MAX(nfds, newfd + 1); in do_child()
472 nfds = MAX(nfds, newfd + 1); in do_child()
475 for (fd = 0; fd < nfds; ++fd) in do_child()
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/
H A Dfortify_ppoll_chk_test.cpp35 int nfds = 1; in HWTEST_F() local
39 int ret = __ppoll_chk(fds, nfds, timeout, sigMask, sizeof(struct pollfd)); in HWTEST_F()
/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()
/third_party/node/deps/cares/src/tools/
H A Dahost.c72 int nfds; in main() local
190 nfds = ares_fds(channel, &read_fds, &write_fds); in main()
191 if (nfds == 0) { in main()
198 res = select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
/third_party/backends/frontend/
H A Dsaned.c105 poll (struct pollfd *ufds, unsigned int nfds, int timeout);
108 poll (struct pollfd *ufds, unsigned int nfds, int timeout) in poll() argument
125 for (i = 0, fdp = ufds; i < nfds; i++, fdp++) in poll()
144 for (i = 0, fdp = ufds; i < nfds; i++, fdp++) in poll()
2463 saned_avahi (struct pollfd *fds, int nfds);
2476 saned_avahi (struct pollfd *fds, int nfds) argument
2498 for (fdp = fds; nfds > 0; nfds--, fdp++)
2836 do_bindings_family (int family, int *nfds, struct pollfd **fds, struct addrinfo *res) argument
2939 (*nfds)
2947 do_bindings(int *nfds, struct pollfd **fds) global() argument
3011 do_bindings(int *nfds, struct pollfd **fds) global() argument
3194 int nfds; global() local
[all...]
/third_party/cups-filters/backend/
H A Dparallel.c283 int nfds; /* Maximum file descriptor value + 1 */ in drain_output() local
296 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1; in drain_output()
314 if (select(nfds, &input, NULL, NULL, &timeout) < 0) in drain_output()
544 int nfds; /* Maximum file descriptor value + 1 */ in run_loop() local
599 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1; in run_loop()
634 if (select(nfds, &input, &output, NULL, &timeout) < 0) in run_loop()

Completed in 23 milliseconds

1234567