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

123

/osnet-11/usr/src/lib/libc/port/stdio/
H A D_wrtchk.c41 _wrtchk(FILE *iop) argument
43 if ((iop->_flag & (_IOWRT | _IOEOF)) != _IOWRT) {
44 if (!(iop->_flag & (_IOWRT | _IORW))) {
45 iop->_flag |= _IOERR;
49 _READ2WRT(iop);
53 if (iop->_base == NULL && _findbuf(iop) == NULL)
55 else if ((iop->_ptr == iop->_base) &&
56 !(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 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);
H A Dfseek.c50 fseek(FILE *iop, long offset, int ptrname) argument
55 FLOCKFILE(lk, iop);
56 iop->_flag &= ~_IOEOF;
58 if (!(iop->_flag & _IOREAD) && !(iop->_flag & (_IOWRT | _IORW))) {
64 if (iop->_flag & _IOREAD) {
65 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) {
66 offset -= iop->_cnt;
68 } else if (iop
[all...]
H A Dftell.c53 ftell(FILE *iop) argument
59 FLOCKFILE(lk, iop);
60 if (iop->_cnt < 0)
61 iop->_cnt = 0;
62 if (iop->_flag & _IOREAD)
63 adjust = (ptrdiff_t)-iop->_cnt;
64 else if (iop->_flag & (_IOWRT | _IORW)) {
66 if (((iop->_flag & (_IOWRT | _IONBF)) == _IOWRT) &&
67 (iop->_base != 0))
68 adjust = iop
[all...]
H A Dgetc.c48 getc(FILE *iop) argument
53 FLOCKFILE(lk, iop);
55 _SET_ORIENTATION_BYTE(iop);
57 c = (--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++;
64 getc_unlocked(FILE *iop) argument
66 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop
[all...]
H A Dputc.c48 putc(int ch, FILE *iop) argument
53 FLOCKFILE(lk, iop);
55 _SET_ORIENTATION_BYTE(iop);
57 if (--iop->_cnt < 0)
58 ret = __flsbuf((unsigned char) ch, iop);
60 (*iop->_ptr++) = (unsigned char)ch;
69 putc_unlocked(int ch, FILE *iop) argument
71 if (--iop->_cnt < 0)
72 return (__flsbuf((unsigned char) ch, iop));
74 return (*iop
[all...]
H A D_endopen.c52 * open UNIX file name, associate with iop
56 _endopen(const char *name, const char *type, FILE *iop, int largefile) argument
61 if (iop == NULL)
99 iop->_file = fd;
100 iop->_flag = (iop->_flag & ~0377) | fflag;
103 SET_FILE(iop, fd);
104 } else if (_file_set(iop, fd, type) != 0) {
109 iop->_flag = fflag;
119 return (iop);
[all...]
H A D_filbuf.c54 _filbuf(FILE *iop) argument
65 if (!(iop->_flag & _IOREAD)) /* check, correct permissions */
67 if (iop->_flag & _IORW)
68 iop->_flag |= _IOREAD; /* change direction */
76 if (iop->_base == 0) {
77 if ((endbuf = _findbuf(iop)) == 0) /* get buffer and */
82 endbuf = _bufend(iop);
88 if (iop->_flag & (_IONBF | _IOLBF))
99 if ((flag = iop->_flag) & _IOEOF) {
103 * therefore iop
[all...]
/osnet-11/usr/src/lib/libc/port/i18n/
H A D__fgetwc_xpg5.c41 __fgetwc_xpg5(FILE *iop) argument
48 FLOCKFILE(lk, iop);
50 if (_set_orientation_wide(iop, &lc,
57 result = fp_fgetwc(lc, iop);
63 __getwc_xpg5(FILE *iop) argument
65 return (__fgetwc_xpg5(iop));
H A D__fgetws_xpg5.c36 * Fgetws reads multibyte characters from the "iop", converts
55 __fgetws_xpg5(wchar_t *ptr, int size, FILE *iop) argument
63 FLOCKFILE(lk, iop);
65 if (_set_orientation_wide(iop, &lc,
73 if ((c = fp_fgetwc(lc, iop)) == EOF) {
H A D__fputwc_xpg5.c35 * and writes it onto the output stream "iop".
51 __fputwc_xpg5(wint_t wc, FILE *iop) argument
60 FLOCKFILE(lk, iop);
62 if (_set_orientation_wide(iop, &lc,
85 if (PUTC((*p++), iop) == EOF) {
95 __putwc_xpg5(wint_t wc, FILE *iop) argument
97 return (__fputwc_xpg5(wc, iop));
H A D__ungetwc_xpg5.c37 * associated with an input stream "iop". That character, c,
54 __ungetwc_xpg5(wint_t wc, FILE *iop) argument
63 FLOCKFILE(lk, iop);
65 if (_set_orientation_wide(iop, &lc,
72 if ((wc == WEOF) || ((iop->_flag & _IOREAD) == 0)) {
83 if (iop->_ptr <= iop->_base) {
84 if (iop->_base == NULL) {
88 if (iop->_ptr == iop
[all...]
/osnet-11/usr/src/lib/libc/port/print/
H A Dvfprintf.c55 _vfprintf_c89(FILE *iop, const char *format, va_list ap) argument
57 vfprintf(FILE *iop, const char *format, va_list ap)
64 FLOCKFILE(lk, iop);
66 _SET_ORIENTATION_BYTE(iop);
68 if (!(iop->_flag & _IOWRT)) {
70 if (iop->_flag & _IORW) {
72 _READ2WRT(iop);
81 count = _ndoprnt(format, ap, iop, _F_INTMAX32);
83 count = _ndoprnt(format, ap, iop, 0);
87 if (FERROR(iop) || coun
[all...]
H A Dfprintf.c50 fprintf(FILE *iop, const char *format, ...) argument
59 FLOCKFILE(lk, iop);
61 _SET_ORIENTATION_BYTE(iop);
63 if (!(iop->_flag & _IOWRT)) {
65 if (iop->_flag & _IORW) {
67 _READ2WRT(iop);
75 count = _ndoprnt(format, ap, iop, 0);
78 if (FERROR(iop) || count == EOF) {
106 _fprintf_c89(FILE *iop, const char *format, ...) argument
112 count = _vfprintf_c89(iop, forma
[all...]

Completed in 58 milliseconds

123