use a larger buffer on larger machines

This commit is contained in:
ceriel
1989-02-21 10:01:55 +00:00
parent 30959cd73f
commit d5b2601b8f
7 changed files with 43 additions and 33 deletions

View File

@@ -13,10 +13,12 @@ char *buffer;
iop->_buf = (unsigned char *) buffer;
iop->_count = 0;
if ( iop->_buf == NULL )
if ( iop->_buf == NULL ) {
iop->_flags |= IO_UNBUFF;
else
iop->_count = BUFSIZ;
iop->_bufsiz = 1;
} else {
if (io_testflag(iop, IO_WRITEMODE)) iop->_count = BUFSIZ;
iop->_bufsiz = BUFSIZ;
}
iop->_ptr = iop->_buf;
}