Home
last modified time | relevance | path

Searched refs:_flag (Results 1 – 25 of 111) sorted by relevance

12345

/titanic_44/usr/src/lib/libbc/libc/stdio/4.2/
H A Dflsbuf.c75 if(iop->_flag & (_IOREAD | _IOWRT | _IORW) in fclose()
76 && (iop->_flag & _IOSTRG) == 0) { in fclose()
77 rtn = (iop->_flag & _IONBF)? 0: fflush(iop); in fclose()
81 if(iop->_flag & _IOMYBUF) { in fclose()
85 iop->_flag = 0; in fclose()
102 if (!(iop->_flag & _IOWRT)) { in fflush()
105 while(!(iop->_flag & _IONBF) && (iop->_flag & _IOWRT) && in fflush()
130 if ( (iop->_flag & (_IOLBF | _IOWRT | _IOEOF)) == (_IOLBF | _IOWRT) ) { in _flsbuf()
138 if ( (iop->_flag & (_IONBF | _IOWRT | _IOEOF)) == (_IONBF | _IOWRT) ) { in _flsbuf()
143 iop->_flag |= _IOERR; in _flsbuf()
[all …]
H A Dfilbuf.c50 if ( !(iop->_flag & _IOREAD) ) in _filbuf()
51 if (iop->_flag & _IORW) in _filbuf()
52 iop->_flag |= _IOREAD; in _filbuf()
56 if (iop->_flag&(_IOSTRG|_IOEOF)) in _filbuf()
63 if (stdout->_flag&_IOLBF) in _filbuf()
65 if (stderr->_flag&_IOLBF) in _filbuf()
71 (unsigned)((iop->_flag & _IONBF) ? 1 : iop->_bufsiz )); in _filbuf()
75 iop->_flag |= _IOERR; in _filbuf()
77 iop->_flag |= _IOEOF; in _filbuf()
78 if (iop->_flag & _IORW) in _filbuf()
[all …]
H A Dvfprintf.c44 if (!(iop->_flag & _IOWRT)) { in vfprintf()
46 if (iop->_flag & _IORW) { in vfprintf()
48 iop->_flag |= _IOWRT; in vfprintf()
54 if (iop->_flag & _IONBF) { in vfprintf()
55 iop->_flag &= ~_IONBF; in vfprintf()
60 iop->_flag |= _IONBF; in vfprintf()
H A Dfprintf.c45 if (!(iop->_flag & _IOWRT)) { in fprintf()
47 if (iop->_flag & _IORW) { in fprintf()
49 iop->_flag |= _IOWRT; in fprintf()
56 if (iop->_flag & _IONBF) { in fprintf()
57 iop->_flag &= ~_IONBF; in fprintf()
62 iop->_flag |= _IONBF; in fprintf()
/titanic_44/usr/src/lib/libbc/libc/stdio/sys5/
H A Dflsbuf.c73 if(iop->_flag & (_IOREAD | _IOWRT | _IORW) in fclose()
74 && (iop->_flag & _IOSTRG) == 0) { in fclose()
75 rtn = (iop->_flag & _IONBF)? 0: fflush(iop); in fclose()
79 if(iop->_flag & _IOMYBUF) { in fclose()
83 iop->_flag = 0; in fclose()
100 if (!(iop->_flag & _IOWRT)) { in fflush()
107 while(!(iop->_flag & _IONBF) && (iop->_flag & _IOWRT) && in fflush()
133 if ( (iop->_flag & (_IOLBF | _IOWRT | _IOEOF)) == (_IOLBF | _IOWRT) ) { in _flsbuf()
141 if ( (iop->_flag & (_IONBF | _IOWRT | _IOEOF)) == (_IONBF | _IOWRT) ) { in _flsbuf()
146 iop->_flag |= _IOERR; in _flsbuf()
[all …]
H A Dfilbuf.c49 if ( !(iop->_flag & _IOREAD) ) in _filbuf()
50 if (iop->_flag & _IORW) in _filbuf()
51 iop->_flag |= _IOREAD; in _filbuf()
55 if (iop->_flag&_IOSTRG) in _filbuf()
64 if (iop->_flag & (_IOLBF | _IONBF)) in _filbuf()
69 (unsigned)((iop->_flag & _IONBF) ? 1 : iop->_bufsiz )); in _filbuf()
73 iop->_flag |= _IOERR; in _filbuf()
75 iop->_flag |= _IOEOF; in _filbuf()
76 if (iop->_flag & _IORW) in _filbuf()
77 iop->_flag &= ~_IOREAD; in _filbuf()
[all …]
H A Dvfprintf.c44 if (!(iop->_flag & _IOWRT)) { in vfprintf()
46 if (iop->_flag & _IORW) { in vfprintf()
48 iop->_flag |= _IOWRT; in vfprintf()
54 if (iop->_flag & _IONBF) { in vfprintf()
55 iop->_flag &= ~_IONBF; in vfprintf()
60 iop->_flag |= _IONBF; in vfprintf()
H A Dfprintf.c45 if (!(iop->_flag & _IOWRT)) { in fprintf()
47 if (iop->_flag & _IORW) { in fprintf()
49 iop->_flag |= _IOWRT; in fprintf()
56 if (iop->_flag & _IONBF) { in fprintf()
57 iop->_flag &= ~_IONBF; in fprintf()
62 iop->_flag |= _IONBF; in fprintf()
/titanic_44/usr/src/lib/libc/port/stdio/
H A Dfopen.c74 iop->_flag = 0; /* release iop */ in fopen()
86 if (iop == NULL || iop->_flag == 0) { in _freopen_null()
91 if (!(iop->_flag & _IONBF) && (iop->_flag & (_IOWRT | _IOREAD | _IORW))) in _freopen_null()
94 if (iop->_flag & _IOMYBUF) { in _freopen_null()
143 iop->_flag &= ~0377; /* clear lower 8-bits */ in _freopen_null()
145 iop->_flag |= _IOREAD; in _freopen_null()
148 iop->_flag |= _IOWRT; in _freopen_null()
151 iop->_flag |= _IOWRT; in _freopen_null()
155 iop->_flag = (iop->_flag & ~(_IOREAD | _IOWRT)) | _IORW; in _freopen_null()
159 iop->_flag = _IOREAD; in _freopen_null()
[all …]
H A Dfseek.c56 iop->_flag &= ~_IOEOF; in fseek()
58 if (!(iop->_flag & _IOREAD) && !(iop->_flag & (_IOWRT | _IORW))) { in fseek()
64 if (iop->_flag & _IOREAD) { in fseek()
65 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) { in fseek()
68 } else if (iop->_flag & (_IOWRT | _IORW)) { in fseek()
76 if (iop->_flag & _IORW) { in fseek()
77 iop->_flag &= ~(_IOREAD | _IOWRT); in fseek()
H A Dfseeko.c63 iop->_flag &= ~_IOEOF; in fseeko64()
65 if (!(iop->_flag & _IOREAD) && !(iop->_flag & (_IOWRT | _IORW))) { in fseeko64()
71 if (iop->_flag & _IOREAD) { in fseeko64()
72 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) { in fseeko64()
75 } else if (iop->_flag & (_IOWRT | _IORW)) { in fseeko64()
83 if (iop->_flag & _IORW) { in fseeko64()
84 iop->_flag &= ~(_IOREAD | _IOWRT); in fseeko64()
H A Dflush.c198 if ((fp->_flag & (_IOLBF | _IOWRT | _IONBF)) == in _flushlbf()
205 if ((fp->_flag & (_IOLBF | _IOWRT)) == in _flushlbf()
379 fp->_flag = 0377; /* claim the fp by setting low 8 bits */ in _findiop()
539 if (iop->_flag & (_IOLBF | _IONBF)) in _xflsbuf()
552 iop->_flag |= _IOERR; in _xflsbuf()
617 unsigned int flag = iop->_flag; in _fflush_l_iops()
629 if (!(iop->_flag & _IONBF)) { in _fflush_l_iops()
635 if (iop->_flag & _IOWRT) { in _fflush_l_iops()
638 } else if (iop->_flag & _IOREAD) { in _fflush_l_iops()
664 if (!(iop->_flag & _IOWRT)) { in _fflush_u()
[all …]
H A D_filbuf.c65 if (!(iop->_flag & _IOREAD)) /* check, correct permissions */ in _filbuf()
67 if (iop->_flag & _IORW) in _filbuf()
68 iop->_flag |= _IOREAD; /* change direction */ in _filbuf()
88 if (iop->_flag & (_IONBF | _IOLBF)) in _filbuf()
99 if ((flag = iop->_flag) & _IOEOF) { in _filbuf()
127 iop->_flag |= _IOEOF; in _filbuf()
129 iop->_flag |= _IOERR; in _filbuf()
H A D_wrtchk.c45 if ((iop->_flag & (_IOWRT | _IOEOF)) != _IOWRT) { in _wrtchk()
46 if (!(iop->_flag & (_IOWRT | _IORW))) { in _wrtchk()
47 iop->_flag |= _IOERR; in _wrtchk()
51 iop->_flag = (iop->_flag & ~_IOEOF) | _IOWRT; in _wrtchk()
58 !(iop->_flag & (_IOLBF | _IONBF))) { in _wrtchk()
H A Dsetvbuf.c48 int sflag = iop->_flag & _IOMYBUF; in setvbuf()
53 iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF); in setvbuf()
57 iop->_flag |= _IONBF; /* file is unbuffered */ in setvbuf()
70 iop->_flag |= _IOMYBUF; in setvbuf()
79 iop->_flag |= type; /* buffer file */ in setvbuf()
91 iop->_flag |= _IOMYBUF; in setvbuf()
H A D__extensions.c44 return (stream->_flag & _IOREAD); in __freading()
55 return (stream->_flag & _IOWRT); in __fwriting()
64 return (stream->_flag & (_IOREAD|_IORW)); in __freadable()
73 return (stream->_flag & (_IOWRT|_IORW)); in __fwritable()
82 return (stream->_flag & _IOLBF); in __flbf()
H A D_findbuf.c62 if (iop->_flag & _IONBF) /* need a small buffer, at least */ in _findbuf()
70 iop->_flag |= _IOMYBUF; in _findbuf()
90 iop->_flag |= _IOMYBUF; in _findbuf()
100 if (!(iop->_flag & _IONBF) && ((tty != -1) ? tty : isatty(fd))) in _findbuf()
101 iop->_flag |= _IOLBF; in _findbuf()
H A Dsetbuf.c53 if ((iop->_base != 0) && (iop->_flag & _IOMYBUF)) in setbuf()
55 iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF); in setbuf()
57 iop->_flag |= _IONBF; in setbuf()
69 iop->_flag |= _IOMYBUF; in setbuf()
74 iop->_flag |= _IOLBF; in setbuf()
/titanic_44/usr/src/lib/libc/inc/
H A Dstdiom.h61 #define SET_IONOLOCK(iop) ((iop)->_flag |= _IONOLOCK)
62 #define CLEAR_IONOLOCK(iop) ((iop)->_flag &= ~_IONOLOCK)
63 #define GET_IONOLOCK(iop) ((iop)->_flag & _IONOLOCK)
64 #define SET_BYTE_MODE(iop) ((iop)->_flag |= _BYTE_MODE_FLAG)
65 #define CLEAR_BYTE_MODE(iop) ((iop)->_flag &= ~_BYTE_MODE_FLAG)
66 #define GET_BYTE_MODE(iop) ((iop)->_flag & _BYTE_MODE_FLAG)
67 #define SET_WC_MODE(iop) ((iop)->_flag |= _WC_MODE_FLAG)
68 #define CLEAR_WC_MODE(iop) ((iop)->_flag &= ~_WC_MODE_FLAG)
69 #define GET_WC_MODE(iop) ((iop)->_flag & _WC_MODE_FLAG)
70 #define GET_NO_MODE(iop) (!((iop)->_flag & \
[all …]
/titanic_44/usr/src/lib/libbc/libc/stdio/common/
H A Dfseek.c50 iop->_flag &= ~_IOEOF;
51 if(iop->_flag & _IOREAD) {
52 if(ptrname < 2 && iop->_base && !(iop->_flag&_IONBF)) {
65 if(!(iop->_flag&_IORW) && c > 0 && p <= c &&
73 if(iop->_flag & _IORW) {
75 iop->_flag &= ~_IOREAD;
83 } else if(iop->_flag & (_IOWRT | _IORW)) {
86 if(iop->_flag & _IORW) {
87 iop->_flag &= ~_IOWRT;
H A Dsetvbuf.c49 if(iop->_base != NULL && iop->_flag & _IOMYBUF)
51 iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF);
56 iop->_flag |= _IONBF;
65 iop->_flag |= type;
77 iop->_flag |= _IOMYBUF;
H A Dftell.c50 if(iop->_flag & _IOREAD)
52 else if(iop->_flag & (_IOWRT | _IORW)) {
54 if(iop->_flag & _IOWRT && iop->_base &&
55 (iop->_flag & _IONBF) == 0)
/titanic_44/usr/src/lib/libc/port/print/
H A Dvwprintf.c72 if (!(stdout->_flag & _IOWRT)) { in _vwprintf_c89()
74 if (stdout->_flag & _IORW) { in _vwprintf_c89()
76 stdout->_flag |= _IOWRT; in _vwprintf_c89()
119 if (!(iop->_flag & _IOWRT)) { in _vfwprintf_c89()
121 if (iop->_flag & _IORW) { in _vfwprintf_c89()
123 iop->_flag |= _IOWRT; in _vfwprintf_c89()
166 siop._flag = _IOREAD; in _vswprintf_c89()
H A Dwprintf.c72 if (!(stdout->_flag & _IOWRT)) { in wprintf()
74 if (stdout->_flag & _IORW) { in wprintf()
76 stdout->_flag |= _IOWRT; in wprintf()
115 if (!(iop->_flag & _IOWRT)) { in fwprintf()
117 if (iop->_flag & _IORW) { in fwprintf()
119 iop->_flag |= _IOWRT; in fwprintf()
156 siop._flag = _IOREAD; in swprintf()
/titanic_44/usr/src/ucblib/libucb/port/gen/
H A Dsetbuffer.c57 if (iop->_base != 0 && iop->_flag & _IOMYBUF) in setbuffer()
59 iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF); in setbuffer()
61 iop->_flag |= _IONBF; in setbuffer()
71 iop->_flag |= _IOMYBUF; in setbuffer()
101 iop->_flag |= _IOLBF|_IOMYBUF; in setlinebuf()

12345