Home
last modified time | relevance | path

Searched refs:_flags (Results 1 – 25 of 38) sorted by relevance

12

/bionic/libc/stdio/
Drefill.c43 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) in lflush()
63 if (fp->_flags & __SEOF) in __srefill()
67 if ((fp->_flags & __SRD) == 0) { in __srefill()
68 if ((fp->_flags & __SRW) == 0) { in __srefill()
70 fp->_flags |= __SERR; in __srefill()
74 if (fp->_flags & __SWR) { in __srefill()
77 fp->_flags &= ~__SWR; in __srefill()
81 fp->_flags |= __SRD; in __srefill()
106 if (fp->_flags & (__SLBF|__SNBF)) in __srefill()
110 fp->_flags &= ~__SMOD; /* buffer contents are again pristine */ in __srefill()
[all …]
Dwsetup.c53 if ((fp->_flags & __SWR) == 0) { in __swsetup()
54 if ((fp->_flags & __SRW) == 0) in __swsetup()
56 if (fp->_flags & __SRD) { in __swsetup()
60 fp->_flags &= ~(__SRD|__SEOF); in __swsetup()
64 fp->_flags |= __SWR; in __swsetup()
71 if ((fp->_flags & (__SSTR | __SALC)) == __SSTR) in __swsetup()
75 if (fp->_flags & __SLBF) { in __swsetup()
84 fp->_w = fp->_flags & __SNBF ? 0 : fp->_bf._size; in __swsetup()
Dfread.c43 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) in lflush()
69 if (fp->_flags & __SNBF && fp->_ur == 0) in fread()
82 if (fp->_flags & __SEOF) in fread()
86 if ((fp->_flags & __SRD) == 0) { in fread()
87 if ((fp->_flags & __SRW) == 0) { in fread()
89 fp->_flags |= __SERR; in fread()
93 if (fp->_flags & __SWR) { in fread()
96 fp->_flags &= ~__SWR; in fread()
100 fp->_flags |= __SRD; in fread()
119 if (fp->_flags & (__SLBF|__SNBF)) in fread()
[all …]
Dfclose.c47 if (fp->_flags == 0) { /* not open! */ in fclose()
52 r = fp->_flags & __SWR ? __sflush(fp) : 0; in fclose()
55 if (fp->_flags & __SMBF) in fclose()
61 fp->_flags = 0; /* Release this FILE for reuse. */ in fclose()
Dstdio.c54 fp->_flags &= ~__SOFF; /* paranoia */ in __sread()
63 if (fp->_flags & __SAPP) in __swrite()
65 fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */ in __swrite()
77 fp->_flags &= ~__SOFF; in __sseek()
79 fp->_flags |= __SOFF; in __sseek()
Dfseek.c82 if (fp->_flags & __SOFF) in fseeko()
89 if (fp->_flags & __SRD) { in fseeko()
93 } else if (fp->_flags & __SWR && fp->_p != NULL) in fseeko()
122 if (fp->_flags & (__SWR | __SRW | __SNBF | __SNPT)) in fseeko()
124 if ((fp->_flags & __SOPT) == 0) { in fseeko()
128 fp->_flags |= __SNPT; in fseeko()
132 fp->_flags |= __SOPT; in fseeko()
148 if (fp->_flags & __SOFF) in fseeko()
183 if ((fp->_flags & __SMOD) == 0 && in fseeko()
191 fp->_flags &= ~__SEOF; in fseeko()
[all …]
Dfreopen.c70 if (fp->_flags == 0) { in freopen()
71 fp->_flags = __SEOF; /* hold on to it */ in freopen()
76 if (fp->_flags & __SWR) in freopen()
105 if (fp->_flags & __SMBF) in freopen()
122 fp->_flags = 0; /* set it free */ in freopen()
139 fp->_flags = flags; in freopen()
Dfpurge.c46 if (!fp->_flags) { in fpurge()
56 fp->_w = fp->_flags & (__SLBF|__SNBF) ? 0 : fp->_bf._size; in fpurge()
Dftell.c56 if (fp->_flags & __SOFF) in ftello()
63 if (fp->_flags & __SRD) { in ftello()
72 } else if (fp->_flags & __SWR && fp->_p != NULL) { in ftello()
Dfflush.c45 if ((fp->_flags & (__SWR | __SRW)) == 0) { in fflush()
58 t = fp->_flags; in __sflush()
77 fp->_flags |= __SERR; in __sflush()
Dungetc.c86 if ((fp->_flags & __SRD) == 0) { in ungetc()
91 if ((fp->_flags & __SRW) == 0) in ungetc()
93 if (fp->_flags & __SWR) { in ungetc()
96 fp->_flags &= ~__SWR; in ungetc()
100 fp->_flags |= __SRD; in ungetc()
115 fp->_flags &= ~__SEOF; in ungetc()
Dfopen.c54 fp->_flags = 0; /* release */ in fopen()
58 fp->_flags = flags; in fopen()
Dmakebuf.c56 if (fp->_flags & __SNBF) { in __smakebuf()
63 fp->_flags |= __SNBF; in __smakebuf()
74 fp->_flags |= flags; in __smakebuf()
Dfdopen.c61 fp->_flags = flags; in fdopen()
68 fp->_flags |= __SAPP; in fdopen()
Dsetvbuf.c70 flags = fp->_flags; in setvbuf()
106 fp->_flags = flags | __SNBF; in setvbuf()
130 fp->_flags = flags; in setvbuf()
Dfvwrite.c79 if (fp->_flags & __SNBF) { in __sfvwrite()
95 } else if ((fp->_flags & __SLBF) == 0) { in __sfvwrite()
109 if ((fp->_flags & (__SALC | __SSTR)) == in __sfvwrite()
129 if (fp->_flags & __SSTR) { in __sfvwrite()
206 fp->_flags |= __SERR; in __sfvwrite()
Dfwalk.c49 if (fp->_flags != 0) in _fwalk()
Dvsprintf.c53 f._flags = __SWR | __SSTR; in vsprintf()
Dvsscanf.c52 f._flags = __SRD; in vsscanf()
Dsprintf.c55 f._flags = __SWR | __SSTR; in sprintf()
Dwbuf.c80 if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) in __swbuf()
Dsscanf.c56 f._flags = __SRD; in sscanf()
Dvsnprintf.c58 f._flags = __SWR | __SSTR; in vsnprintf()
Dfunopen.c60 fp->_flags = flags; in funopen()
Dsnprintf.c59 f._flags = __SWR | __SSTR; in snprintf()

12