Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfwrite.c84 iop->_cnt = iop->_base - iop->_ptr; in _fwrite_unlocked()
86 ssize_t buflen = bufend - iop->_base; in _fwrite_unlocked()
101 if (iop->_base != iop->_ptr) { in _fwrite_unlocked()
106 bytes = iop->_ptr - iop->_base; in _fwrite_unlocked()
107 data = (char *)iop->_base; in _fwrite_unlocked()
121 iop->_ptr = iop->_base; in _fwrite_unlocked()
H A D_filbuf.c72 if (iop->_base == 0) { in _filbuf()
113 iop->_ptr = iop->_base; in _filbuf()
117 nbyte = endbuf - iop->_base; in _filbuf()
118 if ((res = _xread(iop, (char *)iop->_base, nbyte)) > 0) { in _filbuf()
H A Dungetc.c57 if (iop->_ptr <= iop->_base) { in _ungetc_unlocked()
58 if (iop->_base == 0) { in _ungetc_unlocked()
61 } else if (iop->_ptr <= iop->_base - PUSHBACK) in _ungetc_unlocked()
H A D__extensions.c92 if ((stream->_ptr = stream->_base) != NULL) in __fpurge()
107 amount = stream->_ptr - stream->_base; in __fpending()
122 size = _bufend(stream) - stream->_base; in __fbufsize()
H A Dftell.c78 (iop->_base != 0)) { in ftell_common()
79 adjust = iop->_ptr - iop->_base; in ftell_common()
80 } else if ((iop->_flag & _IORW) && (iop->_base != 0)) { in ftell_common()
H A Dsetbuf.c56 if ((iop->_base != NULL) && (iop->_flag & _IOMYBUF)) in setbuf()
57 free((char *)iop->_base - PUSHBACK); in setbuf()
90 iop->_base = temp; in setbuf()
H A Dsetvbuf.c100 if (iop->_base != NULL && sflag) in setvbuf()
101 free((char *)iop->_base - PUSHBACK); in setvbuf()
103 iop->_base = temp; in setvbuf()
H A Dflush.c381 fp->_base = 0; in _findiop()
541 Uchar *base = iop->_base; in _xflsbuf()
679 iop->_ptr = iop->_base; in _fflush_u()
685 if (iop->_base != NULL && iop->_ptr > iop->_base) { in _fflush_u()
717 (void) free((char *)iop->_base - PUSHBACK); in fclose()
719 iop->_base = NULL; in fclose()
767 free((char *)iop->_base - PUSHBACK); in fcloseall()
768 iop->_base = NULL; in fcloseall()
798 (void) free((char *)iop->_base - PUSHBACK); in close_fd()
800 iop->_base = NULL; in close_fd()
[all …]
H A D_wrtchk.c53 if (iop->_base == NULL && _findbuf(iop) == NULL) in _wrtchk()
55 else if ((iop->_ptr == iop->_base) && in _wrtchk()
H A D_flsbuf.c55 if (iop->_base != 0 && iop->_ptr > iop->_base) in _flsbuf()
H A Dfseek.c63 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) { in fseek()
73 iop->_ptr = iop->_base; in fseek()
H A Dfseeko.c70 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) { in fseeko64()
80 iop->_ptr = iop->_base; in fseeko64()
H A D_findbuf.c108 iop->_base = buf + PUSHBACK; /* bytes for pushback */ in _findbuf()
110 endbuf = iop->_base + size; in _findbuf()
H A Dfopen.c108 free((char *)iop->_base - PUSHBACK); in _freopen_null()
110 iop->_base = NULL; in _freopen_null()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dungetwc.c78 if (iop->_ptr <= iop->_base) { in __ungetwc_impl()
79 if (iop->_base == NULL) { in __ungetwc_impl()
83 if (iop->_ptr == iop->_base && iop->_cnt == 0) { in __ungetwc_impl()
85 } else if ((iop->_ptr - n) < (iop->_base - PUSHBACK)) { in __ungetwc_impl()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dnewwin.c144 w->_base = (cchar_t *) malloc((size_t) (nlines * ncols) * in __m_newwin()
145 sizeof (*w->_base)); in __m_newwin()
146 if (w->_base == NULL) in __m_newwin()
149 w->_line[0] = w->_base; in __m_newwin()
167 w->_base = NULL; in __m_newwin()
249 if (w->_base != NULL) in delwin()
250 free(w->_base); in delwin()
H A Dscr_dump.c91 free(w->_base); in scr_replace()
103 new->_base = NULL; in scr_replace()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dnewwin.c141 w->_base = (cchar_t *) malloc(
142 (size_t) (nlines * ncols) * sizeof *w->_base
144 if (w->_base == (cchar_t *) 0)
147 w->_line[y = 0] = w->_base;
162 w->_base = (cchar_t *) 0;
236 if (w->_base != (cchar_t *) 0)
237 free(w->_base);
H A Dscr_dump.c93 free(w->_base);
104 new->_base = (cchar_t *) 0;
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dsetbuffer.c57 if (iop->_base != 0 && iop->_flag & _IOMYBUF) in setbuffer()
58 free((char *)iop->_base - PUSHBACK); in setbuffer()
81 iop->_base = temp; in setbuffer()
/illumos-gate/usr/src/uts/intel/sys/amdzen/
H A Dsmn.h494 #define AMDZEN_MAKE_SMN_REG_FN(_fn, _unit, _base, _mask, _nunits, _unitshift) \ argument
495 CTASSERT(((_base) & ~(_mask)) == 0); \
515 const uint32_t aperture_base = (_base); \
/illumos-gate/usr/src/lib/libc/port/print/
H A Dvsnprintf.c65 siop._base = siop._ptr = (unsigned char *)string; in _vsnprintf_c89()
85 siop._base = siop._ptr = tmpbuf; in _vsnprintf_c89()
H A Dsnprintf.c52 siop._base = siop._ptr = (unsigned char *)string; in snprintf()
72 siop._base = siop._ptr = tmpbuf; in snprintf()
/illumos-gate/usr/src/ucblib/libucb/inc/
H A Dstdiom.h116 (iop->_base == 0) || \
117 (iop->_ptr == iop->_base && iop->_cnt == 0 && \
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_types.h1315 #define EFX_SHIFT64(_bit, _base) \ argument
1316 (((_bit) >= (_base) && (_bit) < (_base) + 64) ? \
1317 ((uint64_t)1 << ((_bit) - (_base))) : \
1323 #define EFX_SHIFT32(_bit, _base) \ argument
1324 (((_bit) >= (_base) && (_bit) < (_base) + 32) ? \
1325 ((uint32_t)1 << ((_bit) - (_base))) : \
1328 #define EFX_SHIFT16(_bit, _base) \ argument
1329 (((_bit) >= (_base) && (_bit) < (_base) + 16) ? \
1330 (uint16_t)(1 << ((_bit) - (_base))) : \
1333 #define EFX_SHIFT8(_bit, _base) \ argument
[all …]

123