/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fwrite.c | 84 iop->_cnt = iop->_base - iop->_ptr; in _fwrite_unlocked() 88 *iop->_ptr++ = *dptr++; in _fwrite_unlocked() 101 if (iop->_base != iop->_ptr) { in _fwrite_unlocked() 106 bytes = iop->_ptr - iop->_base; in _fwrite_unlocked() 121 iop->_ptr = iop->_base; in _fwrite_unlocked() 143 (void) memcpy(iop->_ptr, (void *)dptr, in _fwrite_unlocked() 146 iop->_ptr += iop->_cnt; in _fwrite_unlocked() 153 char *tmp = (char *)iop->_ptr; in _fwrite_unlocked() 183 (void) memcpy(iop->_ptr, (void *)dptr, s); in _fwrite_unlocked() 185 iop->_ptr += s; in _fwrite_unlocked()
|
H A D | ungetc.c | 57 if (iop->_ptr <= iop->_base) { in _ungetc_unlocked() 61 } else if (iop->_ptr <= iop->_base - PUSHBACK) in _ungetc_unlocked() 65 ++iop->_ptr; in _ungetc_unlocked() 66 if (*--iop->_ptr != (unsigned char) c) in _ungetc_unlocked() 67 *iop->_ptr = (unsigned char) c; /* was *--iop->_ptr = c; */ in _ungetc_unlocked()
|
H A D | fread.c | 80 (void) memcpy((void*)dptr, iop->_ptr, in fread() 95 char *tmp = (char *)iop->_ptr; in fread() 122 (void) memcpy((void*)dptr, iop->_ptr, in fread() 125 iop->_ptr += s; in fread()
|
H A D | doscan.c | 57 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \ 60 ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \ 61 (++iop->_cnt, *(--iop->_ptr)))) 64 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \ 67 ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \ 1060 if (*iop->_ptr == '\0') in _wd_getwc() 1062 len = mbtowc((wchar_t *)&wc, (const char *)iop->_ptr, in _wd_getwc() 1066 iop->_ptr += len; in _wd_getwc() 1094 iop->_ptr -= len; in _wd_ungetwc() 1318 if (iop->_ptr <= iop->_base) { [all …]
|
H A D | _flsbuf.c | 55 if (iop->_base != 0 && iop->_ptr > iop->_base) in _flsbuf() 59 if (iop->_ptr >= _bufend(iop)) in _flsbuf() 66 if ((*iop->_ptr++ = (unsigned char)ch) == '\n') in _flsbuf()
|
H A D | gets.c | 76 stdin->_ptr--; /* put back the character */ in gets() 85 if ((p = (char *)memccpy(ptr, (char *)stdin->_ptr, '\n', in gets() 90 stdin->_ptr += n; in gets()
|
H A D | puts.c | 65 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */ in puts() 85 stdout->_ptr += len; in puts() 96 stdout->_ptr[-1] = '\n'; in puts()
|
H A D | fgets.c | 76 iop->_ptr--; /* put back the character */ in fgets() 85 if ((p = memccpy(ptr, (char *)iop->_ptr, '\n', in fgets() 90 iop->_ptr += n; in fgets()
|
H A D | flush.c | 380 fp->_ptr = 0; in _findiop() 528 spaceleft = bufend - iop->_ptr; in _bufsync() 529 if (bufend < iop->_ptr) { in _bufsync() 530 iop->_ptr = bufend; in _bufsync() 548 n = iop->_ptr - base; in _xflsbuf() 549 iop->_ptr = base; in _xflsbuf() 679 iop->_ptr = iop->_base; in _fflush_u() 685 if (iop->_base != NULL && iop->_ptr > iop->_base) { in _fflush_u() 720 iop->_ptr = NULL; in fclose() 769 iop->_ptr = NULL; in fcloseall() [all …]
|
H A D | getc.c | 62 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++); in getc_unlocked() 68 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++); in _getc_internal()
|
H A D | _wrtchk.c | 55 else if ((iop->_ptr == iop->_base) && in _wrtchk() 57 iop->_cnt = _bufend(iop) - iop->_ptr; in _wrtchk()
|
H A D | putc.c | 65 return (*iop->_ptr++ = (unsigned char)ch); in putc_unlocked() 74 return (*iop->_ptr++ = (unsigned char)ch); in _putc_internal()
|
H A D | __extensions.c | 92 if ((stream->_ptr = stream->_base) != NULL) in __fpurge() 107 amount = stream->_ptr - stream->_base; in __fpending()
|
H A D | _filbuf.c | 113 iop->_ptr = iop->_base; in _filbuf() 120 return (*iop->_ptr++); in _filbuf()
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | file_decim.c | 42 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \ 45 #define myungetc(x, iop) ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \ 63 ((*pf->_ptr == '\0') ? EOF : *pf->_ptr++) : \ in file_to_decimal()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | ungetwc.c | 78 if (iop->_ptr <= iop->_base) { in __ungetwc_impl() 83 if (iop->_ptr == iop->_base && iop->_cnt == 0) { in __ungetwc_impl() 84 ++iop->_ptr; in __ungetwc_impl() 85 } else if ((iop->_ptr - n) < (iop->_base - PUSHBACK)) { in __ungetwc_impl() 93 *--(iop)->_ptr = (*p--); in __ungetwc_impl()
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | vsnprintf.c | 65 siop._base = siop._ptr = (unsigned char *)string; in _vsnprintf_c89() 85 siop._base = siop._ptr = tmpbuf; in _vsnprintf_c89() 99 *siop._ptr = '\0'; /* plant terminating null character */ in _vsnprintf_c89()
|
H A D | snprintf.c | 52 siop._base = siop._ptr = (unsigned char *)string; in snprintf() 72 siop._base = siop._ptr = tmpbuf; in snprintf() 83 *siop._ptr = '\0'; /* plant terminating null character */ in snprintf()
|
H A D | vsprintf.c | 63 siop._base = siop._ptr = (unsigned char *)string; in _vsprintf_c89() 70 *siop._ptr = '\0'; /* plant terminating null character */ in _vsprintf_c89()
|
H A D | sprintf.c | 50 siop._base = siop._ptr = (unsigned char *)string; in sprintf() 56 *siop._ptr = '\0'; /* plant terminating null character */ in sprintf()
|
/illumos-gate/usr/src/head/ |
H A D | stdio_impl.h | 51 unsigned char *_ptr; /* next character from/to here in buffer */ 55 unsigned char *_ptr; /* next character from/to here in buffer */
|
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | vsprintf.c | 55 siop._base = siop._ptr = (unsigned char *)string; in vsprintf() 58 *siop._ptr = '\0'; /* plant terminating null character */ in vsprintf()
|
H A D | sprintf.c | 56 siop._base = siop._ptr = (unsigned char *)string; in sprintf() 61 *siop._ptr = '\0'; /* plant terminating null character */ in sprintf()
|
/illumos-gate/usr/src/uts/common/io/qede/ |
H A D | qede_fp.h | 86 #define UPDATE_RX_PROD(_ptr, data) \ argument 87 internal_ram_wr(&(_ptr)->qede->edev.hwfns[0], \ 88 (_ptr)->hw_rxq_prod_addr, sizeof (data), \
|
/illumos-gate/usr/src/head/iso/ |
H A D | stdio_iso.h | 280 return (--_p->_cnt < 0 ? __filbuf(_p) : (int)*_p->_ptr++); } in getc() 283 : (int)(*_p->_ptr++ = (unsigned char) _x)); } in putc() 286 #define getc(p) (--(p)->_cnt < 0 ? __filbuf(p) : (int)*(p)->_ptr++) 288 : (int)(*(p)->_ptr++ = (unsigned char) (x)))
|