Searched refs:_ptr (Results 1 - 25 of 55) sorted by relevance

123

/osnet-11/usr/src/lib/libc/port/stdio/
H A Dungetc.c59 if (iop->_ptr <= iop->_base) {
63 } else if (iop->_ptr <= iop->_base - PUSHBACK)
67 ++iop->_ptr;
68 if (*--iop->_ptr != (unsigned char) c)
69 *iop->_ptr = (unsigned char) c; /* was *--iop->_ptr = c; */
H A D_wrtchk.c55 else if ((iop->_ptr == iop->_base) &&
57 iop->_cnt = _bufend(iop) - iop->_ptr;
H A Dgetc.c57 c = (--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++;
66 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++);
H A Dputc.c60 (*iop->_ptr++) = (unsigned char)ch;
74 return (*iop->_ptr++ = (unsigned char)ch);
H A Dfwrite.c86 iop->_cnt = iop->_base - iop->_ptr;
90 *iop->_ptr++ = *dptr++;
103 if (iop->_base != iop->_ptr) {
108 bytes = iop->_ptr - iop->_base;
123 iop->_ptr = iop->_base;
145 (void) memcpy(iop->_ptr, (void *)dptr,
148 iop->_ptr += iop->_cnt;
155 char *tmp = (char *)iop->_ptr;
185 (void) memcpy(iop->_ptr, (void *)dptr, s);
187 iop->_ptr
[all...]
H A Dfread.c82 (void) memcpy((void*)dptr, iop->_ptr,
88 * filbuf clobbers _cnt & _ptr,
97 char *tmp = (char *)iop->_ptr;
124 (void) memcpy((void*)dptr, iop->_ptr,
127 iop->_ptr += s;
H A D_flsbuf.c56 if (iop->_base != 0 && iop->_ptr > iop->_base)
60 if (iop->_ptr >= _bufend(iop))
67 if ((*iop->_ptr++ = (unsigned char)ch) == '\n')
H A Dfgets.c78 iop->_ptr--; /* put back the character */
87 if ((p = memccpy(ptr, (char *)iop->_ptr, '\n',
92 iop->_ptr += n;
H A Dgets.c78 stdin->_ptr--; /* put back the character */
87 if ((p = (char *)memccpy(ptr, (char *)stdin->_ptr, '\n',
92 stdin->_ptr += n;
H A Dputs.c67 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */
87 stdout->_ptr += len;
98 stdout->_ptr[-1] = '\n';
H A Drewind.c60 iop->_ptr = iop->_base;
H A D__extensions.c94 if ((stream->_ptr = stream->_base) != NULL)
109 amount = stream->_ptr - stream->_base;
H A D_filbuf.c115 iop->_ptr = iop->_base;
122 return (*iop->_ptr++);
H A Dfputs.c73 while ((n = bufend - (cptr = iop->_ptr)) <= 0) {
93 iop->_ptr += len;
H A Dflush.c377 fp->_ptr = 0;
510 /* make sure _cnt, _ptr are correct */
516 spaceleft = bufend - iop->_ptr;
517 if (bufend < iop->_ptr) {
518 iop->_ptr = bufend;
536 n = iop->_ptr - base;
537 iop->_ptr = base;
668 iop->_ptr = iop->_base;
674 if (iop->_base != NULL && iop->_ptr > iop->_base) {
709 iop->_ptr
[all...]
H A Ddoscan.c59 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \
62 ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \
63 (++iop->_cnt, *(--iop->_ptr))))
66 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \
69 ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \
1061 if (*iop->_ptr == '\0')
1063 len = mbtowc((wchar_t *)&wc, (const char *)iop->_ptr,
1067 iop->_ptr
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dperlapi.c37 #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \
39 #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \
50 #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \
52 #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \
55 #define PERLVARIC(v,t,i) const t* Perl_##v##_ptr(pTHX) \
/osnet-11/usr/src/lib/libc/port/fp/
H A Dfile_decim.c44 ((*iop->_ptr == '\0') ? EOF : *iop->_ptr++) : \
47 #define myungetc(x, iop) ((iop->_flag & _IOWRT) ? *(--iop->_ptr) : \
65 ((*pf->_ptr == '\0') ? EOF : *pf->_ptr++) : \
/osnet-11/usr/src/lib/libc/port/i18n/
H A D__ungetwc_xpg5.c83 if (iop->_ptr <= iop->_base) {
88 if (iop->_ptr == iop->_base && iop->_cnt == 0) {
89 ++iop->_ptr;
90 } else if ((iop->_ptr - n) < (iop->_base - PUSHBACK)) {
98 *--(iop)->_ptr = (*p--);
/osnet-11/usr/src/lib/libc/port/print/
H A Dsprintf.c52 siop._base = siop._ptr = (unsigned char *)string;
58 *siop._ptr = '\0'; /* plant terminating null character */
H A Dvsprintf.c65 siop._base = siop._ptr = (unsigned char *)string;
72 *siop._ptr = '\0'; /* plant terminating null character */
H A Dsnprintf.c54 siop._base = siop._ptr = (unsigned char *)string;
74 siop._base = siop._ptr = tmpbuf;
85 *siop._ptr = '\0'; /* plant terminating null character */
H A Dvsnprintf.c67 siop._base = siop._ptr = (unsigned char *)string;
87 siop._base = siop._ptr = tmpbuf;
101 *siop._ptr = '\0'; /* plant terminating null character */
H A Dvwprintf.c167 siop._base = siop._ptr = (unsigned char *)string;
175 wp = (wchar_t *)(uintptr_t)siop._ptr;
/osnet-11/usr/src/lib/libc/inc/
H A Dfile64.h64 unsigned char *_ptr; /* next character from/to here in buffer */ member in struct:__FILE_TAG

Completed in 59 milliseconds

123