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