/external/curl/lib/ |
D | select.c | 392 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) in Curl_poll() argument 408 if(ufds) { in Curl_poll() 410 if(ufds[i].fd != CURL_SOCKET_BAD) { in Curl_poll() 439 r = poll(ufds, nfds, pending_ms); in Curl_poll() 460 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll() 462 if(ufds[i].revents & POLLHUP) in Curl_poll() 463 ufds[i].revents |= POLLIN; in Curl_poll() 464 if(ufds[i].revents & POLLERR) in Curl_poll() 465 ufds[i].revents |= (POLLIN|POLLOUT); in Curl_poll() 476 ufds[i].revents = 0; in Curl_poll() [all …]
|
D | multi.c | 1012 struct pollfd *ufds = &a_few_on_stack[0]; in Curl_multi_wait() local 1062 ufds = malloc(nfds * sizeof(struct pollfd)); in Curl_multi_wait() 1063 if(!ufds) in Curl_multi_wait() 1082 ufds[nfds].fd = sockbunch[i]; in Curl_multi_wait() 1083 ufds[nfds].events = POLLIN; in Curl_multi_wait() 1088 ufds[nfds].fd = sockbunch[i]; in Curl_multi_wait() 1089 ufds[nfds].events = POLLOUT; in Curl_multi_wait() 1104 ufds[nfds].fd = extra_fds[i].fd; in Curl_multi_wait() 1105 ufds[nfds].events = 0; in Curl_multi_wait() 1107 ufds[nfds].events |= POLLIN; in Curl_multi_wait() [all …]
|
D | select.h | 84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
|
/external/selinux/mcstrans/src/ |
D | mcstransd.c | 256 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument 262 if ((*ufds)[ii].fd == -1) in add_pollfd() 267 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, in add_pollfd() 274 *ufds = tmp; in add_pollfd() 278 (*ufds)[ii].fd = connfd; in add_pollfd() 279 (*ufds)[ii].events = POLLIN|POLLPRI; in add_pollfd() 280 (*ufds)[ii].revents = 0; in add_pollfd() 286 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds() argument 292 if ((*ufds)[ii].fd != -1) { in adj_pollfds() 294 (*ufds)[jj] = (*ufds)[ii]; in adj_pollfds() [all …]
|
/external/python/cpython2/Modules/ |
D | selectmodule.c | 319 struct pollfd *ufds; member 334 struct pollfd *old_ufds = self->ufds; in update_ufd_array() 337 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); in update_ufd_array() 338 if (self->ufds == NULL) { in update_ufd_array() 339 self->ufds = old_ufds; in update_ufd_array() 348 self->ufds[i].fd = (int)PyInt_AsLong(key); in update_ufd_array() 349 self->ufds[i].events = (short)(unsigned short)PyInt_AsLong(value); in update_ufd_array() 560 poll_result = poll(self->ufds, self->ufd_len, timeout); in poll_poll() 578 while (!self->ufds[i].revents) { in poll_poll() 587 num = PyInt_FromLong(self->ufds[i].fd); in poll_poll() [all …]
|
/external/python/cpython3/Modules/ |
D | selectmodule.c | 343 struct pollfd *ufds; member 358 struct pollfd *old_ufds = self->ufds; in update_ufd_array() 361 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); in update_ufd_array() 362 if (self->ufds == NULL) { in update_ufd_array() 363 self->ufds = old_ufds; in update_ufd_array() 372 self->ufds[i].fd = (int)PyLong_AsLong(key); in update_ufd_array() 373 self->ufds[i].events = (short)(unsigned short)PyLong_AsLong(value); in update_ufd_array() 590 poll_result = poll(self->ufds, self->ufd_len, (int)ms); in poll_poll() 629 while (!self->ufds[i].revents) { in poll_poll() 638 num = PyLong_FromLong(self->ufds[i].fd); in poll_poll() [all …]
|
/external/strace/tests-mx32/ |
D | ppoll.c | 45 sys_ppoll(const kernel_ulong_t ufds, in sys_ppoll() argument 51 long rc = syscall(__NR_ppoll, ufds, nfds, tsp, sigmask, sigsetsize); in sys_ppoll()
|
/external/strace/tests/ |
D | ppoll.c | 45 sys_ppoll(const kernel_ulong_t ufds, in sys_ppoll() argument 51 long rc = syscall(__NR_ppoll, ufds, nfds, tsp, sigmask, sigsetsize); in sys_ppoll()
|
/external/strace/tests-m32/ |
D | ppoll.c | 45 sys_ppoll(const kernel_ulong_t ufds, in sys_ppoll() argument 51 long rc = syscall(__NR_ppoll, ufds, nfds, tsp, sigmask, sigsetsize); in sys_ppoll()
|
/external/adhd/cras/src/server/ |
D | cras_alsa_io.c | 413 struct pollfd *ufds; in configure_dev() local 422 ufds = (struct pollfd *)malloc(sizeof(struct pollfd) * count); in configure_dev() 423 if (ufds == NULL) in configure_dev() 426 rc = snd_pcm_poll_descriptors(aio->handle, ufds, count); in configure_dev() 431 free(ufds); in configure_dev() 436 if (ufds[i].events & POLLIN) { in configure_dev() 437 aio->poll_fd = ufds[i].fd; in configure_dev() 441 free(ufds); in configure_dev()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1184 #define __sanitizer_syscall_pre_poll(ufds, nfds, timeout) \ argument 1185 __sanitizer_syscall_pre_impl_poll((long)(ufds), (long)(nfds), (long)(timeout)) 1186 #define __sanitizer_syscall_post_poll(res, ufds, nfds, timeout) \ argument 1187 __sanitizer_syscall_post_impl_poll(res, (long)(ufds), (long)(nfds), \ 2674 void __sanitizer_syscall_pre_impl_poll(long ufds, long nfds, long timeout); 2675 void __sanitizer_syscall_post_impl_poll(long res, long ufds, long nfds,
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 1900 PRE_SYSCALL(poll)(void *ufds, long nfds, long timeout) {} 1902 POST_SYSCALL(poll)(long res, __sanitizer_pollfd *ufds, long nfds, 1905 if (ufds) POST_WRITE(ufds, nfds * sizeof(*ufds));
|