Searched refs:fdset (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-current/tools/regression/capsicum/syscalls/
H A Dmisc.c44 fd_set fdset; local
46 FD_ZERO(&fdset);
47 FD_SET(pfd, &fdset);
49 return (select(pfd + 1, NULL, &fdset, NULL, NULL) == -1 ? -1 : 0);
/freebsd-current/usr.sbin/bluetooth/sdpd/
H A Dserver.c195 FD_ZERO(&srv->fdset);
198 FD_SET(unsock, &srv->fdset);
209 FD_SET(l2sock, &srv->fdset);
251 fd_set fdset; local
257 memcpy(&fdset, &srv->fdset, sizeof(fdset));
258 n = select(srv->maxfd + 1, &fdset, NULL, NULL, NULL);
264 srv->maxfd + 1, &fdset, strerror(errno), errno);
271 if (!FD_ISSET(fd, &fdset))
[all...]
H A Dserver.h66 fd_set fdset; /* current descriptor set */ member in struct:server
/freebsd-current/usr.sbin/ppp/
H A Dserver.c62 log_Printf(LogTIMER, "server: fdset(r) %d\n", s->fd);
73 server_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
78 if (s->fd >= 0 && FD_ISSET(s->fd, fdset))
82 if (descriptor_IsSet(&p->desc, fdset))
89 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
102 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) {
187 if (descriptor_IsSet(&p->desc, fdset)) {
188 descriptor_Read(&p->desc, bundle, fdset);
196 const fd_set *fdset __unused)
H A Dether.c384 log_Printf(LogTIMER, "%s(ctrl): fdset(r) %d\n", p->link.name, dev->cs);
395 ether_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
401 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset);
402 result += physical_IsSet(d, fdset);
409 const fd_set *fdset)
414 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) {
423 if (physical_IsSet(d, fdset))
424 physical_DescriptorRead(d, bundle, fdset);
408 ether_DescriptorRead(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
H A Dnetgraph.c364 log_Printf(LogTIMER, "%s(ctrl): fdset(r) %d\n", p->link.name, dev->cs);
379 ng_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
385 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset);
386 result += physical_IsSet(d, fdset);
393 const fd_set *fdset)
398 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset))
401 if (physical_IsSet(d, fdset))
402 physical_DescriptorRead(d, bundle, fdset);
392 ng_DescriptorRead(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
H A Ddatalink.c421 datalink_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
434 return descriptor_IsSet(&dl->chat.desc, fdset);
441 return descriptor_IsSet(&dl->chap.desc, fdset) ? 1 :
442 descriptor_IsSet(&dl->physical->desc, fdset);
448 datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
461 descriptor_Read(&dl->chat.desc, bundle, fdset);
469 if (descriptor_IsSet(&dl->chap.desc, fdset))
470 descriptor_Read(&dl->chap.desc, bundle, fdset);
471 if (descriptor_IsSet(&dl->physical->desc, fdset))
472 descriptor_Read(&dl->physical->desc, bundle, fdset);
478 datalink_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
[all...]
H A Dprompt.c146 log_Printf(LogTIMER, "prompt %s: fdset(r) %d\n", p->src.from, p->fd_in);
151 log_Printf(LogTIMER, "prompt %s: fdset(e) %d\n", p->src.from, p->fd_in);
164 prompt_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
167 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset);
184 const fd_set *fdset __unused)
306 const fd_set *fdset __unused)
H A Dbundle.c480 log_Printf(LogTIMER, "%s: fdset(r) %d\n", TUN_NAME, bundle->dev.fd);
511 bundle_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
517 if (descriptor_IsSet(&dl->desc, fdset))
521 if (descriptor_IsSet(&bundle->radius.desc, fdset))
525 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
528 return FD_ISSET(bundle->dev.fd, fdset);
533 const fd_set *fdset)
539 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset))
540 descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset);
543 if (descriptor_IsSet(&dl->desc, fdset))
532 bundle_DescriptorRead(struct fdescriptor *d __unused, struct bundle *bundle, const fd_set *fdset) argument
644 bundle_DescriptorWrite(struct fdescriptor *d __unused, struct bundle *bundle, const fd_set *fdset) argument
[all...]
H A Dexec.c212 log_Printf(LogTIMER, "%s: fdset(w) %d\n", p->link.name, dev->fd_out);
219 log_Printf(LogTIMER, "%s: fdset(e) %d\n", p->link.name, dev->fd_out);
230 exec_IsSet(struct fdescriptor *d, const fd_set *fdset) argument
234 int result = dev->fd_out >= 0 && FD_ISSET(dev->fd_out, fdset);
235 result += physical_IsSet(d, fdset);
/freebsd-current/crypto/openssl/util/perl/TLSProxy/
H A DProxy.pm358 my $fdset = IO::Select->new($self->{proxy_sock});
359 if (!$fdset->can_read(60)) {
376 $fdset = IO::Select->new($server_sock, $client_sock);
381 while($fdset->count && $ctr < 10) {
388 if (!(@ready = $fdset->can_read(1))) {
400 $fdset->remove($server_sock);
410 $fdset->remove($client_sock);
/freebsd-current/usr.sbin/mld6query/
H A Dmld6.c96 fd_set fdset; local
183 FD_ZERO(&fdset);
187 FD_SET(s, &fdset);
188 if ((i = select(s + 1, &fdset, NULL, NULL, NULL)) < 0)
/freebsd-current/usr.sbin/rrenumd/
H A Drrenumd.c528 fd_set fdset; local
615 FD_ZERO(&fdset);
617 FD_SET(s6, &fdset);
622 FD_SET(s4, &fdset);
634 struct fd_set select_fd = fdset; /* reinitialize */
/freebsd-current/contrib/sendmail/libsm/
H A Dnotify.c15 #include <sm/fdset.h>
H A Drefill.c28 #include <sm/fdset.h>
/freebsd-current/contrib/ofed/libibverbs/
H A Dneigh.c303 fd_set fdset; local
350 FD_ZERO(&fdset);
351 FD_SET(fd, &fdset);
352 FD_SET(timer_fd, &fdset);
355 ret = select(nfds, &fdset, NULL, NULL, NULL);
359 if (FD_ISSET(fd, &fdset)) {
369 } else if (FD_ISSET(timer_fd, &fdset) &&
376 if (FD_ISSET(timer_fd, &fdset)) {
/freebsd-current/contrib/nvi/ex/
H A Dex_script.c198 fd_set fdset; local
207 FD_ZERO(&fdset);
215 FD_SET(sc->sh_master, &fdset);
216 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) {
262 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) {
/freebsd-current/contrib/openbsm/bin/auditdistd/
H A Dproto_tcp.c343 fd_set fdset; local
357 FD_ZERO(&fdset);
358 FD_SET(tctx->tc_fd, &fdset);
359 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv);
371 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset));
H A Dproto_tls.c115 fd_set fdset; local
121 FD_ZERO(&fdset);
122 FD_SET(fd, &fdset);
127 ret = select(fd + 1, NULL, &fdset, NULL,
139 PJDLOG_ASSERT(FD_ISSET(fd, &fdset));
/freebsd-current/sbin/hastd/
H A Dproto_tcp.c345 fd_set fdset; local
358 FD_ZERO(&fdset);
359 FD_SET(tctx->tc_fd, &fdset);
360 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv);
372 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset));
/freebsd-current/usr.sbin/powerd/
H A Dpowerd.c487 fd_set fdset; local
682 FD_ZERO(&fdset);
684 FD_SET(devd_pipe, &fdset);
697 select(nfds, &fdset, NULL, &fdset, &timeout);
/freebsd-current/crypto/heimdal/appl/rsh/
H A Drsh.c491 fd_set fdset; local
496 FD_ZERO(&fdset);
497 FD_SET(errsock, &fdset);
498 FD_SET(s, &fdset);
500 ret = select (max(errsock, s) + 1, &fdset, NULL, NULL, NULL);
508 if (FD_ISSET(errsock, &fdset)) {
524 if (FD_ISSET(s, &fdset)) {
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dchangepw.c584 fd_set fdset; local
614 FD_ZERO(&fdset);
615 FD_SET(sock, &fdset);
619 ret = select (sock + 1, &fdset, NULL, NULL, &tv);
H A Dsend_to_kdc.c56 fd_set fdset; local
69 FD_ZERO(&fdset);
70 FD_SET(fd, &fdset);
73 ret = select (fd + 1, &fdset, NULL, NULL, &timeout);
/freebsd-current/usr.sbin/inetd/
H A Dbuiltins.c356 fd_set fdset; local
473 FD_ZERO(&fdset);
484 FD_SET(s, &fdset);
485 if (select(s + 1, &fdset, NULL, NULL, &tv) == -1)

Completed in 215 milliseconds

12