/bionic/libc/stdio/ |
D | asprintf.c | 32 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()
|
D | vasprintf.c | 31 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()
|
D | local.h | 71 ((((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; \
|
D | fvwrite.c | 111 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()
|
D | ungetc.c | 52 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()
|
D | fileext.h | 46 #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base)) 52 _UB(fp)._base = NULL; \ 69 (f)->_ext._base = (unsigned char *)(fext); \
|
D | vsscanf.c | 53 f._bf._base = f._p = (unsigned char *)str; in vsscanf() 56 f._lb._base = NULL; in vsscanf()
|
D | sscanf.c | 57 f._bf._base = f._p = (unsigned char *)str; in sscanf() 60 f._lb._base = NULL; in sscanf()
|
D | fseek.c | 97 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()
|
D | refill.c | 97 if (fp->_bf._base == NULL) in __srefill() 115 fp->_p = fp->_bf._base; in __srefill()
|
D | vsprintf.c | 54 f._bf._base = f._p = (unsigned char *)str; in vsprintf()
|
D | sprintf.c | 56 f._bf._base = f._p = (unsigned char *)str; in sprintf()
|
D | wbuf.c | 72 n = fp->_p - fp->_bf._base; in __swbuf()
|
D | vsnprintf.c | 59 f._bf._base = f._p = (unsigned char *)str; in vsnprintf()
|
D | freopen.c | 110 free((char *)fp->_bf._base); in freopen() 114 fp->_bf._base = NULL; in freopen()
|
D | snprintf.c | 60 f._bf._base = f._p = (unsigned char *)str; in snprintf()
|
D | ftell.c | 80 pos += fp->_p - fp->_bf._base; in ftello()
|
D | fflush.c | 66 if ((p = fp->_bf._base) == NULL) in __sflush()
|
/bionic/libc/upstream-freebsd/lib/libc/stdio/ |
D | fgetln.c | 64 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()
|
D | makebuf.c | 66 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()
|
D | wsetup.c | 71 fp->_p = fp->_bf._base; in __swsetup() 79 if (fp->_bf._base == NULL) in __swsetup()
|
D | setvbuf.c | 80 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()
|
D | fpurge.c | 62 fp->_p = fp->_bf._base; in fpurge()
|
D | fclose.c | 62 free((char *)fp->_bf._base); in fclose()
|
/bionic/libc/kernel/arch-mips/asm/sn/ |
D | addrs.h | 97 #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
|