2004-10-26 Jason Tishler <jason@tishler.net>
* libc/stdio/fread.c (fread): Fix return value for unbuffered
        fread.
			
			
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2004-10-26  Jason Tishler  <jason@tishler.net> | ||||||
|  |  | ||||||
|  | 	* libc/stdio/fread.c (fread): Fix return value for unbuffered | ||||||
|  | 	fread. | ||||||
|  |  | ||||||
| 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de> | 2004-10-25  Ralf Corsepius <corsepiu@faw.uni-ulm.de> | ||||||
|  |  | ||||||
| 	* libc/include/machine/setjmp.h: Add AVR support. | 	* libc/include/machine/setjmp.h: Add AVR support. | ||||||
|   | |||||||
| @@ -167,9 +167,6 @@ _DEFUN(fread, (buf, size, count, fp), | |||||||
| 	  fp->_bf._base = old_base; | 	  fp->_bf._base = old_base; | ||||||
| 	  fp->_bf._size = old_size; | 	  fp->_bf._size = old_size; | ||||||
| 	  fp->_p = old_p; | 	  fp->_p = old_p; | ||||||
| 	  if (rc) |  | ||||||
| 	    { |  | ||||||
| 	      /* no more input: return partial result */ |  | ||||||
| #ifdef __SCLE | #ifdef __SCLE | ||||||
|           if (fp->_flags & __SCLE) |           if (fp->_flags & __SCLE) | ||||||
| 	    { | 	    { | ||||||
| @@ -181,7 +178,6 @@ _DEFUN(fread, (buf, size, count, fp), | |||||||
| 	  return (total - resid) / size; | 	  return (total - resid) / size; | ||||||
| 	} | 	} | ||||||
|     } |     } | ||||||
|     } |  | ||||||
|   else |   else | ||||||
| #endif /* !PREFER_SIZE_OVER_SPEED && !__OPTIMIZE_SIZE__ */ | #endif /* !PREFER_SIZE_OVER_SPEED && !__OPTIMIZE_SIZE__ */ | ||||||
|     { |     { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user