Lines Matching refs:ctl_fd

359   int ctl_fd;			/* File descriptor for /proc control file */
562 * three fields of the procinfo struct (ctl_fd, status_fd, and
599 pi->ctl_fd = fd;
660 if ((fd = ioctl (process->ctl_fd, PIOCOPENLWP, &lwpid)) <= 0)
667 pi->ctl_fd = pi->as_fd = pi->status_fd = fd;
737 if (pi->ctl_fd > 0)
738 close (pi->ctl_fd);
745 pi->ctl_fd = pi->as_fd = pi->status_fd = 0;
1426 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
1432 win = (ioctl (pi->ctl_fd, PIOCSET, &flag) >= 0);
1436 win = (ioctl (pi->ctl_fd, PIOCRESET, &flag) >= 0);
1445 win = (ioctl (pi->ctl_fd, PIOCSRLC, NULL) >= 0);
1449 win = (ioctl (pi->ctl_fd, PIOCRRLC, NULL) >= 0);
1455 win = (ioctl (pi->ctl_fd, PIOCSFORK, NULL) >= 0);
1459 win = (ioctl (pi->ctl_fd, PIOCRFORK, NULL) >= 0);
1638 if (pi->ctl_fd == 0 &&
1645 win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
1647 win = (ioctl (pi->ctl_fd, PIOCSTOP, &pi->prstatus) >= 0);
1679 * replace it with one that makes sure the ctl_fd is open.
1688 win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
1693 win = (ioctl (pi->ctl_fd, PIOCWSTOP, &pi->prstatus) >= 0);
1745 if (pi->ctl_fd == 0 &&
1765 win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
1773 win = (ioctl (pi->ctl_fd, PIOCRUN, &prrun) >= 0);
1796 * replace it with one that makes sure the ctl_fd is open.
1813 win = (write (pi->ctl_fd, (char *) &arg, sizeof (arg)) == sizeof (arg));
1816 win = (ioctl (pi->ctl_fd, PIOCSTRACE, sigset) >= 0);
1842 * replace it with one that makes sure the ctl_fd is open.
1859 win = (write (pi->ctl_fd, (char *) &arg, sizeof (arg)) == sizeof (arg));
1862 win = (ioctl (pi->ctl_fd, PIOCSFAULT, fltset) >= 0);
1886 * replace it with one that makes sure the ctl_fd is open.
1908 win = (write (pi->ctl_fd, (char *) argp, argp_size) == argp_size);
1912 win = (ioctl (pi->ctl_fd, PIOCSENTRY, sysset) >= 0);
1936 * replace it with one that makes sure the ctl_fd is open.
1958 win = (write (pi->ctl_fd, (char *) argp, argp_size) == argp_size);
1962 win = (ioctl (pi->ctl_fd, PIOCSEXIT, sysset) >= 0);
1986 * replace it with one that makes sure the ctl_fd is open.
2002 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
2005 win = (ioctl (pi->ctl_fd, PIOCSHOLD, sighold) >= 0);
2029 * replace it with one that makes sure the ctl_fd is open.
2066 * replace it with one that makes sure the ctl_fd is open.
2103 * replace it with one that makes sure the ctl_fd is open.
2123 if (ioctl (pi->ctl_fd, PIOCGHOLD, &sigheld) >= 0)
2149 * replace it with one that makes sure the ctl_fd is open.
2165 if (ioctl (pi->ctl_fd, PIOCGTRACE, &sigtrace) >= 0)
2191 * replace it with one that makes sure the ctl_fd is open.
2225 * replace it with one that makes sure the ctl_fd is open.
2259 * replace it with one that makes sure the ctl_fd is open.
2275 if (ioctl (pi->ctl_fd, PIOCGFAULT, &flttrace) >= 0)
2301 * replace it with one that makes sure the ctl_fd is open.
2348 if (ioctl (pi->ctl_fd, PIOCGENTRY, &sysentry) >= 0)
2374 * replace it with one that makes sure the ctl_fd is open.
2420 if (ioctl (pi->ctl_fd, PIOCGEXIT, &sysexit) >= 0)
2447 * replace it with one that makes sure the ctl_fd is open.
2456 win = (write (pi->ctl_fd, (void *) &cmd, sizeof (cmd)) == sizeof (cmd));
2459 win = (ioctl (pi->ctl_fd, PIOCCFAULT, 0) >= 0);
2493 * replace it with one that makes sure the ctl_fd is open.
2518 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
2520 win = (ioctl (pi->ctl_fd, PIOCSSIG, (void *) &arg.sinfo) >= 0);
2543 * replace it with one that makes sure the ctl_fd is open.
2567 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
2570 win = (ioctl (pi->ctl_fd, PIOCSSIG, 0) >= 0);
2633 if (pi->ctl_fd == 0 &&
2651 ioctl (pi->ctl_fd, PIOCGFPREG, &pi->fpregset) >= 0)
2657 ioctl (pi->ctl_fd, PIOCTGFPREG, &thread_fpregs) >= 0)
2669 if (ioctl (pi->ctl_fd, PIOCGFPREG, &pi->fpregset) >= 0)
2700 if (pi->ctl_fd == 0 &&
2716 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
2718 win = (ioctl (pi->ctl_fd, PIOCSREG, gregs) >= 0);
2743 if (pi->ctl_fd == 0 &&
2759 win = (write (pi->ctl_fd, (void *) &arg, sizeof (arg)) == sizeof (arg));
2763 win = (ioctl (pi->ctl_fd, PIOCSFPREG, fpregs) >= 0);
2776 win = (ioctl (pi->ctl_fd, PIOCTSFPREG, &thread_fpregs) >= 0);
2779 win = (ioctl (pi->ctl_fd, PIOCSFPREG, fpregs) >= 0);
2806 if (pi->ctl_fd == 0 &&
2818 win = (write (pi->ctl_fd, (char *) &cmd, sizeof (cmd)) == sizeof (cmd));
2822 win = (ioctl (pi->ctl_fd, PIOCKILL, &signo) >= 0);
2843 * replace it with one that makes sure the ctl_fd is open.
2904 return (write (pi->ctl_fd, &arg, sizeof (arg)) == sizeof (arg));
2907 return (ioctl (pi->ctl_fd, PIOCSWATCH, pwatch) >= 0);
2976 if (ioctl (pi->ctl_fd, PIOCNLDT, &nldt) < 0)
2992 if (ioctl (pi->ctl_fd, PIOCLDT, ldt_entry) < 0)
3032 if (ioctl (pi->ctl_fd, PIOCNTHR, &nthreads) < 0)
3177 * replace it with one that makes sure the ctl_fd is open.
3191 if (ioctl (pi->ctl_fd, PIOCLSTATUS, prstatus) < 0)
3232 * replace it with one that makes sure the ctl_fd is open.
3282 * replace it with one that makes sure the ctl_fd is open.
3296 if (ioctl (pi->ctl_fd, PIOCTLIST, threads) < 0)
3356 * replace it with one that makes sure the ctl_fd is open.
3458 if (ioctl (pi->ctl_fd, PIOCGSPCACT, &prfs_flags) < 0)
3463 if (ioctl (pi->ctl_fd, PIOCSSPCACT, &prfs_flags) < 0)
4676 if (ioctl (pi->ctl_fd, PIOCSSIG, NULL) < 0)
4697 ioctl (pi->ctl_fd, PIOCSSIG, &newsiginfo);
4888 if (ioctl (pi->ctl_fd, PIOCGSPCACT, &prfs_flags) < 0)
4896 if (ioctl (pi->ctl_fd, PIOCSSPCACT, &prfs_flags) < 0)
5372 if (ioctl (pi->ctl_fd, PIOCNMAP, &nmap) != 0)
5376 if (ioctl (pi->ctl_fd, PIOCMAP, prmaps) != 0)
5429 fd = ioctl (pi->ctl_fd, PIOCOPENM, &map->pr_vaddr);