Update.
[platform/upstream/glibc.git] / include / stdio.h
1 #ifndef _STDIO_H
2 #ifdef USE_IN_LIBIO
3 #ifdef __need_FILE
4 # include <libio/stdio.h>
5 #else
6 # include <libio/stdio.h>
7
8 /* Now define the internal interfaces.  */
9 extern int __fcloseall __P ((void));
10 extern int __snprintf __P ((char *__restrict __s, size_t __maxlen,
11                             __const char *__restrict __format, ...))
12      __attribute__ ((__format__ (__printf__, 3, 4)));
13 extern int __vfscanf __P ((FILE *__restrict __s,
14                            __const char *__restrict __format,
15                            _G_va_list __arg))
16      __attribute__ ((__format__ (__scanf__, 2, 0)));
17 extern int __vscanf __P ((__const char *__restrict __format,
18                           _G_va_list __arg))
19      __attribute__ ((__format__ (__scanf__, 1, 0)));
20 extern _IO_ssize_t __getline __P ((char **__lineptr, size_t *__n,
21                                    FILE *__stream));
22 extern int __vsscanf __P ((__const char *__restrict __s,
23                            __const char *__restrict __format,
24                            _G_va_list __arg))
25      __attribute__ ((__format__ (__scanf__, 2, 0)));
26
27 #endif
28 #else
29 #include <stdio/stdio.h>
30 #endif
31
32 # define __need_size_t
33 # include <stddef.h>
34 /* Generate a unique file name (and possibly open it).  */
35 extern int __path_search __P ((char *__tmpl, size_t __tmpl_len,
36                                __const char *__dir, __const char *__pfx,
37                                int __try_tempdir));
38
39 extern int __gen_tempname __P ((char *__tmpl, int __kind));
40 /* The __kind argument to __gen_tempname may be one of: */
41 #define __GT_FILE       0       /* create a file */
42 #define __GT_BIGFILE    1       /* create a file, using open64 */
43 #define __GT_DIR        2       /* create a directory */
44 #define __GT_NOCREATE   3       /* just find a name not currently in use */
45
46 /* Print out MESSAGE on the error output and abort.  */
47 extern void __libc_fatal __P ((__const char *__message))
48      __attribute__ ((__noreturn__));
49
50
51 #endif