Home
last modified time | relevance | path

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

12

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Drefill.c42 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) in lflush()
62 if (fp->_flags & __SEOF) in __srefill()
66 if ((fp->_flags & __SRD) == 0) { in __srefill()
67 if ((fp->_flags & __SRW) == 0) { in __srefill()
69 fp->_flags |= __SERR; in __srefill()
73 if (fp->_flags & __SWR) { in __srefill()
76 fp->_flags &= ~__SWR; in __srefill()
80 fp->_flags |= __SRD; in __srefill()
105 if (fp->_flags & (__SLBF|__SNBF)) { in __srefill()
107 fp->_flags |= __SIGN; 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()
Dfclose.c44 if (fp->_flags == 0) { /* not open! */ in fclose()
50 r = fp->_flags & __SWR ? __sflush(fp) : 0; in fclose()
53 if (fp->_flags & __SMBF) in fclose()
60 fp->_flags = 0; /* Release this FILE for reuse. */ in fclose()
Dfseek.c83 if (fp->_flags & __SOFF) in fseeko()
92 if (fp->_flags & __SRD) { in fseeko()
96 } else if (fp->_flags & __SWR && fp->_p != NULL) in fseeko()
126 if (fp->_flags & (__SWR | __SRW | __SNBF | __SNPT)) in fseeko()
128 if ((fp->_flags & __SOPT) == 0) { in fseeko()
132 fp->_flags |= __SNPT; in fseeko()
136 fp->_flags |= __SOPT; in fseeko()
152 if (fp->_flags & __SOFF) in fseeko()
187 if ((fp->_flags & __SMOD) == 0 && in fseeko()
195 fp->_flags &= ~__SEOF; in fseeko()
[all …]
Dfreopen.c73 if (fp->_flags == 0) { in freopen()
74 fp->_flags = __SEOF; /* hold on to it */ in freopen()
79 if (fp->_flags & __SWR) in freopen()
108 if (fp->_flags & __SMBF) in freopen()
125 fp->_flags = 0; /* set it free */ in freopen()
145 fp->_flags = 0; /* set it free */ in freopen()
151 fp->_flags = flags; in freopen()
Dfopen.c55 fp->_flags = 0; /* release */ in fopen()
61 fp->_flags = 0; /* release */ in fopen()
68 fp->_flags = flags; in fopen()
Dungetc.c87 if ((fp->_flags & __SRD) == 0) { in ungetc()
92 if ((fp->_flags & __SRW) == 0) { in ungetc()
96 if (fp->_flags & __SWR) { in ungetc()
99 fp->_flags &= ~__SWR; in ungetc()
103 fp->_flags |= __SRD; in ungetc()
119 fp->_flags &= ~__SEOF; in ungetc()
Dftell.c59 if (fp->_flags & __SOFF) in ftello()
66 if (fp->_flags & __SRD) { in ftello()
75 } else if (fp->_flags & __SWR && fp->_p != NULL) { in ftello()
Dfwalk.c49 if ((fp->_flags != 0) && ((fp->_flags & __SIGN) == 0)) in _fwalk()
Dfpurge.c47 if (!fp->_flags) { in fpurge()
58 fp->_w = fp->_flags & (__SLBF|__SNBF) ? 0 : fp->_bf._size; in fpurge()
Dfflush.c47 if ((fp->_flags & (__SWR | __SRW)) == 0) { in fflush()
62 t = fp->_flags; in __sflush()
81 fp->_flags |= __SERR; in __sflush()
Dmakebuf.c56 if (fp->_flags & __SNBF) { in __smakebuf()
63 fp->_flags |= __SNBF; in __smakebuf()
73 fp->_flags |= flags; in __smakebuf()
Dsetvbuf.c71 flags = fp->_flags; in setvbuf()
107 fp->_flags = flags | __SNBF; in setvbuf()
138 fp->_flags = flags; in setvbuf()
Dfdopen.c68 fp->_flags = flags; in fdopen()
76 fp->_flags |= __SAPP; in fdopen()
Dfvwrite.c79 if (fp->_flags & __SNBF) { in __sfvwrite()
91 } else if ((fp->_flags & __SLBF) == 0) { in __sfvwrite()
105 if ((fp->_flags & (__SALC | __SSTR)) == in __sfvwrite()
125 if (fp->_flags & __SSTR) { in __sfvwrite()
202 fp->_flags |= __SERR; in __sfvwrite()
Dvsprintf.c53 f._flags = __SWR | __SSTR; in vsprintf()
Dvsscanf.c53 f._flags = __SRD; in vsscanf()
Dwbuf.c80 if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) in __swbuf()
Dvsnprintf.c58 f._flags = __SWR | __SSTR; in vsnprintf()
Dsscanf.c57 f._flags = __SRD; in sscanf()
/bionic/libc/stdio/
Dstdio.c55 fp->_flags &= ~__SOFF; /* paranoia */ in __sread()
64 if (fp->_flags & __SAPP) in __swrite()
66 fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */ in __swrite()
78 fp->_flags &= ~__SOFF; in __sseek()
80 fp->_flags |= __SOFF; in __sseek()
Dstdio_ext.cpp52 return (fp->_flags & (__SRD|__SRW)) != 0; in __freadable()
56 return (fp->_flags & (__SWR|__SRW)) != 0; in __fwritable()
60 return (fp->_flags & __SLBF) != 0; in __flbf()
Dfread.c52 fp->_flags |= __SERR; in fread()
110 fp->_flags |= __SMOD; in fread()
129 fp->_flags |= (bytes_read == 0) ? __SEOF : __SERR; in fread()
Dlocal.h91 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
123 #define __sfeof(p) (((p)->_flags & __SEOF) != 0)
124 #define __sferror(p) (((p)->_flags & __SERR) != 0)
125 #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF)))
Dsprintf.c56 f._flags = __SWR | __SSTR; in sprintf()

12