[libc] Add implementation of getchar
authorMichael Jones <michaelrj@google.com>
Fri, 14 Apr 2023 22:36:39 +0000 (15:36 -0700)
committerMichael Jones <michaelrj@google.com>
Fri, 14 Apr 2023 22:40:05 +0000 (15:40 -0700)
commit1c261e360f558a914b9eafb22423f893f5dc54de
tree93e6b7ffbb207a78c2c46b0eb591a96f9d659dc5
parent5e53e1bbc34fe563b740364d7329ca0bd123f9ff
[libc] Add implementation of getchar

added getchar and getchar_unlocked which are just wrappers getc and getc_unlocked respectively.

Reviewed By: sivachandra, lntue, michaelrj

Differential Revision: https://reviews.llvm.org/D147919
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/riscv64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/docs/stdio.rst
libc/spec/posix.td
libc/spec/stdc.td
libc/src/stdio/CMakeLists.txt
libc/src/stdio/getchar.cpp [new file with mode: 0644]
libc/src/stdio/getchar.h [new file with mode: 0644]
libc/src/stdio/getchar_unlocked.cpp [new file with mode: 0644]
libc/src/stdio/getchar_unlocked.h [new file with mode: 0644]