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 12extern "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); */ 21extern 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); */ 26extern void __fpurge(FILE* stream); 27/* extern size_t __fpending(FILE* stream); */ 28 29extern void _flushlbf(void); 30extern int __fsetlocking(FILE* stream, int type); 31 32#ifdef __cplusplus 33} 34#endif 35 36#endif /* _STDIO_EXT_H_ */ 37 38