Home
last modified time | relevance | path

Searched refs:_ptr (Results 1 – 25 of 61) 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()
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 Dungetc.c57 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 Dfread.c80 (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_flsbuf.c55 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 Ddoscan.c57 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \
60 ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \
61 (++iop->_cnt, *(--iop->_ptr))))
64 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \
1060 if (*iop->_ptr == '\0') in _wd_getwc()
1066 iop->_ptr += len; in _wd_getwc()
1094 iop->_ptr -= len; in _wd_ungetwc()
1318 if (iop->_ptr <= iop->_base) {
1323 ++iop->_ptr;
1338 *--iop->_ptr = *(p--);
[all …]
H A Dgets.c76 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 Dputs.c65 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 Dfgets.c76 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 Dflush.c380 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()
720 iop->_ptr = NULL; in fclose()
769 iop->_ptr = NULL; in fcloseall()
801 iop->_ptr = NULL; in close_fd()
[all …]
H A Dgetc.c62 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.c55 else if ((iop->_ptr == iop->_base) && in _wrtchk()
57 iop->_cnt = _bufend(iop) - iop->_ptr; in _wrtchk()
H A Dputc.c65 return (*iop->_ptr++ = (unsigned char)ch); in putc_unlocked()
74 return (*iop->_ptr++ = (unsigned char)ch); in _putc_internal()
H A D_filbuf.c113 iop->_ptr = iop->_base; in _filbuf()
120 return (*iop->_ptr++); in _filbuf()
H A D__extensions.c92 if ((stream->_ptr = stream->_base) != NULL) in __fpurge()
107 amount = stream->_ptr - stream->_base; in __fpending()
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dfile_decim.c42 ((*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 Dungetwc.c78 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 Dvsnprintf.c65 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 Dsnprintf.c52 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 Dvsprintf.c63 siop._base = siop._ptr = (unsigned char *)string; in _vsprintf_c89()
70 *siop._ptr = '\0'; /* plant terminating null character */ in _vsprintf_c89()
H A Dsprintf.c50 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 Dstdio_impl.h51 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 Dvsprintf.c55 siop._base = siop._ptr = (unsigned char *)string; in vsprintf()
58 *siop._ptr = '\0'; /* plant terminating null character */ in vsprintf()
H A Dsprintf.c56 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 Dqede_fp.h86 #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 Dstdio_iso.h280 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)))

123