Home
last modified time | relevance | path

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

12

/bionic/libc/stdio/
Dasprintf.c32 unsigned char *_base; in asprintf() local
36 f._bf._base = f._p = (unsigned char *)malloc(128); in asprintf()
37 if (f._bf._base == NULL) in asprintf()
46 _base = realloc(f._bf._base, ret + 1); in asprintf()
47 if (_base == NULL) in asprintf()
49 *str = (char *)_base; in asprintf()
53 free(f._bf._base); in asprintf()
Dvasprintf.c31 unsigned char *_base; in vasprintf() local
36 f._bf._base = f._p = (unsigned char *)malloc(128); in vasprintf()
37 if (f._bf._base == NULL) in vasprintf()
44 _base = realloc(f._bf._base, ret + 1); in vasprintf()
45 if (_base == NULL) in vasprintf()
47 *str = (char *)_base; in vasprintf()
51 free(f._bf._base); in vasprintf()
Dlocal.h71 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
78 #define HASUB(fp) (_UB(fp)._base != NULL)
80 if (_UB(fp)._base != (fp)->_ubuf) \
81 free(_UB(fp)._base); \
82 _UB(fp)._base = NULL; \
88 #define HASLB(fp) ((fp)->_lb._base != NULL)
90 free((char *)(fp)->_lb._base); \
91 (fp)->_lb._base = NULL; \
Dfvwrite.c111 size_t blen = fp->_p - fp->_bf._base; in __sfvwrite()
112 unsigned char *_base; in __sfvwrite() local
120 _base = realloc(fp->_bf._base, _size + 1); in __sfvwrite()
121 if (_base == NULL) in __sfvwrite()
124 fp->_bf._base = _base; in __sfvwrite()
126 fp->_p = _base + blen; in __sfvwrite()
136 } else if (fp->_p > fp->_bf._base && (int)len > w) { in __sfvwrite()
177 if (fp->_p > fp->_bf._base && s > w) { in __sfvwrite()
Dungetc.c52 if (_UB(fp)._base == fp->_ubuf) { in __submore()
58 _UB(fp)._base = p; in __submore()
67 p = realloc(_UB(fp)._base, i << 1); in __submore()
73 _UB(fp)._base = p; in __submore()
126 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && in ungetc()
138 _UB(fp)._base = fp->_ubuf; in ungetc()
Dfileext.h46 #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base))
52 _UB(fp)._base = NULL; \
69 (f)->_ext._base = (unsigned char *)(fext); \
Dvsscanf.c53 f._bf._base = f._p = (unsigned char *)str; in vsscanf()
56 f._lb._base = NULL; in vsscanf()
Dsscanf.c57 f._bf._base = f._p = (unsigned char *)str; in sscanf()
60 f._lb._base = NULL; in sscanf()
Dfseek.c97 curoff += fp->_p - fp->_bf._base; in fseeko()
124 if (fp->_bf._base == NULL) in fseeko()
172 n = fp->_up - fp->_bf._base; in fseeko()
176 n = fp->_p - fp->_bf._base; in fseeko()
191 fp->_p = fp->_bf._base + o; in fseeko()
212 fp->_p = fp->_bf._base; in fseeko()
239 fp->_p = fp->_bf._base; in fseeko()
Drefill.c97 if (fp->_bf._base == NULL) in __srefill()
115 fp->_p = fp->_bf._base; in __srefill()
Dvsprintf.c54 f._bf._base = f._p = (unsigned char *)str; in vsprintf()
Dsprintf.c56 f._bf._base = f._p = (unsigned char *)str; in sprintf()
Dwbuf.c72 n = fp->_p - fp->_bf._base; in __swbuf()
Dvsnprintf.c59 f._bf._base = f._p = (unsigned char *)str; in vsnprintf()
Dfreopen.c110 free((char *)fp->_bf._base); in freopen()
114 fp->_bf._base = NULL; in freopen()
Dsnprintf.c60 f._bf._base = f._p = (unsigned char *)str; in snprintf()
Dftell.c80 pos += fp->_p - fp->_bf._base; in ftello()
Dfflush.c66 if ((p = fp->_bf._base) == NULL) in __sflush()
/bionic/libc/upstream-freebsd/lib/libc/stdio/
Dfgetln.c64 if ((p = realloc(fp->_lb._base, newsize)) == NULL) in __slbexpand()
66 fp->_lb._base = p; in __slbexpand()
133 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p, in fgetln()
147 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p, in fgetln()
155 fp->_lb._base[len] = 0; in fgetln()
158 return ((char *)fp->_lb._base); in fgetln()
Dmakebuf.c66 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf()
73 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf()
79 fp->_bf._base = fp->_p = p; in __smakebuf()
Dwsetup.c71 fp->_p = fp->_bf._base; in __swsetup()
79 if (fp->_bf._base == NULL) in __swsetup()
Dsetvbuf.c80 free((void *)fp->_bf._base); in setvbuf()
116 fp->_bf._base = fp->_p = fp->_nbuf; in setvbuf()
140 fp->_bf._base = fp->_p = (unsigned char *)buf; in setvbuf()
Dfpurge.c62 fp->_p = fp->_bf._base; in fpurge()
Dfclose.c62 free((char *)fp->_bf._base); in fclose()
/bionic/libc/kernel/arch-mips/asm/sn/
Daddrs.h97 #define HUB_REG_PTR(_base, _off) (HUBREG_CAST((__psunsigned_t)(_base) + (__psunsigned_t)(_off))) argument
99 #define HUB_REG_PTR_L(_base, _off) HUB_L(HUB_REG_PTR((_base), (_off))) argument
100 #define HUB_REG_PTR_S(_base, _off, _data) HUB_S(HUB_REG_PTR((_base), (_off)), (_data)) argument

12