/titanic_44/usr/src/lib/libc/port/stdio/ |
H A D | fwrite.c | 86 iop->_cnt = iop->_base - iop->_ptr; in _fwrite_unlocked() 89 if (--iop->_cnt >= (-buflen) && *dptr != '\n') in _fwrite_unlocked() 122 iop->_cnt = 0; in _fwrite_unlocked() 143 if (iop->_cnt < s) { in _fwrite_unlocked() 144 if (iop->_cnt > 0) { in _fwrite_unlocked() 146 iop->_cnt); in _fwrite_unlocked() 147 dptr += iop->_cnt; in _fwrite_unlocked() 148 iop->_ptr += iop->_cnt; in _fwrite_unlocked() 149 s -= iop->_cnt; in _fwrite_unlocked() 154 if (iop->_cnt >= s) { in _fwrite_unlocked() [all …]
|
H A D | fread.c | 80 if (iop->_cnt < s) { in fread() 81 if (iop->_cnt > 0) { in fread() 83 iop->_cnt); in fread() 84 dptr += iop->_cnt; in fread() 85 s -= iop->_cnt; in fread() 96 if (iop->_cnt >= s) { in fread() 128 iop->_cnt -= s; in fread()
|
H A D | fgets.c | 76 if (iop->_cnt <= 0) { in fgets() 79 iop->_cnt++; in fgets() 86 n = (int)(size < iop->_cnt ? size : iop->_cnt); in fgets() 91 iop->_cnt -= n; in fgets()
|
H A D | ftell.c | 60 if (iop->_cnt < 0) in ftell() 61 iop->_cnt = 0; in ftell() 63 adjust = (ptrdiff_t)-iop->_cnt; in ftell() 70 adjust = (ptrdiff_t)-iop->_cnt; in ftell()
|
H A D | gets.c | 75 if (stdin->_cnt <= 0) /* empty buffer */ in gets() 79 stdin->_cnt++; in gets() 86 n = stdin->_cnt; in gets() 91 stdin->_cnt -= n; in gets()
|
H A D | ftello.c | 68 if (iop->_cnt < 0) in ftello64() 69 iop->_cnt = 0; in ftello64() 71 adjust = (ptrdiff_t)-iop->_cnt; in ftello64()
|
H A D | _filbuf.c | 108 iop->_cnt = 0; in _filbuf() 121 iop->_cnt = res - 1; in _filbuf() 125 iop->_cnt = 0; in _filbuf()
|
H A D | flush.c | 519 iop->_cnt = 0; in _bufsync() 520 } else if (spaceleft < iop->_cnt) in _bufsync() 521 iop->_cnt = spaceleft; in _bufsync() 540 iop->_cnt = 0; /* always go to a flush */ in _xflsbuf() 542 iop->_cnt = bufend - base; in _xflsbuf() 665 (void) lseek64(GET_FD(iop), -iop->_cnt, SEEK_CUR); in _fflush_u() 666 iop->_cnt = 0; in _fflush_u() 679 iop->_cnt = 0; in _fflush_u() 710 iop->_cnt = 0; in fclose() 759 iop->_cnt = 0; in fcloseall() [all …]
|
H A D | getc.c | 57 c = (--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++; in getc() 66 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++); in getc_unlocked()
|
/titanic_44/usr/src/lib/libbc/libc/stdio/sys5/ |
H A D | flsbuf.c | 84 iop->_cnt = 0; in fclose() 101 if ((iop->_base != NULL) && iop->_cnt) { in fflush() 102 lseek(iop->_file, -(iop->_cnt), SEEK_CUR); in fflush() 103 iop->_cnt = 0; in fflush() 143 iop->_cnt = 0; in _flsbuf() 190 iop->_cnt = (iop->_flag &(_IONBF | _IOLBF)) ? 0 : iop->_bufsiz; in _xflsbuf() 219 iop->_cnt = iop->_bufsiz; /* first write since seek--set cnt */ in _wrtchk() 289 else if (spaceleft < iop->_cnt) in _bufsync() 290 iop->_cnt = spaceleft; in _bufsync()
|
H A D | filbuf.c | 68 iop->_cnt = read(fileno(iop), (char *)iop->_base, in _filbuf() 70 if (--iop->_cnt >= 0) /* success */ in _filbuf() 72 if (iop->_cnt != -1) /* error */ in _filbuf() 79 iop->_cnt = 0; in _filbuf()
|
/titanic_44/usr/src/lib/libbc/libc/stdio/common/ |
H A D | gets.c | 46 if (stdin->_cnt <= 0) { /* empty buffer */ in gets() 53 stdin->_cnt++; in gets() 55 n = stdin->_cnt; in gets() 59 stdin->_cnt -= n; in gets()
|
H A D | fread.c | 59 if (iop->_cnt <= 0) { /* empty buffer */ in fread() 63 iop->_cnt++; in fread() 65 n = MIN(nleft, iop->_cnt); in fread() 67 iop->_cnt -= n; in fread()
|
H A D | fgets.c | 61 if (iop->_cnt <= 0) { /* empty buffer */ 68 iop->_cnt++; 70 n = MIN(size, iop->_cnt); 74 iop->_cnt -= n;
|
H A D | fseek.c | 53 c = iop->_cnt; 68 iop->_cnt -= (int)p; 79 iop->_cnt = 0; 85 iop->_cnt = 0;
|
H A D | stdiom.h | 34 ( iop->_cnt < 0 ? 0 : iop->_cnt ) ) \ 38 || (iop->_ptr == iop->_base && iop->_cnt == 0 \
|
H A D | ftell.c | 48 if(iop->_cnt < 0) 49 iop->_cnt = 0; 51 adjust = - iop->_cnt;
|
H A D | putc.c | 28 #define __putc__(x, p) (--(p)->_cnt >= 0 ?\ 30 (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
|
/titanic_44/usr/src/lib/libbc/libc/stdio/4.2/ |
H A D | filbuf.c | 70 iop->_cnt = read(fileno(iop), (char *)iop->_base, in _filbuf() 72 if (--iop->_cnt >= 0) /* success */ in _filbuf() 74 if (iop->_cnt != -1) /* error */ in _filbuf() 81 iop->_cnt = 0; in _filbuf()
|
H A D | flsbuf.c | 86 iop->_cnt = 0; in fclose() 140 iop->_cnt = 0; in _flsbuf() 186 iop->_cnt = (iop->_flag &(_IONBF | _IOLBF)) ? 0 : iop->_bufsiz; in _xflsbuf() 214 iop->_cnt = iop->_bufsiz; /* first write since seek--set cnt */ in _wrtchk() 284 else if (spaceleft < iop->_cnt) in _bufsync() 285 iop->_cnt = spaceleft; in _bufsync()
|
/titanic_44/usr/src/lib/libbc/inc/5include/ |
H A D | stdio.h | 102 int _cnt; member 104 int _cnt; 159 #define getc(p) (--(p)->_cnt >= 0 ? ((int) *(p)->_ptr++) : _filbuf(p)) 160 #define putc(x, p) (--(p)->_cnt >= 0 ?\ 162 (((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
|
/titanic_44/usr/src/lib/libbc/inc/include/ |
H A D | stdio.h | 35 int _cnt; member 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 ?\
|
/titanic_44/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++,
|
/titanic_44/usr/src/ucblib/libucb/inc/ |
H A D | stdiom.h | 115 ((p)->_cnt < 0 ? 0 : (p)->_cnt)) 119 (iop->_ptr == iop->_base && iop->_cnt == 0 && \
|
/titanic_44/usr/src/head/ |
H A D | stdio_impl.h | 54 int _cnt; /* number of available characters in buffer */ 56 int _cnt; /* number of available characters in buffer */
|