[libc] Add implementations of fopen, flose, fread, fwrite and fseek.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 23 Mar 2022 03:49:26 +0000 (03:49 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 24 Mar 2022 04:20:12 +0000 (04:20 +0000)
commit441606f5ff8e4dd884e106a0b6f86f9037c946c4
tree71880d6cbb037950fdcd26ba8b2a7a1ccbd81746
parent4ad19b80eafa1505b8bb86eef84ffefcd20410a3
[libc] Add implementations of fopen, flose, fread, fwrite and fseek.

A follow up patch will add feof and ferror.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D122327
17 files changed:
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/stdio/CMakeLists.txt
libc/src/stdio/fclose.cpp [new file with mode: 0644]
libc/src/stdio/fclose.h [new file with mode: 0644]
libc/src/stdio/fopen.cpp [new file with mode: 0644]
libc/src/stdio/fopen.h [new file with mode: 0644]
libc/src/stdio/fread.cpp [new file with mode: 0644]
libc/src/stdio/fread.h [moved from libc/src/stdio/FILE.h with 51% similarity]
libc/src/stdio/fseek.cpp [new file with mode: 0644]
libc/src/stdio/fseek.h [new file with mode: 0644]
libc/src/stdio/fwrite.cpp
libc/src/stdio/fwrite.h
libc/test/src/stdio/CMakeLists.txt
libc/test/src/stdio/fileop_test.cpp [new file with mode: 0644]
libc/test/src/stdio/fwrite_test.cpp [deleted file]
libc/test/src/stdio/testdata/CMakeLists.txt [new file with mode: 0644]