Home
last modified time | relevance | path

Searched refs:_cnt (Results 1 – 25 of 58) 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()
87 if (--iop->_cnt >= (-buflen) && *dptr != '\n') in _fwrite_unlocked()
120 iop->_cnt = 0; in _fwrite_unlocked()
141 if (iop->_cnt < s) { in _fwrite_unlocked()
142 if (iop->_cnt > 0) { in _fwrite_unlocked()
144 iop->_cnt); in _fwrite_unlocked()
145 dptr += iop->_cnt; in _fwrite_unlocked()
146 iop->_ptr += iop->_cnt; in _fwrite_unlocked()
147 s -= iop->_cnt; in _fwrite_unlocked()
152 if (iop->_cnt >= s) { in _fwrite_unlocked()
[all …]
H A Dfread.c78 if (iop->_cnt < s) { in fread()
79 if (iop->_cnt > 0) { in fread()
81 iop->_cnt); in fread()
82 dptr += iop->_cnt; in fread()
83 s -= iop->_cnt; in fread()
94 if (iop->_cnt >= s) { in fread()
126 iop->_cnt -= s; in fread()
H A Dfgets.c74 if (iop->_cnt <= 0) { in fgets()
77 iop->_cnt++; in fgets()
84 n = (int)(size < iop->_cnt ? size : iop->_cnt); in fgets()
89 iop->_cnt -= n; in fgets()
H A Dgets.c73 if (stdin->_cnt <= 0) /* empty buffer */ in gets()
77 stdin->_cnt++; in gets()
84 n = stdin->_cnt; in gets()
89 stdin->_cnt -= n; in gets()
H A Dftell.c71 if (iop->_cnt < 0) in ftell_common()
72 iop->_cnt = 0; in ftell_common()
74 adjust = (ptrdiff_t)-iop->_cnt; in ftell_common()
81 adjust = (ptrdiff_t)-iop->_cnt; in ftell_common()
H A D_filbuf.c105 iop->_cnt = 0; in _filbuf()
119 iop->_cnt = res - 1; in _filbuf()
123 iop->_cnt = 0; in _filbuf()
H A Dflush.c531 iop->_cnt = 0; in _bufsync()
532 } else if (spaceleft < iop->_cnt) in _bufsync()
533 iop->_cnt = spaceleft; in _bufsync()
552 iop->_cnt = 0; /* always go to a flush */ in _xflsbuf()
554 iop->_cnt = bufend - base; in _xflsbuf()
676 (void) _xseek64(iop, -iop->_cnt, SEEK_CUR); in _fflush_u()
677 iop->_cnt = 0; in _fflush_u()
690 iop->_cnt = 0; in _fflush_u()
721 iop->_cnt = 0; in fclose()
770 iop->_cnt = 0; in fcloseall()
[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 Dputc.c62 if (--iop->_cnt < 0) in putc_unlocked()
71 if (--iop->_cnt < 0) in _putc_internal()
H A D_flsbuf.c68 iop->_cnt = 0; in _flsbuf()
71 iop->_cnt = 0; in _flsbuf()
H A Dfseek.c64 offset -= iop->_cnt; in fseek()
72 iop->_cnt = 0; in fseek()
H A Dfseeko.c71 offset -= iop->_cnt; in fseeko64()
79 iop->_cnt = 0; in fseeko64()
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Drelocate.c59 Xword ent, cnt, _cnt; in count_reloc() local
92 for (_cnt = 0; _cnt < cnt; _cnt++, reloc++, in count_reloc()
429 Xword ent, cnt, _cnt; local
445 for (_cnt = 0; _cnt < cnt; _cnt++, reloc++,
/illumos-gate/usr/src/ucblib/libucb/inc/
H A Dstdiom.h113 ((p)->_cnt < 0 ? 0 : (p)->_cnt))
117 (iop->_ptr == iop->_base && iop->_cnt == 0 && \
/illumos-gate/usr/src/head/
H A Dstdio_impl.h52 int _cnt; /* number of available characters in buffer */
54 int _cnt; /* number of available characters in buffer */
/illumos-gate/usr/src/head/iso/
H A Dstdio_iso.h280 return (--_p->_cnt < 0 ? __filbuf(_p) : (int)*_p->_ptr++); } in getc()
282 return (--_p->_cnt < 0 ? __flsbuf(_x, _p) in putc()
286 #define getc(p) (--(p)->_cnt < 0 ? __filbuf(p) : (int)*(p)->_ptr++)
287 #define putc(x, p) (--(p)->_cnt < 0 ? __flsbuf((x), (p)) \
/illumos-gate/usr/src/lib/libc/port/print/
H A Dvsnprintf.c64 siop._cnt = n - 1; in _vsnprintf_c89()
86 siop._cnt = 0; in _vsnprintf_c89()
H A Dsnprintf.c51 siop._cnt = n - 1; in snprintf()
73 siop._cnt = 0; in snprintf()
/illumos-gate/usr/src/uts/common/sys/
H A Dkobj.h138 int _cnt; member
160 #define kobj_getc(p) (--(p)->_cnt >= 0 ? ((int)*(p)->_ptr++):kobj_filbuf(p))
161 #define kobj_ungetc(p) (++(p)->_cnt > (p)->_size ? -1 : ((int)*(--(p)->_ptr)))
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dungetwc.c83 if (iop->_ptr == iop->_base && iop->_cnt == 0) { in __ungetwc_impl()
94 ++(iop)->_cnt; in __ungetwc_impl()
/illumos-gate/usr/src/lib/libc/inc/
H A Dstdiom.h251 ((p)->_cnt < 0 ? 0 : (p)->_cnt))
255 (iop->_ptr == iop->_base && iop->_cnt == 0 && \
/illumos-gate/usr/src/uts/sun4/vm/
H A Dvm_dep.h442 spgcnt_t _cnt = (spgcnt_t)(cnt); \
443 pgcnt_t _acnt = ABS(_cnt); \
452 (_cnt < 0) ? -_np : _np); \
463 (_cnt < 0) ? -_np : _np); \
473 spgcnt_t _cnt = (spgcnt_t)(cnt); \
479 plat_mem_node_intersect_range((pfn), _cnt, _mn, &_np); \
487 pfn_t _endpfn = _pfn + _cnt; \
/illumos-gate/usr/src/ucbhead/
H A Dstdio.h233 #define getc(p) (--(p)->_cnt < 0 ? __filbuf(p) : (int)*(p)->_ptr++)
234 #define putc(x, p) (--(p)->_cnt < 0 ? __flsbuf((x), (p)) \
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dvsprintf.c54 siop._cnt = MAXINT; in vsprintf()
H A Dsprintf.c55 siop._cnt = MAXINT; in sprintf()

123