Home
last modified time | relevance | path

Searched refs:NFDBITS (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/ntp/include/
H A Dntp_select.h21 # define NFDBITS 32 macro
23 # define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
24 # define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
25 # define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
/freebsd/crypto/krb5/src/util/verto/
H A Dev_select.c50 # ifdef NFDBITS
60 # undef NFDBITS
61 # define NFDBITS 0 macro
65 # define NFDBYTES (NFDBITS / 8)
108 int word = fd / NFDBITS; in select_modify()
109 fd_mask mask = 1UL << (fd % NFDBITS); in select_modify()
165 res = select (vec_max * NFDBITS, (fd_set *)vec_ro, (fd_set *)vec_wo, (fd_set *)vec_eo, &tv); in select_poll()
170 res = select (vec_max * NFDBITS, (fd_set *)vec_ro, (fd_set *)vec_wo, 0, &tv); in select_poll()
257 for (bit = NFDBITS; bit--; ) in select_poll()
266 fd_event (EV_A_ word * NFDBITS + bit, events); in select_poll()
/freebsd/contrib/pf/libevent/
H A Dselect.c104 select_resize(sop, howmany(32 + 1, NFDBITS)*sizeof(fd_mask)); in select_init()
225 n_events = (fdsz/sizeof(fd_mask)) * NFDBITS; in select_resize()
226 n_events_old = (sop->event_fdsz/sizeof(fd_mask)) * NFDBITS; in select_resize()
292 (howmany(ev->ev_fd + 1, NFDBITS) * sizeof(fd_mask))) in select_add()
/freebsd/contrib/ntp/sntp/libevent/
H A Dselect.c67 #ifndef NFDBITS
68 #define NFDBITS (sizeof(fd_mask)*8) macro
76 (DIV_ROUNDUP(n, NFDBITS) * sizeof(fd_mask))
H A DChangeLog-2.0255 o Fix select.c compilation on systems with no NFDBITS (49d1136)
H A DChangeLog1684 o Fix select.c compilation on systems with no NFDBITS (49d1136)
/freebsd/contrib/libevent/
H A Dselect.c67 #ifndef NFDBITS
68 #define NFDBITS (sizeof(fd_mask)*8) macro
76 (DIV_ROUNDUP(n, NFDBITS) * sizeof(fd_mask))
H A DChangeLog-2.0255 o Fix select.c compilation on systems with no NFDBITS (49d1136)
H A DChangeLog1684 o Fix select.c compilation on systems with no NFDBITS (49d1136)
/freebsd/usr.sbin/ppp/
H A Ddefs.c387 return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); in mkfdset()
393 memset(s, '\0', howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); in zerofdset()
/freebsd/sys/sys/
H A Dselect.h70 #define NFDBITS _NFDBITS macro
/freebsd/sys/kern/
H A Dsys_generic.c1100 uset, NFDBITS)); in sys_pselect()
1160 NFDBITS)); in sys_select()
1190 if (abi_nfdbits == NFDBITS) { in select_check_badfd()
1222 fd_mask s_selbits[howmany(2048, NFDBITS)]; in kern_select()
1251 nfdbits = roundup(nd, NFDBITS); in kern_select()
1301 if (abi_nfdbits != NFDBITS && bits != NULL) { \ in kern_select()
1487 idx = fd / NFDBITS; in selrescan()
1488 bit = (fd_mask)1 << (fd % NFDBITS); in selrescan()
1521 end = imin(fd + NFDBITS, nfd); in selscan()
/freebsd/crypto/openssh/
H A Ddefines.h429 # define NFDBITS (8 * sizeof(unsigned long)) macro
H A Dconfigure.ac2473 AC_CHECK_DECLS([howmany, NFDBITS], [], [], [[
/freebsd/lib/libc/rpc/
H A Dsvc.c599 for (sock = 0; sock < FD_SETSIZE; sock += NFDBITS) { in svc_getreqset()
/freebsd/contrib/telnet/telnet/
H A Dsys_bsd.c858 tmp = howmany(maxfd+1, NFDBITS) * sizeof(fd_mask); in process_rings()
/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c1076 fdsn = howmany(sock + 1, NFDBITS) * sizeof(fd_mask); in wait_for_reply()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c1224 nfds = howmany(sock + 1, NFDBITS); in wait_for_reply()
/freebsd/usr.sbin/route6d/
H A Droute6d.c730 fdmasks = howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask); in init()