Searched refs:fds (Results 51 - 75 of 133) sorted by relevance

123456

/macosx-10.10/tcl-105/tcl84/tcl/unix/
H A DtclUnixNotfy.c704 * If there are no threads, no timeout, and no fds registered,
899 int fds[2];
905 if (pipe(fds) != 0) {
909 receivePipe = fds[0];
917 status = fcntl(fds[1], F_GETFL);
919 if (fcntl(fds[1], F_SETFL, status) < 0) {
926 if (ioctl(fds[1], (int) FIONBIO, &status) < 0) {
936 triggerPipe = fds[1];
889 int fds[2]; local
/macosx-10.10/file_cmds-242/pax/
H A Dar_io.c1285 int fds[2]; local
1288 if (pipe(fds) < 0)
1297 dup2(fds[1], fd);
1299 dup2(fds[0], fd);
1300 close(fds[0]);
1301 close(fds[1]);
1304 dup2(fds[0], STDIN_FILENO);
1308 dup2(fds[1], STDOUT_FILENO);
1312 close(fds[0]);
1313 close(fds[
[all...]
/macosx-10.10/rsync-45/rsync/
H A Dclientserver.c446 int fds[2]; local
449 if (pipe(fds) < 0 || (pre_exec_pid = fork()) < 0) {
457 close(fds[1]);
458 set_blocking(fds[0]);
459 len = read_arg_from_pipe(fds[0], buf, BIGPATHBUFLEN);
465 len = read_arg_from_pipe(fds[0], buf,
475 close(fds[0]);
483 close(fds[0]);
484 set_blocking(fds[1]);
485 pre_exec_fd = fds[
[all...]
/macosx-10.10/sudo-73/src/
H A Dexec.c779 pipe_nonblock(fds)
780 int fds[2];
784 rval = pipe(fds);
786 flags = fcntl(fds[0], F_GETFL, 0);
788 rval = fcntl(fds[0], F_SETFL, flags | O_NONBLOCK);
790 flags = fcntl(fds[1], F_GETFL, 0);
792 rval = fcntl(fds[1], F_SETFL, flags | O_NONBLOCK);
795 close(fds[0]);
796 close(fds[1]);
/macosx-10.10/OpenSSL098-52/src/demos/easy_tls/
H A Deasy-tls.c199 int fds[2] = {-1, -1}; local
217 r = socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
220 if (a.fd >= FD_SETSIZE || fds[0] >= FD_SETSIZE) {
241 close(fds[1]);
246 tls_proxy(fds[0], a.fd, infofds[1], a.ctx, a.client_p);
255 /* install fds[1] in place of fd: */
256 close(fds[0]);
257 fds[0] = -1;
260 r = dup2(fds[1], a.fd);
261 close(fds[
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dsys_generic.c1412 struct pollfd *fds; local
1443 fds = (struct pollfd *)&cont[1];
1444 error = copyin(uap->fds, fds, nfds * sizeof(struct pollfd));
1468 short events = fds[i].events;
1473 if (fds[i].fd < 0) {
1474 fds[i].revents = 0;
1479 kev.ident = fds[i].fd;
1481 kev.udata = CAST_USER_ADDR_T(&fds[i]);
1519 fds[
1560 struct pollfd *fds = CAST_DOWN(struct pollfd *, kevp->udata); local
[all...]
/macosx-10.10/tcl-105/tcl84/tcl/macosx/
H A DtclMacOSXNotify.c385 int fds[2], status;
391 if (pipe(fds) != 0) {
395 status = fcntl(fds[0], F_GETFL);
397 if (fcntl(fds[0], F_SETFL, status) < 0) {
400 status = fcntl(fds[1], F_GETFL);
402 if (fcntl(fds[1], F_SETFL, status) < 0) {
406 receivePipe = fds[0];
407 triggerPipe = fds[1];
384 int fds[2], status; local
/macosx-10.10/SmartcardCCID-55008/libusb/libusb/libusb/os/
H A Ddarwin_usb.c295 write (priv->fds[1], &message, sizeof (message));
848 pipe (priv->fds);
851 fcntl (priv->fds[1], F_SETFD, O_NONBLOCK);
853 usbi_add_pollfd(HANDLE_CTX(dev_handle), priv->fds[0], POLLIN);
907 usbi_remove_pollfd (HANDLE_CTX (dev_handle), priv->fds[0]);
908 close (priv->fds[1]);
909 close (priv->fds[0]);
911 priv->fds[0] = priv->fds[1] = -1;
1554 write (priv->fds[
1620 op_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) argument
[all...]
H A Ddarwin_usb.h136 int fds[2]; member in struct:darwin_device_handle_priv
H A Dpoll_windows.h78 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout);
/macosx-10.10/bind9-45.101/bind9/bin/tests/virtual-time/
H A Dvtwrapper.c236 poll(struct pollfd fds[], nfds_t nfds, int timeout) { argument
243 return syscall(SYS_poll, fds, nfds, timeout);
249 return syscall(SYS_poll, fds, nfds, timeout);
251 return syscall(SYS_poll, fds, nfds, timeout);
/macosx-10.10/cups-408/cups/cups/
H A Dtestfile.c59 int fds[2]; /* Open file descriptors */ local
94 pipe(fds);
95 close(fds[1]);
100 if ((fdfile = cupsFileOpenFd(fds[0], "r")) == NULL)
/macosx-10.10/dtrace-147/test/tst/common/
H A DMake.sh1 gcc -arch i386 ./io/tst.fds.c -o a.out; mv a.out ./io/tst.fds.exe
H A DMake.x86_64.sh1 gcc -arch x86_64 ./io/tst.fds.c -o a.out; mv a.out ./io/tst.fds.exe
/macosx-10.10/tcl-105/tcl/tcl/unix/
H A DtclUnixNotfy.c722 * If there are no threads, no timeout, and no fds registered, then
915 int fds[2];
921 if (pipe(fds) != 0) {
925 receivePipe = fds[0];
930 if (TclUnixSetBlockingMode(fds[1], TCL_MODE_NONBLOCKING) < 0) {
939 triggerPipe = fds[1];
905 int fds[2]; local
/macosx-10.10/ppp-786.1.1/Helpers/vpnd/
H A Dvpnplugins.c544 fd_set fds = *out_fds; local
564 FD_SET(evt_sockfd, &fds);
579 FD_SET(lb_sockfd, &fds);
605 *out_fds = fds;
714 fd_set fds, fds_save; local
788 fds = fds_save;
789 i = select(fdmax, &fds, NULL, NULL, hastimeout ? &timeout : 0);
795 if (lb_is_started && FD_ISSET (evt_sockfd, &fds)) {
829 if (lb_is_started && FD_ISSET (lb_sockfd, &fds)) {
875 if (health_sockfd != -1 && FD_ISSET (health_sockfd, &fds)) {
[all...]
/macosx-10.10/Heimdal-398.1.2/appl/kx/
H A Dkxd.c514 fd_set fds; local
519 FD_ZERO(&fds);
526 FD_SET(sock, &fds);
533 FD_SET(sockets[i].fd, &fds);
535 ret = select(FD_SETSIZE, &fds, NULL, NULL, NULL);
538 if(FD_ISSET(sock, &fds)){
545 if (FD_ISSET(sockets[i].fd, &fds)) {
/macosx-10.10/curl-83.1.2/curl/lib/
H A Deasy.c579 struct pollfd fds[4]; local
586 /* populate the fds[] array */
587 for(m = ev->list, f=&fds[0]; m; m = m->next) {
600 pollrc = Curl_poll(fds, numfds, (int)ev->ms);
616 if(fds[i].revents) {
618 int act = poll2cselect(fds[i].revents); /* convert */
620 fds[i].fd);
621 mcode = curl_multi_socket_action(multi, fds[i].fd, act,
/macosx-10.10/shell_cmds-179/su/
H A Dsu.c183 int temp, fds[2]; local
495 if (pipe(fds) == -1) {
504 close(fds[0]);
508 close(fds[1]);
535 close(fds[1]);
536 read(fds[0], &temp, 1);
537 close(fds[0]);
/macosx-10.10/ruby-106/ruby/
H A Dthread.c3124 rb_fd_init(rb_fdset_t *fds) argument
3126 fds->maxfd = 0;
3127 fds->fdset = ALLOC(fd_set);
3128 FD_ZERO(fds->fdset);
3144 rb_fd_term(rb_fdset_t *fds) argument
3146 if (fds->fdset) xfree(fds->fdset);
3147 fds->maxfd = 0;
3148 fds->fdset = 0;
3152 rb_fd_zero(rb_fdset_t *fds) argument
3159 rb_fd_resize(int n, rb_fdset_t *fds) argument
3175 rb_fd_set(int n, rb_fdset_t *fds) argument
3182 rb_fd_clr(int n, rb_fdset_t *fds) argument
3189 rb_fd_isset(int n, const rb_fdset_t *fds) argument
3533 ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *ts, const sigset_t *sigmask) argument
3565 struct pollfd fds; local
3635 init_set_fd(int fd, rb_fdset_t *fds) argument
[all...]
/macosx-10.10/Heimdal-398.1.2/lib/ipc/
H A Dserver.c1324 struct pollfd *fds; local
1331 fds = malloc(num_clients * sizeof(fds[0]));
1332 if (fds == NULL)
1338 fds[n].fd = clients[n]->fd;
1339 fds[n].events = 0;
1341 fds[n].events |= POLLIN;
1343 fds[n].events |= POLLOUT;
1345 fds[n].revents = 0;
1348 poll(fds, num_fd
[all...]
/macosx-10.10/cups-408/cups/scheduler/
H A Dmain.c33 extern int launch_activate_socket(const char *name, int **fds, size_t *cnt);
69 static long select_timeout(int fds);
104 int fds; /* Number of ready descriptors */ local
664 fds = 1;
754 if ((timeout = select_timeout(fds)) > 1 && LastEvent)
775 if ((fds = cupsdDoSelect(timeout)) < 0)
876 if (!fds && service_idle_exit)
1541 select_timeout(int fds) /* I - Number of descriptors returned */ argument
1566 * If select has been active in the last second (fds > 0) or we have
1571 if (fds >
[all...]
/macosx-10.10/zsh-61/zsh/Src/Zle/
H A Dzle_main.c552 struct pollfd *fds; local
581 /* First pollfd is SHTTY, following are the nwatch fds */
582 fds = zalloc(sizeof(struct pollfd) * nfds);
583 fds[0].fd = SHTTY;
588 fds[0].events = POLLIN;
590 fds[i+1].fd = watch_fds[i].fd;
591 fds[i+1].events = POLLIN;
604 selret = poll(fds, errtry ? 1 : nfds, poll_timeout);
643 * with all fds, then try unsetting the special ones.
714 (fds[
[all...]
/macosx-10.10/lsof-53/lsof/tests/
H A DLTsock.c151 char *fds; /* FD in ASCII */ member in struct:fdpara
329 FdPara[ti].fds = MkStrCpy(buf, &tj);
411 if (FdPara[LT_SRVR].fds)
412 (void) free((void *)FdPara[LT_SRVR].fds);
413 FdPara[LT_SRVR].fds = MkStrCpy(buf, &tj);
702 if (strcmp(fop->v, FdPara[px].fds))
/macosx-10.10/xnu-2782.1.97/bsd/dev/dtrace/scripts/
H A Dio.d136 * the fds[] array or a translated fileglob *. Note that the various open
240 inline fileinfo_t fds[int fd] = xlate <fileinfo_t> (
245 #pragma D attributes Stable/Stable/Common fds
246 #pragma D binding "1.1" fds

Completed in 398 milliseconds

123456