Merge branch 'stable'
[gnulib.git] / modules / stdio
1 Description:
2 A GNU-like <stdio.h>.
3
4 Files:
5 lib/stdio.in.h
6 lib/stdio-write.c
7 m4/stdio_h.m4
8
9 Depends-on:
10 include_next
11 arg-nonnull
12 c++defs
13 raise
14 stddef
15 warn-on-use
16
17 configure.ac:
18 gl_STDIO_H
19
20 Makefile.am:
21 BUILT_SOURCES += stdio.h
22
23 # We need the following in order to create <stdio.h> when the system
24 # doesn't have one that works with the given compiler.
25 stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
28           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
31               -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
32               -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
33               -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
34               -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
35               -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
36               -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
37               -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
38               -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
39               -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
40               -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
41               -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
42               -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
43               -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
44               -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
45               -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
46               -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
47               -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
48               -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
49               -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
50               -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
51               -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
52               -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
53               -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
54               -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
55               -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
56               -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
57               -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
58               -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
59               -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
60               -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
61               -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
62               -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
63               -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \
64               -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
65               -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
66               -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
67               -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
68               -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
69               -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
70               -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
71               -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
72               < $(srcdir)/stdio.in.h | \
73           sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
74               -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
75               -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
76               -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
77               -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
78               -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
79               -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
80               -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
81               -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
82               -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
83               -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
84               -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
85               -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
86               -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
87               -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
88               -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
89               -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
90               -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
91               -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
92               -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
93               -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
94               -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
95               -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
96               -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
97               -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
98               -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
99               -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
100               -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
101               -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
102               -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
103               -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
104               -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
105               -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
106               -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
107               -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
108               -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \
109               -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
110               -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
111               -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
112               -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
113               -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
114               -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
115               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
116               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
117               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
118         } > $@-t && \
119         mv $@-t $@
120 MOSTLYCLEANFILES += stdio.h stdio.h-t
121
122 Include:
123 <stdio.h>
124
125 License:
126 LGPLv2+
127
128 Maintainer:
129 all