Home
last modified time | relevance | path

Searched refs:ufds (Results 1 – 12 of 12) sorted by relevance

/external/curl/lib/
Dselect.c392 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 …]
Dmulti.c1012 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 …]
Dselect.h84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
/external/selinux/mcstrans/src/
Dmcstransd.c256 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/
Dselectmodule.c319 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/
Dselectmodule.c343 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/
Dppoll.c45 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/
Dppoll.c45 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/
Dppoll.c45 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/
Dcras_alsa_io.c413 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/
Dlinux_syscall_hooks.h1184 #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/
Dsanitizer_common_syscalls.inc1900 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));