/openbsd/regress/sys/kern/fork-exit/ |
H A D | fork-exit.c | 215 fd_set *fdset; in main() local 336 fdset = calloc(fdlen, sizeof(fd_mask)); in main() 337 if (fdset == NULL) in main() 341 FD_SET(rfds[i], fdset); in main() 350 if (select(fdmax + 1, fdset, NULL, NULL, &tv) <= 0) in main() 357 if (FD_ISSET(rfds[i], fdset)) { in main() 360 FD_CLR(rfds[i], fdset); in main() 363 FD_SET(rfds[i], fdset); in main()
|
/openbsd/gnu/usr.bin/binutils/gdb/rdi-share/ |
H A D | etherdrv.c | 281 fd_set fdset; in fetch_ports() local 301 FD_ZERO(&fdset); in fetch_ports() 302 FD_SET(sock, &fdset); in fetch_ports() 306 if (select(sock + 1, &fdset, NULL, NULL, &tv) < 0) in fetch_ports() 314 if (FD_ISSET(sock, &fdset)) in fetch_ports() 590 fd_set fdset; in EthernetRead() local 594 FD_ZERO(&fdset); in EthernetRead() 595 FD_SET(sock, &fdset); in EthernetRead() 605 err = select(sock + 1, &fdset, NULL, NULL, &tv); in EthernetRead() 615 if (FD_ISSET(sock, &fdset)) in EthernetRead()
|
H A D | unixcomm.c | 283 fd_set fdset; in Unix_ReadSerial() local 287 FD_ZERO(&fdset); in Unix_ReadSerial() 288 FD_SET(serpfd, &fdset); in Unix_ReadSerial() 293 err = select(serpfd + 1, &fdset, NULL, NULL, &tv); in Unix_ReadSerial() 303 else if (err > 0 && FD_ISSET(serpfd, &fdset)) in Unix_ReadSerial()
|
/openbsd/regress/sys/kern/sosplice/perf/ |
H A D | relay.c | 99 fd_set fdset; in relay_splice() local 107 FD_ZERO(&fdset); in relay_splice() 108 FD_SET(fdin, &fdset); in relay_splice() 109 if (select(fdin+1, &fdset, NULL, NULL, NULL) == -1) in relay_splice() 185 fd_set fdset; in listen_select() local 188 FD_ZERO(&fdset); in listen_select() 191 FD_SET(ls[i], &fdset); in listen_select() 195 if (select(mfd+1, &fdset, NULL, NULL, NULL) == -1) in listen_select() 198 if (FD_ISSET(ls[i], &fdset)) in listen_select()
|
/openbsd/regress/sys/kern/kqueue/ |
H A D | kqueue-regress.c | 249 fd_set fdset; in do_regress5() local 267 FD_ZERO(&fdset); in do_regress5() 268 FD_SET(kq, &fdset); in do_regress5() 271 ret = select(kq + 1, &fdset, NULL, NULL, &tv); in do_regress5() 289 FD_ZERO(&fdset); in do_regress5() 290 FD_SET(kq, &fdset); in do_regress5() 293 ret = select(kq + 1, &fdset, NULL, NULL, &tv); in do_regress5() 297 assert(FD_ISSET(kq, &fdset)); in do_regress5()
|
/openbsd/sys/arch/octeon/stand/rdboot/ |
H A D | cmd.c | 253 fd_set fdset; in readline() local 268 FD_ZERO(&fdset); in readline() 269 FD_SET(STDIN_FILENO, &fdset); in readline() 272 if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0) in readline()
|
/openbsd/sys/arch/powerpc64/stand/rdboot/ |
H A D | cmd.c | 253 fd_set fdset; in readline() local 268 FD_ZERO(&fdset); in readline() 269 FD_SET(STDIN_FILENO, &fdset); in readline() 272 if (select(STDIN_FILENO + 1, &fdset, NULL, NULL, &tv) == 0) in readline()
|
/openbsd/gnu/usr.bin/perl/cpan/HTTP-Tiny/lib/HTTP/ |
H A D | Tiny.pm | 1587 vec(my $fdset = '', $fd, 1) = 1; 1591 ? select($fdset, undef, undef, $pending) 1592 : select(undef, $fdset, undef, $pending) ;
|
/openbsd/lib/libcurses/tty/ |
H A D | tty_update.c | 406 fd_set fdset; in check_pending() 412 FD_ZERO(&fdset); in check_pending() 413 FD_SET(SP_PARM->_checkfd, &fdset); in check_pending() 414 if (select(SP_PARM->_checkfd + 1, &fdset, NULL, NULL, &ktimeout) != 0) { in check_pending()
|
/openbsd/usr.sbin/nsd/doc/ |
H A D | ChangeLog | 4062 - Bug #153: now checks for FD_SETSIZE when adding fd to select fdset.
|