Searched refs:_cnt (Results 1 - 25 of 98) sorted by relevance

1234

/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dstdiom.h34 ( iop->_cnt < 0 ? 0 : iop->_cnt ) ) \
38 || (iop->_ptr == iop->_base && iop->_cnt == 0 \
H A Dgets.c46 if (stdin->_cnt <= 0) { /* empty buffer */
53 stdin->_cnt++;
55 n = stdin->_cnt;
59 stdin->_cnt -= n;
H A Dftell.c48 if(iop->_cnt < 0)
49 iop->_cnt = 0;
51 adjust = - iop->_cnt;
H A Dfgets.c61 if (iop->_cnt <= 0) { /* empty buffer */
68 iop->_cnt++;
70 n = MIN(size, iop->_cnt);
74 iop->_cnt -= n;
H A Dfread.c59 if (iop->_cnt <= 0) { /* empty buffer */
63 iop->_cnt++;
65 n = MIN(nleft, iop->_cnt);
67 iop->_cnt -= n;
H A Dgetc.c28 #define __getc__(p) (--(p)->_cnt>=0? ((int)*(p)->_ptr++):_filbuf(p))
H A Dputc.c28 #define __putc__(x, p) (--(p)->_cnt >= 0 ?\
30 (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
H A Dungetc.c49 if(iop->_ptr == iop->_base && iop->_cnt == 0)
54 ++iop->_cnt;
H A Dfseek.c53 c = iop->_cnt;
68 iop->_cnt -= (int)p;
79 iop->_cnt = 0;
85 iop->_cnt = 0;
H A Drew.c39 iop->_cnt = 0;
/illumos-gate/usr/src/head/
H A Dstdio_impl.h54 int _cnt; /* number of available characters in buffer */ member in struct:__FILE_TAG
56 int _cnt; /* number of available characters in buffer */
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfread.c80 if (iop->_cnt < s) {
81 if (iop->_cnt > 0) {
83 iop->_cnt);
84 dptr += iop->_cnt;
85 s -= iop->_cnt;
88 * filbuf clobbers _cnt & _ptr,
96 if (iop->_cnt >= s) {
128 iop->_cnt -= s;
H A Dfgets.c76 if (iop->_cnt <= 0) {
79 iop->_cnt++;
86 n = (int)(size < iop->_cnt ? size : iop->_cnt);
91 iop->_cnt -= n;
H A Dgetc.c57 c = (--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++;
66 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++);
H A Dputc.c57 if (--iop->_cnt < 0)
71 if (--iop->_cnt < 0)
H A Dfwrite.c86 iop->_cnt = iop->_base - iop->_ptr;
89 if (--iop->_cnt >= (-buflen) && *dptr != '\n')
122 iop->_cnt = 0;
143 if (iop->_cnt < s) {
144 if (iop->_cnt > 0) {
146 iop->_cnt);
147 dptr += iop->_cnt;
148 iop->_ptr += iop->_cnt;
149 s -= iop->_cnt;
154 if (iop->_cnt >
[all...]
H A Dftell.c60 if (iop->_cnt < 0)
61 iop->_cnt = 0;
63 adjust = (ptrdiff_t)-iop->_cnt;
70 adjust = (ptrdiff_t)-iop->_cnt;
H A Dgets.c75 if (stdin->_cnt <= 0) /* empty buffer */
79 stdin->_cnt++;
86 n = stdin->_cnt;
91 stdin->_cnt -= n;
/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dstdio.h35 int _cnt; member in struct:_iobuf
65 #define getc(p) (--(p)->_cnt>=0? ((int)*(p)->_ptr++):_filbuf(p))
66 #define putc(x, p) (--(p)->_cnt >= 0 ?\
68 (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dfilbuf.c70 iop->_cnt = read(fileno(iop), (char *)iop->_base,
72 if (--iop->_cnt >= 0) /* success */
74 if (iop->_cnt != -1) /* error */
81 iop->_cnt = 0;
H A Dsprintf.c45 siop._cnt = MAXINT;
H A Dvsprintf.c44 siop._cnt = MAXINT;
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfilbuf.c68 iop->_cnt = read(fileno(iop), (char *)iop->_base,
70 if (--iop->_cnt >= 0) /* success */
72 if (iop->_cnt != -1) /* error */
79 iop->_cnt = 0;
H A Dsprintf.c46 siop._cnt = MAXINT;
H A Dvsprintf.c51 siop._cnt = MAXINT;

Completed in 114 milliseconds

1234