Home
last modified time | relevance | path

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

/mirbsd/src/lib/libsectok/
Dscio.c385 fd_set *fdset; in scgetc() local
392 fdset = (fd_set *)calloc(howmany(fd + 1, NFDBITS), sizeof(fd_mask)); in scgetc()
393 if (fdset == NULL) in scgetc()
395 FD_SET(fd, fdset); in scgetc()
405 if (select(fd + 1, fdset, NULL, NULL, tvp) != 1) { in scgetc()
406 free(fdset); in scgetc()
411 free(fdset); in scgetc()
418 free(fdset); in scgetc()
/mirbsd/src/usr.sbin/ppp/ppp/
Dserver.c73 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()
195 server_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in server_Write() argument
Dether.c396 ether_IsSet(struct fdescriptor *d, const fd_set *fdset) in ether_IsSet() argument
402 result = dev->cs >= 0 && FD_ISSET(dev->cs, fdset); in ether_IsSet()
403 result += physical_IsSet(d, fdset); in ether_IsSet()
410 const fd_set *fdset) in ether_DescriptorRead() argument
415 if (dev->cs >= 0 && FD_ISSET(dev->cs, fdset)) { in ether_DescriptorRead()
424 if (physical_IsSet(d, fdset)) in ether_DescriptorRead()
425 physical_DescriptorRead(d, bundle, fdset); in ether_DescriptorRead()
Dnetgraph.c379 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()
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()
450 datalink_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in datalink_Read() argument
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()
474 descriptor_Read(&dl->physical->desc, bundle, fdset); in datalink_Read()
[all …]
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()
527 if (descriptor_IsSet(&bundle->ncp.mp.server.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
541 if (descriptor_IsSet(&bundle->ncp.mp.server.desc, fdset)) in bundle_DescriptorRead()
542 descriptor_Read(&bundle->ncp.mp.server.desc, bundle, fdset); in bundle_DescriptorRead()
545 if (descriptor_IsSet(&dl->desc, fdset)) in bundle_DescriptorRead()
546 descriptor_Read(&dl->desc, bundle, fdset); in bundle_DescriptorRead()
[all …]
Dprompt.c163 prompt_IsSet(struct fdescriptor *d, const fd_set *fdset) in prompt_IsSet() argument
166 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset); in prompt_IsSet()
182 prompt_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in prompt_Read() argument
303 prompt_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in prompt_Write() argument
Dchat.c325 chat_IsSet(struct fdescriptor *d, const fd_set *fdset) in chat_IsSet() argument
328 return c->argptr && physical_IsSet(&c->physical->desc, fdset); in chat_IsSet()
374 chat_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in chat_Read() argument
488 chat_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in chat_Write() argument
Dchap.c417 chap_IsSet(struct fdescriptor *d, const fd_set *fdset) in chap_IsSet() argument
421 return chap && chap->child.fd != -1 && FD_ISSET(chap->child.fd, fdset); in chap_IsSet()
425 chap_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in chap_Read() argument
481 chap_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in chap_Write() argument
Dradius.c568 radius_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in radius_Read() argument
596 radius_IsSet(struct fdescriptor *d, const fd_set *fdset) in radius_IsSet() argument
600 return r && r->cx.fd != -1 && FD_ISSET(r->cx.fd, fdset); in radius_IsSet()
607 radius_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in radius_Write() argument
Dphysical.c412 const fd_set *fdset) in physical_DescriptorWrite() argument
544 const fd_set *fdset) in physical_DescriptorRead() argument
913 physical_IsSet(struct fdescriptor *d, const fd_set *fdset) in physical_IsSet() argument
916 return p->fd >= 0 && FD_ISSET(p->fd, fdset); in physical_IsSet()
Dmp.c1082 mpserver_IsSet(struct fdescriptor *d, const fd_set *fdset) in mpserver_IsSet() argument
1085 return s->fd >= 0 && FD_ISSET(s->fd, fdset); in mpserver_IsSet()
1089 mpserver_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in mpserver_Read() argument
1098 const fd_set *fdset) in mpserver_Write() argument
/mirbsd/src/usr.bin/ssh/
Dsshconnect.c220 fd_set *fdset; in timeout_connect() local
244 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), in timeout_connect()
246 FD_SET(sockfd, fdset); in timeout_connect()
250 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); in timeout_connect()
285 xfree(fdset); in timeout_connect()
422 fd_set *fdset; in ssh_exchange_identification() local
425 fdset = xcalloc(1, fdsetsz); in ssh_exchange_identification()
434 FD_SET(connection_in, fdset); in ssh_exchange_identification()
435 rc = select(connection_in + 1, fdset, NULL, in ssh_exchange_identification()
436 fdset, &t_remaining); in ssh_exchange_identification()
[all …]
Dsshd.c970 fd_set *fdset; in server_accept_loop() local
979 fdset = NULL; in server_accept_loop()
996 if (fdset != NULL) in server_accept_loop()
997 xfree(fdset); in server_accept_loop()
998 fdset = (fd_set *)xcalloc(howmany(maxfd + 1, NFDBITS), in server_accept_loop()
1002 FD_SET(listen_socks[i], fdset); in server_accept_loop()
1005 FD_SET(startup_pipes[i], fdset); in server_accept_loop()
1008 ret = select(maxfd+1, fdset, NULL, NULL, NULL); in server_accept_loop()
1028 FD_ISSET(startup_pipes[i], fdset)) { in server_accept_loop()
1040 if (!FD_ISSET(listen_socks[i], fdset)) in server_accept_loop()
/mirbsd/src/share/doc/psd/05.sysman/
Dspell.ok138 fdset
/mirbsd/src/lib/libncurses/src/ncurses/tty/
Dtty_update.c317 fd_set fdset; in check_pending()
323 FD_ZERO(&fdset); in check_pending()
324 FD_SET(SP->_checkfd, &fdset); in check_pending()
325 if (select(SP->_checkfd + 1, &fdset, NULL, NULL, &ktimeout) != 0) { in check_pending()
/mirbsd/src/bin/mksh/
Dfuncs.c1926 fd_set fdset; in c_read() local
1928 FD_ZERO(&fdset); in c_read()
1929 FD_SET((unsigned int)fd, &fdset); in c_read()
1938 switch (select(fd + 1, &fdset, NULL, NULL, &tv)) { in c_read()