/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | fdcach.c | 66 PRFileDesc *fds[NUM_FDS]; local 68 int numfds = sizeof(fds)/sizeof(fds[0]); 99 fds[i] = PR_NewTCPSocket(); 100 if (NULL == fds[i]) { 104 if (fds[i] != savefds[i]) { 125 fds[i] = PR_NewTCPSocket(); 126 if (NULL == fds[i]) { 131 if (fds[i] != savefds[numfds-1-i]) { 136 savefds[numfds-1-i] = fds[ [all...] |
H A D | ioconthr.c | 81 PRFileDesc **fds; local 86 fds = (PRFileDesc **) PR_MALLOC(2 * num_threads * sizeof(PRFileDesc *)); 87 PR_ASSERT(fds != NULL); 92 if (PR_NewTCPSocketPair(&fds[2 * index]) == PR_FAILURE) { 97 PR_USER_THREAD, ThreadFunc, fds[2 * index], 135 /* fds[2 * index] was passed to and closed by threads[index]. */ 136 if (PR_Close(fds[2 * index + 1]) == PR_FAILURE) { 142 PR_DELETE(fds);
|
H A D | prselect.c | 123 PRFileDesc *fds0[10], *fds1[10], **fds, **other_fds; local 294 fds = fds0; 296 fds[0] = listenSock1; 297 fds[1] = listenSock2; 321 other_fds[j] = fds[j]; 322 if (PR_FD_ISSET(fds[j], &readFdSet)) { 326 sock = PR_Accept(fds[j], NULL, PR_INTERVAL_NO_TIMEOUT); 335 PR_FD_SET(fds[j], &readFdSet); 339 if (PR_FD_ISSET(fds[j], &readFdSet)) { 342 PR_FD_CLR(fds[ [all...] |
H A D | selct_nm.c | 106 PRFileDesc *fds0[10], *fds1[10], **fds, **other_fds; local 231 fds = fds0; 233 fds[0] = listenSock1; 234 fds[1] = listenSock2; 261 other_fds[j] = fds[j]; 262 if (PR_FD_ISSET(fds[j], &readFdSet)) { 266 sock = PR_Accept(fds[j], NULL, PR_INTERVAL_NO_TIMEOUT); 276 PR_FD_SET(fds[j], &readFdSet); 280 if (PR_FD_ISSET(fds[j], &readFdSet)) { 283 PR_FD_CLR(fds[ [all...] |
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 49 int i, n, fds[10]; local 76 * To test the fds[] array, we open /dev/null (a file with reliable 79 fds[n++] = open(file, O_RDONLY); 80 fds[n++] = open(file, O_WRONLY); 81 fds[n++] = open(file, O_RDWR); 83 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC | 87 fds[n++] = open(file, O_RDWR); 88 (void) lseek(fds[n - 1], 123, SEEK_SET); 93 * our DTrace script into recording the content of the fds[] array. 96 (void) ioctl(fds[ [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/arch/x86/core/linux/ |
H A D | linux_api.c | 71 int linux_poll ( struct pollfd *fds, nfds_t nfds, int timeout ) { argument 72 return linux_syscall ( __NR_poll, fds, nfds, timeout );
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/ |
H A D | uxwrap.c | 75 int fds[2]; local 78 if (!pipe(fds)) { 79 _pr_xt_hack_fd = fds[0]; 191 * number of fds we may need to poll.
|
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/syslinux/ |
H A D | comboot_call.c | 406 fd_set fds; local 410 FD_ZERO ( &fds ); 411 FD_SET ( fd, &fds ); 413 select ( &fds, 1 );
|
/vbox/src/VBox/NetworkServices/NAT/ |
H A D | proxy_pollmgr.c | 46 struct pollfd *fds; member in struct:pollmgr 87 pollmgr.fds = NULL; 117 malloc(newcap * sizeof(*pollmgr.fds)); 119 DPRINTF(("%s: Failed to allocate fds array\n", __func__)); 132 pollmgr.fds = newfds; 138 pollmgr.fds[i].fd = INVALID_SOCKET; 139 pollmgr.fds[i].events = 0; 140 pollmgr.fds[i].revents = 0; 193 realloc(pollmgr.fds, newcap * sizeof(*pollmgr.fds)); [all...] |
/vbox/src/libs/xpcom18a4/ipc/ipcd/client/src/ |
H A D | ipcConnectionUnix.cpp | 131 PRPollDesc fds[2]; member in struct:ipcConnectionState 148 if (s->fds[SOCK].fd) 149 PR_Close(s->fds[SOCK].fd); 151 if (s->fds[POLL].fd) 152 PR_DestroyPollableEvent(s->fds[POLL].fd); 169 s->fds[SOCK].fd = NULL; 170 s->fds[POLL].fd = PR_NewPollableEvent(); 175 if (!s->lock || !s->fds[1].fd) 191 s->fds[SOCK].fd = fd; 205 n = PR_Read(s->fds[SOC [all...] |
/vbox/src/apps/adpctl/ |
H A D | VBoxNetAdpCtl.cpp | 143 int fds[2]; local 149 rc = pipe(fds); 160 close(fds[0]); 162 rc = dup2(fds[1], STDOUT_FILENO); 169 close(fds[1]); 170 FILE *fp = fdopen(fds[0], "r");
|
/vbox/src/recompiler/tests/ |
H A D | linux-test.c | 364 int fds[2], fd_max, ret; local 368 chk_error(pipe(fds)); 369 chk_error(fcntl(fds[0], F_SETFL, O_NONBLOCK)); 370 chk_error(fcntl(fds[1], F_SETFL, O_NONBLOCK)); 375 fd_max = fds[0]; 376 FD_SET(fds[0], &rfds); 379 FD_SET(fds[1], &wfds); 380 if (fds[1] > fd_max) 381 fd_max = fds[1]; 385 if (FD_ISSET(fds[ [all...] |
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/ |
H A D | dt_open.c | 748 int *fds = realloc(dfp->df_fds, size * sizeof (int)); local 750 if (fds == NULL) 753 dfp->df_fds = fds;
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/ |
H A D | prio.h | 1812 ** PRFileDesc *fds[2] 1821 NSPR_API(PRStatus) PR_NewTCPSocketPair(PRFileDesc *fds[2]); variable
|