/external/valgrind/memcheck/tests/ |
H A D | badpoll.c | 12 struct pollfd* ufds = malloc(2 * sizeof(struct pollfd) - 1); local 13 assert(ufds); 15 ufds[0].fd = 0; 16 ufds[0].events = 0; 17 //ufds[1].fd = 0; // leave undefined so we get another error. 18 ufds[1].events = 0; 21 // but not the undefined value error due to ufds[1].fd not being defined. 22 poll(ufds, 2, 200);
|
/external/avahi/avahi-common/ |
H A D | thread-watch.c | 48 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { argument 56 r = poll(ufds, nfds, timeout);
|
H A D | simple-watch.c | 626 static int system_poll(struct pollfd *ufds, unsigned int nfds, int timeout, AVAHI_GCC_UNUSED void *userdata) { argument 627 return poll(ufds, nfds, timeout);
|
/external/curl/lib/ |
H A D | select.c | 386 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) argument 403 if(ufds) { 405 if(ufds[i].fd != CURL_SOCKET_BAD) { 433 r = poll(ufds, nfds, pending_ms); 454 if(ufds[i].fd == CURL_SOCKET_BAD) 456 if(ufds[i].revents & POLLHUP) 457 ufds[i].revents |= POLLIN; 458 if(ufds[i].revents & POLLERR) 459 ufds[i].revents |= (POLLIN|POLLOUT); 470 ufds[ [all...] |
H A D | multi.c | 970 struct pollfd *ufds = NULL; local 1012 ufds = malloc(nfds * sizeof(struct pollfd)); 1013 if(!ufds) 1031 ufds[nfds].fd = sockbunch[i]; 1032 ufds[nfds].events = POLLIN; 1037 ufds[nfds].fd = sockbunch[i]; 1038 ufds[nfds].events = POLLOUT; 1053 ufds[nfds].fd = extra_fds[i].fd; 1054 ufds[nfds].events = 0; 1056 ufds[nfd [all...] |
/external/selinux/policycoreutils/mcstrans/src/ |
H A D | mcstransd.c | 267 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) argument 273 if ((*ufds)[ii].fd == -1) 278 struct pollfd *tmp = (struct pollfd *)realloc(*ufds, 285 *ufds = tmp; 289 (*ufds)[ii].fd = connfd; 290 (*ufds)[ii].events = POLLIN|POLLPRI; 291 (*ufds)[ii].revents = 0; 297 adj_pollfds(struct pollfd **ufds, int *nfds) argument 303 if ((*ufds)[ii].fd != -1) { 305 (*ufds)[j 313 process_events(struct pollfd **ufds, int *nfds) argument 392 struct pollfd *ufds = (struct pollfd *)malloc(sizeof(struct pollfd)); local [all...] |
/external/avahi/avahi-sharp/ |
H A D | Client.cs | 45 internal delegate int PollCallback (IntPtr ufds, uint nfds, int timeout); argument 185 private static extern int poll(IntPtr ufds, uint nfds, int timeout); argument 365 private int OnPollCallback (IntPtr ufds, uint nfds, int timeout) { argument 367 int result = poll (ufds, nfds, timeout);
|
/external/avahi/avahi-compat-howl/ |
H A D | compat.c | 155 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { argument 162 ret = poll(ufds, nfds, timeout);
|
/external/avahi/avahi-compat-libdns_sd/ |
H A D | compat.c | 288 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { argument 297 ret = poll(ufds, nfds, timeout);
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-linux.c | 1299 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local 1303 struct vki_pollfd *, ufds, unsigned int, nfds, 1308 PRE_MEM_READ( "ppoll(ufds.fd)", 1309 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); 1310 PRE_MEM_READ( "ppoll(ufds.events)", 1311 (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); 1312 PRE_MEM_WRITE( "ppoll(ufds.revents)", 1313 (Addr)(&ufds[ 1326 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local [all...] |
H A D | syswrap-generic.c | 4092 int poll(struct pollfd *ufds, unsigned int nfds, int timeout) 4095 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local 4099 struct vki_pollfd *, ufds, unsigned int, nfds, long, timeout); 4102 PRE_MEM_READ( "poll(ufds.fd)", 4103 (Addr)(&ufds[i].fd), sizeof(ufds[i].fd) ); 4104 PRE_MEM_READ( "poll(ufds.events)", 4105 (Addr)(&ufds[i].events), sizeof(ufds[i].events) ); 4106 PRE_MEM_WRITE( "poll(ufds 4115 struct vki_pollfd* ufds = (struct vki_pollfd *)ARG1; local [all...] |
H A D | syswrap-solaris.c | 7301 struct vki_pollfd *ufds = (struct vki_pollfd *)ARG1; local 7310 vki_pollfd_t *u = &ufds[i]; 7311 PRE_FIELD_READ("poll(ufds.fd)", u->fd); 7313 PRE_FIELD_READ("poll(ufds.events)", u->events); 7314 PRE_FIELD_WRITE("poll(ufds.revents)", u->revents); 7327 vki_pollfd_t *ufds = (vki_pollfd_t*)ARG1; local 7329 POST_FIELD_WRITE(ufds[i].revents);
|