Lines Matching defs:flags
218 * the input and output speeds and device flags, per the
291 * Set the bits in the terminal state local flags word
297 * Clear the bits in the terminal state local flags word
303 * Set the terminal state local flags word to exactly those
339 * int flag The file open flags (e.g. FREAD).
387 * flags, into the structure pointed to by 'data'.
439 * Get the terminal state local flags word into the 16 bit
504 * Description: Get the terminal state local flags, device flags, and current
511 * current terminal state local flags
524 register int flags = 0;
527 flags |= TANDEM;
529 flags |= CRMOD;
531 flags |= PASS8;
533 flags |= ANYP;
538 flags |= ODDP;
540 flags |= EVENP;
542 flags |= EVENP | ODDP;
549 flags |= CBREAK;
551 flags |= RAW;
553 if (!(flags&RAW) && !(oflag&OPOST) && (cflag&(CSIZE|PARENB)) == CS8)
554 flags |= LITOUT;
556 flags |= MDMBUF;
558 flags |= NOHANG;
560 flags |= XTABS;
562 flags |= CRTERA|CRTBS;
564 flags |= CRTKIL|CRTBS;
566 flags |= PRTERA;
568 flags |= CTLECH;
570 flags |= DECCTQ;
571 flags |= lflag&(ECHO|TOSTOP|FLUSHO|PENDIN|NOFLSH);
572 return (flags);
578 * Description: Given a set of compatability flags, convert the compatability
579 * flags in the terminal flags fields into canonical flags in the
585 * return the converted flags.
592 register int flags = tp->t_flags;
598 if (flags & RAW) {
605 if (flags & XTABS)
609 if (flags & CBREAK)
613 if (flags&CRMOD) {
621 if (flags&ECHO)
627 if (flags&(RAW|LITOUT|PASS8)) {
629 if (!(flags&(RAW|PASS8))
630 || (flags&(RAW|PASS8|ANYP)) == (PASS8|ANYP))
634 if (flags&(RAW|LITOUT))
644 if ((flags&(EVENP|ODDP)) == EVENP) {
647 } else if ((flags&(EVENP|ODDP)) == ODDP) {
652 if (flags&TANDEM)
656 if ((flags&DECCTQ) == 0)
669 * Description: Given a set of compatability terminal state local flags,
670 * convert the compatability flags in the terminal flags
671 * fields into canonical flags in the provided termios struct.
676 * return the converted local flags.
683 register int flags = tp->t_flags;
690 if (flags&CRTERA)
694 if (flags&CRTKIL)
698 if (flags&PRTERA)
702 if (flags&CTLECH)
706 if (flags&TANDEM)
710 if ((flags&DECCTQ) == 0)
714 if (flags & MDMBUF)
718 if (flags&NOHANG)
723 lflag |= flags&(TOSTOP|FLUSHO|PENDIN|NOFLSH);
734 if (flags&(RAW|LITOUT|PASS8)) {
736 if (!(flags&(RAW|PASS8))
737 || (flags&(RAW|PASS8|ANYP)) == (PASS8|ANYP))
741 if (flags&(RAW|LITOUT))