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

12345

/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
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 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 Dgets.c52 stdin->_ptr--;
56 if ((p = memccpy(ptr, (char *) stdin->_ptr, '\n', n)) != NULL)
60 stdin->_ptr += n;
H A Dgetc.c28 #define __getc__(p) (--(p)->_cnt>=0? ((int)*(p)->_ptr++):_filbuf(p))
H A Dstdiom.h33 #define _BUFSYNC(iop) if ((iop->_base + iop->_bufsiz) - iop->_ptr < \
38 || (iop->_ptr == iop->_base && iop->_cnt == 0 \
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 Dfgets.c67 iop->_ptr--;
71 if ((p = memccpy(ptr, (char *) iop->_ptr, '\n', n)) != NULL)
75 iop->_ptr += n;
H A Dfread.c62 iop->_ptr--;
66 ptr = memcpy(ptr, (char *) iop->_ptr, n) + n;
68 iop->_ptr += n;
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 Dfseek.c66 p >= iop->_base - iop->_ptr) {
67 iop->_ptr += (int)p;
74 iop->_ptr = iop->_base;
88 iop->_ptr = iop->_base;
/illumos-gate/usr/src/cmd/lms/SyncLib/Include/
H A DSPtr.h53 _ptr(ptr_p),
62 _ptr = other_sptr_p.get();
72 _ptr = other_sptr_p.get();
87 if (_ptr) {
88 delete _ptr;
90 _ptr = 0;
108 if (_ptr) {
109 delete _ptr;
115 _ptr = (T *)other_sptr_p.get();
132 if (_ptr) {
177 T *_ptr; member in class:SPtr
[all...]
/illumos-gate/usr/src/head/
H A Dstdio_impl.h53 unsigned char *_ptr; /* next character from/to here in buffer */ member in struct:__FILE_TAG
57 unsigned char *_ptr; /* next character from/to here in buffer */
/illumos-gate/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.c57 else if ((iop->_ptr == iop->_base) &&
59 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);
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dsprintf.c46 siop._base = siop._ptr = (unsigned char *)string;
51 *siop._ptr = '\0'; /* plant terminating null character */
H A Dvsprintf.c45 siop._base = siop._ptr = (unsigned char *)string;
48 *siop._ptr = '\0'; /* plant terminating null character */
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dsprintf.c47 siop._base = siop._ptr = (unsigned char *)string;
52 *siop._ptr = '\0'; /* plant terminating null character */
H A Dvsprintf.c52 siop._base = siop._ptr = (unsigned char *)string;
55 *siop._ptr = '\0'; /* plant terminating null character */
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dsprintf.c58 siop._base = siop._ptr = (unsigned char *)string;
63 *siop._ptr = '\0'; /* plant terminating null character */
H A Dvsprintf.c57 siop._base = siop._ptr = (unsigned char *)string;
60 *siop._ptr = '\0'; /* plant terminating null character */
/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dstdio.h36 unsigned char *_ptr; member in struct:_iobuf
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)) :\
/illumos-gate/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++) : \
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dungetwc.c78 if (iop->_ptr <= iop->_base) {
83 if (iop->_ptr == iop->_base && iop->_cnt == 0) {
84 ++iop->_ptr;
85 } else if ((iop->_ptr - n) < (iop->_base - PUSHBACK)) {
93 *--(iop)->_ptr = (*p--);

Completed in 108 milliseconds

12345