| /mirbsd/src/sys/sys/ |
| D | types.h | 183 #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/ |
| D | s_apps.h | 136 #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/ |
| D | select.c | 67 #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/ |
| D | res_send.c | 95 #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()
|
| D | rcmd.c | 203 int fdssize = howmany(MAX(s, s2)+1, NFDBITS) * sizeof(fd_mask); in rcmd_af()
|
| /mirbsd/src/lib/libpthread/uthread/ |
| D | uthread_select.c | 93 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/ |
| D | svc.c | 174 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/ |
| D | defs.c | 379 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/ |
| D | network.c | 69 fdsn = howmany(net+1, NFDBITS) * sizeof(fd_mask); in stilloob()
|
| /mirbsd/src/sbin/routed/ |
| D | main.c | 453 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/ |
| D | sys_generic.c | 665 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/ |
| D | netdate.c | 129 fdsn = howmany(s+1, NFDBITS) * sizeof(fd_mask); in netsettime()
|
| /mirbsd/src/sbin/mount_portal/ |
| D | mount_portal.c | 213 fdssize = howmany(so+1, NFDBITS) * sizeof(fd_mask); in main()
|
| /mirbsd/src/usr.sbin/pppoe/ |
| D | server.c | 96 fdsp = (fd_set *)malloc(howmany(n, NFDBITS) * in server_mode() 102 bzero(fdsp, howmany(n, NFDBITS) * sizeof(fd_mask)); in server_mode()
|
| D | client.c | 105 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/ |
| D | isakmpd.c | 422 mask_size = howmany(n, NFDBITS) * sizeof(fd_mask); in main()
|
| /mirbsd/src/libexec/spamd/ |
| D | spamd.c | 1345 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/ |
| D | packet.c | 1025 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()
|
| D | sshconnect.c | 244 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/ |
| D | nfsd.c | 287 fd_size = howmany(maxsock + 1, NFDBITS) * sizeof(fd_mask); in main()
|
| /mirbsd/src/lib/libsectok/ |
| D | scio.c | 392 fdset = (fd_set *)calloc(howmany(fd + 1, NFDBITS), sizeof(fd_mask)); in scgetc()
|
| /mirbsd/src/usr.bin/make/ |
| D | job.c | 1365 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/ |
| D | cron.c | 395 fdsr = (fd_set *)calloc(howmany(cronSock + 1, NFDBITS), in cron_sleep()
|
| /mirbsd/src/usr.sbin/rdate/ |
| D | ntp.c | 330 rfds = calloc(howmany(fd + 1, NFDBITS), sizeof(fd_mask)); in read_packet()
|
| /mirbsd/src/usr.sbin/pppd/ |
| D | sys-bsd.c | 723 fdsn = howmany(ttyfd+1, NFDBITS) * sizeof(fd_mask); 752 fdsn = howmany(loop_master+1, NFDBITS) * sizeof(fd_mask);
|