Home
last modified time | relevance | path

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

12

/freebsd-12.1/usr.sbin/bluetooth/sdpd/
H A Dserver.c196 FD_ZERO(&srv->fdset); in server_init()
199 FD_SET(unsock, &srv->fdset); in server_init()
210 FD_SET(l2sock, &srv->fdset); in server_init()
252 fd_set fdset; in server_do() local
258 memcpy(&fdset, &srv->fdset, sizeof(fdset)); in server_do()
272 if (!FD_ISSET(fd, &fdset)) in server_do()
311 assert(!FD_ISSET(cfd, &srv->fdset)); in server_accept_client()
390 FD_SET(cfd, &srv->fdset); in server_accept_client()
416 assert(FD_ISSET(fd, &srv->fdset)); in server_process_request()
569 assert(FD_ISSET(fd, &srv->fdset)); in server_close_fd()
[all …]
H A Dserver.h67 fd_set fdset; /* current descriptor set */ member
/freebsd-12.1/tools/regression/capsicum/syscalls/
H A Dmisc.c47 fd_set fdset; in pdwait() local
49 FD_ZERO(&fdset); in pdwait()
50 FD_SET(pfd, &fdset); in pdwait()
52 return (select(pfd + 1, NULL, &fdset, NULL, NULL) == -1 ? -1 : 0); in pdwait()
/freebsd-12.1/usr.sbin/ppp/
H A Dserver.c75 server_IsSet(struct fdescriptor *d, const fd_set *fdset) in server_IsSet() argument
80 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) in server_IsSet()
84 if (descriptor_IsSet(&p->desc, fdset)) in server_IsSet()
91 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in server_Read() argument
104 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) { in server_Read()
189 if (descriptor_IsSet(&p->desc, fdset)) { in server_Read()
190 descriptor_Read(&p->desc, bundle, fdset); in server_Read()
198 const fd_set *fdset __unused) in server_Write()
H A Dether.c397 ether_IsSet(struct fdescriptor *d, const fd_set *fdset) in ether_IsSet() argument
403 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ether_IsSet()
404 result += physical_IsSet(d, fdset); in ether_IsSet()
411 const fd_set *fdset) in ether_DescriptorRead() argument
416 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) { in ether_DescriptorRead()
425 if (physical_IsSet(d, fdset)) in ether_DescriptorRead()
426 physical_DescriptorRead(d, bundle, fdset); in ether_DescriptorRead()
H A Dnetgraph.c381 ng_IsSet(struct fdescriptor *d, const fd_set *fdset) in ng_IsSet() argument
387 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ng_IsSet()
388 result += physical_IsSet(d, fdset); in ng_IsSet()
395 const fd_set *fdset) in ng_DescriptorRead() argument
400 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) in ng_DescriptorRead()
403 if (physical_IsSet(d, fdset)) in ng_DescriptorRead()
404 physical_DescriptorRead(d, bundle, fdset); in ng_DescriptorRead()
H A Ddatalink.c423 datalink_IsSet(struct fdescriptor *d, const fd_set *fdset) in datalink_IsSet() argument
436 return descriptor_IsSet(&dl->chat.desc, fdset); in datalink_IsSet()
443 return descriptor_IsSet(&dl->chap.desc, fdset) ? 1 : in datalink_IsSet()
444 descriptor_IsSet(&dl->physical->desc, fdset); in datalink_IsSet()
463 descriptor_Read(&dl->chat.desc, bundle, fdset); in datalink_Read()
471 if (descriptor_IsSet(&dl->chap.desc, fdset)) in datalink_Read()
472 descriptor_Read(&dl->chap.desc, bundle, fdset); in datalink_Read()
473 if (descriptor_IsSet(&dl->physical->desc, fdset)) in datalink_Read()
481 const fd_set *fdset) in datalink_Write() argument
506 if (descriptor_IsSet(&dl->chap.desc, fdset)) in datalink_Write()
[all …]
H A Dbundle.c513 bundle_IsSet(struct fdescriptor *d, const fd_set *fdset) in bundle_IsSet() argument
519 if (descriptor_IsSet(&dl->desc, fdset)) in bundle_IsSet()
523 if (descriptor_IsSet(&bundle->radius.desc, fdset)) in bundle_IsSet()
530 return FD_ISSET(bundle->dev.fd, fdset); in bundle_IsSet()
535 const fd_set *fdset) in bundle_DescriptorRead() argument
545 if (descriptor_IsSet(&dl->desc, fdset)) in bundle_DescriptorRead()
546 descriptor_Read(&dl->desc, bundle, fdset); in bundle_DescriptorRead()
549 if (descriptor_IsSet(&bundle->radius.desc, fdset)) in bundle_DescriptorRead()
553 if (FD_ISSET(bundle->dev.fd, fdset)) { in bundle_DescriptorRead()
647 const fd_set *fdset) in bundle_DescriptorWrite() argument
[all …]
H A Dprompt.c166 prompt_IsSet(struct fdescriptor *d, const fd_set *fdset) in prompt_IsSet() argument
169 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset); in prompt_IsSet()
186 const fd_set *fdset __unused) in prompt_Read()
308 const fd_set *fdset __unused) in prompt_Write()
H A Dexec.c232 exec_IsSet(struct fdescriptor *d, const fd_set *fdset) in exec_IsSet() argument
236 int result = dev->fd_out >= 0 && FD_ISSET(dev->fd_out, fdset); in exec_IsSet()
237 result += physical_IsSet(d, fdset); in exec_IsSet()
H A Dchat.c332 chat_IsSet(struct fdescriptor *d, const fd_set *fdset) in chat_IsSet() argument
335 return c->argptr && physical_IsSet(&c->physical->desc, fdset); in chat_IsSet()
382 const fd_set *fdset __unused) in chat_Read()
497 const fd_set *fdset __unused) in chat_Write()
H A Dchap.c415 chap_IsSet(struct fdescriptor *d, const fd_set *fdset) in chap_IsSet() argument
419 return chap && chap->child.fd != -1 && FD_ISSET(chap->child.fd, fdset); in chap_IsSet()
424 const fd_set *fdset __unused) in chap_Read()
481 const fd_set *fdset __unused) in chap_Write()
/freebsd-12.1/contrib/ofed/libibverbs/
H A Dneigh.c303 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-12.1/usr.sbin/mld6query/
H A Dmld6.c99 fd_set fdset; in main() local
186 FD_ZERO(&fdset); in main()
190 FD_SET(s, &fdset); in main()
191 if ((i = select(s + 1, &fdset, NULL, NULL, NULL)) < 0) in main()
/freebsd-12.1/usr.sbin/rrenumd/
H A Drrenumd.c534 fd_set fdset; in main() local
621 FD_ZERO(&fdset); in main()
623 FD_SET(s6, &fdset); in main()
628 FD_SET(s4, &fdset); in main()
640 struct fd_set select_fd = fdset; /* reinitialize */ in main()
/freebsd-12.1/crypto/heimdal/appl/rsh/
H A Drsh.c491 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-12.1/contrib/nvi/ex/
H A Dex_script.c200 fd_set fdset; in sscr_getprompt() local
209 FD_ZERO(&fdset); in sscr_getprompt()
217 FD_SET(sc->sh_master, &fdset); in sscr_getprompt()
218 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) { in sscr_getprompt()
264 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) { in sscr_getprompt()
/freebsd-12.1/sbin/hastd/
H A Dproto_tcp.c348 fd_set fdset; in tcp_connect_wait() local
361 FD_ZERO(&fdset); in tcp_connect_wait()
362 FD_SET(tctx->tc_fd, &fdset); in tcp_connect_wait()
363 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv); in tcp_connect_wait()
375 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset)); in tcp_connect_wait()
/freebsd-12.1/usr.sbin/powerd/
H A Dpowerd.c482 fd_set fdset; local
672 FD_ZERO(&fdset);
674 FD_SET(devd_pipe, &fdset);
687 select(nfds, &fdset, NULL, &fdset, &timeout);
/freebsd-12.1/contrib/openbsm/bin/auditdistd/
H A Dproto_tcp.c343 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 Dproto_tls.c115 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-12.1/crypto/heimdal/lib/krb5/
H A Dsend_to_kdc.c56 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 Dchangepw.c584 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()
/freebsd-12.1/usr.sbin/inetd/
H A Dbuiltins.c358 fd_set fdset; in ident_stream() local
475 FD_ZERO(&fdset); in ident_stream()
486 FD_SET(s, &fdset); in ident_stream()
487 if (select(s + 1, &fdset, NULL, NULL, &tv) == -1) in ident_stream()
/freebsd-12.1/crypto/openssh/
H A Dsshd.c1159 fd_set *fdset; local
1169 fdset = NULL;
1186 free(fdset);
1187 fdset = xcalloc(howmany(maxfd + 1, NFDBITS),
1191 FD_SET(listen_socks[i], fdset);
1194 FD_SET(startup_pipes[i], fdset);
1197 ret = select(maxfd+1, fdset, NULL, NULL, NULL);
1213 FD_ISSET(startup_pipes[i], fdset)) {
1225 if (!FD_ISSET(listen_socks[i], fdset))

12