[all-commits] [llvm/llvm-project] 53c251: [libc] Fix the return value of fread and fwrite.

Siva Chandra via All-commits all-commits at lists.llvm.org
Fri Oct 28 23:11:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53c251bd05704a3f76f660c3b715bf3f35e7d594
      https://github.com/llvm/llvm-project/commit/53c251bd05704a3f76f660c3b715bf3f35e7d594
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-10-29 (Sat, 29 Oct 2022)

  Changed paths:
    M libc/src/stdio/fread.cpp
    M libc/src/stdio/fwrite.cpp
    M libc/test/src/stdio/fileop_test.cpp

  Log Message:
  -----------
  [libc] Fix the return value of fread and fwrite.

They were previously returning the number of bytes read. They should
instead be returning the number of objects read.




More information about the All-commits mailing list