Home
last modified time | relevance | path

Searched refs:_flags (Results 1 – 25 of 37) 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()
82 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
218 #define cantwrite(fp) ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp))
237 #define __sferror(p) (((p)->_flags & __SERR) != 0)
238 #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR | __SEOF)))
Dvfscanf.cpp322 fp->_flags |= __SERR; in __svfscanf()
331 fp->_flags |= __SERR; in __svfscanf()
343 fp->_flags |= __SERR; in __svfscanf()
411 fp->_flags |= __SERR; in __svfscanf()
421 fp->_flags |= __SERR; in __svfscanf()
447 fp->_flags |= __SERR; in __svfscanf()
454 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()
761 if ((fp->_flags & __SSTR) == 0) return __fputwc_unlock(wc, fp); in xfputwc()
767 fp->_flags |= __SERR; in xfputwc()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dwsetup.c54 if ((fp->_flags & __SWR) == 0) { in __swsetup()
55 if ((fp->_flags & __SRW) == 0) { in __swsetup()
57 fp->_flags |= __SERR; in __swsetup()
60 if (fp->_flags & __SRD) { in __swsetup()
64 fp->_flags &= ~(__SRD|__SEOF); in __swsetup()
68 fp->_flags |= __SWR; in __swsetup()
75 if ((fp->_flags & (__SSTR | __SALC)) == __SSTR) { in __swsetup()
77 fp->_flags |= __SERR; in __swsetup()
82 if (fp->_flags & __SLBF) { in __swsetup()
91 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()
Dfvwrite.c78 if (fp->_flags & __SNBF) { in __sfvwrite()
91 } else if ((fp->_flags & __SLBF) == 0) { in __sfvwrite()
106 if ((fp->_flags & (__SALC | __SSTR)) == in __sfvwrite()
125 if (fp->_flags & __SSTR) { in __sfvwrite()
210 fp->_flags |= __SERR; in __sfvwrite()
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.c72 flags = fp->_flags; in setvbuf()
108 fp->_flags = flags | __SNBF; in setvbuf()
140 fp->_flags = flags; in setvbuf()
Dfgetln.c88 fp->_flags |= __SMOD; in fgetln()
118 if (fp->_flags & __SEOF) in fgetln()
Dopen_memstream.c134 fp->_flags = 0; in open_memstream()
146 fp->_flags = __SWR; in open_memstream()
Dopen_wmemstream.c144 fp->_flags = 0; in open_wmemstream()
157 fp->_flags = __SWR; in open_wmemstream()
Dvsscanf.c52 f._flags = __SRD; in vsscanf()
Dwbuf.c77 if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) in __swbuf()
Dvdprintf.c62 f._flags = __SWR; in vdprintf()
Dfgetwc.c72 fp->_flags |= __SERR; in __fgetwc_unlock()
Dfputwc.c65 fp->_flags |= __SERR; in __fputwc_unlock()
Dvswscanf.c79 f._flags = __SRD; in vswscanf()
Dvasprintf.c38 f._flags = __SWR | __SSTR | __SALC; in vasprintf()
/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/kernel/uapi/asm-generic/
Dsiginfo.h66 __u32 _flags; member
112 #define si_perf_flags _sifields._sigfault._perf._flags
/bionic/libc/include/
Dsemaphore.h67 sem_t* _Nullable sem_open(const char* _Nonnull __name, int _flags, ...);

12