Home
last modified time | relevance | path

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

123

/freebsd/lib/libc/stdio/
H A Dlocal.h104 ((fp)->_bf._base == NULL && ((fp)->_flags & __SSTR) == 0)) && \
111 #define HASUB(fp) ((fp)->_ub._base != NULL)
113 if ((fp)->_ub._base != (fp)->_ubuf) \
114 free((char *)(fp)->_ub._base); \
115 (fp)->_ub._base = NULL; \
121 #define HASLB(fp) ((fp)->_lb._base != NULL)
123 free((char *)(fp)->_lb._base); \
124 (fp)->_lb._base = NULL; \
H A Dungetc.c57 if (fp->_ub._base == fp->_ubuf) { in __submore()
63 fp->_ub._base = p; in __submore()
72 p = reallocarray(fp->_ub._base, i, 2); in __submore()
78 fp->_ub._base = p; in __submore()
145 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && in __ungetc()
158 fp->_ub._base = fp->_ubuf; in __ungetc()
H A Dvswprintf.c68 f._bf._base = f._p = (unsigned char *)malloc(128); in vswprintf_l()
69 if (f._bf._base == NULL) { in vswprintf_l()
78 free(f._bf._base); in vswprintf_l()
84 mbp = f._bf._base; in vswprintf_l()
91 free(f._bf._base); in vswprintf_l()
H A Dfvwrite.c105 size_t blen = fp->_p - fp->_bf._base; in __sfvwrite()
113 fp->_bf._base = in __sfvwrite()
114 reallocf(fp->_bf._base, fp->_bf._size + 1); in __sfvwrite()
115 if (fp->_bf._base == NULL) in __sfvwrite()
117 fp->_p = fp->_bf._base + blen; in __sfvwrite()
129 } else if (fp->_p > fp->_bf._base && len > w) { in __sfvwrite()
170 if (fp->_p > fp->_bf._base && s > w) { in __sfvwrite()
H A Dvasprintf.c51 f._bf._base = f._p = malloc(128); in vasprintf_l()
52 if (f._bf._base == NULL) { in vasprintf_l()
60 free(f._bf._base); in vasprintf_l()
66 *str = (char *)f._bf._base; in vasprintf_l()
H A Dfgetln.c59 if ((p = realloc(fp->_lb._base, newsize)) == NULL) in __slbexpand()
61 fp->_lb._base = p; in __slbexpand()
126 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p, in fgetln()
143 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p, in fgetln()
150 ret = (char *)fp->_lb._base; in fgetln()
H A Dfseek.c165 if (fp->_bf._base == NULL) in _fseeko()
222 n = fp->_up - fp->_bf._base; in _fseeko()
226 n = fp->_p - fp->_bf._base; in _fseeko()
239 fp->_p = fp->_bf._base + o; in _fseeko()
261 fp->_p = fp->_bf._base; in _fseeko()
291 fp->_p = fp->_bf._base; in _fseeko()
H A Dmakebuf.c62 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf()
69 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf()
75 fp->_bf._base = fp->_p = p; in __smakebuf()
H A Dsetvbuf.c77 free((void *)fp->_bf._base); in setvbuf()
113 fp->_bf._base = fp->_p = fp->_nbuf; in setvbuf()
136 fp->_bf._base = fp->_p = (unsigned char *)buf; in setvbuf()
H A Dwsetup.c67 fp->_p = fp->_bf._base; in __swsetup()
75 if (fp->_bf._base == NULL) in __swsetup()
H A Dfindfp.c145 fp->_bf._base = NULL; /* no buffer */ in __sfp()
150 fp->_ub._base = NULL; /* no ungetc buffer */ in __sfp()
152 fp->_lb._base = NULL; /* no line buffer */ in __sfp()
H A Dfgetwln.c68 *((wchar_t *)fp->_lb._base + len++) = wc; in fgetwln_l()
81 ret = (wchar_t *)fp->_lb._base; in fgetwln_l()
H A Dsnprintf.c68 f._bf._base = f._p = (unsigned char *)str; in snprintf()
96 f._bf._base = f._p = (unsigned char *)str; in snprintf_l()
H A Dftell.c97 fp->_p != NULL && fp->_p - fp->_bf._base > 0 && in _ftello()
123 (n = fp->_p - fp->_bf._base) > 0) { in _ftello()
H A Drefill.c111 if (fp->_bf._base == NULL) in __srefill()
129 fp->_p = fp->_bf._base; in __srefill()
H A Dfread.c105 fp->_bf._base = fp->_p = p; in __fread()
118 fp->_bf._base = fp->_p = fp->_nbuf; in __fread()
H A Dfreopen.c171 free((char *)fp->_bf._base); in freopen()
175 fp->_bf._base = NULL; in freopen()
H A Dfpurge.c58 fp->_p = fp->_bf._base; in fpurge()
H A Dwbuf.c76 n = fp->_p - fp->_bf._base; in __swbuf()
H A Dvdprintf.c62 f._bf._base = buf; in vdprintf()
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/
H A Dbuffer.h682 #define ISC__BUFFER_INIT(_b, _base, _length) \ argument
688 _u.konst = (_base); \
793 #define ISC__BUFFER_PUTMEM(_b, _base, _length) \ argument
795 memcpy(isc_buffer_used(_b), (_base), (_length)); \
/freebsd/sys/riscv/sifive/
H A Dsifive_prci.c111 #define PLL(_id, _name, _base) \ argument
115 .reg = (_base), \
128 #define DIV(_id, _name, _parent_name, _base, _bias) \ argument
133 .reg = (_base), \
146 #define GATE(_id, _name, _parent_name, _base) \ argument
151 .reg = (_base), \
/freebsd/sys/dev/bhnd/bcma/
H A Dbcma_dmp.h136 #define BCMA_DMP_OOBSEL(_base, _bank, _sel) \ argument
137 (_base + (_bank * 8) + (_sel >= 4 ? 4 : 0))
/freebsd/sys/dev/sfxge/common/
H A Defx_types.h1321 #define EFX_SHIFT64(_bit, _base) \ argument
1322 (((_bit) >= (_base) && (_bit) < (_base) + 64) ? \
1323 ((uint64_t)1 << EFX_SSUB((_bit), (_base))) : \
1326 #define EFX_SHIFT32(_bit, _base) \ argument
1327 (((_bit) >= (_base) && (_bit) < (_base) + 32) ? \
1328 ((uint32_t)1 << EFX_SSUB((_bit),(_base))) : \
1331 #define EFX_SHIFT16(_bit, _base) \ argument
1332 (((_bit) >= (_base) && (_bit) < (_base) + 16) ? \
1336 #define EFX_SHIFT8(_bit, _base) \ argument
1337 (((_bit) >= (_base) && (_bit) < (_base) + 8) ? \
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A D_libelf_ar.h55 unsigned int _base, size_t *_ret);

123