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:50:39 +0100
committerGitHub <noreply@github.com>2025-12-28 12:50:39 +0100
commite7dd07c8025b169b7b43b955066a7200d9cdf244 (patch)
tree6e8c927cfc67f3708b91ac79df07707af26e4929 /gl/stdio-write.c
parent828a9720b10814c5836d03aa35af05d196c4104b (diff)
parentb0afb8fe0ff1d87165af9df61501197a06240dda (diff)
downloadmonitoring-plugins-e7dd07c8025b169b7b43b955066a7200d9cdf244.tar.gz
Merge pull request #2213 from RincewindsHat/update/gnulib
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}