comparison lib/stdio.in.h @ 15643:fe99cfdb102f

New module 'pclose'. * lib/stdio.in.h (pclose): New declaration. * lib/pclose.c: New file. * m4/pclose.m4: New file. * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared. (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE. * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE. * modules/pclose: New file. * modules/popen-tests (Depends-on): Add pclose. * modules/popen-safer-tests (Depends-on): Likewise. * doc/posix-functions/pclose.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Sun, 18 Sep 2011 00:58:06 +0200
parents 5f0f5820c414
children 7adcf631d56b
comparison
equal deleted inserted replaced
15642:5f0f5820c414 15643:fe99cfdb102f
746 # endif 746 # endif
747 _GL_CXXALIAS_SYS (obstack_vprintf, int, 747 _GL_CXXALIAS_SYS (obstack_vprintf, int,
748 (struct obstack *obs, const char *format, va_list args)); 748 (struct obstack *obs, const char *format, va_list args));
749 # endif 749 # endif
750 _GL_CXXALIASWARN (obstack_vprintf); 750 _GL_CXXALIASWARN (obstack_vprintf);
751 #endif
752
753 #if @GNULIB_PCLOSE@
754 # if !@HAVE_PCLOSE@
755 _GL_FUNCDECL_SYS (pclose, int, (FILE *stream) _GL_ARG_NONNULL ((1)));
756 # endif
757 _GL_CXXALIAS_SYS (pclose, int, (FILE *stream));
758 _GL_CXXALIASWARN (pclose);
759 #elif defined GNULIB_POSIXCHECK
760 # undef pclose
761 # if HAVE_RAW_DECL_PCLOSE
762 _GL_WARN_ON_USE (pclose, "popen is unportable - "
763 "use gnulib module pclose for more portability");
764 # endif
751 #endif 765 #endif
752 766
753 #if @GNULIB_PERROR@ 767 #if @GNULIB_PERROR@
754 /* Print a message to standard error, describing the value of ERRNO, 768 /* Print a message to standard error, describing the value of ERRNO,
755 (if STRING is not NULL and not empty) prefixed with STRING and ": ", 769 (if STRING is not NULL and not empty) prefixed with STRING and ": ",