[all-commits] [llvm/llvm-project] cfa2d7: [libc] Provide baremetal implementation of getchar...

Petr Hosek via All-commits all-commits at lists.llvm.org
Tue Jul 9 01:45:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfa2d7df11f1a930ebae5a7bdbea924bb129f55e
      https://github.com/llvm/llvm-project/commit/cfa2d7df11f1a930ebae5a7bdbea924bb129f55e
  Author: Petr Hosek <phosek at google.com>
  Date:   2024-07-09 (Tue, 09 Jul 2024)

  Changed paths:
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/config/baremetal/riscv/entrypoints.txt
    M libc/src/__support/OSUtil/baremetal/io.cpp
    M libc/src/__support/OSUtil/baremetal/io.h
    M libc/src/stdio/baremetal/CMakeLists.txt
    A libc/src/stdio/baremetal/getchar.cpp

  Log Message:
  -----------
  [libc] Provide baremetal implementation of getchar (#98059)

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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list