Home
last modified time | relevance | path

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

12

/mirbsd/src/sys/sys/
Dtypes.h183 #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ macro
190 fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];
193 #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
194 #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
195 #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
/mirbsd/src/lib/libssl/src/apps/
Ds_apps.h136 #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask (power of 2!)*/ macro
140 #define FD_SET(n, p) (*(p) |= (1 << ((n) % NFDBITS)))
141 #define FD_CLR(n, p) (*(p) &= ~(1 << ((n) % NFDBITS)))
142 #define FD_ISSET(n, p) (*(p) & (1 << ((n) % NFDBITS)))
/mirbsd/src/lib/libevent/
Dselect.c67 #undef NFDBITS
68 #define NFDBITS (sizeof(long)*8) macro
113 select_resize(sop, howmany(32 + 1, NFDBITS)*sizeof(fd_mask)); in select_init()
220 n_events = (fdsz/sizeof(fd_mask)) * NFDBITS; in select_resize()
221 n_events_old = (sop->event_fdsz/sizeof(fd_mask)) * NFDBITS; in select_resize()
287 (howmany(ev->ev_fd + 1, NFDBITS) * sizeof(fd_mask))) in select_add()
/mirbsd/src/lib/libc/net/
Dres_send.c95 #define NFDBITS 32 macro
97 #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
98 #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
99 #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
686 dsmaskp = (fd_set *)calloc(howmany(s+1, NFDBITS), in res_send()
Drcmd.c203 int fdssize = howmany(MAX(s, s2)+1, NFDBITS) * sizeof(fd_mask); in rcmd_af()
/mirbsd/src/lib/libpthread/uthread/
Duthread_select.c93 for (i = (numfds - 1) / NFDBITS; i >= 0; i--) { in select()
135 for (i = (numfds - 1) / NFDBITS, j = fd_count; in select()
158 (i * NFDBITS) + bit - 1; in select()
/mirbsd/src/lib/libc/rpc/
Dsvc.c174 bytes = howmany(sock + 128, NFDBITS) * sizeof(fd_mask); in svc_fd_insert()
179 howmany(__svc_fdsetsize, NFDBITS) * sizeof(fd_mask)); in svc_fd_insert()
522 for (sock = 0; sock < width; sock += NFDBITS) { in svc_getreqset2()
/mirbsd/src/usr.sbin/ppp/ppp/
Ddefs.c379 return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); in mkfdset()
385 memset(s, '\0', howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); in zerofdset()
/mirbsd/src/usr.bin/telnet/
Dnetwork.c69 fdsn = howmany(net+1, NFDBITS) * sizeof(fd_mask); in stilloob()
/mirbsd/src/sbin/routed/
Dmain.c453 ibitsp = (fd_set *)calloc(howmany(sock_max, NFDBITS), in main()
457 memcpy(ibitsp, fdbitsp, howmany(sock_max, NFDBITS) * in main()
531 fdbitsp = (fd_set *)calloc(howmany(sock_max, NFDBITS), in fix_select()
/mirbsd/src/sys/kern/
Dsys_generic.c665 ni = howmany(nd, NFDBITS) * sizeof(fd_mask); in sys_select()
779 ni = howmany(nfd, NFDBITS) * sizeof(fd_mask);
785 for (i = 0; i < nfd; i += NFDBITS) {
786 bits = pibits->fds_bits[i/NFDBITS];
/mirbsd/src/bin/date/
Dnetdate.c129 fdsn = howmany(s+1, NFDBITS) * sizeof(fd_mask); in netsettime()
/mirbsd/src/sbin/mount_portal/
Dmount_portal.c213 fdssize = howmany(so+1, NFDBITS) * sizeof(fd_mask); in main()
/mirbsd/src/usr.sbin/pppoe/
Dserver.c96 fdsp = (fd_set *)malloc(howmany(n, NFDBITS) * in server_mode()
102 bzero(fdsp, howmany(n, NFDBITS) * sizeof(fd_mask)); in server_mode()
Dclient.c105 fdsp = (fd_set *)malloc(howmany(max, NFDBITS) * in client_mode()
113 bzero(fdsp, howmany(max, NFDBITS) * sizeof(fd_mask)); in client_mode()
/mirbsd/src/sbin/isakmpd/
Disakmpd.c422 mask_size = howmany(n, NFDBITS) * sizeof(fd_mask); in main()
/mirbsd/src/libexec/spamd/
Dspamd.c1345 fdsr = (fd_set *)calloc(howmany(max+1, NFDBITS), in main()
1349 fdsw = (fd_set *)calloc(howmany(max+1, NFDBITS), in main()
1355 memset(fdsr, 0, howmany(max+1, NFDBITS) * in main()
1357 memset(fdsw, 0, howmany(max+1, NFDBITS) * in main()
/mirbsd/src/usr.bin/ssh/
Dpacket.c1025 NFDBITS), sizeof(fd_mask)); in packet_read_seqnr()
1050 NFDBITS) * sizeof(fd_mask)); in packet_read_seqnr()
1665 NFDBITS), sizeof(fd_mask)); in packet_write_wait()
1669 NFDBITS) * sizeof(fd_mask)); in packet_write_wait()
Dsshconnect.c244 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), in timeout_connect()
424 fdsetsz = howmany(connection_in + 1, NFDBITS) * sizeof(fd_mask); in ssh_exchange_identification()
/mirbsd/src/sbin/nfsd/
Dnfsd.c287 fd_size = howmany(maxsock + 1, NFDBITS) * sizeof(fd_mask); in main()
/mirbsd/src/lib/libsectok/
Dscio.c392 fdset = (fd_set *)calloc(howmany(fd + 1, NFDBITS), sizeof(fd_mask)); in scgetc()
/mirbsd/src/usr.bin/make/
Djob.c1365 bytes = howmany(job->inPipe+1, NFDBITS) * sizeof(fd_mask); in JobExec()
1367 howmany(outputsn+1, NFDBITS) * sizeof(fd_mask) : 0; in JobExec()
2190 int count = howmany(outputsn+1, NFDBITS) * sizeof(fd_mask); in Job_CatchOutput()
/mirbsd/src/usr.sbin/cron/
Dcron.c395 fdsr = (fd_set *)calloc(howmany(cronSock + 1, NFDBITS), in cron_sleep()
/mirbsd/src/usr.sbin/rdate/
Dntp.c330 rfds = calloc(howmany(fd + 1, NFDBITS), sizeof(fd_mask)); in read_packet()
/mirbsd/src/usr.sbin/pppd/
Dsys-bsd.c723 fdsn = howmany(ttyfd+1, NFDBITS) * sizeof(fd_mask);
752 fdsn = howmany(loop_master+1, NFDBITS) * sizeof(fd_mask);

12