/freebsd-11-stable/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-stable/usr.sbin/bluetooth/sdpd/ |
H A D | server.c | 196 FD_ZERO(&srv->fdset); 199 FD_SET(unsock, &srv->fdset); 210 FD_SET(l2sock, &srv->fdset); 252 fd_set fdset; local 258 memcpy(&fdset, &srv->fdset, sizeof(fdset)); 259 n = select(srv->maxfd + 1, &fdset, NULL, NULL, NULL); 265 srv->maxfd + 1, &fdset, strerror(errno), errno); 272 if (!FD_ISSET(fd, &fdset)) [all...] |
H A D | server.h | 67 fd_set fdset; /* current descriptor set */ member in struct:server
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | server.c | 64 log_Printf(LogTIMER, "server: fdset(r) %d\n", s->fd); 75 server_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 80 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) 84 if (descriptor_IsSet(&p->desc, fdset)) 91 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument 104 if (s->fd >= 0 && FD_ISSET(s->fd, fdset)) { 189 if (descriptor_IsSet(&p->desc, fdset)) { 190 descriptor_Read(&p->desc, bundle, fdset); 198 const fd_set *fdset __unused)
|
H A D | ether.c | 386 log_Printf(LogTIMER, "%s(ctrl): fdset(r) %d\n", p->link.name, dev->cs); 397 ether_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 403 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); 404 result += physical_IsSet(d, fdset); 411 const fd_set *fdset) 416 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) { 425 if (physical_IsSet(d, fdset)) 426 physical_DescriptorRead(d, bundle, fdset); 410 ether_DescriptorRead(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
|
H A D | netgraph.c | 366 log_Printf(LogTIMER, "%s(ctrl): fdset(r) %d\n", p->link.name, dev->cs); 381 ng_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 387 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); 388 result += physical_IsSet(d, fdset); 395 const fd_set *fdset) 400 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) 403 if (physical_IsSet(d, fdset)) 404 physical_DescriptorRead(d, bundle, fdset); 394 ng_DescriptorRead(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument
|
H A D | datalink.c | 423 datalink_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 436 return descriptor_IsSet(&dl->chat.desc, fdset); 443 return descriptor_IsSet(&dl->chap.desc, fdset) ? 1 : 444 descriptor_IsSet(&dl->physical->desc, fdset); 450 datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument 463 descriptor_Read(&dl->chat.desc, bundle, fdset); 471 if (descriptor_IsSet(&dl->chap.desc, fdset)) 472 descriptor_Read(&dl->chap.desc, bundle, fdset); 473 if (descriptor_IsSet(&dl->physical->desc, fdset)) 474 descriptor_Read(&dl->physical->desc, bundle, fdset); 480 datalink_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) argument [all...] |
H A D | prompt.c | 148 log_Printf(LogTIMER, "prompt %s: fdset(r) %d\n", p->src.from, p->fd_in); 153 log_Printf(LogTIMER, "prompt %s: fdset(e) %d\n", p->src.from, p->fd_in); 166 prompt_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 169 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset); 186 const fd_set *fdset __unused) 308 const fd_set *fdset __unused)
|
H A D | bundle.c | 482 log_Printf(LogTIMER, "%s: fdset(r) %d\n", TUN_NAME, bundle->dev.fd); 513 bundle_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 519 if (descriptor_IsSet(&dl->desc, fdset)) 523 if (descriptor_IsSet(&bundle->radius.desc, fdset)) 527 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) 530 return FD_ISSET(bundle->dev.fd, fdset); 535 const fd_set *fdset) 541 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) 542 descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset); 545 if (descriptor_IsSet(&dl->desc, fdset)) 534 bundle_DescriptorRead(struct fdescriptor *d __unused, struct bundle *bundle, const fd_set *fdset) argument 646 bundle_DescriptorWrite(struct fdescriptor *d __unused, struct bundle *bundle, const fd_set *fdset) argument [all...] |
H A D | exec.c | 214 log_Printf(LogTIMER, "%s: fdset(w) %d\n", p->link.name, dev->fd_out); 221 log_Printf(LogTIMER, "%s: fdset(e) %d\n", p->link.name, dev->fd_out); 232 exec_IsSet(struct fdescriptor *d, const fd_set *fdset) argument 236 int result = dev->fd_out >= 0 && FD_ISSET(dev->fd_out, fdset); 237 result += physical_IsSet(d, fdset);
|
/freebsd-11-stable/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-stable/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-stable/crypto/openssh/ |
H A D | sshconnect.c | 337 fd_set *fdset; local 361 fdset = xcalloc(howmany(sockfd + 1, NFDBITS), 363 FD_SET(sockfd, fdset); 367 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); 402 free(fdset); 558 fd_set *fdset; local 561 fdset = xcalloc(1, fdsetsz); 580 FD_SET(connection_in, fdset); 581 rc = select(connection_in + 1, fdset, NULL, 582 fdset, [all...] |
H A D | sshd.c | 1123 fd_set *fdset; local 1133 fdset = NULL; 1150 free(fdset); 1151 fdset = xcalloc(howmany(maxfd + 1, NFDBITS), 1155 FD_SET(listen_socks[i], fdset); 1158 FD_SET(startup_pipes[i], fdset); 1161 ret = select(maxfd+1, fdset, NULL, NULL, NULL); 1177 FD_ISSET(startup_pipes[i], fdset)) { 1189 if (!FD_ISSET(listen_socks[i], fdset))
|
/freebsd-11-stable/contrib/sendmail/libsm/ |
H A D | notify.c | 24 #include <sm/fdset.h>
|
H A D | refill.c | 28 #include <sm/fdset.h>
|
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | neigh.c | 303 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-11-stable/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));
|
/freebsd-11-stable/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-stable/sbin/hastd/ |
H A D | proto_tcp.c | 348 fd_set fdset; local 361 FD_ZERO(&fdset); 362 FD_SET(tctx->tc_fd, &fdset); 363 ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv); 375 PJDLOG_ASSERT(FD_ISSET(tctx->tc_fd, &fdset));
|
/freebsd-11-stable/usr.sbin/powerd/ |
H A D | powerd.c | 482 fd_set fdset; local 672 FD_ZERO(&fdset); 674 FD_SET(devd_pipe, &fdset); 687 select(nfds, &fdset, NULL, &fdset, &timeout);
|
/freebsd-11-stable/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-stable/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-stable/usr.sbin/inetd/ |
H A D | builtins.c | 358 fd_set fdset; local 475 FD_ZERO(&fdset); 486 FD_SET(s, &fdset); 487 if (select(s + 1, &fdset, NULL, NULL, &tv) == -1)
|