Back out the changes to _uClibc_fread and loop in fread() if incomplete, to avoid problems with fgets on tty streams.  I actually did some testing this time.  ;-) Note: there is a difference in behavior between glibc and uClibc here regarding fread() on a tty stream.  glibc's fread() seems to return after reading all _available_ data even if not at end-of-file, while uClibc's fread() continues reading until all requested or eof or error.  The latter behavior seems correct w.r.t. the standards.
Back out the changes to _uClibc_fread and loop in fread() if incomplete, to
avoid problems with fgets on tty streams.  I actually did some testing this
time.  ;-)
Note: there is a difference in behavior between glibc and uClibc here
regarding fread() on a tty stream.  glibc's fread() seems to return after
reading all _available_ data even if not at end-of-file, while uClibc's
fread() continues reading until all requested or eof or error.  The latter
behavior seems correct w.r.t. the standards.

majek/uclibc-vx32,gittup/uClibc,wbx-github/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,ndmsystems/uClibc,mephi42/uClibc,hwoarang/uClibc,waweber/uclibc-clang,czankel/xtensa-uclibc,ddcc/klee-uclibc-0.9.33.2,groundwater/uClibc,brgl/uclibc-ng,czankel/xtensa-uclibc,majek/uclibc-vx32,OpenInkpot-archive/iplinux-uclibc,mephi42/uClibc,m-labs/uclibc-lm32,m-labs/uclibc-lm32,ysat0/uClibc,hjl-tools/uClibc,kraj/uClibc,mephi42/uClibc,groundwater/uClibc,waweber/uclibc-clang,skristiansson/uClibc-or1k,czankel/xtensa-uclibc,hjl-tools/uClibc,gittup/uClibc,gittup/uClibc,majek/uclibc-vx32,groundwater/uClibc,foss-xtensa/uClibc,ysat0/uClibc,m-labs/uclibc-lm32,klee/klee-uclibc,kraj/uclibc-ng,atgreen/uClibc-moxie,groundwater/uClibc,ddcc/klee-uclibc-0.9.33.2,hwoarang/uClibc,kraj/uclibc-ng,gittup/uClibc,kraj/uClibc,foss-xtensa/uClibc,kraj/uClibc,waweber/uclibc-clang,kraj/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,kraj/uclibc-ng,brgl/uclibc-ng,majek/uclibc-vx32,atgreen/uClibc-moxie,ndmsystems/uClibc,ysat0/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-for-synopsys-dwc-arc-processors/uClibc,czankel/xtensa-uclibc,ddcc/klee-uclibc-0.9.33.2,brgl/uclibc-ng,ffainelli/uClibc,ndmsystems/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,atgreen/uClibc-moxie,hwoarang/uClibc,m-labs/uclibc-lm32,foss-for-synopsys-dwc-arc-processors/uClibc,hwoarang/uClibc,skristiansson/uClibc-or1k,klee/klee-uclibc,waweber/uclibc-clang,foss-xtensa/uClibc,ChickenRunjyd/klee-uclibc,hjl-tools/uClibc,ffainelli/uClibc,ffainelli/uClibc,klee/klee-uclibc,klee/klee-uclibc,foss-xtensa/uClibc,mephi42/uClibc,ysat0/uClibc,ffainelli/uClibc,groundwater/uClibc,ChickenRunjyd/klee-uclibc,OpenInkpot-archive/iplinux-uclibc,hjl-tools/uClibc,ffainelli/uClibc,atgreen/uClibc-moxie,wbx-github/uclibc-ng,brgl/uclibc-ng,wbx-github/uclibc-ng,skristiansson/uClibc-or1k,wbx-github/uclibc-ng,hjl-tools/uClibc,ndmsystems/uClibc,ChickenRunjyd/klee-uclibc,kraj/uClibc,skristiansson/uClibc-or1k,ChickenRunjyd/klee-uclibc