[all-commits] [llvm/llvm-project] 907eb1: [libc] Add getc, ungetc, fflush to enable libc++ i...

Volodymyr Turanskyy via All-commits all-commits at lists.llvm.org
Thu Feb 12 02:29:56 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 907eb11cc128630c52cd2191b925873b6ee56d6e
      https://github.com/llvm/llvm-project/commit/907eb11cc128630c52cd2191b925873b6ee56d6e
  Author: Volodymyr Turanskyy <vturanskyy at gmail.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M libc/config/baremetal/aarch64/entrypoints.txt
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/src/stdio/baremetal/CMakeLists.txt
    A libc/src/stdio/baremetal/fflush.cpp
    A libc/src/stdio/baremetal/file_internal.cpp
    M libc/src/stdio/baremetal/file_internal.h
    M libc/src/stdio/baremetal/getc.cpp
    A libc/src/stdio/baremetal/ungetc.cpp
    M libc/src/stdio/baremetal/vfscanf_internal.h

  Log Message:
  -----------
  [libc] Add getc, ungetc, fflush to enable libc++ iostream on baremetal (#175530)

After https://github.com/llvm/llvm-project/pull/168931 landed getc,
ungetc and fflush are still missing at link time while trying to make
libc++ std::cout work with LLVM libc on baremetal.

ungetc implementation is very minimal only to cover the current standard
streams implementation from the patch above.



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