=================================================================== RCS file: /afs/sipb/project/pthreads/src/CVS/pthreads/stdio/refill.c,v retrieving revision 1.50 diff -c -r1.50 refill.c *** 1.50 1994/08/08 03:47:55 --- refill.c 1994/10/16 18:23:57 *************** *** 157,162 **** --- 157,167 ---- } } + if (fp->_file == -1) { + fp->_flags |= __SEOF; + return(EOF); + } + if (fp->_bf._base == NULL) __smakebuf(fp);