Searched defs:iop (Results 1 - 25 of 119) sorted by relevance

12345

/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_wrtchk.c43 _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 Dfeof.c44 feof(FILE *iop) argument
46 return (iop->_flag & _IOEOF);
H A Dferror.c44 ferror(FILE *iop) argument
46 return (iop->_flag & _IOERR);
H A Dclearerr.c44 clearerr(FILE *iop) argument
48 FLOCKFILE(lk, iop);
49 iop->_flag &= ~(_IOERR | _IOEOF);
H A Dfgetc.c44 fgetc(FILE *iop) argument
46 return (getc(iop));
H A Dfileno.c44 fileno(FILE *iop) argument
46 return (GET_FD(iop));
H A Dfputc.c42 fputc(int ch, FILE *iop) argument
44 return (putc(ch, iop));
H A Dgetchar.c51 FILE *iop = stdin; local
53 return (getc(iop));
63 FILE *iop = stdin; local
65 return (GETC(iop));
H A Dmse.c49 * 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 Dputchar.c50 FILE *iop = stdout; local
52 return (putc(ch, iop));
65 FILE *iop = stdout; local
67 return (PUTC(ch, iop));
H A Dungetc.c41 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.c45 _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 Drewind.c45 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 Dsetbuffer.c43 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 Dfilbuf.c41 __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 Dfprintf.c39 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 Dvfprintf.c39 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 Dfdopen.c52 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 Dsetbuffer.c46 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 Dfilbuf.c41 __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 Dfprintf.c39 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 Dvfprintf.c39 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 Dfprintf.c51 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 Dvfprintf.c51 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 Dvfprintf.c57 _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...]

Completed in 69 milliseconds

12345