2001-04-11 01:21:43 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_STDIO_H
|
|
|
|
#define __WINE_STDIO_H
|
|
|
|
|
2008-12-11 22:37:34 +01:00
|
|
|
#include <crtdefs.h>
|
2007-02-20 09:35:41 +01:00
|
|
|
|
2001-05-07 20:18:33 +02:00
|
|
|
#ifndef RC_INVOKED
|
2001-04-11 01:21:43 +02:00
|
|
|
#include <stdarg.h>
|
2001-05-07 20:18:33 +02:00
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2008-12-11 22:37:34 +01:00
|
|
|
#include <pshpack8.h>
|
2007-06-06 13:12:57 +02:00
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
/* file._flag flags */
|
2001-10-15 19:50:55 +02:00
|
|
|
#define _IOREAD 0x0001
|
|
|
|
#define _IOWRT 0x0002
|
|
|
|
#define _IOMYBUF 0x0008
|
|
|
|
#define _IOEOF 0x0010
|
|
|
|
#define _IOERR 0x0020
|
|
|
|
#define _IOSTRG 0x0040
|
|
|
|
#define _IORW 0x0080
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2002-12-18 21:17:20 +01:00
|
|
|
#ifndef NULL
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#define NULL 0
|
|
|
|
#else
|
|
|
|
#define NULL ((void *)0)
|
|
|
|
#endif
|
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
|
|
|
#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
|
2003-10-24 02:23:51 +02:00
|
|
|
#define TMP_MAX 0x7fff
|
2001-04-11 01:21:43 +02:00
|
|
|
#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
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _FILE_DEFINED
|
|
|
|
#define _FILE_DEFINED
|
|
|
|
typedef struct _iobuf
|
2001-04-11 01:21:43 +02:00
|
|
|
{
|
|
|
|
char* _ptr;
|
|
|
|
int _cnt;
|
|
|
|
char* _base;
|
|
|
|
int _flag;
|
|
|
|
int _file;
|
|
|
|
int _charbuf;
|
|
|
|
int _bufsiz;
|
|
|
|
char* _tmpfname;
|
2004-06-25 03:19:15 +02:00
|
|
|
} FILE;
|
|
|
|
#endif /* _FILE_DEFINED */
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _FPOS_T_DEFINED
|
2009-11-21 14:23:22 +01:00
|
|
|
typedef __int64 DECLSPEC_ALIGN(8) fpos_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _FPOS_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _STDIO_DEFINED
|
2008-12-17 17:38:02 +01:00
|
|
|
# ifdef __i386__
|
|
|
|
FILE* __cdecl __p__iob(void);
|
|
|
|
# define _iob (__p__iob())
|
|
|
|
# else
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl __iob_func(void);
|
2008-12-17 17:38:02 +01:00
|
|
|
# define _iob (__iob_func())
|
|
|
|
# endif
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _STDIO_DEFINED */
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#define stdin (_iob+STDIN_FILENO)
|
|
|
|
#define stdout (_iob+STDOUT_FILENO)
|
|
|
|
#define stderr (_iob+STDERR_FILENO)
|
|
|
|
|
2011-03-08 20:41:07 +01:00
|
|
|
/* return value for _get_output_format */
|
|
|
|
#define _TWO_DIGIT_EXPONENT 0x1
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _STDIO_DEFINED
|
|
|
|
#define _STDIO_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _fcloseall(void);
|
|
|
|
FILE* __cdecl _fdopen(int,const char*);
|
|
|
|
int __cdecl _fgetchar(void);
|
|
|
|
int __cdecl _filbuf(FILE*);
|
|
|
|
int __cdecl _fileno(FILE*);
|
|
|
|
int __cdecl _flsbuf(int,FILE*);
|
|
|
|
int __cdecl _flushall(void);
|
|
|
|
int __cdecl _fputchar(int);
|
|
|
|
FILE* __cdecl _fsopen(const char*,const char*,int);
|
2011-04-27 20:09:00 +02:00
|
|
|
int __cdecl _get_printf_count_output(void);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _getmaxstdio(void);
|
|
|
|
int __cdecl _getw(FILE*);
|
|
|
|
int __cdecl _pclose(FILE*);
|
|
|
|
FILE* __cdecl _popen(const char*,const char*);
|
|
|
|
int __cdecl _putw(int,FILE*);
|
|
|
|
int __cdecl _rmtmp(void);
|
2011-04-27 20:09:00 +02:00
|
|
|
int __cdecl _set_printf_count_output(int);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _setmaxstdio(int);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _snprintf(char*,size_t,const char*,...);
|
|
|
|
int WINAPIV _snprintf_s(char*,size_t,size_t,const char*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
char* __cdecl _tempnam(const char*,const char*);
|
|
|
|
int __cdecl _unlink(const char*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _scprintf(const char*,...);
|
2009-03-26 12:45:59 +01:00
|
|
|
int __cdecl _vscprintf(const char*,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl _vsnprintf(char*,size_t,const char*,__ms_va_list);
|
2010-06-16 23:42:49 +02:00
|
|
|
int __cdecl _vsnprintf_s(char*,size_t,size_t,const char*,__ms_va_list);
|
2012-12-12 11:15:33 +01:00
|
|
|
int __cdecl _vsprintf_p_l(char*,size_t,const char*,_locale_t,__ms_va_list);
|
2008-12-17 14:45:18 +01:00
|
|
|
|
2014-10-09 19:51:55 +02:00
|
|
|
size_t __cdecl _fread_nolock(void*,size_t,size_t,FILE*);
|
2014-11-09 20:17:45 +01:00
|
|
|
size_t __cdecl _fread_nolock_s(void*,size_t,size_t,size_t,FILE*);
|
2014-10-09 19:51:59 +02:00
|
|
|
size_t __cdecl _fwrite_nolock(const void*,size_t,size_t,FILE*);
|
2014-10-09 19:51:55 +02:00
|
|
|
int __cdecl _fclose_nolock(FILE*);
|
2014-10-20 21:03:16 +02:00
|
|
|
int __cdecl _fflush_nolock(FILE*);
|
2014-10-28 14:43:43 +01:00
|
|
|
int __cdecl _fgetc_nolock(FILE*);
|
2014-11-04 22:51:43 +01:00
|
|
|
int __cdecl _fputc_nolock(int,FILE*);
|
2014-10-15 16:47:46 +02:00
|
|
|
int __cdecl _fseek_nolock(FILE*,__msvcrt_long,int);
|
2014-10-15 16:47:07 +02:00
|
|
|
int __cdecl _fseeki64_nolock(FILE*,__int64,int);
|
2014-10-15 16:46:30 +02:00
|
|
|
__msvcrt_long __cdecl _ftell_nolock(FILE*);
|
2014-10-15 16:46:01 +02:00
|
|
|
__int64 __cdecl _ftelli64_nolock(FILE*);
|
2014-11-05 22:55:44 +01:00
|
|
|
int __cdecl _getc_nolock(FILE*);
|
2014-11-05 22:55:57 +01:00
|
|
|
int __cdecl _putc_nolock(int,FILE*);
|
2014-11-04 22:52:03 +01:00
|
|
|
int __cdecl _ungetc_nolock(int,FILE*);
|
2014-10-09 19:51:55 +02:00
|
|
|
|
2008-12-17 14:45:18 +01:00
|
|
|
void __cdecl clearerr(FILE*);
|
2017-09-26 00:30:12 +02:00
|
|
|
errno_t __cdecl clearerr_s(FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl fclose(FILE*);
|
|
|
|
int __cdecl feof(FILE*);
|
|
|
|
int __cdecl ferror(FILE*);
|
|
|
|
int __cdecl fflush(FILE*);
|
|
|
|
int __cdecl fgetc(FILE*);
|
|
|
|
int __cdecl fgetpos(FILE*,fpos_t*);
|
|
|
|
char* __cdecl fgets(char*,int,FILE*);
|
|
|
|
FILE* __cdecl fopen(const char*,const char*);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl fopen_s(FILE**,const char*,const char*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV fprintf(FILE*,const char*,...);
|
|
|
|
int WINAPIV fprintf_s(FILE*,const char*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl fputc(int,FILE*);
|
|
|
|
int __cdecl fputs(const char*,FILE*);
|
|
|
|
size_t __cdecl fread(void*,size_t,size_t,FILE*);
|
2014-11-09 20:17:45 +01:00
|
|
|
size_t __cdecl fread_s(void*,size_t,size_t,size_t,FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl freopen(const char*,const char*,FILE*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV fscanf(FILE*,const char*,...);
|
|
|
|
int WINAPIV fscanf_s(FILE*,const char*,...);
|
2009-05-23 11:38:59 +02:00
|
|
|
int __cdecl fseek(FILE*,__msvcrt_long,int);
|
2010-11-03 13:33:12 +01:00
|
|
|
int __cdecl _fseeki64(FILE*,__int64,int);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl fsetpos(FILE*,fpos_t*);
|
2009-05-23 11:38:59 +02:00
|
|
|
__msvcrt_long __cdecl ftell(FILE*);
|
2010-11-03 13:33:12 +01:00
|
|
|
__int64 __cdecl _ftelli64(FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
size_t __cdecl fwrite(const void*,size_t,size_t,FILE*);
|
|
|
|
int __cdecl getc(FILE*);
|
|
|
|
int __cdecl getchar(void);
|
|
|
|
char* __cdecl gets(char*);
|
|
|
|
void __cdecl perror(const char*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV printf(const char*,...);
|
|
|
|
int WINAPIV printf_s(const char*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl putc(int,FILE*);
|
|
|
|
int __cdecl putchar(int);
|
|
|
|
int __cdecl puts(const char*);
|
|
|
|
int __cdecl remove(const char*);
|
|
|
|
int __cdecl rename(const char*,const char*);
|
|
|
|
void __cdecl rewind(FILE*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV scanf(const char*,...);
|
|
|
|
int WINAPIV scanf_s(const char*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
void __cdecl setbuf(FILE*,char*);
|
|
|
|
int __cdecl setvbuf(FILE*,char*,int,size_t);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV sprintf(char*,const char*,...);
|
|
|
|
int WINAPIV sprintf_s(char*,size_t,const char*,...);
|
|
|
|
int WINAPIV _scprintf(const char *, ...);
|
|
|
|
int WINAPIV sscanf(const char*,const char*,...);
|
|
|
|
int WINAPIV sscanf_s(const char*,const char*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl tmpfile(void);
|
|
|
|
char* __cdecl tmpnam(char*);
|
|
|
|
int __cdecl ungetc(int,FILE*);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vfprintf(FILE*,const char*,__ms_va_list);
|
2010-11-24 21:12:35 +01:00
|
|
|
int __cdecl vfprintf_s(FILE*,const char*,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vprintf(const char*,__ms_va_list);
|
2010-11-24 21:25:30 +01:00
|
|
|
int __cdecl vprintf_s(const char*,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vsprintf(char*,const char*,__ms_va_list);
|
2010-06-16 23:42:49 +02:00
|
|
|
int __cdecl vsprintf_s(char*,size_t,const char*,__ms_va_list);
|
2011-03-08 20:41:07 +01:00
|
|
|
unsigned int __cdecl _get_output_format(void);
|
2013-03-27 10:39:30 +01:00
|
|
|
unsigned int __cdecl _set_output_format(void);
|
2004-06-25 03:19:15 +02:00
|
|
|
|
|
|
|
#ifndef _WSTDIO_DEFINED
|
|
|
|
#define _WSTDIO_DEFINED
|
2014-10-28 14:43:47 +01:00
|
|
|
wint_t __cdecl _fgetwc_nolock(FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl _fgetwchar(void);
|
2014-11-04 22:51:52 +01:00
|
|
|
wint_t __cdecl _fputwc_nolock(wint_t,FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl _fputwchar(wint_t);
|
2014-11-05 22:55:50 +01:00
|
|
|
wint_t __cdecl _getwc_nolock(FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _getws(wchar_t*);
|
2014-11-05 22:56:11 +01:00
|
|
|
wint_t __cdecl _putwc_nolock(wint_t,FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _putws(const wchar_t*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _snwprintf(wchar_t*,size_t,const wchar_t*,...);
|
|
|
|
int WINAPIV _snwprintf_s(wchar_t*,size_t,size_t,const wchar_t*,...);
|
|
|
|
int WINAPIV _scwprintf(const wchar_t*,...);
|
2014-11-04 22:52:11 +01:00
|
|
|
wint_t __cdecl _ungetwc_nolock(wint_t,FILE*);
|
2009-03-26 12:45:59 +01:00
|
|
|
int __cdecl _vscwprintf(const wchar_t*,__ms_va_list);
|
2013-04-30 14:28:34 +02:00
|
|
|
int __cdecl _vscwprintf_p_l(const wchar_t*,_locale_t,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl _vsnwprintf(wchar_t*,size_t,const wchar_t*,__ms_va_list);
|
2010-06-16 23:42:49 +02:00
|
|
|
int __cdecl _vsnwprintf_s(wchar_t*,size_t,size_t,const wchar_t*,__ms_va_list);
|
2011-09-20 10:32:29 +02:00
|
|
|
int __cdecl _vswprintf_p_l(wchar_t*,size_t,const wchar_t*,_locale_t,__ms_va_list);
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl _wfdopen(int,const wchar_t*);
|
|
|
|
FILE* __cdecl _wfopen(const wchar_t*,const wchar_t*);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl _wfopen_s(FILE**,const wchar_t*,const wchar_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl _wfreopen(const wchar_t*,const wchar_t*,FILE*);
|
|
|
|
FILE* __cdecl _wfsopen(const wchar_t*,const wchar_t*,int);
|
|
|
|
void __cdecl _wperror(const wchar_t*);
|
|
|
|
FILE* __cdecl _wpopen(const wchar_t*,const wchar_t*);
|
|
|
|
int __cdecl _wremove(const wchar_t*);
|
|
|
|
wchar_t* __cdecl _wtempnam(const wchar_t*,const wchar_t*);
|
|
|
|
wchar_t* __cdecl _wtmpnam(wchar_t*);
|
|
|
|
|
|
|
|
wint_t __cdecl fgetwc(FILE*);
|
|
|
|
wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
|
|
|
|
wint_t __cdecl fputwc(wint_t,FILE*);
|
|
|
|
int __cdecl fputws(const wchar_t*,FILE*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV fwprintf(FILE*,const wchar_t*,...);
|
|
|
|
int WINAPIV fwprintf_s(FILE*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl fputws(const wchar_t*,FILE*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV fwscanf(FILE*,const wchar_t*,...);
|
|
|
|
int WINAPIV fwscanf_s(FILE*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl getwc(FILE*);
|
|
|
|
wint_t __cdecl getwchar(void);
|
|
|
|
wchar_t* __cdecl getws(wchar_t*);
|
|
|
|
wint_t __cdecl putwc(wint_t,FILE*);
|
|
|
|
wint_t __cdecl putwchar(wint_t);
|
|
|
|
int __cdecl putws(const wchar_t*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV swprintf_s(wchar_t*,size_t,const wchar_t*,...);
|
|
|
|
int WINAPIV swscanf(const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV swscanf_s(const wchar_t*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl ungetwc(wint_t,FILE*);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vfwprintf(FILE*,const wchar_t*,__ms_va_list);
|
2010-11-24 21:12:35 +01:00
|
|
|
int __cdecl vfwprintf_s(FILE*,const wchar_t*,__ms_va_list);
|
2010-06-16 23:42:49 +02:00
|
|
|
int __cdecl vswprintf_s(wchar_t*,size_t,const wchar_t*,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vwprintf(const wchar_t*,__ms_va_list);
|
2010-11-24 21:25:30 +01:00
|
|
|
int __cdecl vwprintf_s(const wchar_t*,__ms_va_list);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV wprintf(const wchar_t*,...);
|
|
|
|
int WINAPIV wprintf_s(const wchar_t*,...);
|
|
|
|
int WINAPIV wscanf(const wchar_t*,...);
|
|
|
|
int WINAPIV wscanf_s(const wchar_t*,...);
|
2019-04-11 10:04:28 +02:00
|
|
|
|
|
|
|
#ifdef _CRT_NON_CONFORMING_SWPRINTFS
|
|
|
|
int WINAPIV swprintf(wchar_t*,const wchar_t*,...);
|
|
|
|
int __cdecl vswprintf(wchar_t*,const wchar_t*,__ms_va_list);
|
|
|
|
#else /* _CRT_NON_CONFORMING_SWPRINTFS */
|
|
|
|
static inline int vswprintf(wchar_t *buffer, size_t size, const wchar_t *format, __ms_va_list args) { return _vsnwprintf(buffer,size,format,args); }
|
|
|
|
static inline int WINAPIV swprintf(wchar_t *buffer, size_t size, const wchar_t *format, ...)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
__ms_va_list args;
|
|
|
|
|
|
|
|
__ms_va_start(args, format);
|
|
|
|
ret = _vsnwprintf(buffer, size, format, args);
|
|
|
|
__ms_va_end(args);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
#endif /* _CRT_NON_CONFORMING_SWPRINTFS */
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WSTDIO_DEFINED */
|
|
|
|
|
|
|
|
#endif /* _STDIO_DEFINED */
|
2001-04-11 01:21:43 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
static inline FILE* fdopen(int fd, const char *mode) { return _fdopen(fd, mode); }
|
2003-03-22 22:15:41 +01:00
|
|
|
static inline int fgetchar(void) { return _fgetchar(); }
|
2004-06-25 03:19:15 +02:00
|
|
|
static inline int fileno(FILE* file) { return _fileno(file); }
|
2003-03-22 22:15:41 +01:00
|
|
|
static inline int fputchar(int c) { return _fputchar(c); }
|
2004-06-25 03:19:15 +02:00
|
|
|
static inline int pclose(FILE* file) { return _pclose(file); }
|
|
|
|
static inline FILE* popen(const char* command, const char* mode) { return _popen(command, mode); }
|
2003-03-22 22:15:41 +01:00
|
|
|
static inline char* tempnam(const char *dir, const char *prefix) { return _tempnam(dir, prefix); }
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _UNLINK_DEFINED
|
2003-01-11 23:49:54 +01:00
|
|
|
static inline int unlink(const char* path) { return _unlink(path); }
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _UNLINK_DEFINED
|
2003-01-11 23:49:54 +01:00
|
|
|
#endif
|
2009-01-06 21:09:58 +01:00
|
|
|
static inline int vsnprintf(char *buffer, size_t size, const char *format, __ms_va_list args) { return _vsnprintf(buffer,size,format,args); }
|
2019-05-29 09:10:01 +02:00
|
|
|
#define snprintf _snprintf
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
static inline wint_t fgetwchar(void) { return _fgetwchar(); }
|
|
|
|
static inline wint_t fputwchar(wint_t wc) { return _fputwchar(wc); }
|
|
|
|
static inline int getw(FILE* file) { return _getw(file); }
|
|
|
|
static inline int putw(int val, FILE* file) { return _putw(val, file); }
|
|
|
|
static inline FILE* wpopen(const wchar_t* command,const wchar_t* mode) { return _wpopen(command, mode); }
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#endif /* __WINE_STDIO_H */
|