/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _wrtchk.c | 43 _wrtchk(FILE *iop) argument 45 if ((iop->_flag & (_IOWRT | _IOEOF)) != _IOWRT) { 46 if (!(iop->_flag & (_IOWRT | _IORW))) { 47 iop->_flag |= _IOERR; 51 iop->_flag = (iop->_flag & ~_IOEOF) | _IOWRT; 55 if (iop->_base == NULL && _findbuf(iop) == NULL) 57 else if ((iop->_ptr == iop [all...] |
H A D | feof.c | 44 feof(FILE *iop) argument 46 return (iop->_flag & _IOEOF);
|
H A D | ferror.c | 44 ferror(FILE *iop) argument 46 return (iop->_flag & _IOERR);
|
H A D | clearerr.c | 44 clearerr(FILE *iop) argument 48 FLOCKFILE(lk, iop); 49 iop->_flag &= ~(_IOERR | _IOEOF);
|
H A D | fgetc.c | 44 fgetc(FILE *iop) argument 46 return (getc(iop));
|
H A D | fileno.c | 44 fileno(FILE *iop) argument 46 return (GET_FD(iop));
|
H A D | fputc.c | 42 fputc(int ch, FILE *iop) argument 44 return (putc(ch, iop));
|
H A D | getchar.c | 51 FILE *iop = stdin; local 53 return (getc(iop)); 63 FILE *iop = stdin; local 65 return (GETC(iop));
|
H A D | mse.c | 49 * This function/macro gets the orientation bound to the specified iop. 52 * _WC_MODE if iop has been bound to Wide orientation 53 * _BYTE_MODE if iop has been bound to Byte orientation 54 * _NO_MODE if iop has been bound to neither Wide nor Byte 57 _getorientation(FILE *iop) argument 59 if (GET_BYTE_MODE(iop)) 61 else if (GET_WC_MODE(iop)) 69 * This function/macro sets the orientation to the specified iop. 78 _setorientation(FILE *iop, _IOP_orientation_t mode) argument 82 CLEAR_BYTE_MODE(iop); [all...] |
H A D | putchar.c | 50 FILE *iop = stdout; local 52 return (putc(ch, iop)); 65 FILE *iop = stdout; local 67 return (PUTC(ch, iop));
|
H A D | ungetc.c | 41 int _ungetc_unlocked(int c, FILE *iop); 44 ungetc(int c, FILE *iop) argument 46 FLOCKRETURN(iop, _ungetc_unlocked(c, iop)) 51 * iop->_lock is already held at a higher level - required since we do not 55 _ungetc_unlocked(int c, FILE *iop) argument 59 if (iop->_ptr <= iop->_base) { 60 if (iop->_base == 0) { 61 if (_findbuf(iop) [all...] |
H A D | _flsbuf.c | 45 _flsbuf(int ch, FILE *iop) /* flush (write) buffer, save ch, */ argument 52 switch (iop->_flag & (_IOFBF | _IOLBF | _IONBF | 56 if (iop->_base != 0 && iop->_ptr > iop->_base) 60 if (iop->_ptr >= _bufend(iop)) 67 if ((*iop->_ptr++ = (unsigned char)ch) == '\n') 68 (void) _xflsbuf(iop); 69 iop [all...] |
H A D | rewind.c | 45 rewind(FILE *iop) argument 49 FLOCKFILE(lk, iop); 50 _rewind_unlocked(iop); 55 _rewind_unlocked(FILE *iop) argument 57 (void) _fflush_u(iop); 58 (void) lseek64(FILENO(iop), 0, SEEK_SET); 59 iop->_cnt = 0; 60 iop->_ptr = iop->_base; 61 iop [all...] |
H A D | setbuffer.c | 43 setbuffer(FILE *iop, char *abuf, size_t asize) argument 46 (void) setvbuf(iop, NULL, _IONBF, 0); 48 (void) setvbuf(iop, abuf, _IOFBF, asize); 58 setlinebuf(FILE *iop) argument 60 (void) fflush(iop); 61 (void) setvbuf(iop, NULL, _IOLBF, 128);
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/ |
H A D | filbuf.c | 41 __filbuf(FILE *iop) argument 43 return (_filbuf(iop)); 47 _filbuf(FILE *iop) argument 50 if ( !(iop->_flag & _IOREAD) ) 51 if (iop->_flag & _IORW) 52 iop->_flag |= _IOREAD; 56 if (iop->_flag&(_IOSTRG|_IOEOF)) 59 if (iop->_base == NULL) /* get buffer if we don't have one */ 60 _findbuf(iop); 62 if (iop [all...] |
H A D | fprintf.c | 39 fprintf(FILE *iop, char *format, ...) argument 45 if (!(iop->_flag & _IOWRT)) { 47 if (iop->_flag & _IORW) { 49 iop->_flag |= _IOWRT; 56 if (iop->_flag & _IONBF) { 57 iop->_flag &= ~_IONBF; 58 iop->_ptr = iop->_base = localbuf; 59 iop->_bufsiz = BUFSIZ; 60 count = _doprnt(format, ap, iop); [all...] |
H A D | vfprintf.c | 39 vfprintf(FILE *iop, char *format, va_list ap) argument 44 if (!(iop->_flag & _IOWRT)) { 46 if (iop->_flag & _IORW) { 48 iop->_flag |= _IOWRT; 54 if (iop->_flag & _IONBF) { 55 iop->_flag &= ~_IONBF; 56 iop->_ptr = iop->_base = localbuf; 57 iop->_bufsiz = BUFSIZ; 58 count = _doprnt(format, ap, iop); [all...] |
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | fdopen.c | 52 register FILE *iop; local 62 if((iop = _findiop()) == NULL) 65 iop->_cnt = 0; 66 iop->_file = fd; 67 iop->_base = iop->_ptr = NULL; 68 iop->_bufsiz = 0; 72 iop->_flag = _IOREAD; 78 iop->_flag = _IOWRT; 86 iop [all...] |
H A D | setbuffer.c | 46 setbuffer(FILE *iop, char *buf, int size) argument 48 int fno = fileno(iop); /* file number */ 50 if (iop->_base != NULL && iop->_flag&_IOMYBUF) 51 free((char *)iop->_base); 52 iop->_flag &= ~(_IOMYBUF|_IONBF|_IOLBF); 53 if ((iop->_base = (unsigned char *)buf) == NULL) { 54 iop->_flag |= _IONBF; /* file unbuffered except in fastio */ 56 iop->_base = _smbuf[fno]; 57 iop 72 setlinebuf(FILE *iop) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/ |
H A D | filbuf.c | 41 __filbuf(FILE *iop) argument 43 return (_filbuf(iop)); 47 _filbuf(FILE *iop) argument 49 if ( !(iop->_flag & _IOREAD) ) 50 if (iop->_flag & _IORW) 51 iop->_flag |= _IOREAD; 55 if (iop->_flag&_IOSTRG) 58 if (iop->_base == NULL) /* get buffer if we don't have one */ 59 _findbuf(iop); 64 if (iop 84 lbfflush(FILE *iop) argument [all...] |
H A D | fprintf.c | 39 fprintf(FILE *iop, char *format, ...) argument 45 if (!(iop->_flag & _IOWRT)) { 47 if (iop->_flag & _IORW) { 49 iop->_flag |= _IOWRT; 56 if (iop->_flag & _IONBF) { 57 iop->_flag &= ~_IONBF; 58 iop->_ptr = iop->_base = localbuf; 59 iop->_bufsiz = BUFSIZ; 60 count = _doprnt(format, ap, iop); [all...] |
H A D | vfprintf.c | 39 vfprintf(FILE *iop, char *format, va_list ap) argument 44 if (!(iop->_flag & _IOWRT)) { 46 if (iop->_flag & _IORW) { 48 iop->_flag |= _IOWRT; 54 if (iop->_flag & _IONBF) { 55 iop->_flag &= ~_IONBF; 56 iop->_ptr = iop->_base = localbuf; 57 iop->_bufsiz = BUFSIZ; 58 count = _doprnt(format, ap, iop); [all...] |
/illumos-gate/usr/src/ucblib/libucb/port/stdio/ |
H A D | fprintf.c | 51 fprintf(FILE *iop, const char *format, ...) argument 58 if (!(iop->_flag & _IOWRT)) { 60 if (iop->_flag & _IORW) { 62 iop->_flag |= _IOWRT; 68 count = _doprnt((char *) format, ap, iop);
|
H A D | vfprintf.c | 51 vfprintf(FILE *iop, const char *format, va_list ap) argument 55 if (!(iop->_flag & _IOWRT)) { 57 if (iop->_flag & _IORW) { 59 iop->_flag |= _IOWRT; 65 count = _doprnt((char *) format, ap, iop);
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | vfprintf.c | 57 _vfprintf_c89(FILE *iop, const char *format, va_list ap) argument 59 vfprintf(FILE *iop, const char *format, va_list ap) 66 FLOCKFILE(lk, iop); 68 _SET_ORIENTATION_BYTE(iop); 70 if (!(iop->_flag & _IOWRT)) { 72 if (iop->_flag & _IORW) { 74 iop->_flag |= _IOWRT; 83 count = _ndoprnt(format, ap, iop, _F_INTMAX32); 85 count = _ndoprnt(format, ap, iop, 0); 89 if (FERROR(iop) || coun [all...] |