Home
last modified time | relevance | path

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

12345

/titanic_53/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_53/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_53/usr/src/lib/libc/port/stdio/
H A Dfopen.c76 iop->_flag = 0; /* release iop */ in fopen()
88 if (iop == NULL || iop->_flag == 0) { in _freopen_null()
104 if (!(iop->_flag & _IONBF) && (iop->_flag & (_IOWRT | _IOREAD | _IORW))) in _freopen_null()
107 if (iop->_flag & _IOMYBUF) { in _freopen_null()
156 iop->_flag &= ~_DEF_FLAG_MASK; /* clear lower 8-bits */ in _freopen_null()
158 iop->_flag |= _IOREAD; in _freopen_null()
161 iop->_flag |= _IOWRT; in _freopen_null()
164 iop->_flag |= _IOWRT; in _freopen_null()
168 iop->_flag = (iop->_flag & ~(_IOREAD | _IOWRT)) | _IORW; in _freopen_null()
172 iop->_flag = _IOREAD; in _freopen_null()
[all …]
H A Dfseek.c54 iop->_flag &= ~_IOEOF; in fseek()
56 if (!(iop->_flag & _IOREAD) && !(iop->_flag & (_IOWRT | _IORW))) { in fseek()
62 if (iop->_flag & _IOREAD) { in fseek()
63 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) { in fseek()
66 } else if (iop->_flag & (_IOWRT | _IORW)) { in fseek()
74 if (iop->_flag & _IORW) { in fseek()
75 iop->_flag &= ~(_IOREAD | _IOWRT); in fseek()
H A Dfseeko.c61 iop->_flag &= ~_IOEOF; in fseeko64()
63 if (!(iop->_flag & _IOREAD) && !(iop->_flag & (_IOWRT | _IORW))) { in fseeko64()
69 if (iop->_flag & _IOREAD) { in fseeko64()
70 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) { in fseeko64()
73 } else if (iop->_flag & (_IOWRT | _IORW)) { in fseeko64()
81 if (iop->_flag & _IORW) { in fseeko64()
82 iop->_flag &= ~(_IOREAD | _IOWRT); in fseeko64()
H A D_filbuf.c62 if (!(iop->_flag & _IOREAD)) { /* check, correct permissions */ in _filbuf()
63 if (iop->_flag & _IORW) { in _filbuf()
64 iop->_flag |= _IOREAD; /* change direction */ in _filbuf()
85 if (iop->_flag & (_IONBF | _IOLBF)) in _filbuf()
96 if ((flag = iop->_flag) & _IOEOF) { in _filbuf()
125 iop->_flag |= _IOEOF; in _filbuf()
127 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 Dflush.c201 if ((fp->_flag & (_IOLBF | _IOWRT | _IONBF)) == in _flushlbf()
208 if ((fp->_flag & (_IOLBF | _IOWRT)) == in _flushlbf()
383 fp->_flag = _DEF_FLAG_MASK; in _findiop()
551 if (iop->_flag & (_IOLBF | _IONBF)) in _xflsbuf()
563 iop->_flag |= _IOERR; in _xflsbuf()
628 unsigned int flag = iop->_flag; in _fflush_l_iops()
640 if (!(iop->_flag & _IONBF)) { in _fflush_l_iops()
646 if (iop->_flag & _IOWRT) { in _fflush_l_iops()
649 } else if (iop->_flag & _IOREAD) { in _fflush_l_iops()
675 if (!(iop->_flag & _IOWRT)) { in _fflush_u()
[all …]
H A Dsetvbuf.c46 int sflag = iop->_flag & _IOMYBUF; in setvbuf()
51 iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF); in setvbuf()
55 iop->_flag |= _IONBF; /* file is unbuffered */ in setvbuf()
65 iop->_flag |= _IOMYBUF; in setvbuf()
75 iop->_flag |= type; /* buffer file */ in setvbuf()
87 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 Dsetbuf.c54 if ((iop->_base != NULL) && (iop->_flag & _IOMYBUF)) in setbuf()
56 iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF); in setbuf()
58 iop->_flag |= _IONBF; in setbuf()
67 iop->_flag |= _IOMYBUF; in setbuf()
72 iop->_flag |= _IOLBF; in setbuf()
H A D_findbuf.c62 if (iop->_flag & _IONBF) { /* need a small buffer, at least */ in _findbuf()
69 iop->_flag |= _IOMYBUF; in _findbuf()
90 iop->_flag |= _IOMYBUF; in _findbuf()
101 if (!(iop->_flag & _IONBF) && ((tty != -1) ? tty : isatty(fd))) in _findbuf()
102 iop->_flag |= _IOLBF; in _findbuf()
/titanic_53/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;
/titanic_53/usr/src/lib/libc/inc/
H A Dstdiom.h70 #define SET_IONOLOCK(iop) ((iop)->_flag |= _IONOLOCK)
71 #define CLEAR_IONOLOCK(iop) ((iop)->_flag &= ~_IONOLOCK)
72 #define GET_IONOLOCK(iop) ((iop)->_flag & _IONOLOCK)
73 #define SET_BYTE_MODE(iop) ((iop)->_flag |= _BYTE_MODE_FLAG)
74 #define CLEAR_BYTE_MODE(iop) ((iop)->_flag &= ~_BYTE_MODE_FLAG)
75 #define GET_BYTE_MODE(iop) ((iop)->_flag & _BYTE_MODE_FLAG)
76 #define SET_WC_MODE(iop) ((iop)->_flag |= _WC_MODE_FLAG)
77 #define CLEAR_WC_MODE(iop) ((iop)->_flag &= ~_WC_MODE_FLAG)
78 #define GET_WC_MODE(iop) ((iop)->_flag & _WC_MODE_FLAG)
79 #define GET_NO_MODE(iop) (!((iop)->_flag & \
[all …]
/titanic_53/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_53/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()
/titanic_53/usr/src/stand/lib/sa/
H A Dstdio.c53 if ((stream->_flag & flags) != flags) { in fcheck()
67 stream->_flag = 0; in fclose()
88 return ((stream->_flag & F_ERROR) != 0); in ferror()
94 stream->_flag &= ~F_ERROR; in clearerr()
123 stream->_flag |= F_ERROR; in fgets()
186 if ((stream->_flag & F_OPEN) == 0) { in fopen()
192 stream->_flag |= F_OPEN; in fopen()
260 stream->_flag |= F_ERROR; in fread()
315 stream->_flag |= F_ERROR; in fseek()

12345