annotate lib/stdio.in.h @ 423:079d43b6967b 3.0-beta2 3.0-beta2

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