Home
last modified time | relevance | path

Searched refs:ufds (Results 1 - 8 of 8) sorted by relevance

/third_party/curl/lib/
H A Dselect.c272 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms) in Curl_poll() argument
286 if(ufds) { in Curl_poll()
288 if(ufds[i].fd != CURL_SOCKET_BAD) { in Curl_poll()
317 r = poll(ufds, nfds, pending_ms); in Curl_poll()
326 if(ufds[i].fd == CURL_SOCKET_BAD) in Curl_poll()
328 if(ufds[i].revents & POLLHUP) in Curl_poll()
329 ufds[i].revents |= POLLIN; in Curl_poll()
330 if(ufds[i].revents & POLLERR) in Curl_poll()
331 ufds[i].revents |= POLLIN|POLLOUT; in Curl_poll()
342 ufds[ in Curl_poll()
[all...]
H A Dmulti.c1230 struct pollfd *ufds = &a_few_on_stack[0]; local
1281 ufds = malloc(nfds * sizeof(struct pollfd));
1282 if(!ufds)
1297 struct pollfd *ufd = &ufds[nfds++];
1319 free(ufds);
1341 free(ufds);
1345 ufds[nfds].fd = extra_fds[i].fd;
1346 ufds[nfds].events = 0;
1348 ufds[nfds].events |= POLLIN;
1350 ufds[nfd
[all...]
H A Dselect.h84 int Curl_poll(struct pollfd ufds[], unsigned int nfds, timediff_t timeout_ms);
/third_party/alsa-lib/test/
H A Dpcm.c287 static int wait_for_poll(snd_pcm_t *handle, struct pollfd *ufds, unsigned int count) in wait_for_poll() argument
292 poll(ufds, count, -1); in wait_for_poll()
293 snd_pcm_poll_descriptors_revents(handle, ufds, count, &revents); in wait_for_poll()
305 struct pollfd *ufds; in write_and_poll_loop() local
316 ufds = malloc(sizeof(struct pollfd) * count); in write_and_poll_loop()
317 if (ufds == NULL) { in write_and_poll_loop()
321 if ((err = snd_pcm_poll_descriptors(handle, ufds, count)) < 0) { in write_and_poll_loop()
329 err = wait_for_poll(handle, ufds, count); in write_and_poll_loop()
367 err = wait_for_poll(handle, ufds, count); in write_and_poll_loop()
/third_party/python/Modules/
H A Dselectmodule.c417 struct pollfd *ufds; member
430 struct pollfd *old_ufds = self->ufds; in update_ufd_array()
433 PyMem_RESIZE(self->ufds, struct pollfd, self->ufd_len); in update_ufd_array()
434 if (self->ufds == NULL) { in update_ufd_array()
435 self->ufds = old_ufds; in update_ufd_array()
444 self->ufds[i].fd = (int)PyLong_AsLong(key); in update_ufd_array()
445 self->ufds[i].events = (short)(unsigned short)PyLong_AsLong(value); in update_ufd_array()
654 poll_result = poll(self->ufds, self->ufd_len, (int)ms); in select_poll_poll_impl()
693 while (!self->ufds[i].revents) { in select_poll_poll_impl()
702 num = PyLong_FromLong(self->ufds[ in select_poll_poll_impl()
[all...]
/third_party/pulseaudio/src/pulse/
H A Dmainloop.h127 typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
H A Dthread-mainloop.c60 static int poll_func(struct pollfd *ufds, unsigned long nfds, int timeout, void *userdata) { in poll_func() argument
70 r = pa_poll(ufds, nfds, timeout); in poll_func()
/third_party/backends/frontend/
H A Dsaned.c105 poll (struct pollfd *ufds, unsigned int nfds, int timeout);
108 poll (struct pollfd *ufds, unsigned int nfds, int timeout) in poll() argument
125 for (i = 0, fdp = ufds; i < nfds; i++, fdp++) in poll()
144 for (i = 0, fdp = ufds; i < nfds; i++, fdp++) in poll()

Completed in 12 milliseconds