Searched defs:iop (Results 1 - 25 of 107) 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 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 Dfileno.c42 fileno(FILE *iop) argument
44 return (_get_fd(iop));
H A Drewind.c43 rewind(FILE *iop) argument
47 FLOCKFILE(lk, iop);
48 _rewind_unlocked(iop);
53 _rewind_unlocked(FILE *iop) argument
55 (void) _fflush_u(iop);
56 (void) _xseek64(iop, 0, SEEK_SET);
57 iop->_cnt = 0;
58 iop->_ptr = iop->_base;
59 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 D_flsbuf.c47 _flsbuf(int ch, FILE *iop) argument
52 switch (iop->_flag & (_IOFBF | _IOLBF | _IONBF |
55 if (iop->_base != 0 && iop->_ptr > iop->_base)
59 if (iop->_ptr >= _bufend(iop))
66 if ((*iop->_ptr++ = (unsigned char)ch) == '\n')
67 (void) _xflsbuf(iop);
68 iop
[all...]
H A Dftello.c59 ftello64(FILE *iop) argument
61 return (ftell_common(iop));
67 ftello(FILE *iop) argument
69 return ((off_t)ftell(iop));
H A Dfseek.c48 fseek(FILE *iop, long offset, int ptrname) argument
53 FLOCKFILE(lk, iop);
54 iop->_flag &= ~_IOEOF;
56 if (!(iop->_flag & _IOREAD) && !(iop->_flag & (_IOWRT | _IORW))) {
62 if (iop->_flag & _IOREAD) {
63 if (ptrname == 1 && iop->_base && !(iop->_flag&_IONBF)) {
64 offset -= iop->_cnt;
66 } else if (iop
[all...]
H A Dgetc.c46 getc(FILE *iop) argument
51 FLOCKFILE(lk, iop);
52 c = getc_unlocked(iop);
59 getc_unlocked(FILE *iop) argument
61 _SET_ORIENTATION_BYTE(iop);
62 return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++);
66 _getc_internal(FILE *iop) argument
68 return ((--iop
[all...]
H A Dftell.c51 ftell_common(FILE *iop) argument
57 FLOCKFILE(lk, iop);
67 if (_get_fd(iop) == -1) {
68 (void) _fflush_u(iop);
71 if (iop->_cnt < 0)
72 iop->_cnt = 0;
73 if (iop->_flag & _IOREAD) {
74 adjust = (ptrdiff_t)-iop->_cnt;
75 } else if (iop->_flag & (_IOWRT | _IORW)) {
77 if (((iop
98 ftell(FILE *iop) argument
[all...]
H A Dfdopen.c58 /* iop doesn't need locking since this function is creating it */
59 FILE *iop; local
67 if ((iop = _findiop()) == 0) {
74 iop->_flag = 0; /* release iop */
91 iop->_flag = flag;
94 iop->_file = fd;
97 SET_FILE(iop, fd);
98 } else if (_file_set(iop, fd, type) != 0) {
100 iop
[all...]
H A Dfgets.c46 fgets(char *buf, int size, FILE *iop) argument
54 FLOCKFILE(lk, iop);
56 _SET_ORIENTATION_BYTE(iop);
58 if (!(iop->_flag & (_IOREAD | _IORW))) {
64 if (iop->_base == NULL) {
65 if ((bufend = _findbuf(iop)) == NULL) {
71 bufend = _bufend(iop);
76 if (iop->_cnt <= 0) {
77 if (__filbuf(iop) != EOF) {
78 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...]
H A Dfprintf.c52 fprintf(FILE *iop, const char *format, ...) argument
61 FLOCKFILE(lk, iop);
63 _SET_ORIENTATION_BYTE(iop);
65 if (!(iop->_flag & _IOWRT)) {
67 if (iop->_flag & _IORW) {
69 iop->_flag |= _IOWRT;
77 count = _ndoprnt(format, ap, iop, 0);
80 if (FERROR(iop) || count == EOF) {
108 _fprintf_c89(FILE *iop, const char *format, ...) argument
114 count = _vfprintf_c89(iop, forma
[all...]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dungetwc.c38 * associated with an input stream "iop". That character, c,
55 __ungetwc_impl(wint_t wc, FILE *iop, int orient) argument
62 FLOCKFILE(lk, iop);
64 if (orient && GET_NO_MODE(iop)) {
65 _setorientation(iop, _WC_MODE);
67 if ((wc == WEOF) || ((iop->_flag & _IOREAD) == 0)) {
78 if (iop->_ptr <= iop->_base) {
79 if (iop->_base == NULL) {
83 if (iop
103 __ungetwc_xpg5(wint_t wc, FILE *iop) argument
109 ungetwc(wint_t wc, FILE *iop) argument
[all...]

Completed in 91 milliseconds

12345