summaryrefslogtreecommitdiff
path: root/gl/stdio.in.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-09-21 15:49:06 +0200
committerSimon Josefsson <simon@josefsson.org>2011-09-21 15:49:06 +0200
commit5fdaefe2cfd2e38a83fee58c6a2b852d5e124d69 (patch)
treeaba3494f385bea407fd4b4f840b8b9cdfef711c2 /gl/stdio.in.h
parent0f206a54a53abe0ca38216081d587cf98096fb26 (diff)
downloadgnutls-5fdaefe2cfd2e38a83fee58c6a2b852d5e124d69.tar.gz
Update gnulib files.
Diffstat (limited to 'gl/stdio.in.h')
-rw-r--r--gl/stdio.in.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gl/stdio.in.h b/gl/stdio.in.h
index 473c84ce3e..6917d254b3 100644
--- a/gl/stdio.in.h
+++ b/gl/stdio.in.h
@@ -750,6 +750,20 @@ _GL_CXXALIAS_SYS (obstack_vprintf, int,
_GL_CXXALIASWARN (obstack_vprintf);
#endif
+#if @GNULIB_PCLOSE@
+# if !@HAVE_PCLOSE@
+_GL_FUNCDECL_SYS (pclose, int, (FILE *stream) _GL_ARG_NONNULL ((1)));
+# endif
+_GL_CXXALIAS_SYS (pclose, int, (FILE *stream));
+_GL_CXXALIASWARN (pclose);
+#elif defined GNULIB_POSIXCHECK
+# undef pclose
+# if HAVE_RAW_DECL_PCLOSE
+_GL_WARN_ON_USE (pclose, "popen is unportable - "
+ "use gnulib module pclose for more portability");
+# endif
+#endif
+
#if @GNULIB_PERROR@
/* Print a message to standard error, describing the value of ERRNO,
(if STRING is not NULL and not empty) prefixed with STRING and ": ",
@@ -781,6 +795,10 @@ _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode)
_GL_ARG_NONNULL ((1, 2)));
_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
# else
+# if !@HAVE_POPEN@
+_GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode)
+ _GL_ARG_NONNULL ((1, 2)));
+# endif
_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
# endif
_GL_CXXALIASWARN (popen);