~ubuntu-branches/ubuntu/karmic/fastjar/karmic-security

« back to all changes in this revision

Viewing changes to lib/stdio.in.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-09 11:45:33 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090909114533-72sxsqnxfctc9xck
Tags: 2:0.98-1
* New upstream release.
* Bump policy version to 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
   along with this program; if not, write to the Free Software Foundation,
17
17
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
18
 
 
19
#if __GNUC__ >= 3
 
20
@PRAGMA_SYSTEM_HEADER@
 
21
#endif
 
22
 
19
23
#if defined __need_FILE || defined __need___FILE
20
24
/* Special invocation convention inside glibc header files.  */
21
25
 
71
75
extern int fprintf (FILE *fp, const char *format, ...)
72
76
       __attribute__ ((__format__ (__printf__, 2, 3)));
73
77
# endif
 
78
#elif @GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
79
# define fprintf rpl_fprintf
 
80
extern int fprintf (FILE *fp, const char *format, ...)
 
81
       __attribute__ ((__format__ (__printf__, 2, 3)));
74
82
#elif defined GNULIB_POSIXCHECK
75
83
# undef fprintf
76
84
# define fprintf \
86
94
extern int vfprintf (FILE *fp, const char *format, va_list args)
87
95
       __attribute__ ((__format__ (__printf__, 2, 0)));
88
96
# endif
 
97
#elif @GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
98
# define vfprintf rpl_vfprintf
 
99
extern int vfprintf (FILE *fp, const char *format, va_list args)
 
100
       __attribute__ ((__format__ (__printf__, 2, 0)));
89
101
#elif defined GNULIB_POSIXCHECK
90
102
# undef vfprintf
91
103
# define vfprintf(s,f,a) \
102
114
extern int printf (const char *format, ...)
103
115
       __attribute__ ((__format__ (__printf__, 1, 2)));
104
116
# endif
 
117
#elif @GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
118
/* Don't break __attribute__((format(printf,M,N))).  */
 
119
# define printf __printf__
 
120
extern int printf (const char *format, ...)
 
121
       __attribute__ ((__format__ (__printf__, 1, 2)));
105
122
#elif defined GNULIB_POSIXCHECK
106
123
# undef printf
107
124
# define printf \
124
141
extern int vprintf (const char *format, va_list args)
125
142
       __attribute__ ((__format__ (__printf__, 1, 0)));
126
143
# endif
 
144
#elif @GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
145
# define vprintf rpl_vprintf
 
146
extern int vprintf (const char *format, va_list args)
 
147
       __attribute__ ((__format__ (__printf__, 1, 0)));
127
148
#elif defined GNULIB_POSIXCHECK
128
149
# undef vprintf
129
150
# define vprintf(f,a) \
234
255
 
235
256
#if @GNULIB_FOPEN@
236
257
# if @REPLACE_FOPEN@
 
258
#  undef fopen
237
259
#  define fopen rpl_fopen
238
260
extern FILE * fopen (const char *filename, const char *mode);
239
261
# endif
247
269
 
248
270
#if @GNULIB_FREOPEN@
249
271
# if @REPLACE_FREOPEN@
 
272
#  undef freopen
250
273
#  define freopen rpl_freopen
251
274
extern FILE * freopen (const char *filename, const char *mode, FILE *stream);
252
275
# endif
352
375
    fflush (f))
353
376
#endif
354
377
 
 
378
#if @GNULIB_FCLOSE@
 
379
# if @REPLACE_FCLOSE@
 
380
#  define fclose rpl_fclose
 
381
  /* Close STREAM and its underlying file descriptor.  */
 
382
extern int fclose (FILE *stream);
 
383
# endif
 
384
#elif defined GNULIB_POSIXCHECK
 
385
# undef fclose
 
386
# define fclose(f) \
 
387
   (GL_LINK_WARNING ("fclose is not always POSIX compliant - " \
 
388
                     "use gnulib module fclose for portable " \
 
389
                     "POSIX compliance"), \
 
390
    fclose (f))
 
391
#endif
 
392
 
 
393
#if @GNULIB_FPUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
394
# undef fputc
 
395
# define fputc rpl_fputc
 
396
extern int fputc (int c, FILE *stream);
 
397
#endif
 
398
 
 
399
#if @GNULIB_PUTC@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
400
# undef putc
 
401
# define putc rpl_fputc
 
402
extern int putc (int c, FILE *stream);
 
403
#endif
 
404
 
 
405
#if @GNULIB_PUTCHAR@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
406
# undef putchar
 
407
# define putchar rpl_putchar
 
408
extern int putchar (int c);
 
409
#endif
 
410
 
 
411
#if @GNULIB_FPUTS@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
412
# undef fputs
 
413
# define fputs rpl_fputs
 
414
extern int fputs (const char *string, FILE *stream);
 
415
#endif
 
416
 
 
417
#if @GNULIB_PUTS@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
418
# undef puts
 
419
# define puts rpl_puts
 
420
extern int puts (const char *string);
 
421
#endif
 
422
 
 
423
#if @GNULIB_FWRITE@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@
 
424
# undef fwrite
 
425
# define fwrite rpl_fwrite
 
426
extern size_t fwrite (const void *ptr, size_t s, size_t n, FILE *stream);
 
427
#endif
 
428
 
355
429
#if @GNULIB_GETDELIM@
356
430
# if !@HAVE_DECL_GETDELIM@
357
431
/* Read input, up to (and including) the next occurrence of DELIMITER, from
393
467
   getline (l, s, f))
394
468
#endif
395
469
 
 
470
#if @GNULIB_PERROR@
 
471
# if @REPLACE_PERROR@
 
472
#  define perror rpl_perror
 
473
/* Print a message to standard error, describing the value of ERRNO,
 
474
   (if STRING is not NULL and not empty) prefixed with STRING and ": ",
 
475
   and terminated with a newline.  */
 
476
extern void perror (const char *string);
 
477
# endif
 
478
#elif defined GNULIB_POSIXCHECK
 
479
# undef perror
 
480
# define perror(s) \
 
481
    (GL_LINK_WARNING ("perror is not always POSIX compliant - " \
 
482
                      "use gnulib module perror for portability"), \
 
483
     perror (s))
 
484
#endif
 
485
 
396
486
#ifdef __cplusplus
397
487
}
398
488
#endif