/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | fwrite.c | 84 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 D | fread.c | 78 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 D | fgets.c | 74 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 D | gets.c | 73 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 D | ftell.c | 71 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.c | 105 iop->_cnt = 0; in _filbuf() 119 iop->_cnt = res - 1; in _filbuf() 123 iop->_cnt = 0; in _filbuf()
|
H A D | flush.c | 531 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 D | getc.c | 62 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 D | putc.c | 62 if (--iop->_cnt < 0) in putc_unlocked() 71 if (--iop->_cnt < 0) in _putc_internal()
|
H A D | _flsbuf.c | 68 iop->_cnt = 0; in _flsbuf() 71 iop->_cnt = 0; in _flsbuf()
|
H A D | fseek.c | 64 offset -= iop->_cnt; in fseek() 72 iop->_cnt = 0; in fseek()
|
H A D | fseeko.c | 71 offset -= iop->_cnt; in fseeko64() 79 iop->_cnt = 0; in fseeko64()
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | relocate.c | 59 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 D | stdiom.h | 113 ((p)->_cnt < 0 ? 0 : (p)->_cnt)) 117 (iop->_ptr == iop->_base && iop->_cnt == 0 && \
|
/illumos-gate/usr/src/head/ |
H A D | stdio_impl.h | 52 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 D | stdio_iso.h | 280 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 D | vsnprintf.c | 64 siop._cnt = n - 1; in _vsnprintf_c89() 86 siop._cnt = 0; in _vsnprintf_c89()
|
H A D | snprintf.c | 51 siop._cnt = n - 1; in snprintf() 73 siop._cnt = 0; in snprintf()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kobj.h | 138 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 D | ungetwc.c | 83 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 D | stdiom.h | 251 ((p)->_cnt < 0 ? 0 : (p)->_cnt)) 255 (iop->_ptr == iop->_base && iop->_cnt == 0 && \
|
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | vm_dep.h | 442 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 D | stdio.h | 233 #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 D | vsprintf.c | 54 siop._cnt = MAXINT; in vsprintf()
|
H A D | sprintf.c | 55 siop._cnt = MAXINT; in sprintf()
|