Home
last modified time | relevance | path

Searched refs:fdset (Results 1 – 25 of 27) sorted by relevance

12

/external/kernel-headers/original/linux/
Dpoll.h88 int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in get_fd_set() argument
92 return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0; in get_fd_set()
94 memset(fdset, 0, nr); in get_fd_set()
99 set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset) in set_fd_set() argument
102 return __copy_to_user(ufdset, fdset, FDS_BYTES(nr)); in set_fd_set()
107 void zero_fd_set(unsigned long nr, unsigned long *fdset) in zero_fd_set() argument
109 memset(fdset, 0, FDS_BYTES(nr)); in zero_fd_set()
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/
DSDL_gsevents.c404 fd_set fdset; in set_imps2_mode() local
415 FD_ZERO(&fdset); in set_imps2_mode()
416 FD_SET(fd, &fdset); in set_imps2_mode()
419 while ( select(fd+1, &fdset, 0, 0, &tv) > 0 ) { in set_imps2_mode()
440 fd_set fdset; in detect_imps2() local
444 FD_ZERO(&fdset); in detect_imps2()
445 FD_SET(fd, &fdset); in detect_imps2()
448 while ( select(fd+1, &fdset, 0, 0, &tv) > 0 ) { in detect_imps2()
459 FD_ZERO(&fdset); in detect_imps2()
460 FD_SET(fd, &fdset); in detect_imps2()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
DSDL_fbevents.c464 fd_set fdset; in set_imps2_mode() local
477 FD_ZERO(&fdset); in set_imps2_mode()
478 FD_SET(fd, &fdset); in set_imps2_mode()
481 while ( select(fd+1, &fdset, 0, 0, &tv) > 0 ) { in set_imps2_mode()
504 fd_set fdset; in detect_imps2() local
508 FD_ZERO(&fdset); in detect_imps2()
509 FD_SET(fd, &fdset); in detect_imps2()
512 while ( select(fd+1, &fdset, 0, 0, &tv) > 0 ) { in detect_imps2()
525 FD_ZERO(&fdset); in detect_imps2()
526 FD_SET(fd, &fdset); in detect_imps2()
[all …]
/external/libppp/src/
Dserver.c73 server_IsSet(struct fdescriptor *d, const fd_set *fdset) in server_IsSet() argument
78 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) in server_IsSet()
82 if (descriptor_IsSet(&p->desc, fdset)) in server_IsSet()
89 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in server_Read() argument
102 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) { in server_Read()
187 if (descriptor_IsSet(&p->desc, fdset)) { in server_Read()
188 descriptor_Read(&p->desc, bundle, fdset); in server_Read()
196 const fd_set *fdset __unused) in server_Write()
Dether.c395 ether_IsSet(struct fdescriptor *d, const fd_set *fdset) in ether_IsSet() argument
401 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ether_IsSet()
402 result += physical_IsSet(d, fdset); in ether_IsSet()
409 const fd_set *fdset) in ether_DescriptorRead() argument
414 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) { in ether_DescriptorRead()
423 if (physical_IsSet(d, fdset)) in ether_DescriptorRead()
424 physical_DescriptorRead(d, bundle, fdset); in ether_DescriptorRead()
Dnetgraph.c379 ng_IsSet(struct fdescriptor *d, const fd_set *fdset) in ng_IsSet() argument
385 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ng_IsSet()
386 result += physical_IsSet(d, fdset); in ng_IsSet()
393 const fd_set *fdset) in ng_DescriptorRead() argument
398 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) in ng_DescriptorRead()
401 if (physical_IsSet(d, fdset)) in ng_DescriptorRead()
402 physical_DescriptorRead(d, bundle, fdset); in ng_DescriptorRead()
Ddatalink.c421 datalink_IsSet(struct fdescriptor *d, const fd_set *fdset) in datalink_IsSet() argument
434 return descriptor_IsSet(&dl->chat.desc, fdset); in datalink_IsSet()
441 return descriptor_IsSet(&dl->chap.desc, fdset) ? 1 : in datalink_IsSet()
442 descriptor_IsSet(&dl->physical->desc, fdset); in datalink_IsSet()
448 datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in datalink_Read() argument
461 descriptor_Read(&dl->chat.desc, bundle, fdset); in datalink_Read()
469 if (descriptor_IsSet(&dl->chap.desc, fdset)) in datalink_Read()
470 descriptor_Read(&dl->chap.desc, bundle, fdset); in datalink_Read()
471 if (descriptor_IsSet(&dl->physical->desc, fdset)) in datalink_Read()
472 descriptor_Read(&dl->physical->desc, bundle, fdset); in datalink_Read()
[all …]
Dbundle.c511 bundle_IsSet(struct fdescriptor *d, const fd_set *fdset) in bundle_IsSet() argument
517 if (descriptor_IsSet(&dl->desc, fdset)) in bundle_IsSet()
521 if (descriptor_IsSet(&bundle->radius.desc, fdset)) in bundle_IsSet()
525 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) in bundle_IsSet()
528 return FD_ISSET(bundle->dev.fd, fdset); in bundle_IsSet()
533 const fd_set *fdset) in bundle_DescriptorRead() argument
539 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) in bundle_DescriptorRead()
540 descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset); in bundle_DescriptorRead()
543 if (descriptor_IsSet(&dl->desc, fdset)) in bundle_DescriptorRead()
544 descriptor_Read(&dl->desc, bundle, fdset); in bundle_DescriptorRead()
[all …]
Dprompt.c164 prompt_IsSet(struct fdescriptor *d, const fd_set *fdset) in prompt_IsSet() argument
167 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset); in prompt_IsSet()
184 const fd_set *fdset __unused) in prompt_Read()
306 const fd_set *fdset __unused) in prompt_Write()
Dexec.c230 exec_IsSet(struct fdescriptor *d, const fd_set *fdset) in exec_IsSet() argument
234 int result = dev->fd_out >= 0 && FD_ISSET(dev->fd_out, fdset); in exec_IsSet()
235 result += physical_IsSet(d, fdset); in exec_IsSet()
Dchat.c325 chat_IsSet(struct fdescriptor *d, const fd_set *fdset) in chat_IsSet() argument
328 return c->argptr && physical_IsSet(&c->physical->desc, fdset); in chat_IsSet()
375 const fd_set *fdset __unused) in chat_Read()
490 const fd_set *fdset __unused) in chat_Write()
Dchap.c413 chap_IsSet(struct fdescriptor *d, const fd_set *fdset) in chap_IsSet() argument
417 return chap && chap->child.fd != -1 && FD_ISSET(chap->child.fd, fdset); in chap_IsSet()
422 const fd_set *fdset __unused) in chap_Read()
479 const fd_set *fdset __unused) in chap_Write()
Dmp.c1071 mpserver_IsSet(struct fdescriptor *d, const fd_set *fdset) in mpserver_IsSet() argument
1074 return s->fd >= 0 && FD_ISSET(s->fd, fdset); in mpserver_IsSet()
1079 const fd_set *fdset __unused) in mpserver_Read()
1088 const fd_set *fdset __unused) in mpserver_Write()
Dradius.c686 const fd_set *fdset __unused) in radius_Read()
734 radius_IsSet(struct fdescriptor *d, const fd_set *fdset) in radius_IsSet() argument
738 return r && r->cx.fd != -1 && FD_ISSET(r->cx.fd, fdset); in radius_IsSet()
746 const fd_set *fdset __unused) in radius_Write()
Dphysical.c411 const fd_set *fdset __unused) in physical_DescriptorWrite()
543 const fd_set *fdset __unused) in physical_DescriptorRead()
914 physical_IsSet(struct fdescriptor *d, const fd_set *fdset) in physical_IsSet() argument
917 return p->fd >= 0 && FD_ISSET(p->fd, fdset); in physical_IsSet()
/external/openssh/
Dsshconnect.c246 fd_set *fdset; in timeout_connect() local
270 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), in timeout_connect()
272 FD_SET(sockfd, fdset); in timeout_connect()
276 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); in timeout_connect()
311 xfree(fdset); in timeout_connect()
448 fd_set *fdset; in ssh_exchange_identification() local
451 fdset = xcalloc(1, fdsetsz); in ssh_exchange_identification()
460 FD_SET(connection_in, fdset); in ssh_exchange_identification()
461 rc = select(connection_in + 1, fdset, NULL, in ssh_exchange_identification()
462 fdset, &t_remaining); in ssh_exchange_identification()
[all …]
Dsshd.c1095 fd_set *fdset; local
1104 fdset = NULL;
1121 if (fdset != NULL)
1122 xfree(fdset);
1123 fdset = (fd_set *)xcalloc(howmany(maxfd + 1, NFDBITS),
1127 FD_SET(listen_socks[i], fdset);
1130 FD_SET(startup_pipes[i], fdset);
1133 ret = select(maxfd+1, fdset, NULL, NULL, NULL);
1153 FD_ISSET(startup_pipes[i], fdset)) {
1165 if (!FD_ISSET(listen_socks[i], fdset))
/external/qemu/distrib/sdl-1.2.15/src/audio/bsd/
DSDL_bsdaudio.c157 fd_set fdset; in OBSD_WaitAudio() local
160 FD_ZERO(&fdset); in OBSD_WaitAudio()
161 FD_SET(audio_fd, &fdset); in OBSD_WaitAudio()
167 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) { in OBSD_WaitAudio()
/external/qemu/distrib/sdl-1.2.15/src/audio/sun/
DSDL_sunaudio.c154 fd_set fdset; in DSP_WaitAudio()
156 FD_ZERO(&fdset); in DSP_WaitAudio()
157 FD_SET(audio_fd, &fdset); in DSP_WaitAudio()
158 select(audio_fd+1, NULL, &fdset, NULL, NULL); in DSP_WaitAudio()
/external/qemu/distrib/sdl-1.2.15/src/audio/paudio/
DSDL_paudio.c127 fd_set fdset; in Paud_WaitAudio() local
143 FD_ZERO(&fdset); in Paud_WaitAudio()
144 FD_SET(audio_fd, &fdset); in Paud_WaitAudio()
168 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) { in Paud_WaitAudio()
/external/qemu/distrib/sdl-1.2.15/src/audio/dma/
DSDL_dmaaudio.c140 fd_set fdset; in DMA_WaitAudio() local
166 FD_ZERO(&fdset); in DMA_WaitAudio()
167 FD_SET(audio_fd, &fdset); in DMA_WaitAudio()
173 if ( select(audio_fd+1, NULL, &fdset, NULL, &timeout) <= 0 ) { in DMA_WaitAudio()
/external/qemu/slirp/
Dmisc.c762 fd_set fdset; in u_sleep() local
764 FD_ZERO(&fdset); in u_sleep()
769 select(0, &fdset, &fdset, &fdset, &t); in u_sleep()
/external/qemu/slirp-android/
Dmisc.c727 fd_set fdset;
729 FD_ZERO(&fdset);
734 select(0, &fdset, &fdset, &fdset, &t);
/external/qemu/distrib/sdl-1.2.15/src/video/ipod/
DSDL_ipodvideo.c471 fd_set fdset; in iPod_PumpEvents() local
479 FD_ZERO (&fdset); in iPod_PumpEvents()
481 FD_SET (kbfd, &fdset); in iPod_PumpEvents()
485 if (select (max_fd + 1, &fdset, 0, 0, &zero) > 0) { in iPod_PumpEvents()
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11events.c918 fd_set fdset; in X11_Pending() local
921 FD_ZERO(&fdset); in X11_Pending()
922 FD_SET(x11_fd, &fdset); in X11_Pending()
923 if ( select(x11_fd+1, &fdset, NULL, NULL, &zero_time) == 1 ) { in X11_Pending()

12