aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdio.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stdio.in.h')
-rw-r--r--lib/stdio.in.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index 473c84ce3e4..ce00af574a8 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -170,6 +170,26 @@ _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - "
170 "use gnulib module fclose for portable POSIX compliance"); 170 "use gnulib module fclose for portable POSIX compliance");
171#endif 171#endif
172 172
173#if @GNULIB_FDOPEN@
174# if @REPLACE_FDOPEN@
175# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
176# undef fdopen
177# define fdopen rpl_fdopen
178# endif
179_GL_FUNCDECL_RPL (fdopen, FILE *, (int fd, const char *mode)
180 _GL_ARG_NONNULL ((2)));
181_GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode));
182# else
183_GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode));
184# endif
185_GL_CXXALIASWARN (fdopen);
186#elif defined GNULIB_POSIXCHECK
187# undef fdopen
188/* Assume fdopen is always declared. */
189_GL_WARN_ON_USE (fdopen, "fdopen on Win32 platforms is not POSIX compatible - "
190 "use gnulib module fdopen for portability");
191#endif
192
173#if @GNULIB_FFLUSH@ 193#if @GNULIB_FFLUSH@
174/* Flush all pending data on STREAM according to POSIX rules. Both 194/* Flush all pending data on STREAM according to POSIX rules. Both
175 output and seekable input streams are supported. 195 output and seekable input streams are supported.
@@ -750,6 +770,20 @@ _GL_CXXALIAS_SYS (obstack_vprintf, int,
750_GL_CXXALIASWARN (obstack_vprintf); 770_GL_CXXALIASWARN (obstack_vprintf);
751#endif 771#endif
752 772
773#if @GNULIB_PCLOSE@
774# if !@HAVE_PCLOSE@
775_GL_FUNCDECL_SYS (pclose, int, (FILE *stream) _GL_ARG_NONNULL ((1)));
776# endif
777_GL_CXXALIAS_SYS (pclose, int, (FILE *stream));
778_GL_CXXALIASWARN (pclose);
779#elif defined GNULIB_POSIXCHECK
780# undef pclose
781# if HAVE_RAW_DECL_PCLOSE
782_GL_WARN_ON_USE (pclose, "popen is unportable - "
783 "use gnulib module pclose for more portability");
784# endif
785#endif
786
753#if @GNULIB_PERROR@ 787#if @GNULIB_PERROR@
754/* Print a message to standard error, describing the value of ERRNO, 788/* Print a message to standard error, describing the value of ERRNO,
755 (if STRING is not NULL and not empty) prefixed with STRING and ": ", 789 (if STRING is not NULL and not empty) prefixed with STRING and ": ",
@@ -781,6 +815,10 @@ _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode)
781 _GL_ARG_NONNULL ((1, 2))); 815 _GL_ARG_NONNULL ((1, 2)));
782_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); 816_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
783# else 817# else
818# if !@HAVE_POPEN@
819_GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode)
820 _GL_ARG_NONNULL ((1, 2)));
821# endif
784_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); 822_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
785# endif 823# endif
786_GL_CXXALIASWARN (popen); 824_GL_CXXALIASWARN (popen);