Home
last modified time | relevance | path

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

12

/bionic/libc/stdio/
Drefill.c42 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) in lflush()
58 if (fp->_flags & __SEOF) in __srefill()
63 if ((fp->_flags & __SRD) == 0) { in __srefill()
64 if ((fp->_flags & __SRW) == 0) { in __srefill()
66 fp->_flags |= __SERR; in __srefill()
70 if (fp->_flags & __SWR) { in __srefill()
73 fp->_flags &= ~__SWR; in __srefill()
77 fp->_flags |= __SRD; in __srefill()
102 if (fp->_flags & (__SLBF|__SNBF)) { in __srefill()
104 fp->_flags |= __SIGN; in __srefill()
[all …]
Dstdio_ext.cpp43 return (fp->_flags & __SRD) != 0; in __freading()
47 return (fp->_flags & __SWR) != 0; in __fwriting()
51 return (fp->_flags & (__SRD|__SRW)) != 0; in __freadable()
55 return (fp->_flags & (__SWR|__SRW)) != 0; in __fwritable()
59 return (fp->_flags & __SLBF) != 0; in __flbf()
76 fp->_flags |= __SERR; in __fseterr()
Dstdio.cpp74 ._flags = flags, ._file = fd, ._cookie = __sF + fd, ._close = __sclose, \
174 if (fp->_flags == 0) in __sfp()
186 fp->_flags = 1; /* reserve this slot; caller sets real flags */ in __sfp()
216 if (fp->_flags != 0 && (fp->_flags & __SIGN) == 0) { in _fwalk()
238 fp->_flags = flags; in __FILE_init()
334 if (fp->_flags == 0) { in freopen()
335 fp->_flags = __SEOF; // Hold on to it. in freopen()
340 if (fp->_flags & __SWR) __sflush(fp); in freopen()
367 if (fp->_flags & __SMBF) free(fp->_bf._base); in freopen()
381 fp->_flags = 0; // Release. in freopen()
[all …]
Dlocal.h66 int _flags; /* flags, below; this FILE is free if 0 */ member
69 short _flags; /* flags, below; this FILE is free if 0 */ member
219 #define cantwrite(fp) ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp))
238 #define __sferror(p) (((p)->_flags & __SERR) != 0)
239 #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR | __SEOF)))
Dvfscanf.cpp347 fp->_flags |= __SERR; in __svfscanf()
356 fp->_flags |= __SERR; in __svfscanf()
368 fp->_flags |= __SERR; in __svfscanf()
436 fp->_flags |= __SERR; in __svfscanf()
446 fp->_flags |= __SERR; in __svfscanf()
472 fp->_flags |= __SERR; in __svfscanf()
479 fp->_flags |= __SERR; in __svfscanf()
Dprintf_common.h95 fake._flags = fp->_flags & ~__SNBF; in __sbprintf()
108 if (fake._flags & __SERR) fp->_flags |= __SERR; in __sbprintf()
736 if ((fp->_flags & __SSTR) == 0) return __fputwc_unlock(wc, fp); in xfputwc()
742 fp->_flags |= __SERR; in xfputwc()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
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()
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()
Dmakebuf.c56 if (fp->_flags & __SNBF) { in __smakebuf()
63 fp->_flags |= __SNBF; in __smakebuf()
73 fp->_flags |= flags; in __smakebuf()
Dfpurge.c47 if (!fp->_flags) { in fpurge()
58 fp->_w = fp->_flags & (__SLBF|__SNBF) ? 0 : fp->_bf._size; in fpurge()
Dsetvbuf.c71 flags = fp->_flags; in setvbuf()
107 fp->_flags = flags | __SNBF; in setvbuf()
138 fp->_flags = flags; in setvbuf()
Dfgetln.c88 fp->_flags |= __SMOD; in fgetln()
118 if (fp->_flags & __SEOF) in fgetln()
Dvsscanf.c52 f._flags = __SRD; in vsscanf()
Dwbuf.c80 if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) in __swbuf()
Dvdprintf.c62 f._flags = __SWR; in vdprintf()
Dopen_memstream.c135 fp->_flags = 0; in open_memstream()
148 fp->_flags = __SWR; in open_memstream()
Dfgetwc.c72 fp->_flags |= __SERR; in __fgetwc_unlock()
Dopen_wmemstream.c145 fp->_flags = 0; in open_wmemstream()
159 fp->_flags = __SWR; in open_wmemstream()
Dfputwc.c65 fp->_flags |= __SERR; in __fputwc_unlock()
Dvswscanf.c79 f._flags = __SRD; in vswscanf()
Dvasprintf.c38 f._flags = __SWR | __SSTR | __SALC; in vasprintf()
Dvswprintf.c57 f._flags = __SWR | __SSTR | __SALC; in vswprintf()
/bionic/libc/dns/resolv/
Dres_query.c139 oflags = statp->_flags; in res_nquery()
152 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery()
169 ((oflags ^ statp->_flags) & RES_F_EDNS0ERR) != 0) { in res_nquery()
170 statp->_flags |= RES_F_EDNS0ERR; in res_nquery()
/bionic/libc/include/
Dsemaphore.h67 sem_t* sem_open(const char* __name, int _flags, ...);
/bionic/libc/bionic/
Dwcstod.cpp61 f._flags = __SRD; in wcstod()

12