Lines Matching refs:ctl

1382 	long *ctl;  in Psetpriv()  local
1394 ctl = malloc(sz); in Psetpriv()
1395 if (ctl == NULL) in Psetpriv()
1398 ctl[0] = PCSPRIV; in Psetpriv()
1400 (void) memcpy(&ctl[1], pprv, PRIV_PRPRIV_SIZE(pprv)); in Psetpriv()
1402 if (write(P->ctlfd, ctl, sz) != sz) in Psetpriv()
1407 free(ctl); in Psetpriv()
1840 long ctl[3]; in Pstopstatus() local
1872 ctl[0] = PCDSTOP; in Pstopstatus()
1873 ctl[1] = PCTWSTOP; in Pstopstatus()
1874 ctl[2] = (long)msec; in Pstopstatus()
1878 rc = write(ctlfd, &ctl[0], 3*sizeof (long)); in Pstopstatus()
1881 rc = write(ctlfd, &ctl[1], 2*sizeof (long)); in Pstopstatus()
1884 rc = write(ctlfd, &ctl[0], 1*sizeof (long)); in Pstopstatus()
2107 long ctl[1 + /* PCCFAULT */ in Psetrun() local
2111 long *ctlp = ctl; in Psetrun()
2142 size = (char *)ctlp - (char *)ctl; in Psetrun()
2156 if (write(ctlfd, ctl, size) != size) { in Psetrun()
2235 long ctl = PCCSIG; in Pclearsig() local
2237 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearsig()
2247 long ctl = PCCFAULT; in Pclearfault() local
2249 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearfault()
2260 long ctl[1 + sizeof (priovec_t) / sizeof (long) + /* PCREAD */ in Psetbkpt() local
2262 long *ctlp = ctl; in Psetbkpt()
2290 size = (char *)ctlp - (char *)ctl; in Psetbkpt()
2291 if (write(P->ctlfd, ctl, size) != size) in Psetbkpt()
2353 long ctl[ in execute_bkpt() local
2363 long *ctlp = ctl; in execute_bkpt()
2430 size = (char *)ctlp - (char *)ctl; in execute_bkpt()
2431 if ((ssize = write(ctlfd, ctl, size)) != size) in execute_bkpt()
2481 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; in Psetwapt() local
2482 prwatch_t *cwp = (prwatch_t *)&ctl[1]; in Psetwapt()
2490 ctl[0] = PCWATCH; in Psetwapt()
2495 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Psetwapt()
2507 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; in Pdelwapt() local
2508 prwatch_t *cwp = (prwatch_t *)&ctl[1]; in Pdelwapt()
2516 ctl[0] = PCWATCH; in Pdelwapt()
2521 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Pdelwapt()
2539 long ctl[ in execute_wapt() local
2550 long *ctlp = ctl; in execute_wapt()
2626 size = (char *)ctlp - (char *)ctl; in execute_wapt()
2627 if ((ssize = write(ctlfd, ctl, size)) != size) in execute_wapt()
2672 long ctl[2]; in Psetflags() local
2674 ctl[0] = PCSET; in Psetflags()
2675 ctl[1] = flags; in Psetflags()
2677 if (write(P->ctlfd, ctl, 2*sizeof (long)) != 2*sizeof (long)) { in Psetflags()
2692 long ctl[2]; in Punsetflags() local
2694 ctl[0] = PCUNSET; in Punsetflags()
2695 ctl[1] = flags; in Punsetflags()
2697 if (write(P->ctlfd, ctl, 2*sizeof (long)) != 2*sizeof (long)) { in Punsetflags()
3451 long ctl[3]; in Lstopstatus() local
3481 ctl[0] = PCDSTOP; in Lstopstatus()
3482 ctl[1] = PCTWSTOP; in Lstopstatus()
3483 ctl[2] = (long)msec; in Lstopstatus()
3487 rc = write(ctlfd, &ctl[0], 3*sizeof (long)); in Lstopstatus()
3490 rc = write(ctlfd, &ctl[1], 2*sizeof (long)); in Lstopstatus()
3493 rc = write(ctlfd, &ctl[0], 1*sizeof (long)); in Lstopstatus()
3653 long ctl[1 + /* PCCFAULT */ in Lsetrun() local
3657 long *ctlp = ctl; in Lsetrun()
3689 size = (char *)ctlp - (char *)ctl; in Lsetrun()
3695 if (write(ctlfd, ctl, size) != size) { in Lsetrun()
3708 long ctl = PCCSIG; in Lclearsig() local
3710 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearsig()
3720 long ctl = PCCFAULT; in Lclearfault() local
3722 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearfault()