Lines Matching refs:sd_flag
199 if (stp->sd_flag & (STRHUP|STRDERR|STWRERR)) { in push_mod()
200 error = (stp->sd_flag & STRHUP) ? ENXIO : EIO; in push_mod()
208 stp->sd_flag |= STREOPENFAIL; in push_mod()
273 if (strmatep->sd_flag & (STWOPEN|STRCLOSE|STRPLUMB)) { in stropen()
290 if (stp->sd_flag & (STWOPEN|STRCLOSE|STRPLUMB)) { in stropen()
306 if (stp->sd_flag & (STRDERR|STWRERR)) { in stropen()
312 stp->sd_flag |= STWOPEN; in stropen()
316 if (stp->sd_flag & (STWOPEN|STRCLOSE|STRPLUMB)) { in stropen()
330 if (stp->sd_flag & (STRDERR|STWRERR)) { in stropen()
335 stp->sd_flag |= STWOPEN; in stropen()
354 stp->sd_flag &= ~(STRHUP|STWOPEN|STRDERR|STWRERR); in stropen()
376 stp->sd_flag = STWOPEN; in stropen()
400 stp->sd_flag |= OLDNDELAY; in stropen()
429 stp->sd_flag &= ~STWOPEN; in stropen()
554 stp->sd_flag |= STREOPENFAIL; in stropen()
562 stp->sd_flag &= ~STWOPEN; in stropen()
624 ASSERT(!(stp->sd_flag & STPLEX)); in strclose()
632 stp->sd_flag |= STRHUP; in strclose()
654 while (stp->sd_flag & (STWOPEN|STRCLOSE|STRPLUMB)) { in strclose()
661 while (strmatep->sd_flag & in strclose()
671 stp->sd_flag |= STRCLOSE; in strclose()
675 stp->sd_flag |= STRCLOSE; in strclose()
682 if (stp->sd_flag & STRHASLINKS) { in strclose()
712 stp->sd_flag |= WSLEEP; in strclose()
723 stp->sd_flag &= ~WSLEEP; in strclose()
810 stp->sd_flag &= ~STRCLOSE; in strclose()
1175 if (stp->sd_flag & (STRDERR|STPLEX)) { in strread()
1191 old_sd_flag = stp->sd_flag; in strread()
1203 if (stp->sd_flag & (STRHUP|STREOF)) { in strread()
1206 if (rflg && !(stp->sd_flag & STRDELIM)) { in strread()
1229 (stp->sd_flag & OLDNDELAY) && in strread()
1268 if ((stp->sd_flag & STRDELIM) && (bp->b_flag & MSGDELIM)) in strread()
1348 stp->sd_flag &= ~STRNOTATMARK; in strread()
1349 stp->sd_flag |= STRATMARK; in strread()
1351 stp->sd_flag &= ~STRATMARK; in strread()
1352 stp->sd_flag |= STRNOTATMARK; in strread()
1354 stp->sd_flag &= in strread()
1358 stp->sd_flag &= ~STRATMARK; in strread()
1421 stp->sd_flag &= ~STRPRI; in strread()
1442 stp->sd_flag &= ~STRPRI; in strread()
1582 if (stp->sd_flag == STREOF) { in strrput()
1605 stp->sd_flag &= ~STRNOTATMARK; in strrput()
1606 stp->sd_flag |= STRATMARK; in strrput()
1618 stp->sd_flag &= ~STRATMARK; in strrput()
1619 stp->sd_flag |= STRNOTATMARK; in strrput()
1622 if (stp->sd_flag & RSLEEP) { in strrput()
1623 stp->sd_flag &= ~RSLEEP; in strrput()
1771 if (stp->sd_flag & STRPRI) { in strrput()
1778 stp->sd_flag |= STRPRI; in strrput()
1806 (((stp->sd_flag & STRGETINPROG) == 0) && in strrput()
1827 wakeups &= stp->sd_flag; in strrput()
1829 stp->sd_flag &= ~RSLEEP; in strrput()
1833 stp->sd_flag &= ~WSLEEP; in strrput()
1946 ASSERT(!(stp->sd_flag & STPLEX)); in strrput_nondata()
1961 if (stp->sd_flag & STRDERR) in strrput_nondata()
1963 stp->sd_flag |= STRDERR; in strrput_nondata()
1966 stp->sd_flag &= ~STRDERR; in strrput_nondata()
1973 if (stp->sd_flag & STWRERR) in strrput_nondata()
1975 stp->sd_flag |= STWRERR; in strrput_nondata()
1978 stp->sd_flag &= ~STWRERR; in strrput_nondata()
2025 if (stp->sd_flag & (STRDERR|STWRERR)) in strrput_nondata()
2028 stp->sd_flag |= (STRDERR|STWRERR); in strrput_nondata()
2076 stp->sd_flag |= STRHUP; in strrput_nondata()
2077 stp->sd_flag &= ~(WSLEEP|RSLEEP); in strrput_nondata()
2104 stp->sd_flag &= ~STRHUP; in strrput_nondata()
2122 !(stp->sd_flag & RSLEEP))) { in strrput_nondata()
2145 if (stp->sd_flag & STRCMDWAIT) { in strrput_nondata()
2178 stp->sd_flag &= ~STRPRI; in strrput_nondata()
2180 ASSERT(stp->sd_flag & STRPRI); in strrput_nondata()
2210 if ((stp->sd_flag & IOCWAIT) == 0 || stp->sd_iocblk || in strrput_nondata()
2248 if ((stp->sd_flag & IOCWAIT) == 0 || stp->sd_iocblk || in strrput_nondata()
2329 stp->sd_flag &= ~STRDERRNONPERSIST; in strrput_nondata()
2332 stp->sd_flag |= STRDERRNONPERSIST; in strrput_nondata()
2337 stp->sd_flag &= ~STWRERRNONPERSIST; in strrput_nondata()
2340 stp->sd_flag |= STWRERRNONPERSIST; in strrput_nondata()
2394 stp->sd_flag |= SNDMREAD; in strrput_nondata()
2396 stp->sd_flag &= ~SNDMREAD; in strrput_nondata()
2398 stp->sd_flag |= OLDNDELAY; in strrput_nondata()
2400 stp->sd_flag &= ~OLDNDELAY; in strrput_nondata()
2402 stp->sd_flag |= STRISTTY; in strrput_nondata()
2404 stp->sd_flag &= ~STRISTTY; in strrput_nondata()
2406 stp->sd_flag |= STRTOSTOP; in strrput_nondata()
2408 stp->sd_flag &= ~STRTOSTOP; in strrput_nondata()
2410 stp->sd_flag |= STRDELIM; in strrput_nondata()
2412 stp->sd_flag &= ~STRDELIM; in strrput_nondata()
2506 if (eiohup && (stp->sd_flag & (STPLEX|STRHUP)) == STRHUP) in strwriteable()
2512 if (!(stp->sd_flag & STPLEX) && in strwriteable()
2747 if (stp->sd_flag & (STWRERR|STRHUP|STPLEX)) { in strwrite_common()
2793 if (stp->sd_flag & OLDNDELAY) in strwrite_common()
2819 if ((stp->sd_flag & STRDELIM) && (uiop->uio_resid == iosize)) in strwrite_common()
2869 (stp->sd_flag & (STWRERR|STRHUP|STPLEX))) { in strwrite_common()
2916 ASSERT(!(stp->sd_flag & STPLEX)); in strwsrv()
2918 if (stp->sd_flag & WSLEEP) { in strwsrv()
2919 stp->sd_flag &= ~WSLEEP; in strwsrv()
3277 if (stp->sd_flag & (STRDERR|STPLEX)) { in strioctl()
3287 if (stp->sd_flag & (STRDERR|STWRERR|STPLEX)) { in strioctl()
3333 if (stp->sd_flag & STRHUP) in strioctl()
3516 if (stp->sd_flag & STRHUP) in strioctl()
3570 if (stp->sd_flag & STRHUP) in strioctl()
3767 if (stp->sd_flag & STRHUP) in strioctl()
3814 (cmd == I_PUSH) && (stp->sd_flag & STRISTTY)) { in strioctl()
3859 if (stp->sd_flag & STRHUP) in strioctl()
4029 if (stp->sd_flag & STRHUP) in strioctl()
4195 if (stp->sd_flag & STRHUP) in strioctl()
4420 if (stp->sd_flag & STRHUP) in strioctl()
4456 if (stp->sd_flag & STRHUP) in strioctl()
4565 stp->sd_flag &= ~STRDERRNONPERSIST; in strioctl()
4568 stp->sd_flag |= STRDERRNONPERSIST; in strioctl()
4573 stp->sd_flag &= ~STWRERRNONPERSIST; in strioctl()
4576 stp->sd_flag |= STWRERRNONPERSIST; in strioctl()
4590 erropt |= (stp->sd_flag & STRDERRNONPERSIST) ? RERRNONPERSIST : in strioctl()
4592 erropt |= (stp->sd_flag & STWRERRNONPERSIST) ? WERRNONPERSIST : in strioctl()
5120 if (stp->sd_flag & STRHUP) in strioctl()
5143 if (resstp->sd_flag & (STRDERR|STWRERR|STRHUP|STPLEX)) { in strioctl()
5305 if (stp->sd_flag & (STRHUP|STREOF)) { in strioctl()
5539 if ((stp->sd_flag & STRATMARK) && (arg == ANYMARK)) { in strioctl()
5711 if (stp->sd_flag & STRHUP) in do_sendfp()
5944 if (stp->sd_flag & errs) { in strdoioctl()
5970 while ((stp->sd_flag & IOCWAIT) || in strdoioctl()
5971 (!set_iocwaitne && (stp->sd_flag & IOCWAITNE))) { in strdoioctl()
5990 if (!(stp->sd_flag & IOCWAITNE)) { in strdoioctl()
5992 stp->sd_flag |= IOCWAITNE; in strdoioctl()
6009 } else if ((stp->sd_flag & errs)) { in strdoioctl()
6038 stp->sd_flag |= waitflags; in strdoioctl()
6074 if (stp->sd_flag & errs) { in strdoioctl()
6077 stp->sd_flag &= ~waitflags; in strdoioctl()
6108 stp->sd_iocblk == NULL && (stp->sd_flag & IOCWAITNE)) { in strdoioctl()
6150 stp->sd_flag &= ~waitflags; in strdoioctl()
6170 stp->sd_flag &= ~waitflags; in strdoioctl()
6272 stp->sd_flag &= ~waitflags; in strdoioctl()
6316 stp->sd_flag &= ~waitflags; in strdoioctl()
6327 stp->sd_flag &= ~waitflags; in strdoioctl()
6400 if (stp->sd_flag & STRCMDWAIT) { in strdocmd()
6405 stp->sd_flag |= STRCMDWAIT; in strdocmd()
6419 if (stp->sd_flag & errs) { in strdocmd()
6440 ASSERT(stp->sd_flag & STRCMDWAIT); in strdocmd()
6441 stp->sd_flag &= ~STRCMDWAIT; in strdocmd()
6468 stp->sd_flag &= ~STRCMDWAIT; in strdocmd()
6542 if (stp->sd_flag & (STRDERR|STPLEX)) { in strgetmsg()
6580 old_sd_flag = stp->sd_flag; in strgetmsg()
6664 if ((stp->sd_flag & (STRHUP|STREOF)) || (mctl->maxlen == 0 && in strgetmsg()
6728 stp->sd_flag |= STRGETINPROG; in strgetmsg()
6762 stp->sd_flag &= ~STRPRI; in strgetmsg()
6816 stp->sd_flag &= ~STRPRI; in strgetmsg()
6856 stp->sd_flag &= ~STRPRI; in strgetmsg()
6870 stp->sd_flag &= ~STRPRI; in strgetmsg()
6872 stp->sd_flag |= STRPRI; in strgetmsg()
6924 stp->sd_flag &= ~STRPRI; in strgetmsg()
6928 stp->sd_flag &= ~STRNOTATMARK; in strgetmsg()
6929 stp->sd_flag |= STRATMARK; in strgetmsg()
6931 stp->sd_flag &= ~STRATMARK; in strgetmsg()
6932 stp->sd_flag |= STRNOTATMARK; in strgetmsg()
6934 stp->sd_flag &= ~(STRATMARK|STRNOTATMARK); in strgetmsg()
6937 stp->sd_flag &= ~STRATMARK; in strgetmsg()
6978 stp->sd_flag &= ~STRGETINPROG; in strgetmsg()
6992 if ((bp = q->q_first) != NULL && !(stp->sd_flag & STRPRI)) { in strgetmsg()
7106 if (stp->sd_flag & (STRDERR|STPLEX)) { in kstrgetmsg()
7107 if ((stp->sd_flag & STPLEX) || in kstrgetmsg()
7136 old_sd_flag = stp->sd_flag; in kstrgetmsg()
7200 if ((stp->sd_flag & (STRDERR|STPLEX)) && in kstrgetmsg()
7219 if ((stp->sd_flag & (STRHUP|STREOF)) || in kstrgetmsg()
7357 stp->sd_flag |= STRGETINPROG; in kstrgetmsg()
7478 stp->sd_flag &= ~STRPRI; in kstrgetmsg()
7513 stp->sd_flag &= ~STRPRI; in kstrgetmsg()
7526 stp->sd_flag &= ~STRPRI; in kstrgetmsg()
7541 stp->sd_flag &= ~STRPRI; in kstrgetmsg()
7543 stp->sd_flag |= STRPRI; in kstrgetmsg()
7597 stp->sd_flag &= ~STRPRI; in kstrgetmsg()
7601 stp->sd_flag &= ~STRNOTATMARK; in kstrgetmsg()
7602 stp->sd_flag |= STRATMARK; in kstrgetmsg()
7604 stp->sd_flag &= ~STRATMARK; in kstrgetmsg()
7605 stp->sd_flag |= STRNOTATMARK; in kstrgetmsg()
7607 stp->sd_flag &= ~(STRATMARK|STRNOTATMARK); in kstrgetmsg()
7610 stp->sd_flag &= ~STRATMARK; in kstrgetmsg()
7651 stp->sd_flag &= ~STRGETINPROG; in kstrgetmsg()
7665 if ((bp = q->q_first) != NULL && !(stp->sd_flag & STRPRI)) { in kstrgetmsg()
7763 if (stp->sd_flag & (STWRERR|STRHUP|STPLEX)) { in strputmsg()
7955 if ((stp->sd_flag & STPLEX) || !(flag & MSG_IGNERROR)) { in kstrputmsg()
7956 if (stp->sd_flag & (STWRERR|STRHUP|STPLEX)) { in kstrputmsg()
8187 long sd_flags = stp->sd_flag; in strpoll()
8422 if (stp->sd_flag & (STRATMARK | STRNOTATMARK)) { in putback()
8426 if (stp->sd_flag & STRATMARK) { in putback()
8429 stp->sd_flag &= ~STRATMARK; in putback()
8433 stp->sd_flag &= ~STRNOTATMARK; in putback()
8455 if (stp->sd_flag & RSLEEP) { in putback()
8456 stp->sd_flag &= ~RSLEEP; in putback()
8459 if (stp->sd_flag & STRPRI) { in putback()
8547 STREAM(wrq1)->sd_flag |= STRMATE; in strmate()
8549 STREAM(wrq2)->sd_flag |= STRMATE; in strmate()