xref: /haiku/headers/posix/stdio_ext.h (revision 893988af824e65e49e55f517b157db8386e8002b)
1 /*
2  * Copyright 2008, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT/X11 License.
4  */
5 #ifndef _STDIO_EXT_H_
6 #define _STDIO_EXT_H_
7 
8 #include <stdio.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #define FSETLOCKING_QUERY		0
15 #define FSETLOCKING_INTERNAL	1
16 #define FSETLOCKING_BYCALLER	2
17 
18 /* The following stdio extensions are not implemented yet */
19 /* extern size_t	__fufsize(FILE* stream); */
20 extern int		__freading(FILE* stream);
21 /* extern int		__fwriting(FILE* stream); */
22 /* extern int		__freadable(FILE* stream); */
23 /* extern int		__fwritable(FILE* stream); */
24 /* extern int		__flbf(FILE* stream); */
25 extern void		__fpurge(FILE* stream);
26 /* extern size_t	__fpending(FILE* stream); */
27 
28 extern void		_flushlbf(void);
29 extern int		__fsetlocking(FILE* stream, int type);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif /* _STDIO_EXT_H_ */
36 
37