annotate lib/stdio.in.h @ 448:5cccf90bf838 3.0 tip

Fixed bug with complex external references generating invalid relocations in the object file
author lost@l-w.ca
date Fri, 05 Nov 2010 22:27:00 -0600
parents b8bf63962a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
434
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
1 /* A GNU-like <stdio.h>.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
3 Copyright (C) 2004, 2007-2010 Free Software Foundation, Inc.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
4
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
7 the Free Software Foundation; either version 3, or (at your option)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
8 any later version.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
9
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
13 GNU General Public License for more details.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
14
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
18
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
19 #if __GNUC__ >= 3
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
20 @PRAGMA_SYSTEM_HEADER@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
21 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
22
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
23 #if defined __need_FILE || defined __need___FILE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
24 /* Special invocation convention inside glibc header files. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
25
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
26 #@INCLUDE_NEXT@ @NEXT_STDIO_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
27
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
28 #else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
29 /* Normal invocation convention. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
30
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
31 #ifndef _GL_STDIO_H
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
32
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
33 /* The include_next requires a split double-inclusion guard. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
34 #@INCLUDE_NEXT@ @NEXT_STDIO_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
35
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
36 #ifndef _GL_STDIO_H
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
37 #define _GL_STDIO_H
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
38
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
39 /* Get va_list. Needed on many systems, including glibc 2.8. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
40 #include <stdarg.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
41
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
42 #include <stddef.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
43
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
44 /* Get off_t and ssize_t. Needed on many systems, including glibc 2.8. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
45 #include <sys/types.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
46
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
47 #ifndef __attribute__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
48 /* This feature is available in gcc versions 2.5 and later. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
49 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
50 # define __attribute__(Spec) /* empty */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
51 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
52 /* The __-protected variants of `format' and `printf' attributes
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
53 are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
54 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
55 # define __format__ format
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
56 # define __printf__ printf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
57 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
58 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
59
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
60
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
61 /* The definition of GL_LINK_WARNING is copied here. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
62
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
63 /* The definition of _GL_ARG_NONNULL is copied here. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
64
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
65
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
66 #ifdef __cplusplus
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
67 extern "C" {
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
68 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
69
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
70 #if @GNULIB_DPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
71 # if @REPLACE_DPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
72 # define dprintf rpl_dprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
73 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
74 # if @REPLACE_DPRINTF@ || !@HAVE_DPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
75 extern int dprintf (int fd, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
76 __attribute__ ((__format__ (__printf__, 2, 3))) _GL_ARG_NONNULL ((2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
77 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
78 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
79 # undef dprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
80 # define dprintf \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
81 (GL_LINK_WARNING ("dprintf is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
82 "use gnulib module dprintf for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
83 dprintf)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
84 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
85
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
86 #if @GNULIB_FCLOSE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
87 # if @REPLACE_FCLOSE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
88 # define fclose rpl_fclose
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
89 /* Close STREAM and its underlying file descriptor. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
90 extern int fclose (FILE *stream) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
91 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
92 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
93 # undef fclose
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
94 # define fclose(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
95 (GL_LINK_WARNING ("fclose is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
96 "use gnulib module fclose for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
97 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
98 fclose (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
99 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
100
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
101 #if @GNULIB_FFLUSH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
102 # if @REPLACE_FFLUSH@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
103 # define fflush rpl_fflush
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
104 /* Flush all pending data on STREAM according to POSIX rules. Both
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
105 output and seekable input streams are supported.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
106 Note! LOSS OF DATA can occur if fflush is applied on an input stream
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
107 that is _not_seekable_ or on an update stream that is _not_seekable_
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
108 and in which the most recent operation was input. Seekability can
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
109 be tested with lseek(fileno(fp),0,SEEK_CUR). */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
110 extern int fflush (FILE *gl_stream);
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
111 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
112 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
113 # undef fflush
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
114 # define fflush(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
115 (GL_LINK_WARNING ("fflush is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
116 "use gnulib module fflush for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
117 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
118 fflush (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
119 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
120
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
121 #if @GNULIB_FOPEN@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
122 # if @REPLACE_FOPEN@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
123 # undef fopen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
124 # define fopen rpl_fopen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
125 extern FILE * fopen (const char *filename, const char *mode)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
126 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
127 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
128 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
129 # undef fopen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
130 # define fopen(f,m) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
131 (GL_LINK_WARNING ("fopen on Win32 platforms is not POSIX compatible - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
132 "use gnulib module fopen for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
133 fopen (f, m))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
134 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
135
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
136 #if @GNULIB_FPRINTF_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
137 # if @REPLACE_FPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
138 # define fprintf rpl_fprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
139 extern int fprintf (FILE *fp, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
140 __attribute__ ((__format__ (__printf__, 2, 3)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
141 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
142 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
143 #elif @GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
144 # define fprintf rpl_fprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
145 extern int fprintf (FILE *fp, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
146 __attribute__ ((__format__ (__printf__, 2, 3)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
147 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
148 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
149 # undef fprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
150 # define fprintf \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
151 (GL_LINK_WARNING ("fprintf is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
152 "use gnulib module fprintf-posix for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
153 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
154 fprintf)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
155 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
156
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
157 #if @GNULIB_FPURGE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
158 # if @REPLACE_FPURGE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
159 # define fpurge rpl_fpurge
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
160 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
161 # if @REPLACE_FPURGE@ || !@HAVE_DECL_FPURGE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
162 /* Discard all pending buffered I/O data on STREAM.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
163 STREAM must not be wide-character oriented.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
164 When discarding pending output, the file position is set back to where it
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
165 was before the write calls. When discarding pending input, the file
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
166 position is advanced to match the end of the previously read input.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
167 Return 0 if successful. Upon error, return -1 and set errno. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
168 extern int fpurge (FILE *gl_stream) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
169 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
170 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
171 # undef fpurge
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
172 # define fpurge(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
173 (GL_LINK_WARNING ("fpurge is not always present - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
174 "use gnulib module fpurge for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
175 fpurge (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
176 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
177
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
178 #if @GNULIB_FPUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
179 # undef fputc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
180 # define fputc rpl_fputc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
181 extern int fputc (int c, FILE *stream) _GL_ARG_NONNULL ((2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
182 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
183
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
184 #if @GNULIB_FPUTS@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
185 # undef fputs
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
186 # define fputs rpl_fputs
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
187 extern int fputs (const char *string, FILE *stream) _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
188 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
189
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
190 #if @GNULIB_FREOPEN@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
191 # if @REPLACE_FREOPEN@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
192 # undef freopen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
193 # define freopen rpl_freopen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
194 extern FILE * freopen (const char *filename, const char *mode, FILE *stream)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
195 _GL_ARG_NONNULL ((2, 3));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
196 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
197 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
198 # undef freopen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
199 # define freopen(f,m,s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
200 (GL_LINK_WARNING ("freopen on Win32 platforms is not POSIX compatible - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
201 "use gnulib module freopen for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
202 freopen (f, m, s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
203 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
204
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
205 #if @GNULIB_FSEEK@ && @REPLACE_FSEEK@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
206 extern int rpl_fseek (FILE *fp, long offset, int whence) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
207 # undef fseek
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
208 # if defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
209 # define fseek(f,o,w) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
210 (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
211 "on 32-bit platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
212 "use fseeko function for handling of large files"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
213 rpl_fseek (f, o, w))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
214 # else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
215 # define fseek rpl_fseek
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
216 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
217 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
218 # ifndef fseek
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
219 # define fseek(f,o,w) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
220 (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
221 "on 32-bit platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
222 "use fseeko function for handling of large files"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
223 fseek (f, o, w))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
224 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
225 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
226
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
227 #if @GNULIB_FSEEKO@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
228 # if @REPLACE_FSEEKO@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
229 /* Provide fseek, fseeko functions that are aware of a preceding
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
230 fflush(), and which detect pipes. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
231 # define fseeko rpl_fseeko
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
232 extern int fseeko (FILE *fp, off_t offset, int whence) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
233 # if !@GNULIB_FSEEK@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
234 # undef fseek
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
235 # define fseek(f,o,w) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
236 (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
237 "on 32-bit platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
238 "use fseeko function for handling of large files"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
239 fseeko (f, o, w))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
240 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
241 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
242 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
243 # undef fseeko
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
244 # define fseeko(f,o,w) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
245 (GL_LINK_WARNING ("fseeko is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
246 "use gnulib module fseeko for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
247 fseeko (f, o, w))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
248 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
249
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
250 #if @GNULIB_FTELL@ && @REPLACE_FTELL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
251 extern long rpl_ftell (FILE *fp) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
252 # undef ftell
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
253 # if GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
254 # define ftell(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
255 (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
256 "on 32-bit platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
257 "use ftello function for handling of large files"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
258 rpl_ftell (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
259 # else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
260 # define ftell rpl_ftell
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
261 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
262 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
263 # ifndef ftell
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
264 # define ftell(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
265 (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
266 "on 32-bit platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
267 "use ftello function for handling of large files"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
268 ftell (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
269 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
270 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
271
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
272 #if @GNULIB_FTELLO@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
273 # if @REPLACE_FTELLO@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
274 # define ftello rpl_ftello
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
275 extern off_t ftello (FILE *fp) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
276 # if !@GNULIB_FTELL@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
277 # undef ftell
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
278 # define ftell(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
279 (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
280 "on 32-bit platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
281 "use ftello function for handling of large files"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
282 ftello (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
283 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
284 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
285 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
286 # undef ftello
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
287 # define ftello(f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
288 (GL_LINK_WARNING ("ftello is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
289 "use gnulib module ftello for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
290 ftello (f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
291 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
292
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
293 #if @GNULIB_FWRITE@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
294 # undef fwrite
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
295 # define fwrite rpl_fwrite
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
296 extern size_t fwrite (const void *ptr, size_t s, size_t n, FILE *stream)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
297 _GL_ARG_NONNULL ((1, 4));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
298 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
299
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
300 #if @GNULIB_GETDELIM@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
301 # if !@HAVE_DECL_GETDELIM@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
302 /* Read input, up to (and including) the next occurrence of DELIMITER, from
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
303 STREAM, store it in *LINEPTR (and NUL-terminate it).
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
304 *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
305 bytes of space. It is realloc'd as necessary.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
306 Return the number of bytes read and stored at *LINEPTR (not including the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
307 NUL terminator), or -1 on error or EOF. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
308 extern ssize_t getdelim (char **lineptr, size_t *linesize, int delimiter,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
309 FILE *stream)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
310 _GL_ARG_NONNULL ((1, 2, 4));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
311 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
312 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
313 # undef getdelim
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
314 # define getdelim(l, s, d, f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
315 (GL_LINK_WARNING ("getdelim is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
316 "use gnulib module getdelim for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
317 getdelim (l, s, d, f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
318 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
319
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
320 #if @GNULIB_GETLINE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
321 # if @REPLACE_GETLINE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
322 # undef getline
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
323 # define getline rpl_getline
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
324 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
325 # if !@HAVE_DECL_GETLINE@ || @REPLACE_GETLINE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
326 /* Read a line, up to (and including) the next newline, from STREAM, store it
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
327 in *LINEPTR (and NUL-terminate it).
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
328 *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
329 bytes of space. It is realloc'd as necessary.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
330 Return the number of bytes read and stored at *LINEPTR (not including the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
331 NUL terminator), or -1 on error or EOF. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
332 extern ssize_t getline (char **lineptr, size_t *linesize, FILE *stream)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
333 _GL_ARG_NONNULL ((1, 2, 3));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
334 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
335 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
336 # undef getline
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
337 # define getline(l, s, f) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
338 (GL_LINK_WARNING ("getline is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
339 "use gnulib module getline for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
340 getline (l, s, f))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
341 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
342
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
343 #if @GNULIB_OBSTACK_PRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
344 # if @REPLACE_OBSTACK_PRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
345 # define obstack_printf rpl_osbtack_printf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
346 # define obstack_vprintf rpl_obstack_vprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
347 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
348 # if @REPLACE_OBSTACK_PRINTF@ || !@HAVE_DECL_OBSTACK_PRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
349 struct obstack;
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
350 /* Grow an obstack with formatted output. Return the number of
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
351 bytes added to OBS. No trailing nul byte is added, and the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
352 object should be closed with obstack_finish before use. Upon
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
353 memory allocation error, call obstack_alloc_failed_handler. Upon
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
354 other error, return -1. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
355 extern int obstack_printf (struct obstack *obs, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
356 __attribute__ ((__format__ (__printf__, 2, 3))) _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
357 extern int obstack_vprintf (struct obstack *obs, const char *format,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
358 va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
359 __attribute__ ((__format__ (__printf__, 2, 0))) _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
360 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
361 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
362
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
363 #if @GNULIB_PERROR@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
364 # if @REPLACE_PERROR@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
365 # define perror rpl_perror
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
366 /* Print a message to standard error, describing the value of ERRNO,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
367 (if STRING is not NULL and not empty) prefixed with STRING and ": ",
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
368 and terminated with a newline. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
369 extern void perror (const char *string);
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
370 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
371 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
372 # undef perror
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
373 # define perror(s) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
374 (GL_LINK_WARNING ("perror is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
375 "use gnulib module perror for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
376 perror (s))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
377 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
378
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
379 #if @GNULIB_POPEN@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
380 # if @REPLACE_POPEN@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
381 # undef popen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
382 # define popen rpl_popen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
383 extern FILE *popen (const char *cmd, const char *mode)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
384 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
385 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
386 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
387 # undef popen
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
388 # define popen(c,m) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
389 (GL_LINK_WARNING ("popen is buggy on some platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
390 "use gnulib module popen or pipe for more portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
391 popen (c, m))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
392 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
393
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
394 #if @GNULIB_PRINTF_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
395 # if @REPLACE_PRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
396 /* Don't break __attribute__((format(printf,M,N))). */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
397 # define printf __printf__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
398 extern int printf (const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
399 __attribute__ ((__format__ (__printf__, 1, 2))) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
400 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
401 #elif @GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
402 /* Don't break __attribute__((format(printf,M,N))). */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
403 # define printf __printf__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
404 extern int printf (const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
405 __attribute__ ((__format__ (__printf__, 1, 2))) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
406 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
407 # undef printf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
408 # define printf \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
409 (GL_LINK_WARNING ("printf is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
410 "use gnulib module printf-posix for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
411 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
412 printf)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
413 /* Don't break __attribute__((format(printf,M,N))). */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
414 # define format(kind,m,n) format (__##kind##__, m, n)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
415 # define __format__(kind,m,n) __format__ (__##kind##__, m, n)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
416 # define ____printf____ __printf__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
417 # define ____scanf____ __scanf__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
418 # define ____strftime____ __strftime__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
419 # define ____strfmon____ __strfmon__
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
420 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
421
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
422 #if @GNULIB_PUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
423 # undef putc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
424 # define putc rpl_fputc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
425 extern int putc (int c, FILE *stream) _GL_ARG_NONNULL ((2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
426 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
427
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
428 #if @GNULIB_PUTCHAR@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
429 # undef putchar
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
430 # define putchar rpl_putchar
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
431 extern int putchar (int c);
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
432 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
433
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
434 #if @GNULIB_PUTS@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
435 # undef puts
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
436 # define puts rpl_puts
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
437 extern int puts (const char *string) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
438 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
439
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
440 #if @GNULIB_REMOVE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
441 # if @REPLACE_REMOVE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
442 # undef remove
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
443 # define remove rpl_remove
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
444 extern int remove (const char *name) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
445 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
446 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
447 # undef remove
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
448 # define remove(n) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
449 (GL_LINK_WARNING ("remove cannot handle directories on some platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
450 "use gnulib module remove for more portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
451 remove (n))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
452 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
453
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
454 #if @GNULIB_RENAME@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
455 # if @REPLACE_RENAME@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
456 # undef rename
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
457 # define rename rpl_rename
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
458 extern int rename (const char *old_filename, const char *new_filename)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
459 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
460 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
461 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
462 # undef rename
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
463 # define rename(o,n) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
464 (GL_LINK_WARNING ("rename is buggy on some platforms - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
465 "use gnulib module rename for more portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
466 rename (o, n))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
467 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
468
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
469 #if @GNULIB_RENAMEAT@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
470 # if @REPLACE_RENAMEAT@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
471 # undef renameat
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
472 # define renameat rpl_renameat
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
473 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
474 # if !@HAVE_RENAMEAT@ || @REPLACE_RENAMEAT@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
475 extern int renameat (int fd1, char const *file1, int fd2, char const *file2)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
476 _GL_ARG_NONNULL ((2, 4));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
477 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
478 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
479 # undef renameat
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
480 # define renameat(d1,f1,d2,f2) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
481 (GL_LINK_WARNING ("renameat is not portable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
482 "use gnulib module renameat for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
483 renameat (d1, f1, d2, f2))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
484 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
485
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
486 #if @GNULIB_SNPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
487 # if @REPLACE_SNPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
488 # define snprintf rpl_snprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
489 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
490 # if @REPLACE_SNPRINTF@ || !@HAVE_DECL_SNPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
491 extern int snprintf (char *str, size_t size, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
492 __attribute__ ((__format__ (__printf__, 3, 4)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
493 _GL_ARG_NONNULL ((3));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
494 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
495 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
496 # undef snprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
497 # define snprintf \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
498 (GL_LINK_WARNING ("snprintf is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
499 "use gnulib module snprintf for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
500 snprintf)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
501 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
502
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
503 #if @GNULIB_SPRINTF_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
504 # if @REPLACE_SPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
505 # define sprintf rpl_sprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
506 extern int sprintf (char *str, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
507 __attribute__ ((__format__ (__printf__, 2, 3)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
508 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
509 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
510 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
511 # undef sprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
512 # define sprintf \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
513 (GL_LINK_WARNING ("sprintf is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
514 "use gnulib module sprintf-posix for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
515 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
516 sprintf)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
517 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
518
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
519 #if @GNULIB_VASPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
520 # if @REPLACE_VASPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
521 # define asprintf rpl_asprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
522 # define vasprintf rpl_vasprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
523 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
524 # if @REPLACE_VASPRINTF@ || !@HAVE_VASPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
525 /* Write formatted output to a string dynamically allocated with malloc().
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
526 If the memory allocation succeeds, store the address of the string in
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
527 *RESULT and return the number of resulting bytes, excluding the trailing
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
528 NUL. Upon memory allocation error, or some other error, return -1. */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
529 extern int asprintf (char **result, const char *format, ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
530 __attribute__ ((__format__ (__printf__, 2, 3))) _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
531 extern int vasprintf (char **result, const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
532 __attribute__ ((__format__ (__printf__, 2, 0))) _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
533 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
534 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
535
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
536 #if @GNULIB_VDPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
537 # if @REPLACE_VDPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
538 # define vdprintf rpl_vdprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
539 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
540 # if @REPLACE_VDPRINTF@ || !@HAVE_VDPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
541 extern int vdprintf (int fd, const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
542 __attribute__ ((__format__ (__printf__, 2, 0))) _GL_ARG_NONNULL ((2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
543 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
544 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
545 # undef vdprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
546 # define vdprintf(d,f,a) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
547 (GL_LINK_WARNING ("vdprintf is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
548 "use gnulib module vdprintf for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
549 vdprintf (d, f, a))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
550 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
551
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
552 #if @GNULIB_VFPRINTF_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
553 # if @REPLACE_VFPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
554 # define vfprintf rpl_vfprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
555 extern int vfprintf (FILE *fp, const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
556 __attribute__ ((__format__ (__printf__, 2, 0)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
557 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
558 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
559 #elif @GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
560 # define vfprintf rpl_vfprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
561 extern int vfprintf (FILE *fp, const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
562 __attribute__ ((__format__ (__printf__, 2, 0)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
563 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
564 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
565 # undef vfprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
566 # define vfprintf(s,f,a) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
567 (GL_LINK_WARNING ("vfprintf is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
568 "use gnulib module vfprintf-posix for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
569 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
570 vfprintf (s, f, a))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
571 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
572
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
573 #if @GNULIB_VPRINTF_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
574 # if @REPLACE_VPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
575 # define vprintf rpl_vprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
576 extern int vprintf (const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
577 __attribute__ ((__format__ (__printf__, 1, 0))) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
578 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
579 #elif @GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
580 # define vprintf rpl_vprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
581 extern int vprintf (const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
582 __attribute__ ((__format__ (__printf__, 1, 0))) _GL_ARG_NONNULL ((1));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
583 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
584 # undef vprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
585 # define vprintf(f,a) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
586 (GL_LINK_WARNING ("vprintf is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
587 "use gnulib module vprintf-posix for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
588 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
589 vprintf (f, a))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
590 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
591
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
592 #if @GNULIB_VSNPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
593 # if @REPLACE_VSNPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
594 # define vsnprintf rpl_vsnprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
595 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
596 # if @REPLACE_VSNPRINTF@ || !@HAVE_DECL_VSNPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
597 extern int vsnprintf (char *str, size_t size, const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
598 __attribute__ ((__format__ (__printf__, 3, 0)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
599 _GL_ARG_NONNULL ((3));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
600 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
601 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
602 # undef vsnprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
603 # define vsnprintf(b,s,f,a) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
604 (GL_LINK_WARNING ("vsnprintf is unportable - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
605 "use gnulib module vsnprintf for portability"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
606 vsnprintf (b, s, f, a))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
607 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
608
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
609 #if @GNULIB_VSPRINTF_POSIX@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
610 # if @REPLACE_VSPRINTF@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
611 # define vsprintf rpl_vsprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
612 extern int vsprintf (char *str, const char *format, va_list args)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
613 __attribute__ ((__format__ (__printf__, 2, 0)))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
614 _GL_ARG_NONNULL ((1, 2));
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
615 # endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
616 #elif defined GNULIB_POSIXCHECK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
617 # undef vsprintf
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
618 # define vsprintf(b,f,a) \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
619 (GL_LINK_WARNING ("vsprintf is not always POSIX compliant - " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
620 "use gnulib module vsprintf-posix for portable " \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
621 "POSIX compliance"), \
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
622 vsprintf (b, f, a))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
623 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
624
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
625 #ifdef __cplusplus
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
626 }
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
627 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
628
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
629 #endif /* _GL_STDIO_H */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
630 #endif /* _GL_STDIO_H */
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
631 #endif