5 #include <libio/libio.h>
7 /* Alternative names for many of the stdio.h functions, used
8 internally and exposed for backward compatibility's sake. */
10 extern int _IO_fclose (FILE*);
11 extern int _IO_new_fclose (FILE*);
12 extern int _IO_old_fclose (FILE*);
13 extern FILE *_IO_fdopen (int, const char*) __THROW
;
14 libc_hidden_proto (_IO_fdopen
)
15 extern FILE *_IO_old_fdopen (int, const char*) __THROW
;
16 extern FILE *_IO_new_fdopen (int, const char*) __THROW
;
17 extern int _IO_fflush (FILE*);
18 libc_hidden_proto (_IO_fflush
)
19 extern int _IO_fgetpos (FILE*, __fpos_t
*);
20 extern int _IO_fgetpos64 (FILE*, __fpos64_t
*);
21 extern char* _IO_fgets (char*, int, FILE*);
22 extern FILE *_IO_fopen (const char*, const char*);
23 extern FILE *_IO_old_fopen (const char*, const char*);
24 extern FILE *_IO_new_fopen (const char*, const char*);
25 extern FILE *_IO_fopen64 (const char*, const char*);
26 extern FILE *__fopen_internal (const char*, const char*, int)
28 extern FILE *__fopen_maybe_mmap (FILE *) __THROW attribute_hidden
;
29 extern int _IO_fprintf (FILE*, const char*, ...);
30 extern int _IO_fputs (const char*, FILE*);
31 libc_hidden_proto (_IO_fputs
)
32 extern int _IO_fsetpos (FILE*, const __fpos_t
*);
33 extern int _IO_fsetpos64 (FILE*, const __fpos64_t
*);
34 extern long int _IO_ftell (FILE*);
35 libc_hidden_proto (_IO_ftell
)
36 extern size_t _IO_fread (void*, size_t, size_t, FILE*);
37 libc_hidden_proto (_IO_fread
)
38 extern size_t _IO_fwrite (const void*, size_t, size_t, FILE*);
39 libc_hidden_proto (_IO_fwrite
)
40 extern char* _IO_gets (char*);
41 extern void _IO_perror (const char*) __THROW
;
42 extern int _IO_printf (const char*, ...);
43 extern int _IO_puts (const char*);
44 libc_hidden_proto (_IO_puts
)
45 extern int _IO_scanf (const char*, ...);
46 extern void _IO_setbuffer (FILE *, char*, size_t) __THROW
;
47 libc_hidden_proto (_IO_setbuffer
)
48 extern int _IO_setvbuf (FILE*, char*, int, size_t) __THROW
;
49 libc_hidden_proto (_IO_setvbuf
)
50 extern int _IO_sscanf (const char*, const char*, ...) __THROW
;
51 extern int _IO_sprintf (char *, const char*, ...) __THROW
;
52 extern int _IO_ungetc (int, FILE*) __THROW
;
53 extern int _IO_vsscanf (const char *, const char *, __gnuc_va_list
) __THROW
;
54 extern int _IO_vsprintf (char*, const char*, __gnuc_va_list
) __THROW
;
55 libc_hidden_proto (_IO_vsprintf
)
56 extern int _IO_vswprintf (wchar_t*, size_t, const wchar_t*, __gnuc_va_list
)
60 extern int _IO_obstack_vprintf (struct obstack
*, const char *, __gnuc_va_list
)
62 extern int _IO_obstack_printf (struct obstack
*, const char *, ...) __THROW
;
63 #define _IO_clearerr(FP) ((FP)->_flags &= ~(_IO_ERR_SEEN|_IO_EOF_SEEN))
64 #define _IO_fseek(__fp, __offset, __whence) \
65 (_IO_seekoff_unlocked (__fp, __offset, __whence, _IOS_INPUT|_IOS_OUTPUT) \
66 == _IO_pos_BAD ? EOF : 0)
67 #define _IO_rewind(FILE) \
68 (void) _IO_seekoff_unlocked (FILE, 0, 0, _IOS_INPUT|_IOS_OUTPUT)
69 #define _IO_vprintf(FORMAT, ARGS) \
70 _IO_vfprintf (_IO_stdout, FORMAT, ARGS)
71 #define _IO_freopen(FILENAME, MODE, FP) \
72 (_IO_file_close_it (FP), \
73 _IO_file_fopen (FP, FILENAME, MODE, 1))
74 #define _IO_old_freopen(FILENAME, MODE, FP) \
75 (_IO_old_file_close_it (FP), _IO_old_file_fopen(FP, FILENAME, MODE))
76 #define _IO_freopen64(FILENAME, MODE, FP) \
77 (_IO_file_close_it (FP), \
78 _IO_file_fopen (FP, FILENAME, MODE, 0))
79 #define _IO_fileno(FP) ((FP)->_fileno)
80 extern FILE* _IO_popen (const char*, const char*) __THROW
;
81 extern FILE* _IO_new_popen (const char*, const char*) __THROW
;
82 extern FILE* _IO_old_popen (const char*, const char*) __THROW
;
83 extern int __new_pclose (FILE *) __THROW
;
84 extern int __old_pclose (FILE *) __THROW
;
85 #define _IO_pclose _IO_fclose
86 #define _IO_setbuf(_FP, _BUF) _IO_setbuffer (_FP, _BUF, BUFSIZ)
87 #define _IO_setlinebuf(_FP) _IO_setvbuf (_FP, NULL, 1, 0)
89 FILE *__new_freopen (const char *, const char *, FILE *) __THROW
;
90 FILE *__old_freopen (const char *, const char *, FILE *) __THROW
;
92 #endif /* iolibio.h. */