Annotation of researchv10dc/libI77/notused/stdiom.h, revision 1.1.1.1

1.1       root        1: /*     @(#)stdiom.h    1.1     */
                      2: 
                      3: /* The following macros improve performance of the stdio by reducing the
                      4:        number of calls to _bufsync and _wrtchk.  _BUFSYNC has the same
                      5:        effect as _bufsync, and _WRTCHK has the same effect as _wrtchk,
                      6:        but often these functions have no effect, and in those cases the
                      7:        macros avoid the expense of calling the functions.  */
                      8: 
                      9: #define _BUFSYNC(iop)  if (_bufend(iop) - iop->_ptr <   \
                     10:                                ( iop->_cnt < 0 ? 0 : iop->_cnt ) )  \
                     11:                                        _bufsync(iop)
                     12: #define _WRTCHK(iop)   ((((iop->_flag & (_IOWRT | _IOEOF)) != _IOWRT) \
                     13:                                || (iop->_base == NULL)  \
                     14:                                || (iop->_ptr == iop->_base && iop->_cnt == 0 \
                     15:                                        && !(iop->_flag & (_IONBF | _IOLBF)))) \
                     16:                        ? _wrtchk(iop) : 0 )

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.