/titanic_44/usr/src/lib/libbc/libc/stdio/sys5/ |
H A D | flsbuf.c | 80 free((char*)iop->_base); in fclose() 81 iop->_base = NULL; in fclose() 85 iop->_ptr = iop->_base; in fclose() 101 if ((iop->_base != NULL) && iop->_cnt) { in fflush() 108 (iop->_base != NULL) && (iop->_ptr > iop->_base) ) in fflush() 134 if ( iop->_ptr >= iop->_base + iop->_bufsiz ) /* if buffer full, */ in _flsbuf() 188 n = iop->_ptr - (base = iop->_base); in _xflsbuf() 216 if (iop->_base == NULL) /* this is first I/O to file--get buffer */ in _wrtchk() 218 if (iop->_ptr == iop->_base && !(iop->_flag & (_IONBF | _IOLBF)) ) { in _wrtchk() 240 iop->_base = _smbuf[fno]; in _findbuf() [all …]
|
H A D | setbuf.c | 47 if(iop->_base != NULL && iop->_flag & _IOMYBUF) 48 free((char*)iop->_base); 50 if((iop->_base = (unsigned char*)buf) == NULL) { 53 iop->_base = _smbuf[fno]; 61 iop->_ptr = iop->_base;
|
H A D | filbuf.c | 58 if (iop->_base == NULL) /* get buffer if we don't have one */ in _filbuf() 67 iop->_ptr = iop->_base; in _filbuf() 68 iop->_cnt = read(fileno(iop), (char *)iop->_base, in _filbuf()
|
/titanic_44/usr/src/lib/libbc/libc/stdio/4.2/ |
H A D | flsbuf.c | 82 free((char*)iop->_base); in fclose() 83 iop->_base = NULL; in fclose() 87 iop->_ptr = iop->_base; in fclose() 106 (iop->_base != NULL) && (iop->_ptr > iop->_base) ) in fflush() 131 if ( iop->_ptr >= iop->_base + iop->_bufsiz ) /* if buffer full, */ in _flsbuf() 184 n = iop->_ptr - (base = iop->_base); in _xflsbuf() 211 if (iop->_base == NULL) /* this is first I/O to file--get buffer */ in _wrtchk() 213 if (iop->_ptr == iop->_base && !(iop->_flag & (_IONBF | _IOLBF)) ) { in _wrtchk() 235 iop->_base = _smbuf[fno]; in _findbuf() 250 if ((iop->_base = (unsigned char *) malloc(size+8)) != NULL) { in _findbuf() [all …]
|
H A D | setbuf.c | 47 if(iop->_base != NULL && iop->_flag & _IOMYBUF) 48 free((char*)iop->_base); 50 if((iop->_base = (unsigned char*)buf) == NULL) { 53 iop->_base = _smbuf[fno]; 58 iop->_ptr = iop->_base;
|
H A D | filbuf.c | 59 if (iop->_base == NULL) /* get buffer if we don't have one */ in _filbuf() 69 iop->_ptr = iop->_base; in _filbuf() 70 iop->_cnt = read(fileno(iop), (char *)iop->_base, in _filbuf()
|
/titanic_44/usr/src/lib/libbc/libc/stdio/common/ |
H A D | setbuffer.c | 50 if (iop->_base != NULL && iop->_flag&_IOMYBUF) in setbuffer() 51 free((char *)iop->_base); in setbuffer() 53 if ((iop->_base = (unsigned char *)buf) == NULL) { in setbuffer() 56 iop->_base = _smbuf[fno]; in setbuffer() 64 iop->_ptr = iop->_base; in setbuffer()
|
H A D | setvbuf.c | 49 if(iop->_base != NULL && iop->_flag & _IOMYBUF) 50 free((char*)iop->_base); 58 iop->_base = _smbuf[fno]; 79 iop->_base = (unsigned char *)buf; 85 iop->_ptr = iop->_base;
|
H A D | fseek.c | 52 if(ptrname < 2 && iop->_base && !(iop->_flag&_IONBF)) { 66 p >= iop->_base - iop->_ptr) { 74 iop->_ptr = iop->_base; 88 iop->_ptr = iop->_base;
|
H A D | stdiom.h | 33 #define _BUFSYNC(iop) if ((iop->_base + iop->_bufsiz) - iop->_ptr < \ 37 || (iop->_base == NULL) \ 38 || (iop->_ptr == iop->_base && iop->_cnt == 0 \
|
H A D | ungetc.c | 45 if (iop->_base == NULL) /* get buffer if we don't have one */ 48 if((iop->_flag & _IOREAD) == 0 || iop->_ptr <= iop->_base) 49 if(iop->_ptr == iop->_base && iop->_cnt == 0)
|
H A D | ftell.c | 54 if(iop->_flag & _IOWRT && iop->_base && 56 adjust = iop->_ptr - iop->_base;
|
/titanic_44/usr/src/lib/libc/port/stdio/ |
H A D | fwrite.c | 86 iop->_cnt = iop->_base - iop->_ptr; in _fwrite_unlocked() 88 ssize_t buflen = bufend - iop->_base; in _fwrite_unlocked() 103 if (iop->_base != iop->_ptr) { in _fwrite_unlocked() 108 bytes = iop->_ptr - iop->_base; in _fwrite_unlocked() 109 data = (char *)iop->_base; in _fwrite_unlocked() 123 iop->_ptr = iop->_base; in _fwrite_unlocked()
|
H A D | _filbuf.c | 76 if (iop->_base == 0) { in _filbuf() 115 iop->_ptr = iop->_base; in _filbuf() 119 nbyte = endbuf - iop->_base; in _filbuf() 120 if ((res = read(GET_FD(iop), (char *)iop->_base, nbyte)) > 0) { in _filbuf()
|
H A D | ungetc.c | 59 if (iop->_ptr <= iop->_base) { in _ungetc_unlocked() 60 if (iop->_base == 0) { in _ungetc_unlocked() 63 } else if (iop->_ptr <= iop->_base - PUSHBACK) in _ungetc_unlocked()
|
H A D | ftell.c | 67 (iop->_base != 0)) in ftell() 68 adjust = iop->_ptr - iop->_base; in ftell() 69 else if ((iop->_flag & _IORW) && (iop->_base != 0)) in ftell()
|
H A D | __extensions.c | 94 if ((stream->_ptr = stream->_base) != NULL) in __fpurge() 109 amount = stream->_ptr - stream->_base; in __fpending() 124 size = _bufend(stream) - stream->_base; in __fbufsize()
|
H A D | setbuf.c | 53 if ((iop->_base != 0) && (iop->_flag & _IOMYBUF)) in setbuf() 54 free((char *)iop->_base - PUSHBACK); in setbuf() 81 iop->_base = temp; in setbuf()
|
H A D | flush.c | 378 fp->_base = 0; in _findiop() 529 Uchar *base = iop->_base; in _xflsbuf() 668 iop->_ptr = iop->_base; in _fflush_u() 674 if (iop->_base != NULL && iop->_ptr > iop->_base) { in _fflush_u() 706 (void) free((char *)iop->_base - PUSHBACK); in fclose() 708 iop->_base = NULL; in fclose() 756 free((char *)iop->_base - PUSHBACK); in fcloseall() 757 iop->_base = NULL; in fcloseall() 787 (void) free((char *)iop->_base - PUSHBACK); in close_fd() 789 iop->_base = NULL; in close_fd() [all …]
|
H A D | setvbuf.c | 104 if (iop->_base != NULL && sflag) in setvbuf() 105 free((char *)iop->_base - PUSHBACK); in setvbuf() 107 iop->_base = temp; in setvbuf()
|
H A D | _wrtchk.c | 55 if (iop->_base == NULL && _findbuf(iop) == NULL) in _wrtchk() 57 else if ((iop->_ptr == iop->_base) && in _wrtchk()
|
/titanic_44/usr/src/lib/libc/port/locale/ |
H A D | ungetwc.c | 78 if (iop->_ptr <= iop->_base) { in __ungetwc_impl() 79 if (iop->_base == NULL) { in __ungetwc_impl() 83 if (iop->_ptr == iop->_base && iop->_cnt == 0) { in __ungetwc_impl() 85 } else if ((iop->_ptr - n) < (iop->_base - PUSHBACK)) { in __ungetwc_impl()
|
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | newwin.c | 146 w->_base = (cchar_t *) malloc((size_t) (nlines * ncols) * in __m_newwin() 147 sizeof (*w->_base)); in __m_newwin() 148 if (w->_base == NULL) in __m_newwin() 151 w->_line[0] = w->_base; in __m_newwin() 169 w->_base = NULL; in __m_newwin() 251 if (w->_base != NULL) in delwin() 252 free(w->_base); in delwin()
|
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | newwin.c | 143 w->_base = (cchar_t *) malloc( 144 (size_t) (nlines * ncols) * sizeof *w->_base 146 if (w->_base == (cchar_t *) 0) 149 w->_line[y = 0] = w->_base; 164 w->_base = (cchar_t *) 0; 238 if (w->_base != (cchar_t *) 0) 239 free(w->_base);
|
/titanic_44/usr/src/ucblib/libucb/port/gen/ |
H A D | setbuffer.c | 57 if (iop->_base != 0 && iop->_flag & _IOMYBUF) in setbuffer() 58 free((char *)iop->_base - PUSHBACK); in setbuffer() 81 iop->_base = temp; in setbuffer()
|