[libc-commits] [PATCH] D77626: [libc] Add very basic stdio FILE and fwrite

Alex Brachet via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Apr 6 20:44:10 PDT 2020


abrachet created this revision.
abrachet added reviewers: sivachandra, PaulkaToast.
Herald added subscribers: tschuett, MaskRay, mgorny.

This patch adds a very basic FILE type and basic fwrite.

It also removes the dependency of `<functional>` for syscall_test.cpp which was causing the build to fail because of conflicting `FILE` types. Also removes `snprintf` from `StdIO`'s function spec because `VarArgType` was causing the generation to fail.


https://reviews.llvm.org/D77626

Files:
  libc/config/linux/api.td
  libc/include/CMakeLists.txt
  libc/include/stdio.h.def
  libc/spec/stdc.td
  libc/src/CMakeLists.txt
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/FILE.h
  libc/src/stdio/fwrite.cpp
  libc/src/stdio/fwrite.h
  libc/test/config/linux/x86_64/syscall_test.cpp
  libc/test/src/CMakeLists.txt
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/fwrite_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77626.255574.patch
Type: text/x-patch
Size: 11069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200407/6e2ed2b8/attachment-0001.bin>


More information about the libc-commits mailing list