/freebsd-11.0-release/tools/regression/capsicum/syscalls/ |
H A D | misc.c | 47 fd_set fdset; local 49 FD_ZERO(&fdset); 50 FD_SET(pfd, &fdset); 52 return (select(pfd + 1, NULL, &fdset, NULL, NULL) == -1 ? -1 : 0);
|
/freebsd-11.0-release/usr.sbin/bluetooth/sdpd/ |
H A D | server.c | 194 FD_ZERO(&srv->fdset); 197 FD_SET(unsock, &srv->fdset); 208 FD_SET(l2sock, &srv->fdset); 250 fd_set fdset; local 256 memcpy(&fdset, &srv->fdset, sizeof(fdset)); 257 n = select(srv->maxfd + 1, &fdset, NULL, NULL, NULL); 263 srv->maxfd + 1, &fdset, strerror(errno), errno); 270 if (!FD_ISSET(fd, &fdset)) [all...] |
H A D | server.h | 65 fd_set fdset; /* current descriptor set */ member in struct:server
|
/freebsd-11.0-release/usr.sbin/ppp/ |
H A D | server.c | 62 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 D | ether.c | 384 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 D | netgraph.c | 364 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 D | datalink.c | 421 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 D | prompt.c | 146 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 D | bundle.c | 480 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 D | exec.c | 212 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-11.0-release/usr.sbin/mld6query/ |
H A D | mld6.c | 97 fd_set fdset; local 163 FD_ZERO(&fdset); 167 FD_SET(s, &fdset); 168 if ((i = select(s + 1, &fdset, NULL, NULL, NULL)) < 0)
|
/freebsd-11.0-release/usr.sbin/rrenumd/ |
H A D | rrenumd.c | 532 fd_set fdset; local 619 FD_ZERO(&fdset); 621 FD_SET(s6, &fdset); 626 FD_SET(s4, &fdset); 638 struct fd_set select_fd = fdset; /* reinitialize */
|
/freebsd-11.0-release/crypto/openssh/ |
H A D | sshconnect.c | 338 fd_set *fdset; local 362 fdset = xcalloc(howmany(sockfd + 1, NFDBITS), 364 FD_SET(sockfd, fdset); 368 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); 403 free(fdset); 559 fd_set *fdset; local 562 fdset = xcalloc(1, fdsetsz); 581 FD_SET(connection_in, fdset); 582 rc = select(connection_in + 1, fdset, NULL, 583 fdset, [all...] |
H A D | sshd.c | 1255 fd_set *fdset; local 1265 fdset = NULL; 1282 free(fdset); 1283 fdset = xcalloc(howmany(maxfd + 1, NFDBITS), 1287 FD_SET(listen_socks[i], fdset); 1290 FD_SET(startup_pipes[i], fdset); 1293 ret = select(maxfd+1, fdset, NULL, NULL, NULL); 1314 FD_ISSET(startup_pipes[i], fdset)) { 1326 if (!FD_ISSET(listen_socks[i], fdset))
|
/freebsd-11.0-release/contrib/openbsm/bin/auditdistd/ |
H A D | proto_tcp.c | 343 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 D | proto_tls.c | 115 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-11.0-release/sbin/hastd/ |
H A D | proto_tcp.c | 346 fd_set fdset; local 359 FD_ZERO(&fdset); 360 FD_SET(tctx->tc_fd, &fdset); 361 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv); 373 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset));
|
/freebsd-11.0-release/contrib/nvi/ex/ |
H A D | ex_script.c | 200 fd_set fdset; local 209 FD_ZERO(&fdset); 217 FD_SET(sc->sh_master, &fdset); 218 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) { 264 switch (select(sc->sh_master + 1, &fdset, NULL, NULL, &tv)) {
|
/freebsd-11.0-release/usr.sbin/powerd/ |
H A D | powerd.c | 446 fd_set fdset; local 633 FD_ZERO(&fdset); 635 FD_SET(devd_pipe, &fdset); 648 select(nfds, &fdset, NULL, &fdset, &timeout);
|
/freebsd-11.0-release/crypto/heimdal/appl/rsh/ |
H A D | rsh.c | 491 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-11.0-release/crypto/heimdal/lib/krb5/ |
H A D | changepw.c | 584 fd_set fdset; local 614 FD_ZERO(&fdset); 615 FD_SET(sock, &fdset); 619 ret = select (sock + 1, &fdset, NULL, NULL, &tv);
|
H A D | send_to_kdc.c | 56 fd_set fdset; local 69 FD_ZERO(&fdset); 70 FD_SET(fd, &fdset); 73 ret = select (fd + 1, &fdset, NULL, NULL, &timeout);
|
/freebsd-11.0-release/contrib/sendmail/libsm/ |
H A D | refill.c | 28 #include <sm/fdset.h>
|
/freebsd-11.0-release/usr.sbin/inetd/ |
H A D | builtins.c | 359 fd_set fdset; local 476 FD_ZERO(&fdset); 487 FD_SET(s, &fdset); 488 if (select(s + 1, &fdset, NULL, NULL, &tv) == -1)
|
/freebsd-11.0-release/contrib/sendmail/libmilter/ |
H A D | libmilter.h | 208 # include <sm/fdset.h>
|