2008-09-30 14:04:22 +04:00
|
|
|
/*
|
2012-07-19 22:11:40 +04:00
|
|
|
* Copyright 2008-2012 Haiku, Inc. All Rights Reserved.
|
2010-11-04 00:46:47 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
2008-09-30 14:04:22 +04:00
|
|
|
*/
|
|
|
|
#ifndef _STDIO_EXT_H_
|
|
|
|
#define _STDIO_EXT_H_
|
|
|
|
|
2010-11-04 00:46:47 +03:00
|
|
|
|
2008-09-30 14:04:22 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define FSETLOCKING_QUERY 0
|
|
|
|
#define FSETLOCKING_INTERNAL 1
|
|
|
|
#define FSETLOCKING_BYCALLER 2
|
|
|
|
|
|
|
|
/* The following stdio extensions are not implemented yet */
|
|
|
|
/* extern size_t __fufsize(FILE* stream); */
|
2008-10-31 16:02:40 +03:00
|
|
|
extern int __freading(FILE* stream);
|
2008-09-30 14:04:22 +04:00
|
|
|
/* extern int __fwriting(FILE* stream); */
|
|
|
|
/* extern int __freadable(FILE* stream); */
|
|
|
|
/* extern int __fwritable(FILE* stream); */
|
|
|
|
/* extern int __flbf(FILE* stream); */
|
2008-10-31 16:02:40 +03:00
|
|
|
extern void __fpurge(FILE* stream);
|
2008-09-30 14:04:22 +04:00
|
|
|
/* extern size_t __fpending(FILE* stream); */
|
|
|
|
|
|
|
|
extern void _flushlbf(void);
|
|
|
|
extern int __fsetlocking(FILE* stream, int type);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _STDIO_EXT_H_ */
|
|
|
|
|