summaryrefslogtreecommitdiffstats
path: root/gl/stdio-write.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-12-28 12:13:40 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-12-28 12:13:40 +0100
commitb0afb8fe0ff1d87165af9df61501197a06240dda (patch)
tree274ac6a96c53ef4c19ab4974ce24a06a233128c5 /gl/stdio-write.c
parent68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff)
downloadmonitoring-plugins-b0afb8fe0ff1d87165af9df61501197a06240dda.tar.gz
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/stdio-write.c')
-rw-r--r--gl/stdio-write.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gl/stdio-write.c b/gl/stdio-write.c
index ca6aa00c..59ba8fc4 100644
--- a/gl/stdio-write.c
+++ b/gl/stdio-write.c
@@ -1,5 +1,5 @@
1/* POSIX compatible FILE stream write function. 1/* POSIX compatible FILE stream write function.
2 Copyright (C) 2008-2024 Free Software Foundation, Inc. 2 Copyright (C) 2008-2025 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2008. 3 Written by Bruno Haible <bruno@clisp.org>, 2008.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -162,6 +162,9 @@ vprintf (const char *format, va_list args)
162int 162int
163vfprintf (FILE *stream, const char *format, va_list args) 163vfprintf (FILE *stream, const char *format, va_list args)
164#undef vfprintf 164#undef vfprintf
165#if defined __MINGW32__ && !defined _UCRT && __USE_MINGW_ANSI_STDIO
166# define vfprintf gl_consolesafe_vfprintf
167#endif
165{ 168{
166 CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) 169 CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF)
167} 170}
@@ -198,6 +201,9 @@ puts (const char *string)
198size_t 201size_t
199fwrite (const void *ptr, size_t s, size_t n, FILE *stream) 202fwrite (const void *ptr, size_t s, size_t n, FILE *stream)
200#undef fwrite 203#undef fwrite
204#if (defined _WIN32 && !defined __CYGWIN__) && !defined _UCRT
205# define fwrite gl_consolesafe_fwrite
206#endif
201{ 207{
202 CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) 208 CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n)
203} 209}