Ticket #2078: stdio_ext_h.patch

File stdio_ext_h.patch, 1.1 KB (added by umccullough, 5 months ago)

stdio_ext.h file with the currently supported methods

  • headers/posix/stdio_ext.h

     
     1/* 
     2 * Copyright 2008, 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#include <stdio.h> 
     9 
     10#ifdef __cplusplus 
     11extern "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 
     28extern void             _flushlbf(void); 
     29extern int              __fsetlocking(FILE *stream, int type); 
     30 
     31#ifdef __cplusplus 
     32} 
     33#endif 
     34 
     35#endif /* _STDIO_EXT_H_ */ 
     36