Home
last modified time | relevance | path

Searched refs:_base (Results 1 – 25 of 53) sorted by relevance

123

/picolibc-3.5.0-3.4.0/newlib/libc/stdio/
Dungetc.c86 if (fp->_ub._base == fp->_ubuf) in __submore()
93 fp->_ub._base = p; in __submore()
102 p = (unsigned char *) realloc ((void *) (fp->_ub._base), i << 1); in __submore()
107 fp->_ub._base = p; in __submore()
183 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && fp->_p[-1] == c) in ungetc()
198 fp->_ub._base = fp->_ubuf; in ungetc()
Dvsiscanf.c39 f._bf._base = f._p = (unsigned char *) str; in vsiscanf()
42 f._ub._base = NULL; in vsiscanf()
43 f._lb._base = NULL; in vsiscanf()
Dvswscanf.c40 f._bf._base = f._p = (unsigned char *) str; in vswscanf()
43 f._ub._base = NULL; in vswscanf()
44 f._lb._base = NULL; in vswscanf()
Dvsscanf.c40 f._bf._base = f._p = (unsigned char *) str; in vsscanf()
43 f._ub._base = NULL; in vsscanf()
44 f._lb._base = NULL; in vsscanf()
Dsiscanf.c91 f._bf._base = f._p = (unsigned char *) str; in siscanf()
94 f._ub._base = NULL; in siscanf()
95 f._lb._base = NULL; in siscanf()
Dswscanf.c423 f._bf._base = f._p = (unsigned char *) str; in swscanf()
426 f._ub._base = NULL; in swscanf()
427 f._lb._base = NULL; in swscanf()
Dsscanf.c432 f._bf._base = f._p = (unsigned char *) str; in sscanf()
435 f._ub._base = NULL; in sscanf()
436 f._lb._base = NULL; in sscanf()
Dlocal.h220 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
226 #define HASUB(fp) ((fp)->_ub._base != NULL)
228 if ((fp)->_ub._base != (fp)->_ubuf) \
229 free((char *)(fp)->_ub._base); \
230 (fp)->_ub._base = NULL; \
235 #define HASLB(fp) ((fp)->_lb._base != NULL)
236 #define FREELB(ptr, fp) { free((char *)(fp)->_lb._base); \
237 (fp)->_lb._base = NULL; }
Dnano-vfprintf.c186 int curpos = (fp->_p - fp->_bf._base); in _ssputs()
206 memcpy (str, fp->_bf._base, curpos); in _ssputs()
211 str = (unsigned char *)realloc (fp->_bf._base, newsize); in _ssputs()
215 free (fp->_bf._base); in _ssputs()
221 fp->_bf._base = str; in _ssputs()
275 int curpos = (fp->_p - fp->_bf._base); in _ssprint()
296 memcpy (str, fp->_bf._base, curpos); in _ssprint()
301 str = (unsigned char *)realloc (fp->_bf._base, in _ssprint()
306 free (fp->_bf._base); in _ssprint()
312 fp->_bf._base = str; in _ssprint()
[all …]
Dfseeko.c170 curoff += fp->_p - fp->_bf._base; in fseeko()
199 if (fp->_bf._base == NULL) in fseeko()
270 n = fp->_up - fp->_bf._base; in fseeko()
276 n = fp->_p - fp->_bf._base; in fseeko()
291 fp->_p = fp->_bf._base + o; in fseeko()
314 fp->_p = fp->_bf._base; in fseeko()
346 fp->_p = fp->_bf._base; in fseeko()
Dfvwrite.c132 int curpos = (fp->_p - fp->_bf._base); in _sfvwrite()
152 memcpy (str, fp->_bf._base, curpos); in _sfvwrite()
157 str = (unsigned char *)realloc (fp->_bf._base, in _sfvwrite()
163 free (fp->_bf._base); in _sfvwrite()
170 fp->_bf._base = str; in _sfvwrite()
183 else if (fp->_p > fp->_bf._base || len < (size_t) fp->_bf._size) in _sfvwrite()
228 if (fp->_p > fp->_bf._base && s > w) in _sfvwrite()
Dwsetup.c60 fp->_p = fp->_bf._base; in _swsetup()
70 if (fp->_bf._base == NULL in _swsetup()
87 if (!fp->_bf._base && (fp->_flags & __SMBF)) in _swsetup()
Dvasiprintf.c42 f._bf._base = f._p = NULL; in vasiprintf()
49 *strp = (char *) f._bf._base; in vasiprintf()
Dasiprintf.c38 f._bf._base = f._p = NULL; in asiprintf()
47 *strp = (char *) f._bf._base; in asiprintf()
Dvasprintf.c42 f._bf._base = f._p = NULL; in vasprintf()
49 *strp = (char *) f._bf._base; in vasprintf()
Dasprintf.c37 f._bf._base = f._p = NULL; in asprintf()
46 *strp = (char *) f._bf._base; in asprintf()
Dmakebuf.c49 fp->_bf._base = fp->_p = fp->_nbuf; in _smakebuf()
59 fp->_bf._base = fp->_p = fp->_nbuf; in _smakebuf()
66 fp->_bf._base = fp->_p = (unsigned char *) p; in _smakebuf()
Dvasniprintf.c39 f._bf._base = f._p = (unsigned char *) buf; in vasniprintf()
55 return (char *) f._bf._base; in vasniprintf()
Dsetvbuf.c125 free ((void *) fp->_bf._base); in setvbuf()
165 fp->_bf._base = fp->_p = fp->_nbuf; in setvbuf()
197 fp->_bf._base = fp->_p = (unsigned char *) buf; in setvbuf()
Dasniprintf.c38 f._bf._base = f._p = (unsigned char *) buf; in asniprintf()
56 return (char *) f._bf._base; in asniprintf()
Dvasnprintf.c39 f._bf._base = f._p = (unsigned char *) buf; in vasnprintf()
55 return (char *) f._bf._base; in vasnprintf()
Dasnprintf.c38 f._bf._base = f._p = (unsigned char *) buf; in asnprintf()
56 return (char *) f._bf._base; in asnprintf()
Dftello.c106 fp->_p != NULL && fp->_p - fp->_bf._base > 0 && in ftello()
145 pos += fp->_p - fp->_bf._base; in ftello()
/picolibc-3.5.0-3.4.0/newlib/libc/stdio64/
Dfseeko64.c172 curoff += fp->_p - fp->_bf._base; in fseeko64()
200 if (fp->_bf._base == NULL) in fseeko64()
264 n = fp->_up - fp->_bf._base; in fseeko64()
270 n = fp->_p - fp->_bf._base; in fseeko64()
285 fp->_p = fp->_bf._base + o; in fseeko64()
307 fp->_p = fp->_bf._base; in fseeko64()
338 fp->_p = fp->_bf._base; in fseeko64()
Dftello64.c103 fp->_p != NULL && fp->_p - fp->_bf._base > 0 && in ftello64()
142 pos += fp->_p - fp->_bf._base; in ftello64()

123