Searched refs:fd_mask (Results 1 - 25 of 47) sorted by relevance

12

/macosx-10.10/Security-57031.1.35/Security/include/security_utilities/
H A Dfdsel.cpp46 // Given the old and desired new sizes (in fd_mask words), grow
58 void FDSet::grow(fd_mask * &bits, int oldWords, int newWords)
60 fd_mask *newBits = new fd_mask[newWords];
61 memcpy(newBits, bits, oldWords * sizeof(fd_mask));
62 memset(newBits + oldWords, 0, (newWords - oldWords) * sizeof(fd_mask));
84 // Copy only the first words fd_mask words from mBits to mUseBits
90 memcpy(mUseBits, mBits, words * sizeof(fd_mask));
H A Dfdsel.h49 // are fd_mask arrays? Some implementations use optimized assembly
69 fd_mask *mBits; // base bits
70 fd_mask *mUseBits; // mutable copy for select(2)
72 void grow(fd_mask * &bits, int oldWords, int newWords);
/macosx-10.10/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Dfdsel.cpp46 // Given the old and desired new sizes (in fd_mask words), grow
58 void FDSet::grow(fd_mask * &bits, int oldWords, int newWords)
60 fd_mask *newBits = new fd_mask[newWords];
61 memcpy(newBits, bits, oldWords * sizeof(fd_mask));
62 memset(newBits + oldWords, 0, (newWords - oldWords) * sizeof(fd_mask));
84 // Copy only the first words fd_mask words from mBits to mUseBits
90 memcpy(mUseBits, mBits, words * sizeof(fd_mask));
H A Dfdsel.h49 // are fd_mask arrays? Some implementations use optimized assembly
69 fd_mask *mBits; // base bits
70 fd_mask *mUseBits; // mutable copy for select(2)
72 void grow(fd_mask * &bits, int oldWords, int newWords);
/macosx-10.10/tcl-105/tcl_ext/expect/expect/
H A Dexp_simple.c25 static fd_mask checkMasks[3*MASK_SIZE];
30 static fd_mask readyMasks[3*MASK_SIZE];
73 fd_mask bit;
85 index = fd/(NBBY*sizeof(fd_mask));
86 bit = 1 << (fd%(NBBY*sizeof(fd_mask)));
132 fd_mask bit;
139 index = fd/(NBBY*sizeof(fd_mask));
140 bit = 1 << (fd%(NBBY*sizeof(fd_mask)));
188 3*MASK_SIZE*sizeof(fd_mask));
206 memset((VOID *) readyMasks, 0, 3*MASK_SIZE*sizeof(fd_mask));
[all...]
H A Dexp_poll.c94 fd_mask checkMasks[3*MASK_SIZE];
99 fd_mask readyMasks[3*MASK_SIZE];
/macosx-10.10/OpenSSL098-52/src/apps/
H A Ds_apps.h136 typedef int fd_mask; /* int here! VMS prototypes int, not long */ typedef
137 #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask (power of 2!)*/
140 typedef fd_mask fd_set;
/macosx-10.10/tcl-105/tk/tk/unix/
H A DtkUnixEvent.c477 static fd_mask readMask[MASK_SIZE];
481 fd_mask bit, *readMaskPtr = readMask;
521 memset(readMask, 0, MASK_SIZE*sizeof(fd_mask));
530 index = fd/(NBBY*sizeof(fd_mask));
531 bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask)));
546 memset(readMask, 0, MASK_SIZE*sizeof(fd_mask));
556 index = fd/(NBBY*sizeof(fd_mask));
557 bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask)));
[all...]
H A DtkUnixPort.h97 typedef long fd_mask; typedef
121 # define NFDBITS NBBY*sizeof(fd_mask)
/macosx-10.10/tcl-105/tk84/tk/unix/
H A DtkUnixEvent.c501 static fd_mask readMask[MASK_SIZE];
505 fd_mask bit;
545 memset((VOID *) readMask, 0, MASK_SIZE*sizeof(fd_mask));
559 index = fd/(NBBY*sizeof(fd_mask));
560 bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask)));
575 memset((VOID *) readMask, 0, MASK_SIZE*sizeof(fd_mask));
585 index = fd/(NBBY*sizeof(fd_mask));
586 bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask)));
[all...]
H A DtkUnixPort.h94 typedef long fd_mask; typedef
118 # define NFDBITS NBBY*sizeof(fd_mask)
H A Dconfigure.in182 AC_CACHE_CHECK([for fd_mask in sys/select], tcl_cv_grep_fd_mask, [
183 AC_EGREP_HEADER(fd_mask, sys/select.h,
/macosx-10.10/OpenSSH-189/openssh/openbsd-compat/
H A Dbsd-poll.c58 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL ||
59 (writefds = calloc(nmemb, sizeof(fd_mask))) == NULL ||
60 (exceptfds = calloc(nmemb, sizeof(fd_mask))) == NULL) {
/macosx-10.10/tcl-105/tk/tk/macosx/
H A DtkMacOSXPort.h84 typedef long fd_mask; typedef
108 # define NFDBITS NBBY*sizeof(fd_mask)
/macosx-10.10/tcl-105/tk84/tk/macosx/
H A DtkMacOSXPort.h81 typedef long fd_mask; typedef
105 # define NFDBITS NBBY*sizeof(fd_mask)
/macosx-10.10/tcl-105/tcl/tcl/unix/
H A DtclUnixPort.h393 typedef long fd_mask; typedef
425 # define NFDBITS NBBY*sizeof(fd_mask)
/macosx-10.10/OpenSSH-189/openssh/
H A Dssh-keyscan.c544 r = xcalloc(read_wait_nfdset, sizeof(fd_mask));
545 e = xcalloc(read_wait_nfdset, sizeof(fd_mask));
546 memcpy(r, read_wait, read_wait_nfdset * sizeof(fd_mask));
547 memcpy(e, read_wait, read_wait_nfdset * sizeof(fd_mask));
722 read_wait = xcalloc(read_wait_nfdset, sizeof(fd_mask));
H A Dssh-pkcs11-helper.c300 set_size = howmany(max + 1, NFDBITS) * sizeof(fd_mask);
/macosx-10.10/sudo-73/src/
H A Dexec.c386 fdsr = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
387 fdsw = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
389 memset(fdsw, 0, howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask));
390 memset(fdsr, 0, howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask));
H A Dexec_pty.c917 fdsr = ecalloc(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
1028 fdsr = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
1029 fdsw = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
1031 memset(fdsw, 0, howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask));
1032 memset(fdsr, 0, howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask));
/macosx-10.10/xnu-2782.1.97/bsd/sys/
H A Dtypes.h185 typedef __int32_t fd_mask; typedef
/macosx-10.10/tcl-105/tcl84/tcl/unix/
H A DtclUnixPort.h431 typedef long fd_mask; typedef
463 # define NFDBITS NBBY*sizeof(fd_mask)
H A Dconfigure.in196 AC_CACHE_CHECK([for fd_mask in sys/select], tcl_cv_grep_fd_mask, [
197 AC_EGREP_HEADER(fd_mask, sys/select.h,
H A DtclUnixChan.c3240 fd_mask bit;
3241 fd_mask readyMasks[3*MASK_SIZE];
3275 memset((VOID *) readyMasks, 0, 3*MASK_SIZE*sizeof(fd_mask));
3276 index = fd/(NBBY*sizeof(fd_mask));
3277 bit = ((fd_mask) 1) << (fd%(NBBY*sizeof(fd_mask)));
/macosx-10.10/dcerpc-61/dcerpc/ncklib/
H A Dcomnlsn.c136 # define RPC_SELECT_FD_MASK_T fd_mask

Completed in 140 milliseconds

12