• R
    consistently return number of bytes read from stdio read backend · f9280418
    Rich Felker 提交于
    the stdio FILE read backend's return type is size_t, not ssize_t, and
    all of the special (non-fd-backed) FILE types already return the
    number of bytes read (zero) on error or eof. only __stdio_read leaked
    a syscall error return into its return value.
    
    fread had a workaround for this behavior going all the way back to the
    original check-in. remove the workaround since it's no longer needed.
    f9280418
fread.c 697 字节