[libc] Add implementation of getc, getc_unlocked and fgetc_unlocked.
authorSiva Chandra Reddy <sivachandra@google.com>
Sun, 6 Nov 2022 06:25:15 +0000 (06:25 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 7 Nov 2022 21:47:29 +0000 (21:47 +0000)
commit6a6101958a9ef3dd076f3c65b5d7b200314c0a8c
tree47e897d2d133c10447a79cb61fa00158aae22bf7
parent4fa00ce15c842aa8be495759723e2e2450591380
[libc] Add implementation of getc, getc_unlocked and fgetc_unlocked.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D137507
14 files changed:
libc/config/linux/x86_64/entrypoints.txt
libc/spec/gnu_ext.td
libc/spec/posix.td
libc/spec/stdc.td
libc/src/stdio/CMakeLists.txt
libc/src/stdio/fgetc_unlocked.cpp [new file with mode: 0644]
libc/src/stdio/fgetc_unlocked.h [new file with mode: 0644]
libc/src/stdio/getc.cpp [new file with mode: 0644]
libc/src/stdio/getc.h [new file with mode: 0644]
libc/src/stdio/getc_unlocked.cpp [new file with mode: 0644]
libc/src/stdio/getc_unlocked.h [new file with mode: 0644]
libc/test/src/stdio/CMakeLists.txt
libc/test/src/stdio/fgetc_test.cpp
libc/test/src/stdio/fgetc_unlocked_test.cpp [new file with mode: 0644]