diff options
author | Elliott Hughes <enh@google.com> | 2017-11-03 15:26:02 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-03 15:26:02 +0000 |
commit | 232541aa02e22ab8fafcdd503c74aae22fa09699 (patch) | |
tree | 0cd806ce38bc447f6c6c7d94c8f13282b9ed581b /libc/stdio/stdio.cpp | |
parent | 3a33da5d731cec8d79720b6a842449c22d063bfa (diff) | |
parent | 618303ca4ad2754071ba6955da690fec2b27a76d (diff) |
Merge "More printf de-duplication."
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index c10bc00a4..46d717a71 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -935,6 +935,16 @@ int swscanf(const wchar_t* s, const wchar_t* fmt, ...) { PRINTF_IMPL(vswscanf(s, fmt, ap)); } +int vfprintf(FILE* fp, const char* fmt, va_list ap) { + ScopedFileLock sfl(fp); + return __vfprintf(fp, fmt, ap); +} + +int vfwprintf(FILE* fp, const wchar_t* fmt, va_list ap) { + ScopedFileLock sfl(fp); + return __vfwprintf(fp, fmt, ap); +} + int vprintf(const char* fmt, va_list ap) { return vfprintf(stdout, fmt, ap); } |