Lines Matching refs:ctl
1176 long *ctl; in Psetpriv() local
1188 ctl = malloc(sz); in Psetpriv()
1189 if (ctl == NULL) in Psetpriv()
1192 ctl[0] = PCSPRIV; in Psetpriv()
1194 (void) memcpy(&ctl[1], pprv, PRIV_PRPRIV_SIZE(pprv)); in Psetpriv()
1196 if (write(P->ctlfd, ctl, sz) != sz) in Psetpriv()
1201 free(ctl); in Psetpriv()
1632 long ctl[3]; in Pstopstatus() local
1664 ctl[0] = PCDSTOP; in Pstopstatus()
1665 ctl[1] = PCTWSTOP; in Pstopstatus()
1666 ctl[2] = (long)msec; in Pstopstatus()
1670 rc = write(ctlfd, &ctl[0], 3*sizeof (long)); in Pstopstatus()
1673 rc = write(ctlfd, &ctl[1], 2*sizeof (long)); in Pstopstatus()
1676 rc = write(ctlfd, &ctl[0], 1*sizeof (long)); in Pstopstatus()
1899 long ctl[1 + /* PCCFAULT */ in Psetrun() local
1903 long *ctlp = ctl; in Psetrun()
1934 size = (char *)ctlp - (char *)ctl; in Psetrun()
1948 if (write(ctlfd, ctl, size) != size) { in Psetrun()
2026 long ctl = PCCSIG; in Pclearsig() local
2028 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearsig()
2038 long ctl = PCCFAULT; in Pclearfault() local
2040 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearfault()
2051 long ctl[1 + sizeof (priovec_t) / sizeof (long) + /* PCREAD */ in Psetbkpt() local
2053 long *ctlp = ctl; in Psetbkpt()
2081 size = (char *)ctlp - (char *)ctl; in Psetbkpt()
2082 if (write(P->ctlfd, ctl, size) != size) in Psetbkpt()
2144 long ctl[ in execute_bkpt() local
2154 long *ctlp = ctl; in execute_bkpt()
2221 size = (char *)ctlp - (char *)ctl; in execute_bkpt()
2222 if ((ssize = write(ctlfd, ctl, size)) != size) in execute_bkpt()
2272 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; in Psetwapt() local
2273 prwatch_t *cwp = (prwatch_t *)&ctl[1]; in Psetwapt()
2281 ctl[0] = PCWATCH; in Psetwapt()
2286 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Psetwapt()
2298 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; in Pdelwapt() local
2299 prwatch_t *cwp = (prwatch_t *)&ctl[1]; in Pdelwapt()
2307 ctl[0] = PCWATCH; in Pdelwapt()
2312 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Pdelwapt()
2330 long ctl[ in execute_wapt() local
2341 long *ctlp = ctl; in execute_wapt()
2417 size = (char *)ctlp - (char *)ctl; in execute_wapt()
2418 if ((ssize = write(ctlfd, ctl, size)) != size) in execute_wapt()
2463 long ctl[2]; in Psetflags() local
2465 ctl[0] = PCSET; in Psetflags()
2466 ctl[1] = flags; in Psetflags()
2468 if (write(P->ctlfd, ctl, 2*sizeof (long)) != 2*sizeof (long)) { in Psetflags()
2483 long ctl[2]; in Punsetflags() local
2485 ctl[0] = PCUNSET; in Punsetflags()
2486 ctl[1] = flags; in Punsetflags()
2488 if (write(P->ctlfd, ctl, 2*sizeof (long)) != 2*sizeof (long)) { in Punsetflags()
3225 long ctl[3]; in Lstopstatus() local
3255 ctl[0] = PCDSTOP; in Lstopstatus()
3256 ctl[1] = PCTWSTOP; in Lstopstatus()
3257 ctl[2] = (long)msec; in Lstopstatus()
3261 rc = write(ctlfd, &ctl[0], 3*sizeof (long)); in Lstopstatus()
3264 rc = write(ctlfd, &ctl[1], 2*sizeof (long)); in Lstopstatus()
3267 rc = write(ctlfd, &ctl[0], 1*sizeof (long)); in Lstopstatus()
3427 long ctl[1 + /* PCCFAULT */ in Lsetrun() local
3431 long *ctlp = ctl; in Lsetrun()
3463 size = (char *)ctlp - (char *)ctl; in Lsetrun()
3469 if (write(ctlfd, ctl, size) != size) { in Lsetrun()
3482 long ctl = PCCSIG; in Lclearsig() local
3484 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearsig()
3494 long ctl = PCCFAULT; in Lclearfault() local
3496 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearfault()