diff options
| author | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
| commit | 699c782b7668c44d0fa4446331b0590a6d5dac82 (patch) | |
| tree | 5dcce364741d0761920a3d274b0fc8aba4103d45 /lib/stdio.in.h | |
| parent | 98fb480ee31bf74cf554044f60f21df16566dd7f (diff) | |
| parent | e99a9b8bdccadded1f6fae88ee7a2a93dfd4eacf (diff) | |
| download | emacs-pending.tar.gz emacs-pending.zip | |
Merge from trunkpending
Diffstat (limited to 'lib/stdio.in.h')
| -rw-r--r-- | lib/stdio.in.h | 38 |
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); |