/freebsd/usr.sbin/bluetooth/sdpd/ |
H A D | server.c | 195 FD_ZERO(&srv->fdset); in server_init() 198 FD_SET(unsock, &srv->fdset); in server_init() 209 FD_SET(l2sock, &srv->fdset); in server_init() 251 fd_set fdset; in server_do() local 257 memcpy(&fdset, &srv->fdset, sizeof(fdset)); in server_do() 258 n = select(srv->maxfd + 1, &fdset, NULL, NULL, NULL); in server_do() 264 srv->maxfd + 1, &fdset, strerror(errno), errno); in server_do() 271 if (!FD_ISSET(fd, &fdset)) in server_do() 310 assert(!FD_ISSET(cfd, &srv->fdset)); in server_accept_client() 389 FD_SET(cfd, &srv->fdset); in server_accept_client() [all …]
|
H A D | server.h | 66 fd_set fdset; /* current descriptor set */ member
|
/freebsd/tools/regression/capsicum/syscalls/ |
H A D | misc.c | 43 fd_set fdset; in pdwait() 45 FD_ZERO(&fdset); in pdwait() 46 FD_SET(pfd, &fdset); in pdwait() 48 return (select(pfd + 1, NULL, &fdset, NULL, NULL) == -1 ? -1 : 0); in pdwait() 44 fd_set fdset; pdwait() local
|
/freebsd/usr.sbin/ppp/ |
H A D | server.c | 73 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()
|
H A D | ether.c | 395 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()
|
H A D | netgraph.c | 379 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()
|
H A D | datalink.c | 421 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 …]
|
H A D | bundle.c | 511 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 …]
|
H A D | prompt.c | 164 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()
|
H A D | exec.c | 230 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()
|
H A D | chat.c | 330 chat_IsSet(struct fdescriptor *d, const fd_set *fdset) in chat_IsSet() argument 333 return c->argptr && physical_IsSet(&c->physical->desc, fdset); in chat_IsSet() 380 const fd_set *fdset __unused) in chat_Read() 495 const fd_set *fdset __unused) in chat_Write()
|
H A D | chap.c | 413 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()
|
/freebsd/crypto/openssl/util/perl/TLSProxy/ |
H A D | Proxy.pm | 359 my $fdset = IO::Select->new($self->{proxy_sock}); 360 if (!$fdset->can_read(60)) { 377 $fdset = IO::Select->new($server_sock, $client_sock); 382 while($fdset->count && $ctr < 10) { 389 if (!(@ready = $fdset->can_read(1))) { 401 $fdset->remove($server_sock); 411 $fdset->remove($client_sock);
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | neigh.c | 303 fd_set fdset; in process_get_neigh_mac() local 350 FD_ZERO(&fdset); in process_get_neigh_mac() 351 FD_SET(fd, &fdset); in process_get_neigh_mac() 352 FD_SET(timer_fd, &fdset); in process_get_neigh_mac() 355 ret = select(nfds, &fdset, NULL, NULL, NULL); in process_get_neigh_mac() 359 if (FD_ISSET(fd, &fdset)) { in process_get_neigh_mac() 369 } else if (FD_ISSET(timer_fd, &fdset) && in process_get_neigh_mac() 376 if (FD_ISSET(timer_fd, &fdset)) { in process_get_neigh_mac()
|
/freebsd/usr.sbin/mld6query/ |
H A D | mld6.c | 96 fd_set fdset; in main() local 183 FD_ZERO(&fdset); in main() 187 FD_SET(s, &fdset); in main() 188 if ((i = select(s + 1, &fdset, NULL, NULL, NULL)) < 0) in main()
|
/freebsd/usr.sbin/rrenumd/ |
H A D | rrenumd.c | 528 fd_set fdset; in main() local 615 FD_ZERO(&fdset); in main() 617 FD_SET(s6, &fdset); in main() 622 FD_SET(s4, &fdset); in main() 634 struct fd_set select_fd = fdset; /* reinitialize */ in main()
|
/freebsd/crypto/heimdal/appl/rsh/ |
H A D | rsh.c | 491 fd_set fdset; in proto() local 496 FD_ZERO(&fdset); in proto() 497 FD_SET(errsock, &fdset); in proto() 498 FD_SET(s, &fdset); in proto() 500 ret = select (max(errsock, s) + 1, &fdset, NULL, NULL, NULL); in proto() 508 if (FD_ISSET(errsock, &fdset)) { in proto() 524 if (FD_ISSET(s, &fdset)) { in proto()
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_script.c | 198 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()
|
/freebsd/sbin/hastd/ |
H A D | proto_tcp.c | 345 fd_set fdset; in tcp_connect_wait() local 358 FD_ZERO(&fdset); in tcp_connect_wait() 359 FD_SET(tctx->tc_fd, &fdset); in tcp_connect_wait() 360 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv); in tcp_connect_wait() 372 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset)); in tcp_connect_wait()
|
/freebsd/usr.sbin/powerd/ |
H A D | powerd.c | 575 fd_set fdset; 770 FD_ZERO(&fdset); 772 FD_SET(devd_pipe, &fdset); 775 FD_SET(ss.fd, &fdset); 788 rfds = select(nfds, &fdset, NULL, &fdset, &timeout); 583 fd_set fdset; global() local
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | proto_tcp.c | 343 fd_set fdset; in tcp_connect_wait() local 357 FD_ZERO(&fdset); in tcp_connect_wait() 358 FD_SET(tctx->tc_fd, &fdset); in tcp_connect_wait() 359 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv); in tcp_connect_wait() 371 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset)); in tcp_connect_wait()
|
H A D | proto_tls.c | 115 fd_set fdset; in wait_for_fd() local 121 FD_ZERO(&fdset); in wait_for_fd() 122 FD_SET(fd, &fdset); in wait_for_fd() 127 ret = select(fd + 1, NULL, &fdset, NULL, in wait_for_fd() 139 PJDLOG_ASSERT(FD_ISSET(fd, &fdset)); in wait_for_fd()
|
/freebsd/usr.sbin/inetd/ |
H A D | builtins.c | 356 fd_set fdset; in ident_stream() local 473 FD_ZERO(&fdset); in ident_stream() 484 FD_SET(s, &fdset); in ident_stream() 485 if (select(s + 1, &fdset, NULL, NULL, &tv) == -1) in ident_stream()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | send_to_kdc.c | 56 fd_set fdset; in recv_loop() local 69 FD_ZERO(&fdset); in recv_loop() 70 FD_SET(fd, &fdset); in recv_loop() 73 ret = select (fd + 1, &fdset, NULL, NULL, &timeout); in recv_loop()
|
H A D | changepw.c | 584 fd_set fdset; in change_password_loop() local 614 FD_ZERO(&fdset); in change_password_loop() 615 FD_SET(sock, &fdset); in change_password_loop() 619 ret = select (sock + 1, &fdset, NULL, NULL, &tv); in change_password_loop()
|