stdio.h revision 5112e32d7072e280613921c982a6672f2c859cf3
/*
* Standard I/O definitions.
*
* Derived from the mingw header written by Colin Peters.
* Modified for Wine use by Jon Griffiths and Francois Gouget.
* This file is in the public domain.
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_STDIO_H
#define __WINE_STDIO_H
#include <crtdefs.h>
#ifndef RC_INVOKED
#include <stdarg.h>
#endif
#include <pshpack8.h>
/* file._flag flags */
#define _IOREAD 0x0001
#define _IOWRT 0x0002
#define _IOMYBUF 0x0008
#define _IOEOF 0x0010
#define _IOERR 0x0020
#define _IOSTRG 0x0040
#define _IORW 0x0080
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
/* more file._flag flags, but these conflict with Unix */
#define _IOFBF 0x0000
#define _IONBF 0x0004
#define _IOLBF 0x0040
#define EOF (-1)
#define FILENAME_MAX 260
#define TMP_MAX 0x7fff
#define FOPEN_MAX 20
#define L_tmpnam 260
#define BUFSIZ 512
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#endif
#ifndef _FILE_DEFINED
#define _FILE_DEFINED
typedef struct _iobuf
{
char* _ptr;
int _cnt;
char* _base;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char* _tmpfname;
} FILE;
#endif /* _FILE_DEFINED */
#ifndef _FPOS_T_DEFINED
#define _FPOS_T_DEFINED
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _STDIO_DEFINED
# ifdef __i386__
# else
# define _iob (__iob_func())
# endif
#endif /* _STDIO_DEFINED */
#ifndef _STDIO_DEFINED
#define _STDIO_DEFINED
int __cdecl _fcloseall(void);
int __cdecl _getmaxstdio(void);
int __cdecl _setmaxstdio(int);
#ifndef _WSTDIO_DEFINED
#define _WSTDIO_DEFINED
#endif /* _WSTDIO_DEFINED */
#endif /* _STDIO_DEFINED */
#ifdef __cplusplus
}
#endif
#ifndef _UNLINK_DEFINED
#define _UNLINK_DEFINED
#endif
static inline int vsnprintf(char *buffer, size_t size, const char *format, __ms_va_list args) { return _vsnprintf(buffer,size,format,args); }
static inline FILE* wpopen(const wchar_t* command,const wchar_t* mode) { return _wpopen(command, mode); }
#include <poppack.h>
#endif /* __WINE_STDIO_H */