summaryrefslogtreecommitdiff
path: root/libc/src/stdio/baremetal/getchar.cpp
AgeCommit message (Collapse)Author
2025-03-20[libc] Support for scanf on baremetal (#131043)Petr Hosek
This uses the templatized scanf Reader interface introduced in #131037.
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2024-07-11[libc] fix baremetal getchar (#98515)Michael Jones
baremetal getchar got the wrong find/replace in the initial patch. This patch fixes it.
2024-07-11Reland: [libc] Move off_t and stdio macros to proxy hdrs (#98384)Michael Jones
reland of https://github.com/llvm/llvm-project/pull/98215 Additionally adds proxy headers for FILE and the fopencookie types The arm32 build has been failing due to redefinitions of the off_t type. This patch fixes this by moving off_t to a proper proxy header. To do this, it also moves stdio macros to a proxy header to hopefully avoid including this proxy header alongside this public stdio.h.
2024-07-09[libc] Include stdio.h in baremetal getchar.cpp (#98188)Petr Hosek
This is needed for the EOF constant.
2024-07-09[libc] Remove unnecessary `stdio.h` includes (#98132)Petr Hosek
2024-07-09[libc] Provide baremetal implementation of getchar (#98059)Petr Hosek
This introduces opaque type `struct __llvm_libc_stdin` and a symbol `__llvm_libc_stdin_read` that's intended to be provided by the vendor. `__llvm_libc_stdin_read` intentionally has the same signature as `cookie_read_function_t` so it can be used with `fopencookie` to represent `stdin` as `FILE *` in the future.