summaryrefslogtreecommitdiffstats
path: root/gl/stdio-write.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-01-09 14:57:57 +0100
committerGitHub <noreply@github.com>2026-01-09 14:57:57 +0100
commitda4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch)
treed20769e0a61ac2ba76920190050d3e0a3e7c85b7 /gl/stdio-write.c
parentb09a8b530df8a23610889d0b89b148f22db3568a (diff)
parentf694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff)
downloadmonitoring-plugins-da4fb28fca51b180d50608b0c847b1c0927cd8c5.tar.gz
Merge branch 'master' into refactor/check_ide_smart
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}