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