Mercurial > gnulib
annotate modules/stdio @ 14700:6758fa38915e topic/libposix
manual merge
author | Bruce Korb <bkorb@gnu.org> |
---|---|
date | Fri, 06 May 2011 08:15:59 -0700 |
parents | 8636d98120a9 8b22057e98d2 |
children |
rev | line source |
---|---|
8209 | 1 Description: |
2 A GNU-like <stdio.h>. | |
3 | |
4 Files: | |
9262
9857038c7b89
Rename stdio_.h to stdio.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9161
diff
changeset
|
5 lib/stdio.in.h |
8209 | 6 m4/stdio_h.m4 |
7 | |
8 Depends-on: | |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8888
diff
changeset
|
9 include_next |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12410
diff
changeset
|
10 arg-nonnull |
12940
4c61fd24cafa
stdio: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12839
diff
changeset
|
11 c++defs |
11832
ff3dd373542b
stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents:
11653
diff
changeset
|
12 stddef |
12724 | 13 warn-on-use |
8209 | 14 |
15 configure.ac: | |
16 gl_STDIO_H | |
17 | |
18 Makefile.am: | |
14108
873a3371d1d2
spell the pkginclude directory correctly.
Bruce Korb <bkorb@gnu.org>
parents:
14107
diff
changeset
|
19 nodist_pkginclude_HEADERS += stdio.h |
14102
f49fe7e6d028
add _HEADERS primaries to Makefile.am snippets for installable headers
Gary V. Vaughan <gary@gnu.org>
parents:
13761
diff
changeset
|
20 |
8209 | 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. | |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14402
diff
changeset
|
25 stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11848
diff
changeset
|
26 $(AM_V_GEN)rm -f $@-t $@ && \ |
8209 | 27 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
10205
diff
changeset
|
28 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
10205
diff
changeset
|
29 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
13761
a19ace3ba849
Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents:
13343
diff
changeset
|
30 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8888
diff
changeset
|
31 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ |
11971 | 32 -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ |
33 -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ | |
34 -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ | |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
35 -e 's|@''GNULIB_FGETC''@|$(GNULIB_FGETC)|g' \ |
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
36 -e 's|@''GNULIB_FGETS''@|$(GNULIB_FGETS)|g' \ |
11971 | 37 -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ |
10487
953f72c1ffcc
Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents:
10433
diff
changeset
|
38 -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ |
8394
fbb6e4d5f75b
New module 'fprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
8391
diff
changeset
|
39 -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ |
11971 | 40 -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ |
41 -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ | |
42 -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ | |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
43 -e 's|@''GNULIB_FREAD''@|$(GNULIB_FREAD)|g' \ |
11971 | 44 -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
45 -e 's|@''GNULIB_FSCANF''@|$(GNULIB_FSCANF)|g' \ |
11971 | 46 -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ |
47 -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ | |
48 -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ | |
49 -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ | |
50 -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ | |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
51 -e 's|@''GNULIB_GETC''@|$(GNULIB_GETC)|g' \ |
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
52 -e 's|@''GNULIB_GETCHAR''@|$(GNULIB_GETCHAR)|g' \ |
11971 | 53 -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ |
54 -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ | |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
55 -e 's|@''GNULIB_GETS''@|$(GNULIB_GETS)|g' \ |
11971 | 56 -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ |
57 -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ | |
58 -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ | |
59 -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ | |
10487
953f72c1ffcc
Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents:
10433
diff
changeset
|
60 -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ |
8402 | 61 -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ |
11971 | 62 -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ |
63 -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ | |
64 -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ | |
12041
73e9ab6e2c90
remove: new module, for mingw and Solaris 9 bugs
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
65 -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ |
11972 | 66 -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ |
12099 | 67 -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
68 -e 's|@''GNULIB_SCANF''@|$(GNULIB_SCANF)|g' \ |
8209 | 69 -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ |
8373
b975f31a2a92
New module 'sprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
8371
diff
changeset
|
70 -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ |
14578
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14527
diff
changeset
|
71 -e 's|@''GNULIB_STDIO_H_NONBLOCKING''@|$(GNULIB_STDIO_H_NONBLOCKING)|g' \ |
11971 | 72 -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ |
13137
fd3c9fa89efe
tmpfile: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
73 -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ |
11971 | 74 -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ |
75 -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ | |
10487
953f72c1ffcc
Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents:
10433
diff
changeset
|
76 -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ |
8391
e867946a9882
New module 'vfprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
8373
diff
changeset
|
77 -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
78 -e 's|@''GNULIB_VFSCANF''@|$(GNULIB_VFSCANF)|g' \ |
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
79 -e 's|@''GNULIB_VSCANF''@|$(GNULIB_VSCANF)|g' \ |
10487
953f72c1ffcc
Support SIGPIPE in stdio functions for writing.
Bruno Haible <bruno@clisp.org>
parents:
10433
diff
changeset
|
80 -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ |
8396
ca9d4758592d
New module 'vprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
8394
diff
changeset
|
81 -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ |
8209 | 82 -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ |
8371
00b14bff072a
New module 'vsprintf-posix'.
Bruno Haible <bruno@clisp.org>
parents:
8366
diff
changeset
|
83 -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ |
12742
eb23650d64e1
Split large sed scripts, for HP-UX sed.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
12724
diff
changeset
|
84 < $(srcdir)/stdio.in.h | \ |
eb23650d64e1
Split large sed scripts, for HP-UX sed.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
12724
diff
changeset
|
85 sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ |
13942
525c4e92ae7e
fseeko: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13761
diff
changeset
|
86 -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ |
13943
190accfb0919
ftello: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13942
diff
changeset
|
87 -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ |
9161
c5cedfcd0db0
Move getline and getdelim into stdio.h, per POSIX 200x.
Eric Blake <ebb9@byu.net>
parents:
9102
diff
changeset
|
88 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ |
c5cedfcd0db0
Move getline and getdelim into stdio.h, per POSIX 200x.
Eric Blake <ebb9@byu.net>
parents:
9102
diff
changeset
|
89 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ |
11971 | 90 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ |
91 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ | |
92 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ | |
93 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ | |
13121
472aa3de0fbb
fseeko: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12940
diff
changeset
|
94 -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ |
13122
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
13121
diff
changeset
|
95 -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ |
12099 | 96 -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ |
11971 | 97 -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ |
98 -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ | |
99 -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ | |
100 -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ | |
101 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ | |
102 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ | |
103 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ | |
104 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ | |
105 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ | |
106 -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ | |
107 -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ | |
108 -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ | |
109 -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ | |
12839
c6d23570567d
Work around getdelim() bug on FreeBSD 8.0.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
110 -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ |
9161
c5cedfcd0db0
Move getline and getdelim into stdio.h, per POSIX 200x.
Eric Blake <ebb9@byu.net>
parents:
9102
diff
changeset
|
111 -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ |
11971 | 112 -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ |
10433 | 113 -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ |
11971 | 114 -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ |
115 -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ | |
12041
73e9ab6e2c90
remove: new module, for mingw and Solaris 9 bugs
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
116 -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ |
11972 | 117 -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ |
12100 | 118 -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ |
11971 | 119 -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ |
120 -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ | |
14583
8b22057e98d2
Support non-blocking pipe I/O in read() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14578
diff
changeset
|
121 -e 's|@''REPLACE_STDIO_READ_FUNCS''@|$(REPLACE_STDIO_READ_FUNCS)|g' \ |
11971 | 122 -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ |
13137
fd3c9fa89efe
tmpfile: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
123 -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ |
11971 | 124 -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ |
125 -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ | |
126 -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ | |
127 -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ | |
128 -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ | |
129 -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ | |
13343
747ce13db0de
Fix collision between gnulib's and libintl's printf replacements.
Bruno Haible <bruno@clisp.org>
parents:
13137
diff
changeset
|
130 -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ |
12940
4c61fd24cafa
stdio: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12839
diff
changeset
|
131 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12410
diff
changeset
|
132 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ |
12742
eb23650d64e1
Split large sed scripts, for HP-UX sed.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
12724
diff
changeset
|
133 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11848
diff
changeset
|
134 } > $@-t && \ |
8209 | 135 mv $@-t $@ |
136 MOSTLYCLEANFILES += stdio.h stdio.h-t | |
137 | |
138 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11972
diff
changeset
|
139 <stdio.h> |
8209 | 140 |
141 License: | |
9102
404dc8725caf
Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents:
8995
diff
changeset
|
142 LGPLv2+ |
8209 | 143 |
144 Maintainer: | |
145 all |