Lines Matching refs:ctl
1336 long *ctl; in Psetpriv() local
1348 ctl = malloc(sz); in Psetpriv()
1349 if (ctl == NULL) in Psetpriv()
1352 ctl[0] = PCSPRIV; in Psetpriv()
1354 (void) memcpy(&ctl[1], pprv, PRIV_PRPRIV_SIZE(pprv)); in Psetpriv()
1356 if (write(P->ctlfd, ctl, sz) != sz) in Psetpriv()
1361 free(ctl); in Psetpriv()
1794 long ctl[3]; in Pstopstatus() local
1826 ctl[0] = PCDSTOP; in Pstopstatus()
1827 ctl[1] = PCTWSTOP; in Pstopstatus()
1828 ctl[2] = (long)msec; in Pstopstatus()
1832 rc = write(ctlfd, &ctl[0], 3*sizeof (long)); in Pstopstatus()
1835 rc = write(ctlfd, &ctl[1], 2*sizeof (long)); in Pstopstatus()
1838 rc = write(ctlfd, &ctl[0], 1*sizeof (long)); in Pstopstatus()
2061 long ctl[1 + /* PCCFAULT */ in Psetrun() local
2065 long *ctlp = ctl; in Psetrun()
2096 size = (char *)ctlp - (char *)ctl; in Psetrun()
2110 if (write(ctlfd, ctl, size) != size) { in Psetrun()
2189 long ctl = PCCSIG; in Pclearsig() local
2191 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearsig()
2201 long ctl = PCCFAULT; in Pclearfault() local
2203 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Pclearfault()
2214 long ctl[1 + sizeof (priovec_t) / sizeof (long) + /* PCREAD */ in Psetbkpt() local
2216 long *ctlp = ctl; in Psetbkpt()
2244 size = (char *)ctlp - (char *)ctl; in Psetbkpt()
2245 if (write(P->ctlfd, ctl, size) != size) in Psetbkpt()
2307 long ctl[ in execute_bkpt() local
2317 long *ctlp = ctl; in execute_bkpt()
2384 size = (char *)ctlp - (char *)ctl; in execute_bkpt()
2385 if ((ssize = write(ctlfd, ctl, size)) != size) in execute_bkpt()
2435 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; in Psetwapt() local
2436 prwatch_t *cwp = (prwatch_t *)&ctl[1]; in Psetwapt()
2444 ctl[0] = PCWATCH; in Psetwapt()
2449 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Psetwapt()
2461 long ctl[1 + sizeof (prwatch_t) / sizeof (long)]; in Pdelwapt() local
2462 prwatch_t *cwp = (prwatch_t *)&ctl[1]; in Pdelwapt()
2470 ctl[0] = PCWATCH; in Pdelwapt()
2475 if (write(P->ctlfd, ctl, sizeof (ctl)) != sizeof (ctl)) in Pdelwapt()
2493 long ctl[ in execute_wapt() local
2504 long *ctlp = ctl; in execute_wapt()
2580 size = (char *)ctlp - (char *)ctl; in execute_wapt()
2581 if ((ssize = write(ctlfd, ctl, size)) != size) in execute_wapt()
2626 long ctl[2]; in Psetflags() local
2628 ctl[0] = PCSET; in Psetflags()
2629 ctl[1] = flags; in Psetflags()
2631 if (write(P->ctlfd, ctl, 2*sizeof (long)) != 2*sizeof (long)) { in Psetflags()
2646 long ctl[2]; in Punsetflags() local
2648 ctl[0] = PCUNSET; in Punsetflags()
2649 ctl[1] = flags; in Punsetflags()
2651 if (write(P->ctlfd, ctl, 2*sizeof (long)) != 2*sizeof (long)) { in Punsetflags()
3391 long ctl[3]; in Lstopstatus() local
3421 ctl[0] = PCDSTOP; in Lstopstatus()
3422 ctl[1] = PCTWSTOP; in Lstopstatus()
3423 ctl[2] = (long)msec; in Lstopstatus()
3427 rc = write(ctlfd, &ctl[0], 3*sizeof (long)); in Lstopstatus()
3430 rc = write(ctlfd, &ctl[1], 2*sizeof (long)); in Lstopstatus()
3433 rc = write(ctlfd, &ctl[0], 1*sizeof (long)); in Lstopstatus()
3593 long ctl[1 + /* PCCFAULT */ in Lsetrun() local
3597 long *ctlp = ctl; in Lsetrun()
3629 size = (char *)ctlp - (char *)ctl; in Lsetrun()
3635 if (write(ctlfd, ctl, size) != size) { in Lsetrun()
3648 long ctl = PCCSIG; in Lclearsig() local
3650 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearsig()
3660 long ctl = PCCFAULT; in Lclearfault() local
3662 if (write(ctlfd, &ctl, sizeof (ctl)) != sizeof (ctl)) in Lclearfault()