Home
last modified time | relevance | path

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

/external/curl/lib/
Dselect.c391 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()
438 r = poll(ufds, nfds, pending_ms); in Curl_poll()
459 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
461 if(ufds[i].revents & POLLHUP) in Curl_poll()
462 ufds[i].revents |= POLLIN; in Curl_poll()
463 if(ufds[i].revents & POLLERR) in Curl_poll()
464 ufds[i].revents |= (POLLIN|POLLOUT); in Curl_poll()
475 ufds[i].revents = 0; in Curl_poll()
[all …]
Dmulti.c985 struct pollfd *ufds = NULL; in curl_multi_wait() local
1027 ufds = malloc(nfds * sizeof(struct pollfd)); in curl_multi_wait()
1028 if(!ufds) in curl_multi_wait()
1046 ufds[nfds].fd = sockbunch[i]; in curl_multi_wait()
1047 ufds[nfds].events = POLLIN; in curl_multi_wait()
1052 ufds[nfds].fd = sockbunch[i]; in curl_multi_wait()
1053 ufds[nfds].events = POLLOUT; in curl_multi_wait()
1068 ufds[nfds].fd = extra_fds[i].fd; in curl_multi_wait()
1069 ufds[nfds].events = 0; in curl_multi_wait()
1071 ufds[nfds].events |= POLLIN; in curl_multi_wait()
[all …]
Dselect.h83 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
/external/selinux/mcstrans/src/
Dmcstransd.c266 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument
272 if ((*ufds)[ii].fd == -1) in add_pollfd()
277 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, in add_pollfd()
284 *ufds = tmp; in add_pollfd()
288 (*ufds)[ii].fd = connfd; in add_pollfd()
289 (*ufds)[ii].events = POLLIN|POLLPRI; in add_pollfd()
290 (*ufds)[ii].revents = 0; in add_pollfd()
296 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds() argument
302 if ((*ufds)[ii].fd != -1) { in adj_pollfds()
304 (*ufds)[jj] = (*ufds)[ii]; in adj_pollfds()
[all …]
/external/valgrind/memcheck/tests/
Dbadpoll.c12 struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1); in main() local
13 assert(ufds); in main()
15 ufds[0].fd = 0; in main()
16 ufds[0].events = 0; in main()
18 ufds[1].events = 0; in main()
22 poll(ufds, 2, 200); in main()
/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()
549 poll_result = poll(self->ufds, self->ufd_len, timeout); in poll_poll()
567 while (!self->ufds[i].revents) { in poll_poll()
576 num = PyInt_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-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/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/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c4097 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in PRE() local
4101 struct vki_pollfd *, ufds, unsigned int, nfds, long, timeout); in PRE()
4105 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); in PRE()
4107 (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); in PRE()
4109 (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in PRE()
4117 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in POST() local
4119 POST_MEM_WRITE( (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in POST()
Dsyswrap-linux.c1776 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in PRE() local
1780 struct vki_pollfd *, ufds, unsigned int, nfds, in PRE()
1786 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); in PRE()
1788 (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); in PRE()
1790 (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in PRE()
1815 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in POST() local
1817 POST_MEM_WRITE( (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in POST()
Dsyswrap-solaris.c7795 struct vki_pollfd *ufds = (struct vki_pollfd *)ARG1; local
7804 vki_pollfd_t *u = &ufds[i];
7836 vki_pollfd_t *ufds = (vki_pollfd_t*)ARG1; local
7838 POST_FIELD_WRITE(ufds[i].revents);
/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));
/external/valgrind/memcheck/tests/x86-linux/
Dscalar.stderr.exp2098 Syscall param poll(ufds) contains uninitialised byte(s)