Home
last modified time | relevance | path

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

/dragonfly/usr.sbin/sdpd/
H A Dserver.c236 FD_ZERO(&srv->fdset); in server_init()
239 FD_SET(unsock, &srv->fdset); in server_init()
250 FD_SET(l2sock, &srv->fdset); in server_init()
292 fd_set fdset; in server_do() local
298 memcpy(&fdset, &srv->fdset, sizeof(fdset)); in server_do()
312 if (!FD_ISSET(fd, &fdset)) in server_do()
351 assert(!FD_ISSET(cfd, &srv->fdset)); in server_accept_client()
404 FD_SET(cfd, &srv->fdset); in server_accept_client()
436 assert(FD_ISSET(fd, &srv->fdset)); in server_process_request()
617 assert(FD_ISSET(fd, &srv->fdset)); in server_close_fd()
[all …]
H A Dserver.h96 fd_set fdset; /* current descriptor set */ member
/dragonfly/usr.sbin/ppp/
H A Dserver.c74 server_IsSet(struct fdescriptor *d, const fd_set *fdset) in server_IsSet() argument
79 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) in server_IsSet()
83 if (descriptor_IsSet(&p->desc, fdset)) in server_IsSet()
90 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in server_Read() argument
103 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) { in server_Read()
188 if (descriptor_IsSet(&p->desc, fdset)) { in server_Read()
189 descriptor_Read(&p->desc, bundle, fdset); in server_Read()
196 server_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __… in server_Write()
H A Dether.c402 ether_IsSet(struct fdescriptor *d, const fd_set *fdset) in ether_IsSet() argument
408 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ether_IsSet()
409 result += physical_IsSet(d, fdset); in ether_IsSet()
416 const fd_set *fdset) in ether_DescriptorRead() argument
421 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) { in ether_DescriptorRead()
430 if (physical_IsSet(d, fdset)) in ether_DescriptorRead()
431 physical_DescriptorRead(d, bundle, fdset); in ether_DescriptorRead()
H A 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()
528 return FD_ISSET(bundle->dev.fd, fdset); in bundle_IsSet()
533 const fd_set *fdset) in bundle_DescriptorRead() argument
543 if (descriptor_IsSet(&dl->desc, fdset)) in bundle_DescriptorRead()
544 descriptor_Read(&dl->desc, bundle, fdset); in bundle_DescriptorRead()
547 if (descriptor_IsSet(&bundle->radius.desc, fdset)) in bundle_DescriptorRead()
551 if (FD_ISSET(bundle->dev.fd, fdset)) { in bundle_DescriptorRead()
645 const fd_set *fdset) in bundle_DescriptorWrite() argument
[all …]
H A Dnetgraph.c386 ng_IsSet(struct fdescriptor *d, const fd_set *fdset) in ng_IsSet() argument
392 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ng_IsSet()
393 result += physical_IsSet(d, fdset); in ng_IsSet()
400 const fd_set *fdset) in ng_DescriptorRead() argument
405 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) in ng_DescriptorRead()
408 if (physical_IsSet(d, fdset)) in ng_DescriptorRead()
409 physical_DescriptorRead(d, bundle, fdset); in ng_DescriptorRead()
H A Ddatalink.c420 datalink_IsSet(struct fdescriptor *d, const fd_set *fdset) in datalink_IsSet() argument
433 return descriptor_IsSet(&dl->chat.desc, fdset); in datalink_IsSet()
440 return descriptor_IsSet(&dl->chap.desc, fdset) ? 1 : in datalink_IsSet()
441 descriptor_IsSet(&dl->physical->desc, fdset); in datalink_IsSet()
460 descriptor_Read(&dl->chat.desc, bundle, fdset); in datalink_Read()
468 if (descriptor_IsSet(&dl->chap.desc, fdset)) in datalink_Read()
469 descriptor_Read(&dl->chap.desc, bundle, fdset); in datalink_Read()
470 if (descriptor_IsSet(&dl->physical->desc, fdset)) in datalink_Read()
478 const fd_set *fdset) in datalink_Write() argument
503 if (descriptor_IsSet(&dl->chap.desc, fdset)) in datalink_Write()
[all …]
H A 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()
183 prompt_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset __unused) in prompt_Read()
304 prompt_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __… in prompt_Write()
H A 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()
H A 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()
H A Dradius.c562 radius_Read(struct fdescriptor *d, struct bundle *bundle __unused, const fd_set *fdset __unused) in radius_Read()
590 radius_IsSet(struct fdescriptor *d, const fd_set *fdset) in radius_IsSet() argument
594 return r && r->cx.fd != -1 && FD_ISSET(r->cx.fd, fdset); in radius_IsSet()
601 radius_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, const fd_set *fdset __… in radius_Write()
H A 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()
H A Dphysical.c385 const fd_set *fdset __unused) in physical_DescriptorWrite()
517 const fd_set *fdset __unused) in physical_DescriptorRead()
885 physical_IsSet(struct fdescriptor *d, const fd_set *fdset) in physical_IsSet() argument
888 return p->fd >= 0 && FD_ISSET(p->fd, fdset); in physical_IsSet()
/dragonfly/usr.sbin/mld6query/
H A Dmld6query.c77 fd_set fdset; in main() local
143 FD_ZERO(&fdset); in main()
145 FD_SET(s, &fdset); in main()
146 if ((i = select(s + 1, &fdset, NULL, NULL, NULL)) < 0) in main()
/dragonfly/usr.sbin/rrenumd/
H A Drrenumd.c417 fd_set fdset; in main() local
470 FD_ZERO(&fdset); in main()
472 FD_SET(s6, &fdset); in main()
477 FD_SET(s4, &fdset); in main()
489 struct fd_set select_fd = fdset; /* reinitialize */ in main()
/dragonfly/contrib/nvi2/ex/
H A Dex_script.c198 fd_set fdset; in sscr_getprompt() local
207 FD_ZERO(&fdset); in sscr_getprompt()
215 FD_SET(sc->sh_master, &fdset); in sscr_getprompt()
216 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) { in sscr_getprompt()
262 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) { in sscr_getprompt()
/dragonfly/usr.sbin/rtsold/
H A Drtsold.c115 struct fd_set fdset; in main() local
270 FD_ZERO(&fdset); in main()
271 FD_SET(s, &fdset); in main()
272 FD_SET(rtsock, &fdset); in main()
275 struct fd_set select_fd = fdset; in main()
/dragonfly/usr.sbin/inetd/
H A Dbuiltins.c344 fd_set fdset; in ident_stream() local
461 FD_ZERO(&fdset); in ident_stream()
472 FD_SET(s, &fdset); in ident_stream()
473 if (select(s + 1, &fdset, NULL, NULL, &tv) == -1) in ident_stream()
/dragonfly/sys/dev/virtual/vkernel/net/
H A Dif_vke.c631 fd_set fdset; in vke_rx_thread() local
643 FD_ZERO(&fdset); in vke_rx_thread()
686 FD_SET(sc->sc_fd, &fdset); in vke_rx_thread()
687 r = select(sc->sc_fd + 1, &fdset, NULL, NULL, &tv); in vke_rx_thread()
/dragonfly/contrib/ncurses/ncurses/tty/
H A Dtty_update.c404 fd_set fdset; in check_pending()
410 FD_ZERO(&fdset); in check_pending()
411 FD_SET(SP_PARM->_checkfd, &fdset); in check_pending()
412 if (select(SP_PARM->_checkfd + 1, &fdset, NULL, NULL, &ktimeout) != 0) { in check_pending()