]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/stdio.h
Add prototypes for internal sigpause interfaces.
[thirdparty/glibc.git] / include / stdio.h
CommitLineData
6796bc80 1#ifndef _STDIO_H
d1646309 2# if defined __need_FILE || defined __need___FILE
ab58d620
UD
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>
bdbf022d
UD
11
12/* Now define the internal interfaces. */
aaa8d85c
UD
13extern int __fcloseall (void);
14extern int __snprintf (char *__restrict __s, size_t __maxlen,
15 __const char *__restrict __format, ...)
bdbf022d 16 __attribute__ ((__format__ (__printf__, 3, 4)));
aaa8d85c
UD
17extern int __vfscanf (FILE *__restrict __s,
18 __const char *__restrict __format,
19 _G_va_list __arg)
bdbf022d 20 __attribute__ ((__format__ (__scanf__, 2, 0)));
aaa8d85c
UD
21extern int __vscanf (__const char *__restrict __format,
22 _G_va_list __arg)
bdbf022d 23 __attribute__ ((__format__ (__scanf__, 1, 0)));
aaa8d85c
UD
24extern _IO_ssize_t __getline (char **__lineptr, size_t *__n,
25 FILE *__stream);
26extern int __vsscanf (__const char *__restrict __s,
27 __const char *__restrict __format,
28 _G_va_list __arg)
bfce746a 29 __attribute__ ((__format__ (__scanf__, 2, 0)));
bdbf022d 30
ab58d620
UD
31# else
32# include <stdio/stdio.h>
33# endif
992af677 34
ab58d620
UD
35# define __need_size_t
36# include <stddef.h>
992af677 37/* Generate a unique file name (and possibly open it). */
aaa8d85c
UD
38extern int __path_search (char *__tmpl, size_t __tmpl_len,
39 __const char *__dir, __const char *__pfx,
40 int __try_tempdir);
992af677 41
aaa8d85c 42extern int __gen_tempname (char *__tmpl, int __kind);
2e65ca2b 43/* The __kind argument to __gen_tempname may be one of: */
ab58d620
UD
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 */
992af677
UD
48
49/* Print out MESSAGE on the error output and abort. */
aaa8d85c 50extern void __libc_fatal (__const char *__message)
992af677
UD
51 __attribute__ ((__noreturn__));
52
d4b0774f
AJ
53/* Acquire ownership of STREAM. */
54extern void __flockfile (FILE *__stream);
55
56/* Relinquish the ownership granted for STREAM. */
57extern void __funlockfile (FILE *__stream);
d1646309 58
dd040747
AJ
59/* Try to acquire ownership of STREAM but do not block if it is not
60 possible. */
61extern int __ftrylockfile (FILE *__stream);
62
ab58d620 63# endif
60876a75 64
6796bc80 65#endif