• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/xnu-2422.115.4/bsd/kern/

Lines Matching +defs:cc +defs:list

36  *    notice, this list of conditions and the following disclaimer.
38 * notice, this list of conditions and the following disclaimer in the
242 * ptmx_ioctl is a pointer to a list of pointers to tty structures which is
244 * structures themselves pointed to from this list come and go as needed.
718 int cc;
721 cc = MIN(uio_resid(uio), BUFSIZ);
723 cc = MIN(cc, tp->t_canq.c_cc - 1);
724 cc = q_to_b(&tp->t_canq, (u_char *)buf, cc);
725 error = uiomove(buf, cc, uio);
903 int error = 0, cc;
923 cc = MIN(uio_resid(uio),
925 uiomove((caddr_t)&tp->t_termios, cc,
954 cc = q_to_b(&tp->t_outq, (u_char *)buf, MIN(uio_resid(uio), BUFSIZ));
955 if (cc <= 0)
957 error = uiomove(buf, cc, uio);
1180 int cc = 0;
1196 while ((uio_resid(uio) > 0 || cc > 0) &&
1198 if (cc == 0) {
1199 cc = MIN(uio_resid(uio), BUFSIZ);
1200 cc = MIN(cc, TTYHOG - 1 - tp->t_canq.c_cc);
1202 error = uiomove((caddr_t)cp, cc, uio);
1208 uio_setresid(uio, (uio_resid(uio) + cc));
1213 if (cc > 0) {
1214 cc = b_to_q((u_char *)cp, cc, &tp->t_canq);
1223 if (cc > 0)
1228 uio_setresid(uio, (uio_resid(uio) + cc));
1234 while (uio_resid(uio) > 0 || cc > 0) {
1235 if (cc == 0) {
1236 cc = MIN(uio_resid(uio), BUFSIZ);
1238 error = uiomove((caddr_t)cp, cc, uio);
1244 uio_setresid(uio, (uio_resid(uio) + cc));
1249 while (cc > 0) {
1257 cc--;
1259 cc = 0;
1273 uio_setresid(uio, (uio_resid(uio) + cc));
1279 uio_setresid(uio, (uio_resid(uio) + cc));
1287 uio_setresid(uio, (uio_resid(uio) + cc));
1299 u_char *cc;
1308 cc = tp->t_cc;
1516 stop = (tp->t_iflag & IXON) && CCEQ(cc[VSTOP], CTRL('s'))
1517 && CCEQ(cc[VSTART], CTRL('q'));
1699 struct klist *list;
1707 list = &tp->t_rsel.si_note;
1708 SLIST_FOREACH(kn, list, kn_selnext)
1711 list = &tp->t_wsel.si_note;
1712 SLIST_FOREACH(kn, list, kn_selnext)
1726 list = &tp->t_rsel.si_note;
1727 SLIST_FOREACH_SAFE(kn, list, kn_selnext, tkn) {
1728 (void) KNOTE_DETACH(list, kn);
1732 list = &tp->t_wsel.si_note;
1733 SLIST_FOREACH_SAFE(kn, list, kn_selnext, tkn) {
1734 (void) KNOTE_DETACH(list, kn);