[libc-commits] [PATCH] D157138: [libc] Add v variants of printf functions

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Aug 4 14:02:19 PDT 2023


michaelrj created this revision.
michaelrj added reviewers: mcgrathr, phosek, sivachandra.
Herald added subscribers: libc-commits, luke, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.
Herald added a subscriber: wangpc.

The v variants of the printf functions take their variadic arguments as
a va_list instead of as individual arguments. They are otherwise
identical to the corresponding printf variants. This patch adds them
(vprintf, vfprintf, vsprintf, and vsnprintf) as well as tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157138

Files:
  libc/config/linux/aarch64/entrypoints.txt
  libc/config/linux/riscv64/entrypoints.txt
  libc/config/linux/x86_64/entrypoints.txt
  libc/include/stdio.h.def
  libc/spec/spec.td
  libc/spec/stdc.td
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/vfprintf.cpp
  libc/src/stdio/vfprintf.h
  libc/src/stdio/vprintf.cpp
  libc/src/stdio/vprintf.h
  libc/src/stdio/vsnprintf.cpp
  libc/src/stdio/vsnprintf.h
  libc/src/stdio/vsprintf.cpp
  libc/src/stdio/vsprintf.h
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/vfprintf_test.cpp
  libc/test/src/stdio/vprintf_test.cpp
  libc/test/src/stdio/vsnprintf_test.cpp
  libc/test/src/stdio/vsprintf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157138.547338.patch
Type: text/x-patch
Size: 25366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230804/b6fca2a4/attachment-0001.bin>


More information about the libc-commits mailing list