[libc-commits] [PATCH] D125939: [libc] add fprintf and file_writer

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed May 18 17:02:02 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

This patch adds the file_writer header, which just provides a wrapper
for File->write, as well as fprintf to use it. There are no unit tests
for file_writer since it's too simple to need them, but fprintf does
have a simple test of writing to a file. True printf may take a while
longer since stdout is not yet supported, but all the other pieces are
now in place.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125939

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/fprintf.cpp
  libc/src/stdio/fprintf.h
  libc/src/stdio/printf_core/CMakeLists.txt
  libc/src/stdio/printf_core/file_writer.h
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/fprintf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125939.430537.patch
Type: text/x-patch
Size: 7452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220519/6ca6f43a/attachment.bin>


More information about the libc-commits mailing list