19 @PRAGMA_SYSTEM_HEADER@
23 #if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H
32 #@INCLUDE_NEXT@ @NEXT_STDIO_H@
37 #ifndef _@GUARD_PREFIX@_STDIO_H
39 #define _GL_ALREADY_INCLUDING_STDIO_H
42 #@INCLUDE_NEXT@ @NEXT_STDIO_H@
44 #undef _GL_ALREADY_INCLUDING_STDIO_H
46 #ifndef _@GUARD_PREFIX@_STDIO_H
47 #define _@GUARD_PREFIX@_STDIO_H
57 #include <sys/types.h>
65 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
66 # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
68 # define _GL_ATTRIBUTE_FORMAT(spec)
75 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
76 # define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
77 _GL_ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument))
79 # define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
80 _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
87 #define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \
88 _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
94 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
95 # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \
96 _GL_ATTRIBUTE_FORMAT ((__gnu_scanf__, formatstring_parameter, first_argument))
98 # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \
99 _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument))
106 #define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument) \
107 _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument))
111 #if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __sun \
112 && ! defined __GLIBC__
124 #define _GL_STDIO_STRINGIZE(token) #token
125 #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token)
132 #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \
133 && defined __GNUC__ && defined __STDC__)
134 # undef putc_unlocked
138 # if @REPLACE_DPRINTF@
139 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
140 # define dprintf rpl_dprintf
155 #elif defined GNULIB_POSIXCHECK
157 # if HAVE_RAW_DECL_DPRINTF
159 "use gnulib module dprintf for portability");
165 # if @REPLACE_FCLOSE@
166 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
167 # define fclose rpl_fclose
175 #elif defined GNULIB_POSIXCHECK
179 "use gnulib module fclose for portable POSIX compliance");
183 # if @REPLACE_FDOPEN@
184 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
186 # define fdopen rpl_fdopen
195 #elif defined GNULIB_POSIXCHECK
198 _GL_WARN_ON_USE (fdopen,
"fdopen on native Windows platforms is not POSIX compliant - "
199 "use gnulib module fdopen for portability");
209 # if @REPLACE_FFLUSH@
210 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
211 # define fflush rpl_fflush
219 #elif defined GNULIB_POSIXCHECK
223 "use gnulib module fflush for portable POSIX compliance");
227 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
228 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
230 # define fgetc rpl_fgetc
241 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
242 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
244 # define fgets rpl_fgets
257 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
259 # define fopen rpl_fopen
268 #elif defined GNULIB_POSIXCHECK
271 _GL_WARN_ON_USE (fopen,
"fopen on native Windows platforms is not POSIX compliant - "
272 "use gnulib module fopen for portability");
275 #if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@
276 # if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \
277 || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@))
278 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
279 # define fprintf rpl_fprintf
281 # define GNULIB_overrides_fprintf 1
282 # if @GNULIB_FPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@
297 #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK
298 # if !GNULIB_overrides_fprintf
303 "use gnulib module fprintf-posix for portable "
314 # if @REPLACE_FPURGE@
315 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
316 # define fpurge rpl_fpurge
321 # if !@HAVE_DECL_FPURGE@
327 #elif defined GNULIB_POSIXCHECK
329 # if HAVE_RAW_DECL_FPURGE
331 "use gnulib module fpurge for portability");
336 # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)
337 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
339 # define fputc rpl_fputc
350 # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)
351 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
353 # define fputs rpl_fputs
365 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
366 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
368 # define fread rpl_fread
370 _GL_FUNCDECL_RPL (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream)
372 _GL_CXXALIAS_RPL (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream));
374 _GL_CXXALIAS_SYS (fread,
size_t, (
void *ptr,
size_t s,
size_t n, FILE *stream));
380 # if @REPLACE_FREOPEN@
381 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
383 # define freopen rpl_freopen
386 (
const char *filename,
const char *
mode, FILE *stream)
389 (
const char *filename,
const char *
mode, FILE *stream));
392 (
const char *filename,
const char *
mode, FILE *stream));
395 #elif defined GNULIB_POSIXCHECK
399 "freopen on native Windows platforms is not POSIX compliant - "
400 "use gnulib module freopen for portability");
404 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
405 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
407 # define fscanf rpl_fscanf
452 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES
453 # define _GL_FSEEK_WARN
457 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
459 # define fseek rpl_fseek
471 # if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES
472 # define _GL_FSEEK_WARN
475 # if @REPLACE_FSEEKO@
478 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
480 # define fseeko rpl_fseeko
486 # if ! @HAVE_DECL_FSEEKO@
493 #elif defined GNULIB_POSIXCHECK
494 # define _GL_FSEEK_WARN
497 # if HAVE_RAW_DECL_FSEEKO
499 "use gnulib module fseeko for portability");
503 #ifdef _GL_FSEEK_WARN
504 # undef _GL_FSEEK_WARN
508 "on 32-bit platforms - "
509 "use fseeko function for handling of large files");
516 # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES
517 # define _GL_FTELL_WARN
521 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
523 # define ftell rpl_ftell
534 # if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES
535 # define _GL_FTELL_WARN
538 # if @REPLACE_FTELLO@
539 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
541 # define ftello rpl_ftello
546 # if ! @HAVE_DECL_FTELLO@
552 #elif defined GNULIB_POSIXCHECK
553 # define _GL_FTELL_WARN
556 # if HAVE_RAW_DECL_FTELLO
558 "use gnulib module ftello for portability");
562 #ifdef _GL_FTELL_WARN
563 # undef _GL_FTELL_WARN
567 "on 32-bit platforms - "
568 "use ftello function for handling of large files");
573 # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)
574 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
576 # define fwrite rpl_fwrite
579 (
const void *ptr,
size_t s,
size_t n, FILE *stream)
582 (
const void *ptr,
size_t s,
size_t n, FILE *stream));
585 (
const void *ptr,
size_t s,
size_t n, FILE *stream));
592 # if (0 < __USE_FORTIFY_LEVEL \
593 && __GLIBC__ == 2 && 4 <= __GLIBC_MINOR__ && __GLIBC_MINOR__ <= 15 \
594 && 3 < __GNUC__ + (4 <= __GNUC_MINOR__) \
595 && !defined __cplusplus)
597 # undef fwrite_unlocked
598 extern size_t __REDIRECT (rpl_fwrite,
599 (
const void *__restrict,
size_t,
size_t,
602 extern size_t __REDIRECT (rpl_fwrite_unlocked,
603 (
const void *__restrict,
size_t,
size_t,
606 # define fwrite rpl_fwrite
607 # define fwrite_unlocked rpl_fwrite_unlocked
614 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
615 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
617 # define getc rpl_fgetc
628 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
629 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
631 # define getchar rpl_getchar
641 #if @GNULIB_GETDELIM@
648 # if @REPLACE_GETDELIM@
649 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
651 # define getdelim rpl_getdelim
654 (
char **lineptr,
size_t *linesize,
int delimiter,
658 (
char **lineptr,
size_t *linesize,
int delimiter,
661 # if !@HAVE_DECL_GETDELIM@
663 (
char **lineptr,
size_t *linesize,
int delimiter,
668 (
char **lineptr,
size_t *linesize,
int delimiter,
672 #elif defined GNULIB_POSIXCHECK
674 # if HAVE_RAW_DECL_GETDELIM
676 "use gnulib module getdelim for portability");
687 # if @REPLACE_GETLINE@
688 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
690 # define getline rpl_getline
693 (
char **lineptr,
size_t *linesize, FILE *stream)
696 (
char **lineptr,
size_t *linesize, FILE *stream));
698 # if !@HAVE_DECL_GETLINE@
700 (
char **lineptr,
size_t *linesize, FILE *stream)
704 (
char **lineptr,
size_t *linesize, FILE *stream));
706 # if @HAVE_DECL_GETLINE@
709 #elif defined GNULIB_POSIXCHECK
711 # if HAVE_RAW_DECL_GETLINE
713 "use gnulib module getline for portability");
721 #if HAVE_RAW_DECL_GETS
726 #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
733 # if @REPLACE_OBSTACK_PRINTF@
734 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
735 # define obstack_printf rpl_obstack_printf
738 (
struct obstack *obs,
const char *format, ...)
742 (
struct obstack *obs,
const char *format, ...));
744 # if !@HAVE_DECL_OBSTACK_PRINTF@
746 (
struct obstack *obs,
const char *format, ...)
751 (
struct obstack *obs,
const char *format, ...));
754 # if @REPLACE_OBSTACK_PRINTF@
755 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
756 # define obstack_vprintf rpl_obstack_vprintf
759 (
struct obstack *obs,
const char *format, va_list args)
763 (
struct obstack *obs,
const char *format, va_list args));
765 # if !@HAVE_DECL_OBSTACK_PRINTF@
767 (
struct obstack *obs,
const char *format, va_list args)
772 (
struct obstack *obs,
const char *format, va_list args));
783 #elif defined GNULIB_POSIXCHECK
785 # if HAVE_RAW_DECL_PCLOSE
787 "use gnulib module pclose for more portability");
795 # if @REPLACE_PERROR@
796 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
797 # define perror rpl_perror
805 #elif defined GNULIB_POSIXCHECK
809 "use gnulib module perror for portability");
814 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
816 # define popen rpl_popen
829 #elif defined GNULIB_POSIXCHECK
831 # if HAVE_RAW_DECL_POPEN
833 "use gnulib module popen or pipe for more portability");
837 #if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@
838 # if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \
839 || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@))
840 # if defined __GNUC__
841 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
843 # define printf __printf__
845 # if @GNULIB_PRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@
847 (
const char *format, ...)
848 __asm__ (@ASM_SYMBOL_PREFIX@
854 (
const char *format, ...)
855 __asm__ (@ASM_SYMBOL_PREFIX@
862 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
863 # define printf rpl_printf
866 (
const char *format, ...)
871 # define GNULIB_overrides_printf 1
877 #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK
878 # if !GNULIB_overrides_printf
883 "use gnulib module printf-posix for portable "
888 # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)
889 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
891 # define putc rpl_fputc
902 # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)
903 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
905 # define putchar rpl_putchar
916 # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)
917 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
919 # define puts rpl_puts
930 # if @REPLACE_REMOVE@
931 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
933 # define remove rpl_remove
941 #elif defined GNULIB_POSIXCHECK
944 _GL_WARN_ON_USE (remove,
"remove cannot handle directories on some platforms - "
945 "use gnulib module remove for more portability");
949 # if @REPLACE_RENAME@
950 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
952 # define rename rpl_rename
955 (
const char *old_filename,
const char *new_filename)
958 (
const char *old_filename,
const char *new_filename));
961 (
const char *old_filename,
const char *new_filename));
964 #elif defined GNULIB_POSIXCHECK
968 "use gnulib module rename for more portability");
971 #if @GNULIB_RENAMEAT@
972 # if @REPLACE_RENAMEAT@
973 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
975 # define renameat rpl_renameat
978 (
int fd1,
char const *file1,
int fd2,
char const *file2)
981 (
int fd1,
char const *file1,
int fd2,
char const *file2));
983 # if !@HAVE_RENAMEAT@
985 (
int fd1,
char const *file1,
int fd2,
char const *file2)
989 (
int fd1,
char const *file1,
int fd2,
char const *file2));
992 #elif defined GNULIB_POSIXCHECK
994 # if HAVE_RAW_DECL_RENAMEAT
996 "use gnulib module renameat for portability");
1001 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
1002 # if defined __GNUC__
1003 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1006 # define scanf __scanf__
1009 (
const char *format, ...)
1010 __asm__ (@ASM_SYMBOL_PREFIX@
1016 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1018 # define scanf rpl_scanf
1031 #if @GNULIB_SNPRINTF@
1032 # if @REPLACE_SNPRINTF@
1033 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1034 # define snprintf rpl_snprintf
1037 (
char *str,
size_t size,
const char *format, ...)
1041 (
char *str,
size_t size,
const char *format, ...));
1043 # if !@HAVE_DECL_SNPRINTF@
1045 (
char *str,
size_t size,
const char *format, ...)
1050 (
char *str,
size_t size,
const char *format, ...));
1053 #elif defined GNULIB_POSIXCHECK
1055 # if HAVE_RAW_DECL_SNPRINTF
1057 "use gnulib module snprintf for portability");
1070 #if @GNULIB_SPRINTF_POSIX@
1071 # if @REPLACE_SPRINTF@
1072 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1073 # define sprintf rpl_sprintf
1083 #elif defined GNULIB_POSIXCHECK
1087 "use gnulib module sprintf-posix for portable "
1088 "POSIX compliance");
1091 #if @GNULIB_TMPFILE@
1092 # if @REPLACE_TMPFILE@
1093 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1094 # define tmpfile rpl_tmpfile
1102 #elif defined GNULIB_POSIXCHECK
1104 # if HAVE_RAW_DECL_TMPFILE
1106 "use gnulib module tmpfile for portability");
1110 #if @GNULIB_VASPRINTF@
1115 # if @REPLACE_VASPRINTF@
1116 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1117 # define asprintf rpl_asprintf
1120 (
char **result,
const char *format, ...)
1124 (
char **result,
const char *format, ...));
1126 # if !@HAVE_VASPRINTF@
1128 (
char **result,
const char *format, ...)
1133 (
char **result,
const char *format, ...));
1136 # if @REPLACE_VASPRINTF@
1137 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1138 # define vasprintf rpl_vasprintf
1141 (
char **result,
const char *format, va_list args)
1145 (
char **result,
const char *format, va_list args));
1147 # if !@HAVE_VASPRINTF@
1149 (
char **result,
const char *format, va_list args)
1154 (
char **result,
const char *format, va_list args));
1159 #if @GNULIB_VDPRINTF@
1160 # if @REPLACE_VDPRINTF@
1161 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1162 # define vdprintf rpl_vdprintf
1164 _GL_FUNCDECL_RPL (vdprintf,
int, (
int fd,
const char *format, va_list args)
1167 _GL_CXXALIAS_RPL (vdprintf,
int, (
int fd,
const char *format, va_list args));
1169 # if !@HAVE_VDPRINTF@
1170 _GL_FUNCDECL_SYS (vdprintf,
int, (
int fd,
const char *format, va_list args)
1177 (
int fd,
const char *format, va_list args));
1180 #elif defined GNULIB_POSIXCHECK
1182 # if HAVE_RAW_DECL_VDPRINTF
1184 "use gnulib module vdprintf for portability");
1188 #if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@
1189 # if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \
1190 || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@))
1191 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1192 # define vfprintf rpl_vfprintf
1194 # define GNULIB_overrides_vfprintf 1
1195 # if @GNULIB_VFPRINTF_POSIX@
1196 _GL_FUNCDECL_RPL (vfprintf,
int, (FILE *fp,
const char *format, va_list args)
1200 _GL_FUNCDECL_RPL (vfprintf,
int, (FILE *fp,
const char *format, va_list args)
1204 _GL_CXXALIAS_RPL (vfprintf,
int, (FILE *fp,
const char *format, va_list args));
1210 (FILE *fp,
const char *format, va_list args));
1214 #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK
1215 # if !GNULIB_overrides_vfprintf
1219 _GL_WARN_ON_USE (vfprintf,
"vfprintf is not always POSIX compliant - "
1220 "use gnulib module vfprintf-posix for portable "
1221 "POSIX compliance");
1224 #if @GNULIB_VFSCANF@
1225 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
1226 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1228 # define vfscanf rpl_vfscanf
1231 (FILE *stream,
const char *format, va_list args)
1235 (FILE *stream,
const char *format, va_list args));
1238 (FILE *stream,
const char *format, va_list args));
1243 #if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@
1244 # if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \
1245 || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@))
1246 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1247 # define vprintf rpl_vprintf
1249 # define GNULIB_overrides_vprintf 1
1250 # if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@
1268 #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK
1269 # if !GNULIB_overrides_vprintf
1274 "use gnulib module vprintf-posix for portable "
1275 "POSIX compliance");
1279 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
1280 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1282 # define vscanf rpl_vscanf
1294 #if @GNULIB_VSNPRINTF@
1295 # if @REPLACE_VSNPRINTF@
1296 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1297 # define vsnprintf rpl_vsnprintf
1300 (
char *str,
size_t size,
const char *format, va_list args)
1304 (
char *str,
size_t size,
const char *format, va_list args));
1306 # if !@HAVE_DECL_VSNPRINTF@
1308 (
char *str,
size_t size,
const char *format, va_list args)
1313 (
char *str,
size_t size,
const char *format, va_list args));
1316 #elif defined GNULIB_POSIXCHECK
1318 # if HAVE_RAW_DECL_VSNPRINTF
1320 "use gnulib module vsnprintf for portability");
1324 #if @GNULIB_VSPRINTF_POSIX@
1325 # if @REPLACE_VSPRINTF@
1326 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1327 # define vsprintf rpl_vsprintf
1330 (
char *str,
const char *format, va_list args)
1334 (
char *str,
const char *format, va_list args));
1340 (
char *str,
const char *format, va_list args));
1343 #elif defined GNULIB_POSIXCHECK
1346 _GL_WARN_ON_USE (vsprintf,
"vsprintf is not always POSIX compliant - "
1347 "use gnulib module vsprintf-posix for portable "
1348 "POSIX compliance");
#define _GL_ARG_NONNULL(params)
A C macro for declaring that specific arguments must not be NULL.
#define _GL_FUNCDECL_RPL_1(rpl_func, rettype, parameters_and_attributes)
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
_GL_CXXALIAS_RPL (func, rettype, parameters); declares a C++ alias called GNULIB_NAMESPACE::func that...
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
_GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes); declares a replacement function,...
#define _GL_CXXALIAS_RPL_1(func, rpl_func, rettype, parameters)
#define _GL_CXXALIAS_SYS_CAST(func, rettype, parameters)
_GL_CXXALIAS_SYS_CAST (func, rettype, parameters); is like _GL_CXXALIAS_SYS (func,...
#define _GL_CXXALIASWARN(func)
_GL_CXXALIASWARN (func); causes a warning to be emitted when ::func is used but not when GNULIB_NAMES...
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
_GL_CXXALIAS_SYS (func, rettype, parameters); declares a C++ alias called GNULIB_NAMESPACE::func that...
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
_GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes); declares the system function,...
#define _GL_WARN_ON_USE(function, message)
A C macro for emitting warnings if a function is used.
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
#define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument)
_GL_ATTRIBUTE_FORMAT_PRINTF indicates to GCC that the function takes a format string and arguments,...
#define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument)
_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_PRINTF, except that it indicates to G...
#define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument)
_GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_SCANF, except that it indicates to GCC...
#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token)
int vasprintf(char **resultp, const char *format, va_list args)
Formatted output to strings.