Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/sys/sys/
H A Dselect.h64 #define NFDBITS _NFDBITS macro
/freebsd-14.2/sys/kern/
H A Dsys_generic.c1039 uset, NFDBITS)); in sys_pselect()
1087 NFDBITS)); in sys_select()
1117 if (abi_nfdbits == NFDBITS) { in select_check_badfd()
1149 fd_mask s_selbits[howmany(2048, NFDBITS)]; in kern_select()
1178 nfdbits = roundup(nd, NFDBITS); in kern_select()
1228 if (abi_nfdbits != NFDBITS && bits != NULL) { \ in kern_select()
1414 idx = fd / NFDBITS; in selrescan()
1415 bit = (fd_mask)1 << (fd % NFDBITS); in selrescan()
1448 end = imin(fd + NFDBITS, nfd); in selscan()
/freebsd-14.2/crypto/openssh/
H A Ddefines.h425 # define NFDBITS (8 * sizeof(unsigned long)) macro
H A Dconfigure.ac2245 AC_CHECK_DECLS([howmany, NFDBITS], [], [], [[
/freebsd-14.2/lib/libc/rpc/
H A Dsvc.c603 for (sock = 0; sock < FD_SETSIZE; sock += NFDBITS) { in svc_getreqset()
/freebsd-14.2/contrib/telnet/telnet/
H A Dsys_bsd.c858 tmp = howmany(maxfd+1, NFDBITS) * sizeof(fd_mask); in process_rings()
/freebsd-14.2/usr.sbin/traceroute6/
H A Dtraceroute6.c1080 fdsn = howmany(sock + 1, NFDBITS) * sizeof(fd_mask); in wait_for_reply()
/freebsd-14.2/usr.sbin/syslogd/
H A Dsyslogd.c804 fdsr = (fd_set *)calloc(howmany(fdsrmax+1, NFDBITS), in main()
823 bzero(fdsr, howmany(fdsrmax+1, NFDBITS) * in main()
/freebsd-14.2/contrib/traceroute/
H A Dtraceroute.c1297 nfds = howmany(sock + 1, NFDBITS); in wait_for_reply()
/freebsd-14.2/usr.sbin/route6d/
H A Droute6d.c733 fdmasks = howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask); in init()