Home
last modified time | relevance | path

Searched refs:_ptr (Results 1 – 25 of 106) sorted by relevance

12345

/titanic_41/usr/src/cmd/lms/SyncLib/Include/
H A DSPtr.h53 _ptr(ptr_p), in _ptr() function
62 _ptr = other_sptr_p.get(); in SPtr()
72 _ptr = other_sptr_p.get(); in SPtr()
87 if (_ptr) { in ~SPtr()
88 delete _ptr; in ~SPtr() local
90 _ptr = 0; in ~SPtr()
108 if (_ptr) {
109 delete _ptr; variable
115 _ptr = (T *)other_sptr_p.get();
132 if (_ptr) {
[all …]
/titanic_41/usr/src/lib/libc/port/stdio/
H A Dfwrite.c86 iop->_cnt = iop->_base - iop->_ptr; in _fwrite_unlocked()
90 *iop->_ptr++ = *dptr++; in _fwrite_unlocked()
103 if (iop->_base != iop->_ptr) { in _fwrite_unlocked()
108 bytes = iop->_ptr - iop->_base; in _fwrite_unlocked()
123 iop->_ptr = iop->_base; in _fwrite_unlocked()
145 (void) memcpy(iop->_ptr, (void *)dptr, in _fwrite_unlocked()
148 iop->_ptr += iop->_cnt; in _fwrite_unlocked()
155 char *tmp = (char *)iop->_ptr; in _fwrite_unlocked()
185 (void) memcpy(iop->_ptr, (void *)dptr, s); in _fwrite_unlocked()
187 iop->_ptr += s; in _fwrite_unlocked()
H A Dungetc.c59 if (iop->_ptr <= iop->_base) { in _ungetc_unlocked()
63 } else if (iop->_ptr <= iop->_base - PUSHBACK) in _ungetc_unlocked()
67 ++iop->_ptr; in _ungetc_unlocked()
68 if (*--iop->_ptr != (unsigned char) c) in _ungetc_unlocked()
69 *iop->_ptr = (unsigned char) c; /* was *--iop->_ptr = c; */ in _ungetc_unlocked()
H A Dfread.c82 (void) memcpy((void*)dptr, iop->_ptr, in fread()
97 char *tmp = (char *)iop->_ptr; in fread()
124 (void) memcpy((void*)dptr, iop->_ptr, in fread()
127 iop->_ptr += s; in fread()
H A D_flsbuf.c56 if (iop->_base != 0 && iop->_ptr > iop->_base) in _flsbuf()
60 if (iop->_ptr >= _bufend(iop)) in _flsbuf()
67 if ((*iop->_ptr++ = (unsigned char)ch) == '\n') in _flsbuf()
H A Dgets.c78 stdin->_ptr--; /* put back the character */ in gets()
87 if ((p = (char *)memccpy(ptr, (char *)stdin->_ptr, '\n', in gets()
92 stdin->_ptr += n; in gets()
H A Dputs.c67 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */ in puts()
87 stdout->_ptr += len; in puts()
98 stdout->_ptr[-1] = '\n'; in puts()
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') in _wd_getwc()
1063 len = mbtowc((wchar_t *)&wc, (const char *)iop->_ptr, in _wd_getwc()
1067 iop->_ptr += len; in _wd_getwc()
1095 iop->_ptr -= len; in _wd_ungetwc()
1320 if (iop->_ptr <= iop->_base) {
[all …]
/titanic_41/usr/src/lib/libbc/libc/stdio/4.2/
H A Dflsbuf.c87 iop->_ptr = iop->_base; in fclose()
106 (iop->_base != NULL) && (iop->_ptr > iop->_base) ) in fflush()
131 if ( iop->_ptr >= iop->_base + iop->_bufsiz ) /* if buffer full, */ in _flsbuf()
133 if ( (*iop->_ptr++ = c) != '\n' ) in _flsbuf()
184 n = iop->_ptr - (base = iop->_base); in _xflsbuf()
185 iop->_ptr = base; in _xflsbuf()
213 if (iop->_ptr == iop->_base && !(iop->_flag & (_IONBF | _IOLBF)) ) { in _wrtchk()
262 iop->_ptr = iop->_base; in _findbuf()
282 if ((spaceleft = bufend - iop->_ptr) < 0) in _bufsync()
283 iop->_ptr = bufend; in _bufsync()
/titanic_41/usr/src/lib/libbc/libc/stdio/common/
H A Dungetc.c48 if((iop->_flag & _IOREAD) == 0 || iop->_ptr <= iop->_base)
49 if(iop->_ptr == iop->_base && iop->_cnt == 0)
50 ++iop->_ptr;
53 if (*--iop->_ptr != c) *iop->_ptr = c; /* was *--iop->_ptr = c; */
H A Dputc.c29 (int)(*(p)->_ptr++ = (unsigned char)(x)) :\
31 ((*(p)->_ptr = (unsigned char)(x)) != '\n' ?\
32 (int)(*(p)->_ptr++) :\
33 _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
H A Dfwrite.c67 prev_ptr = iop->_ptr;
68 if (iop->_base >= iop->_ptr) { /*this covers the unbuffered case, too*/
82 while ((n = bufend - (cptr = iop->_ptr)) <= 0) /* full buf */
88 iop->_ptr += n;
94 '\n',iop->_ptr - prev_ptr) != NULL)) {
H A Dfseek.c66 p >= iop->_base - iop->_ptr) {
67 iop->_ptr += (int)p;
74 iop->_ptr = iop->_base;
88 iop->_ptr = iop->_base;
H A Dfputs.c66 while ((n = bufend - (cptr = iop->_ptr)) <= 0) in fputs()
82 iop->_ptr += n; in fputs()
103 while ((n = bufend - (cptr = iop->_ptr)) <= 0) in fputs()
110 iop->_ptr += n; in fputs()
H A Dgets.c52 stdin->_ptr--; in gets()
56 if ((p = memccpy(ptr, (char *) stdin->_ptr, '\n', n)) != NULL) in gets()
60 stdin->_ptr += n; in gets()
H A Dfread.c62 iop->_ptr--; in fread()
66 ptr = memcpy(ptr, (char *) iop->_ptr, n) + n; in fread()
68 iop->_ptr += n; in fread()
H A Dputs.c57 while ((n = bufend - (cptr = stdout->_ptr)) <= 0) /* full buf */
63 stdout->_ptr += n;
67 stdout->_ptr[-1] = '\n'; /* overwrite '\0' with '\n' */
H A Dfgets.c67 iop->_ptr--;
71 if ((p = memccpy(ptr, (char *) iop->_ptr, '\n', n)) != NULL)
75 iop->_ptr += n;
/titanic_41/usr/src/lib/libbc/libc/stdio/sys5/
H A Dflsbuf.c85 iop->_ptr = iop->_base; in fclose()
108 (iop->_base != NULL) && (iop->_ptr > iop->_base) ) in fflush()
134 if ( iop->_ptr >= iop->_base + iop->_bufsiz ) /* if buffer full, */ in _flsbuf()
136 if ( (*iop->_ptr++ = c) != '\n' ) in _flsbuf()
188 n = iop->_ptr - (base = iop->_base); in _xflsbuf()
189 iop->_ptr = base; in _xflsbuf()
218 if (iop->_ptr == iop->_base && !(iop->_flag & (_IONBF | _IOLBF)) ) { in _wrtchk()
267 iop->_ptr = iop->_base; in _findbuf()
287 if ((spaceleft = bufend - iop->_ptr) < 0) in _bufsync()
288 iop->_ptr = bufend; in _bufsync()
/titanic_41/usr/src/lib/libbc/inc/include/
H A Dstdio.h36 unsigned char *_ptr; member
65 #define getc(p) (--(p)->_cnt>=0? ((int)*(p)->_ptr++):_filbuf(p))
67 (int)(*(p)->_ptr++ = (unsigned char)(x)) :\
69 ((*(p)->_ptr = (unsigned char)(x)) != '\n' ?\
70 (int)(*(p)->_ptr++) :\
71 _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
/titanic_41/usr/src/lib/libbc/inc/5include/
H A Dstdio.h101 unsigned char *_ptr; member
105 unsigned char *_ptr;
159 #define getc(p) (--(p)->_cnt >= 0 ? ((int) *(p)->_ptr++) : _filbuf(p))
161 (int)(*(p)->_ptr++ = (unsigned char)(x)) :\
163 ((*(p)->_ptr = (unsigned char)(x)) != '\n' ?\
164 (int)(*(p)->_ptr++) :\
165 _flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
/titanic_41/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++) : \ in file_to_decimal()
/titanic_41/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()
/titanic_41/usr/src/lib/libc/port/print/
H A Dvsnprintf.c67 siop._base = siop._ptr = (unsigned char *)string; in _vsnprintf_c89()
87 siop._base = siop._ptr = tmpbuf; in _vsnprintf_c89()
101 *siop._ptr = '\0'; /* plant terminating null character */ in _vsnprintf_c89()
H A Dsnprintf.c54 siop._base = siop._ptr = (unsigned char *)string; in snprintf()
74 siop._base = siop._ptr = tmpbuf; in snprintf()
85 *siop._ptr = '\0'; /* plant terminating null character */ in snprintf()

12345