/external/curl/lib/ |
D | select.c | 386 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) in Curl_poll() argument 403 if(ufds) { in Curl_poll() 405 if(ufds[i].fd != CURL_SOCKET_BAD) { in Curl_poll() 433 r = poll(ufds, nfds, pending_ms); in Curl_poll() 454 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll() 456 if(ufds[i].revents & POLLHUP) in Curl_poll() 457 ufds[i].revents |= POLLIN; in Curl_poll() 458 if(ufds[i].revents & POLLERR) in Curl_poll() 459 ufds[i].revents |= (POLLIN|POLLOUT); in Curl_poll() 470 ufds[i].revents = 0; in Curl_poll() [all …]
|
D | multi.c | 805 struct pollfd *ufds = NULL; in curl_multi_wait() local 846 ufds = malloc(nfds * sizeof(struct pollfd)); in curl_multi_wait() 847 if(!ufds) in curl_multi_wait() 865 ufds[nfds].fd = sockbunch[i]; in curl_multi_wait() 866 ufds[nfds].events = POLLIN; in curl_multi_wait() 871 ufds[nfds].fd = sockbunch[i]; in curl_multi_wait() 872 ufds[nfds].events = POLLOUT; in curl_multi_wait() 887 ufds[nfds].fd = extra_fds[i].fd; in curl_multi_wait() 888 ufds[nfds].events = 0; in curl_multi_wait() 890 ufds[nfds].events |= POLLIN; in curl_multi_wait() [all …]
|
D | select.h | 82 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
|
/external/selinux/policycoreutils/mcstrans/src/ |
D | mcstransd.c | 267 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument 273 if ((*ufds)[ii].fd == -1) in add_pollfd() 278 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, in add_pollfd() 285 *ufds = tmp; in add_pollfd() 289 (*ufds)[ii].fd = connfd; in add_pollfd() 290 (*ufds)[ii].events = POLLIN|POLLPRI; in add_pollfd() 291 (*ufds)[ii].revents = 0; in add_pollfd() 297 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds() argument 303 if ((*ufds)[ii].fd != -1) { in adj_pollfds() 305 (*ufds)[jj] = (*ufds)[ii]; in adj_pollfds() [all …]
|
/external/valgrind/memcheck/tests/ |
D | badpoll.c | 12 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/avahi/avahi-sharp/ |
D | Client.cs | 45 internal delegate int PollCallback (IntPtr ufds, uint nfds, int timeout); in PollCallback() argument 185 private static extern int poll(IntPtr ufds, uint nfds, int timeout); in poll() argument 365 private int OnPollCallback (IntPtr ufds, uint nfds, int timeout) { in OnPollCallback() argument 367 int result = poll (ufds, nfds, timeout); in OnPollCallback()
|
/external/avahi/avahi-common/ |
D | thread-watch.c | 48 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { in poll_func() argument 56 r = poll(ufds, nfds, timeout); in poll_func()
|
D | simple-watch.h | 63 typedef int (*AvahiPollFunc)(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata);
|
D | simple-watch.c | 626 static int system_poll(struct pollfd *ufds, unsigned int nfds, int timeout, AVAHI_GCC_UNUSED void *… in system_poll() argument 627 return poll(ufds, nfds, timeout); in system_poll()
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-generic.c | 4095 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in PRE() local 4099 struct vki_pollfd *, ufds, unsigned int, nfds, long, timeout); in PRE() 4103 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); in PRE() 4105 (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); in PRE() 4107 (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in PRE() 4115 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in POST() local 4117 POST_MEM_WRITE( (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in POST()
|
D | syswrap-linux.c | 1299 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in PRE() local 1303 struct vki_pollfd *, ufds, unsigned int, nfds, in PRE() 1309 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); in PRE() 1311 (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); in PRE() 1313 (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in PRE() 1326 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; in POST() local 1328 POST_MEM_WRITE( (Addr)(&ufds[i].revents), sizeof(ufds[i].revents) ); in POST()
|
D | syswrap-solaris.c | 7301 struct vki_pollfd *ufds = (struct vki_pollfd *)ARG1; local 7310 vki_pollfd_t *u = &ufds[i]; 7327 vki_pollfd_t *ufds = (vki_pollfd_t*)ARG1; local 7329 POST_FIELD_WRITE(ufds[i].revents);
|
/external/avahi/avahi-compat-howl/ |
D | compat.c | 155 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { in poll_func() argument 162 ret = poll(ufds, nfds, timeout); in poll_func()
|
/external/avahi/avahi-compat-libdns_sd/ |
D | compat.c | 288 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { in poll_func() argument 297 ret = poll(ufds, nfds, timeout); in poll_func()
|
/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), \ 2667 void __sanitizer_syscall_pre_impl_poll(long ufds, long nfds, long timeout); 2668 void __sanitizer_syscall_post_impl_poll(long res, long ufds, long nfds,
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 1904 PRE_SYSCALL(poll)(void *ufds, long nfds, long timeout) {} 1906 POST_SYSCALL(poll)(long res, __sanitizer_pollfd *ufds, long nfds, 1909 if (ufds) POST_WRITE(ufds, nfds * sizeof(*ufds));
|
/external/valgrind/memcheck/tests/x86-linux/ |
D | scalar.stderr.exp | 1991 Syscall param poll(ufds) contains uninitialised byte(s)
|