Commit 821f4775 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

- Prefix many more functions, types, structs, etc. with MSVCRT_.

- Correct prototypes for _memccpy()/_memicmp(). - "define before use" reordering in file.c. - Use the new math.h/float.h.
parent 5feedfdc
...@@ -36,18 +36,17 @@ ...@@ -36,18 +36,17 @@
#include "msvcrt/errno.h" #include "msvcrt/errno.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "msvcrt/direct.h"
#include "msvcrt/dos.h"
#include "msvcrt/io.h" #include "msvcrt/io.h"
#include "msvcrt/stdlib.h" #include "msvcrt/stdlib.h"
#include "msvcrt/string.h" #include "msvcrt/string.h"
#include "msvcrt/dos.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
/* INTERNAL: Translate WIN32_FIND_DATAA to finddata_t */ /* INTERNAL: Translate WIN32_FIND_DATAA to finddata_t */
static void msvcrt_fttofd( const WIN32_FIND_DATAA *fd, struct _finddata_t* ft) static void msvcrt_fttofd( const WIN32_FIND_DATAA *fd, struct MSVCRT__finddata_t* ft)
{ {
DWORD dw; DWORD dw;
...@@ -67,7 +66,7 @@ static void msvcrt_fttofd( const WIN32_FIND_DATAA *fd, struct _finddata_t* ft) ...@@ -67,7 +66,7 @@ static void msvcrt_fttofd( const WIN32_FIND_DATAA *fd, struct _finddata_t* ft)
} }
/* INTERNAL: Translate WIN32_FIND_DATAW to wfinddata_t */ /* INTERNAL: Translate WIN32_FIND_DATAW to wfinddata_t */
static void msvcrt_wfttofd( const WIN32_FIND_DATAW *fd, struct _wfinddata_t* ft) static void msvcrt_wfttofd( const WIN32_FIND_DATAW *fd, struct MSVCRT__wfinddata_t* ft)
{ {
DWORD dw; DWORD dw;
...@@ -87,7 +86,7 @@ static void msvcrt_wfttofd( const WIN32_FIND_DATAW *fd, struct _wfinddata_t* ft) ...@@ -87,7 +86,7 @@ static void msvcrt_wfttofd( const WIN32_FIND_DATAW *fd, struct _wfinddata_t* ft)
} }
/* INTERNAL: Translate WIN32_FIND_DATAA to finddatai64_t */ /* INTERNAL: Translate WIN32_FIND_DATAA to finddatai64_t */
static void msvcrt_fttofdi64( const WIN32_FIND_DATAA *fd, struct _finddatai64_t* ft) static void msvcrt_fttofdi64( const WIN32_FIND_DATAA *fd, struct MSVCRT__finddatai64_t* ft)
{ {
DWORD dw; DWORD dw;
...@@ -107,7 +106,7 @@ static void msvcrt_fttofdi64( const WIN32_FIND_DATAA *fd, struct _finddatai64_t* ...@@ -107,7 +106,7 @@ static void msvcrt_fttofdi64( const WIN32_FIND_DATAA *fd, struct _finddatai64_t*
} }
/* INTERNAL: Translate WIN32_FIND_DATAW to wfinddatai64_t */ /* INTERNAL: Translate WIN32_FIND_DATAW to wfinddatai64_t */
static void msvcrt_wfttofdi64( const WIN32_FIND_DATAW *fd, struct _wfinddatai64_t* ft) static void msvcrt_wfttofdi64( const WIN32_FIND_DATAW *fd, struct MSVCRT__wfinddatai64_t* ft)
{ {
DWORD dw; DWORD dw;
...@@ -239,7 +238,7 @@ int _findclose(long hand) ...@@ -239,7 +238,7 @@ int _findclose(long hand)
* NOTES * NOTES
* See FindFirstFileA. * See FindFirstFileA.
*/ */
long _findfirst(const char * fspec, struct _finddata_t* ft) long MSVCRT__findfirst(const char * fspec, struct MSVCRT__finddata_t* ft)
{ {
WIN32_FIND_DATAA find_data; WIN32_FIND_DATAA find_data;
HANDLE hfind; HANDLE hfind;
...@@ -260,7 +259,7 @@ long _findfirst(const char * fspec, struct _finddata_t* ft) ...@@ -260,7 +259,7 @@ long _findfirst(const char * fspec, struct _finddata_t* ft)
* *
* Unicode version of _findfirst. * Unicode version of _findfirst.
*/ */
long _wfindfirst(const MSVCRT_wchar_t * fspec, struct _wfinddata_t* ft) long MSVCRT__wfindfirst(const MSVCRT_wchar_t * fspec, struct MSVCRT__wfinddata_t* ft)
{ {
WIN32_FIND_DATAW find_data; WIN32_FIND_DATAW find_data;
HANDLE hfind; HANDLE hfind;
...@@ -281,7 +280,7 @@ long _wfindfirst(const MSVCRT_wchar_t * fspec, struct _wfinddata_t* ft) ...@@ -281,7 +280,7 @@ long _wfindfirst(const MSVCRT_wchar_t * fspec, struct _wfinddata_t* ft)
* *
* 64-bit version of _findfirst. * 64-bit version of _findfirst.
*/ */
long _findfirsti64(const char * fspec, struct _finddatai64_t* ft) long MSVCRT__findfirsti64(const char * fspec, struct MSVCRT__finddatai64_t* ft)
{ {
WIN32_FIND_DATAA find_data; WIN32_FIND_DATAA find_data;
HANDLE hfind; HANDLE hfind;
...@@ -302,7 +301,7 @@ long _findfirsti64(const char * fspec, struct _finddatai64_t* ft) ...@@ -302,7 +301,7 @@ long _findfirsti64(const char * fspec, struct _finddatai64_t* ft)
* *
* Unicode version of _findfirsti64. * Unicode version of _findfirsti64.
*/ */
long _wfindfirsti64(const MSVCRT_wchar_t * fspec, struct _wfinddatai64_t* ft) long MSVCRT__wfindfirsti64(const MSVCRT_wchar_t * fspec, struct MSVCRT__wfinddatai64_t* ft)
{ {
WIN32_FIND_DATAW find_data; WIN32_FIND_DATAW find_data;
HANDLE hfind; HANDLE hfind;
...@@ -334,7 +333,7 @@ long _wfindfirsti64(const MSVCRT_wchar_t * fspec, struct _wfinddatai64_t* ft) ...@@ -334,7 +333,7 @@ long _wfindfirsti64(const MSVCRT_wchar_t * fspec, struct _wfinddatai64_t* ft)
* NOTES * NOTES
* See FindNextFileA. * See FindNextFileA.
*/ */
int _findnext(long hand, struct _finddata_t * ft) int MSVCRT__findnext(long hand, struct MSVCRT__finddata_t * ft)
{ {
WIN32_FIND_DATAA find_data; WIN32_FIND_DATAA find_data;
...@@ -353,7 +352,7 @@ int _findnext(long hand, struct _finddata_t * ft) ...@@ -353,7 +352,7 @@ int _findnext(long hand, struct _finddata_t * ft)
* *
* Unicode version of _findnext. * Unicode version of _findnext.
*/ */
int _wfindnext(long hand, struct _wfinddata_t * ft) int MSVCRT__wfindnext(long hand, struct MSVCRT__wfinddata_t * ft)
{ {
WIN32_FIND_DATAW find_data; WIN32_FIND_DATAW find_data;
...@@ -372,7 +371,7 @@ int _wfindnext(long hand, struct _wfinddata_t * ft) ...@@ -372,7 +371,7 @@ int _wfindnext(long hand, struct _wfinddata_t * ft)
* *
* 64-bit version of _findnext. * 64-bit version of _findnext.
*/ */
int _findnexti64(long hand, struct _finddatai64_t * ft) int MSVCRT__findnexti64(long hand, struct MSVCRT__finddatai64_t * ft)
{ {
WIN32_FIND_DATAA find_data; WIN32_FIND_DATAA find_data;
...@@ -391,7 +390,7 @@ int _findnexti64(long hand, struct _finddatai64_t * ft) ...@@ -391,7 +390,7 @@ int _findnexti64(long hand, struct _finddatai64_t * ft)
* *
* Unicode version of _findnexti64. * Unicode version of _findnexti64.
*/ */
int _wfindnexti64(long hand, struct _wfinddatai64_t * ft) int MSVCRT__wfindnexti64(long hand, struct MSVCRT__wfinddatai64_t * ft)
{ {
WIN32_FIND_DATAW find_data; WIN32_FIND_DATAW find_data;
...@@ -600,7 +599,7 @@ MSVCRT_wchar_t* _wgetdcwd(int drive, MSVCRT_wchar_t * buf, int size) ...@@ -600,7 +599,7 @@ MSVCRT_wchar_t* _wgetdcwd(int drive, MSVCRT_wchar_t * buf, int size)
* NOTES * NOTES
* See GetLastError(). * See GetLastError().
*/ */
unsigned int _getdiskfree(unsigned int disk, struct _diskfree_t* d) unsigned int MSVCRT__getdiskfree(unsigned int disk, struct MSVCRT(_diskfree_t)* d)
{ {
WCHAR drivespec[4] = {'@', ':', '\\', 0}; WCHAR drivespec[4] = {'@', ':', '\\', 0};
DWORD ret[4]; DWORD ret[4];
......
...@@ -38,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); ...@@ -38,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
void MSVCRT__set_errno(int err) void MSVCRT__set_errno(int err)
{ {
int *errno = MSVCRT__errno(); int *errno = MSVCRT__errno();
unsigned long *doserrno = __doserrno(); unsigned long *doserrno = MSVCRT___doserrno();
*doserrno = err; *doserrno = err;
...@@ -99,15 +99,15 @@ void MSVCRT__set_errno(int err) ...@@ -99,15 +99,15 @@ void MSVCRT__set_errno(int err)
*/ */
int* MSVCRT__errno(void) int* MSVCRT__errno(void)
{ {
return &msvcrt_get_thread_data()->errno; return &msvcrt_get_thread_data()->thread_errno;
} }
/********************************************************************* /*********************************************************************
* __doserrno (MSVCRT.@) * __doserrno (MSVCRT.@)
*/ */
unsigned long* __doserrno(void) unsigned long* MSVCRT___doserrno(void)
{ {
return &msvcrt_get_thread_data()->doserrno; return &msvcrt_get_thread_data()->thread_doserrno;
} }
/********************************************************************* /*********************************************************************
...@@ -124,7 +124,7 @@ char* MSVCRT_strerror(int err) ...@@ -124,7 +124,7 @@ char* MSVCRT_strerror(int err)
char* _strerror(const char* err) char* _strerror(const char* err)
{ {
static char strerrbuff[256]; /* FIXME: Per thread, nprintf */ static char strerrbuff[256]; /* FIXME: Per thread, nprintf */
sprintf(strerrbuff,"%s: %s\n",err,MSVCRT_strerror(msvcrt_get_thread_data()->errno)); sprintf(strerrbuff,"%s: %s\n",err,MSVCRT_strerror(msvcrt_get_thread_data()->thread_errno));
return strerrbuff; return strerrbuff;
} }
...@@ -133,7 +133,7 @@ char* _strerror(const char* err) ...@@ -133,7 +133,7 @@ char* _strerror(const char* err)
*/ */
void MSVCRT_perror(const char* str) void MSVCRT_perror(const char* str)
{ {
_cprintf("%s: %s\n",str,MSVCRT_strerror(msvcrt_get_thread_data()->errno)); _cprintf("%s: %s\n",str,MSVCRT_strerror(msvcrt_get_thread_data()->thread_errno));
} }
/****************************************************************************** /******************************************************************************
......
...@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); ...@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
#define LOCK_EXIT _mlock(_EXIT_LOCK1) #define LOCK_EXIT _mlock(_EXIT_LOCK1)
#define UNLOCK_EXIT _munlock(_EXIT_LOCK1) #define UNLOCK_EXIT _munlock(_EXIT_LOCK1)
static _onexit_t *MSVCRT_atexit_table = NULL; static MSVCRT__onexit_t *MSVCRT_atexit_table = NULL;
static int MSVCRT_atexit_table_size = 0; static int MSVCRT_atexit_table_size = 0;
static int MSVCRT_atexit_registered = 0; /* Points to free slot */ static int MSVCRT_atexit_registered = 0; /* Points to free slot */
...@@ -63,9 +63,9 @@ void __MSVCRT__call_atexit(void) ...@@ -63,9 +63,9 @@ void __MSVCRT__call_atexit(void)
/********************************************************************* /*********************************************************************
* __dllonexit (MSVCRT.@) * __dllonexit (MSVCRT.@)
*/ */
_onexit_t __dllonexit(_onexit_t func, _onexit_t **start, _onexit_t **end) MSVCRT__onexit_t __dllonexit(MSVCRT__onexit_t func, MSVCRT__onexit_t **start, MSVCRT__onexit_t **end)
{ {
_onexit_t *tmp; MSVCRT__onexit_t *tmp;
int len; int len;
TRACE("(%p,%p,%p)\n", func, start, end); TRACE("(%p,%p,%p)\n", func, start, end);
...@@ -83,7 +83,7 @@ _onexit_t __dllonexit(_onexit_t func, _onexit_t **start, _onexit_t **end) ...@@ -83,7 +83,7 @@ _onexit_t __dllonexit(_onexit_t func, _onexit_t **start, _onexit_t **end)
if (++len <= 0) if (++len <= 0)
return NULL; return NULL;
tmp = (_onexit_t *)MSVCRT_realloc(*start, len * sizeof(tmp)); tmp = (MSVCRT__onexit_t *)MSVCRT_realloc(*start, len * sizeof(tmp));
if (!tmp) if (!tmp)
return NULL; return NULL;
*start = tmp; *start = tmp;
...@@ -200,7 +200,7 @@ void MSVCRT__cexit(void) ...@@ -200,7 +200,7 @@ void MSVCRT__cexit(void)
/********************************************************************* /*********************************************************************
* _onexit (MSVCRT.@) * _onexit (MSVCRT.@)
*/ */
_onexit_t _onexit(_onexit_t func) MSVCRT__onexit_t MSVCRT__onexit(MSVCRT__onexit_t func)
{ {
TRACE("(%p)\n",func); TRACE("(%p)\n",func);
...@@ -210,7 +210,7 @@ _onexit_t _onexit(_onexit_t func) ...@@ -210,7 +210,7 @@ _onexit_t _onexit(_onexit_t func)
LOCK_EXIT; LOCK_EXIT;
if (MSVCRT_atexit_registered > MSVCRT_atexit_table_size - 1) if (MSVCRT_atexit_registered > MSVCRT_atexit_table_size - 1)
{ {
_onexit_t *newtable; MSVCRT__onexit_t *newtable;
TRACE("expanding table\n"); TRACE("expanding table\n");
newtable = MSVCRT_calloc(sizeof(void *),MSVCRT_atexit_table_size + 32); newtable = MSVCRT_calloc(sizeof(void *),MSVCRT_atexit_table_size + 32);
if (!newtable) if (!newtable)
...@@ -249,7 +249,7 @@ void MSVCRT_exit(int exitcode) ...@@ -249,7 +249,7 @@ void MSVCRT_exit(int exitcode)
int MSVCRT_atexit(void (*func)(void)) int MSVCRT_atexit(void (*func)(void))
{ {
TRACE("(%p)\n", func); TRACE("(%p)\n", func);
return _onexit((_onexit_t)func) == (_onexit_t)func ? 0 : -1; return MSVCRT__onexit((MSVCRT__onexit_t)func) == (MSVCRT__onexit_t)func ? 0 : -1;
} }
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include "config.h" #include "config.h"
#include "msvcrt.h"
#include "msvcrt/errno.h"
#include <stdio.h> #include <stdio.h>
#define __USE_ISOC9X 1 #define __USE_ISOC9X 1
...@@ -29,7 +27,11 @@ ...@@ -29,7 +27,11 @@
#include <ieeefp.h> #include <ieeefp.h>
#endif #endif
#include "msvcrt.h"
#include "msvcrt/errno.h"
#include "msvcrt/stdlib.h" #include "msvcrt/stdlib.h"
#include "msvcrt/math.h"
#include "msvcrt/float.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -49,70 +51,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt); ...@@ -49,70 +51,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
#define signbit(x) 0 #define signbit(x) 0
#endif #endif
/* fpclass constants */ typedef int (*MSVCRT_matherr_func)(struct MSVCRT__exception *);
#define _FPCLASS_SNAN 1
#define _FPCLASS_QNAN 2
#define _FPCLASS_NINF 4
#define _FPCLASS_NN 8
#define _FPCLASS_ND 16
#define _FPCLASS_NZ 32
#define _FPCLASS_PZ 64
#define _FPCLASS_PD 128
#define _FPCLASS_PN 256
#define _FPCLASS_PINF 512
/* _statusfp bit flags */
#define _SW_INEXACT 0x1
#define _SW_UNDERFLOW 0x2
#define _SW_OVERFLOW 0x4
#define _SW_ZERODIVIDE 0x8
#define _SW_INVALID 0x10
#define _SW_DENORMAL 0x80000
/* _controlfp masks and bitflags - x86 only so far*/
#ifdef __i386__
#define _MCW_EM 0x8001f
#define _EM_INEXACT 0x1
#define _EM_UNDERFLOW 0x2
#define _EM_OVERFLOW 0x4
#define _EM_ZERODIVIDE 0x8
#define _EM_INVALID 0x10
#define _MCW_RC 0x300
#define _RC_NEAR 0x0
#define _RC_DOWN 0x100
#define _RC_UP 0x200
#define _RC_CHOP 0x300
#define _MCW_PC 0x30000
#define _PC_64 0x0
#define _PC_53 0x10000
#define _PC_24 0x20000
#define _MCW_IC 0x40000
#define _IC_AFFINE 0x40000
#define _IC_PROJECTIVE 0x0
#define _EM_DENORMAL 0x80000
#endif
typedef struct __MSVCRT_complex
{
double real;
double imaginary;
} MSVCRT_complex;
typedef struct __MSVCRT_exception
{
int type;
char *name;
double arg1;
double arg2;
double retval;
} MSVCRT_exception;
typedef int (*MSVCRT_matherr_func)(MSVCRT_exception *);
static MSVCRT_matherr_func MSVCRT_default_matherr_func = NULL; static MSVCRT_matherr_func MSVCRT_default_matherr_func = NULL;
...@@ -409,7 +348,7 @@ double _scalb(double num, long power) ...@@ -409,7 +348,7 @@ double _scalb(double num, long power)
/********************************************************************* /*********************************************************************
* _matherr (MSVCRT.@) * _matherr (MSVCRT.@)
*/ */
int _matherr(MSVCRT_exception *e) int MSVCRT__matherr(struct MSVCRT__exception *e)
{ {
if (e) if (e)
TRACE("(%p = %d, %s, %g %g %g)\n",e, e->type, e->name, e->arg1, e->arg2, TRACE("(%p = %d, %s, %g %g %g)\n",e, e->type, e->name, e->arg1, e->arg2,
...@@ -492,9 +431,9 @@ double MSVCRT_ldexp(double num, long exp) ...@@ -492,9 +431,9 @@ double MSVCRT_ldexp(double num, long exp)
/********************************************************************* /*********************************************************************
* _cabs (MSVCRT.@) * _cabs (MSVCRT.@)
*/ */
double _cabs(MSVCRT_complex num) double MSVCRT__cabs(struct MSVCRT__complex num)
{ {
return sqrt(num.real * num.real + num.imaginary * num.imaginary); return sqrt(num.x * num.x + num.y * num.y);
} }
/********************************************************************* /*********************************************************************
......
...@@ -36,8 +36,8 @@ extern DWORD MSVCRT_tls_index; ...@@ -36,8 +36,8 @@ extern DWORD MSVCRT_tls_index;
typedef struct __MSVCRT_thread_data typedef struct __MSVCRT_thread_data
{ {
int errno; int thread_errno;
unsigned long doserrno; unsigned long thread_doserrno;
char *mbstok_next; /* next ptr for mbstok() */ char *mbstok_next; /* next ptr for mbstok() */
char *efcvt_buffer; /* buffer for ecvt/fcvt */ char *efcvt_buffer; /* buffer for ecvt/fcvt */
int fpecode; int fpecode;
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
@ stub __crtGetLocaleInfoW @ stub __crtGetLocaleInfoW
@ cdecl __crtLCMapStringA(long long str long ptr long long long) @ cdecl __crtLCMapStringA(long long str long ptr long long long)
@ cdecl __dllonexit(ptr ptr ptr) @ cdecl __dllonexit(ptr ptr ptr)
@ cdecl __doserrno() @ cdecl __doserrno() MSVCRT___doserrno
@ cdecl __fpecode() @ cdecl __fpecode()
@ cdecl __getmainargs(ptr ptr ptr long ptr) @ cdecl __getmainargs(ptr ptr ptr long ptr)
@ extern __initenv MSVCRT___initenv @ extern __initenv MSVCRT___initenv
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
@ cdecl _beginthread (ptr long ptr) @ cdecl _beginthread (ptr long ptr)
@ cdecl _beginthreadex (ptr long ptr ptr long ptr) @ cdecl _beginthreadex (ptr long ptr ptr long ptr)
@ cdecl _c_exit() MSVCRT__c_exit @ cdecl _c_exit() MSVCRT__c_exit
@ cdecl _cabs(long) @ cdecl _cabs(long) MSVCRT__cabs
@ cdecl _callnewh(long) @ cdecl _callnewh(long)
@ cdecl _cexit() MSVCRT__cexit @ cdecl _cexit() MSVCRT__cexit
@ cdecl _cgets(str) @ cdecl _cgets(str)
...@@ -215,23 +215,23 @@ ...@@ -215,23 +215,23 @@
@ cdecl _execvpe(str str str) @ cdecl _execvpe(str str str)
@ cdecl _exit(long) MSVCRT__exit @ cdecl _exit(long) MSVCRT__exit
@ cdecl _expand(ptr long) @ cdecl _expand(ptr long)
@ cdecl _fcloseall() @ cdecl _fcloseall() MSVCRT__fcloseall
@ cdecl _fcvt(double long ptr ptr) @ cdecl _fcvt(double long ptr ptr)
@ cdecl _fdopen(long str) @ cdecl _fdopen(long str) MSVCRT__fdopen
@ cdecl _fgetchar() @ cdecl _fgetchar()
@ cdecl _fgetwchar() @ cdecl _fgetwchar()
@ cdecl _filbuf(ptr) @ cdecl _filbuf(ptr) MSVCRT__filbuf
@ stub _fileinfo @ stub _fileinfo
@ cdecl _filelength(long) @ cdecl _filelength(long)
@ cdecl -ret64 _filelengthi64(long) @ cdecl -ret64 _filelengthi64(long)
@ cdecl _fileno(ptr) @ cdecl _fileno(ptr) MSVCRT__fileno
@ cdecl _findclose(long) @ cdecl _findclose(long)
@ cdecl _findfirst(str ptr) @ cdecl _findfirst(str ptr) MSVCRT__findfirst
@ cdecl _findfirsti64(str ptr) @ cdecl _findfirsti64(str ptr) MSVCRT__findfirsti64
@ cdecl _findnext(long ptr) @ cdecl _findnext(long ptr) MSVCRT__findnext
@ cdecl _findnexti64(long ptr) @ cdecl _findnexti64(long ptr) MSVCRT__findnexti64
@ cdecl _finite( double ) @ cdecl _finite( double )
@ cdecl _flsbuf(long ptr) @ cdecl _flsbuf(long ptr) MSVCRT__flsbuf
@ cdecl _flushall() @ cdecl _flushall()
@ extern _fmode MSVCRT__fmode @ extern _fmode MSVCRT__fmode
@ cdecl _fpclass(double) @ cdecl _fpclass(double)
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
@ cdecl _fputwchar(long) @ cdecl _fputwchar(long)
@ cdecl _fsopen(str str long) @ cdecl _fsopen(str str long)
@ cdecl _fstat(long ptr) MSVCRT__fstat @ cdecl _fstat(long ptr) MSVCRT__fstat
@ cdecl _fstati64(long ptr) @ cdecl _fstati64(long ptr) MSVCRT__fstati64
@ cdecl _ftime(ptr) @ cdecl _ftime(ptr)
@ cdecl -ret64 _ftol() ntdll._ftol @ cdecl -ret64 _ftol() ntdll._ftol
@ cdecl _fullpath(ptr str long) @ cdecl _fullpath(ptr str long)
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
@ cdecl _getche() @ cdecl _getche()
@ cdecl _getcwd(str long) @ cdecl _getcwd(str long)
@ cdecl _getdcwd(long str long) @ cdecl _getdcwd(long str long)
@ cdecl _getdiskfree(long ptr) @ cdecl _getdiskfree(long ptr) MSVCRT__getdiskfree
@ cdecl _getdllprocaddr(long str long) @ cdecl _getdllprocaddr(long str long)
@ cdecl _getdrive() @ cdecl _getdrive()
@ cdecl _getdrives() kernel32.GetLogicalDrives @ cdecl _getdrives() kernel32.GetLogicalDrives
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
@ cdecl _getmbcp() @ cdecl _getmbcp()
@ cdecl _getpid() kernel32.GetCurrentProcessId @ cdecl _getpid() kernel32.GetCurrentProcessId
@ stub _getsystime #(ptr) @ stub _getsystime #(ptr)
@ cdecl _getw(ptr) @ cdecl _getw(ptr) MSVCRT__getw
@ cdecl _getws(ptr) MSVCRT__getws @ cdecl _getws(ptr) MSVCRT__getws
@ cdecl _global_unwind2(ptr) @ cdecl _global_unwind2(ptr)
@ cdecl _heapadd (ptr long) @ cdecl _heapadd (ptr long)
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
@ cdecl _ltoa(long ptr long) ntdll._ltoa @ cdecl _ltoa(long ptr long) ntdll._ltoa
@ cdecl _ltow(long ptr long) ntdll._ltow @ cdecl _ltow(long ptr long) ntdll._ltow
@ cdecl _makepath(str str str str str) @ cdecl _makepath(str str str str str)
@ cdecl _matherr(ptr) @ cdecl _matherr(ptr) MSVCRT__matherr
@ cdecl _mbbtombc(long) @ cdecl _mbbtombc(long)
@ stub _mbbtype #(long long) @ stub _mbbtype #(long long)
@ stub _mbcasemap @ stub _mbcasemap
...@@ -393,22 +393,22 @@ ...@@ -393,22 +393,22 @@
@ cdecl _mktemp(str) @ cdecl _mktemp(str)
@ cdecl _msize(ptr) @ cdecl _msize(ptr)
@ cdecl _nextafter(double double) @ cdecl _nextafter(double double)
@ cdecl _onexit(ptr) @ cdecl _onexit(ptr) MSVCRT__onexit
@ varargs _open(str long) @ varargs _open(str long)
@ cdecl _open_osfhandle(long long) @ cdecl _open_osfhandle(long long)
@ extern _osver MSVCRT__osver @ extern _osver MSVCRT__osver
@ stub _outp #(long long) @ stub _outp #(long long)
@ stub _outpd #(long long) @ stub _outpd #(long long)
@ stub _outpw #(long long) @ stub _outpw #(long long)
@ cdecl _pclose (ptr) @ cdecl _pclose (ptr) MSVCRT__pclose
@ extern _pctype MSVCRT__pctype @ extern _pctype MSVCRT__pctype
@ extern _pgmptr MSVCRT__pgmptr @ extern _pgmptr MSVCRT__pgmptr
@ stub _pipe #(ptr long long) @ stub _pipe #(ptr long long)
@ cdecl _popen (str str) @ cdecl _popen (str str) MSVCRT__popen
@ cdecl _purecall() @ cdecl _purecall()
@ cdecl _putch(long) @ cdecl _putch(long)
@ cdecl _putenv(str) @ cdecl _putenv(str)
@ cdecl _putw(long ptr) @ cdecl _putw(long ptr) MSVCRT__putw
@ cdecl _putws(wstr) @ cdecl _putws(wstr)
@ stub _pwctype @ stub _pwctype
@ cdecl _read(long ptr long) @ cdecl _read(long ptr long)
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
@ cdecl _spawnvpe(long str ptr ptr) @ cdecl _spawnvpe(long str ptr ptr)
@ cdecl _splitpath(str ptr ptr ptr ptr) ntdll._splitpath @ cdecl _splitpath(str ptr ptr ptr ptr) ntdll._splitpath
@ cdecl _stat(str ptr) MSVCRT__stat @ cdecl _stat(str ptr) MSVCRT__stat
@ cdecl _stati64(str ptr) @ cdecl _stati64(str ptr) MSVCRT__stati64
@ cdecl _statusfp() @ cdecl _statusfp()
@ cdecl _strcmpi(str str) strcasecmp @ cdecl _strcmpi(str str) strcasecmp
@ cdecl _strdate(ptr) @ cdecl _strdate(ptr)
...@@ -463,7 +463,7 @@ ...@@ -463,7 +463,7 @@
@ cdecl _strset(str long) @ cdecl _strset(str long)
@ cdecl _strtime(ptr) @ cdecl _strtime(ptr)
@ cdecl _strupr(str) ntdll._strupr @ cdecl _strupr(str) ntdll._strupr
@ cdecl _swab(str str long) @ cdecl _swab(str str long) MSVCRT__swab
@ extern _sys_errlist MSVCRT__sys_errlist @ extern _sys_errlist MSVCRT__sys_errlist
@ extern _sys_nerr MSVCRT__sys_nerr @ extern _sys_nerr MSVCRT__sys_nerr
@ cdecl _tell(long) @ cdecl _tell(long)
...@@ -487,7 +487,7 @@ ...@@ -487,7 +487,7 @@
@ cdecl _vsnprintf(ptr long ptr ptr) vsnprintf @ cdecl _vsnprintf(ptr long ptr ptr) vsnprintf
@ cdecl _vsnwprintf(ptr long wstr long) @ cdecl _vsnwprintf(ptr long wstr long)
@ cdecl _waccess(wstr long) @ cdecl _waccess(wstr long)
@ stub _wasctime #(ptr) @ stub _wasctime #(ptr) MSVCRT__wasctime
@ cdecl _wchdir(wstr) @ cdecl _wchdir(wstr)
@ cdecl _wchmod(wstr long) @ cdecl _wchmod(wstr long)
@ extern _wcmdln MSVCRT__wcmdln @ extern _wcmdln MSVCRT__wcmdln
...@@ -513,14 +513,14 @@ ...@@ -513,14 +513,14 @@
@ stub _wexecve #(wstr ptr ptr) @ stub _wexecve #(wstr ptr ptr)
@ stub _wexecvp #(wstr ptr) @ stub _wexecvp #(wstr ptr)
@ stub _wexecvpe #(wstr ptr ptr) @ stub _wexecvpe #(wstr ptr ptr)
@ cdecl _wfdopen(long wstr) @ cdecl _wfdopen(long wstr) MSVCRT__wfdopen
@ cdecl _wfindfirst(wstr ptr) @ cdecl _wfindfirst(wstr ptr) MSVCRT__wfindfirst
@ cdecl _wfindfirsti64(wstr ptr) @ cdecl _wfindfirsti64(wstr ptr) MSVCRT__wfindfirsti64
@ cdecl _wfindnext(long ptr) @ cdecl _wfindnext(long ptr) MSVCRT__wfindnext
@ cdecl _wfindnexti64(long ptr) @ cdecl _wfindnexti64(long ptr) MSVCRT__wfindnexti64
@ cdecl _wfopen(wstr wstr) @ cdecl _wfopen(wstr wstr) MSVCRT__wfopen
@ stub _wfreopen #(wstr wstr ptr) @ stub _wfreopen #(wstr wstr ptr) MSVCRT__wfreopen
@ cdecl _wfsopen(wstr wstr long) @ cdecl _wfsopen(wstr wstr long) MSVCRT__wfsopen
@ cdecl _wfullpath(ptr wstr long) @ cdecl _wfullpath(ptr wstr long)
@ cdecl _wgetcwd(wstr long) @ cdecl _wgetcwd(wstr long)
@ cdecl _wgetdcwd(long wstr long) @ cdecl _wgetdcwd(long wstr long)
...@@ -534,7 +534,7 @@ ...@@ -534,7 +534,7 @@
@ varargs _wopen(wstr long) @ varargs _wopen(wstr long)
@ stub _wperror #(wstr) @ stub _wperror #(wstr)
@ extern _wpgmptr MSVCRT__wpgmptr @ extern _wpgmptr MSVCRT__wpgmptr
@ cdecl _wpopen (wstr wstr) @ cdecl _wpopen (wstr wstr) MSVCRT__wpopen
@ cdecl _wputenv(wstr) @ cdecl _wputenv(wstr)
@ cdecl _wremove(wstr) @ cdecl _wremove(wstr)
@ cdecl _wrename(wstr wstr) @ cdecl _wrename(wstr wstr)
...@@ -552,8 +552,8 @@ ...@@ -552,8 +552,8 @@
@ stub _wspawnvp #(long wstr ptr) @ stub _wspawnvp #(long wstr ptr)
@ stub _wspawnvpe #(long wstr ptr ptr) @ stub _wspawnvpe #(long wstr ptr ptr)
@ cdecl _wsplitpath(wstr wstr wstr wstr wstr) @ cdecl _wsplitpath(wstr wstr wstr wstr wstr)
@ cdecl _wstat(wstr ptr) @ cdecl _wstat(wstr ptr) MSVCRT__wstat
@ cdecl _wstati64(wstr ptr) @ cdecl _wstati64(wstr ptr) MSVCRT__wstati64
@ stub _wstrdate #(ptr) @ stub _wstrdate #(ptr)
@ stub _wstrtime #(ptr) @ stub _wstrtime #(ptr)
@ stub _wsystem #(wstr) @ stub _wsystem #(wstr)
...@@ -744,7 +744,7 @@ ...@@ -744,7 +744,7 @@
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll @ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy @ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscspn(wstr wstr) ntdll.wcscspn @ cdecl wcscspn(wstr wstr) ntdll.wcscspn
@ stub wcsftime #(ptr long wstr ptr) @ stub wcsftime #(ptr long wstr ptr) MSVCRT_wcsftime
@ cdecl wcslen(wstr) ntdll.wcslen @ cdecl wcslen(wstr) ntdll.wcslen
@ cdecl wcsncat(wstr wstr long) ntdll.wcsncat @ cdecl wcsncat(wstr wstr long) ntdll.wcsncat
@ cdecl wcsncmp(wstr wstr long) ntdll.wcsncmp @ cdecl wcsncmp(wstr wstr long) ntdll.wcsncmp
......
...@@ -215,7 +215,7 @@ int _cwait(int *status, int pid, int action) ...@@ -215,7 +215,7 @@ int _cwait(int *status, int pid, int action)
if (doserrno == ERROR_INVALID_HANDLE) if (doserrno == ERROR_INVALID_HANDLE)
{ {
*MSVCRT__errno() = MSVCRT_ECHILD; *MSVCRT__errno() = MSVCRT_ECHILD;
*__doserrno() = doserrno; *MSVCRT___doserrno() = doserrno;
} }
else else
MSVCRT__set_errno(doserrno); MSVCRT__set_errno(doserrno);
...@@ -469,7 +469,7 @@ int _spawnvp(int flags, const char* name, const char* const* argv) ...@@ -469,7 +469,7 @@ int _spawnvp(int flags, const char* name, const char* const* argv)
/********************************************************************* /*********************************************************************
* _popen (MSVCRT.@) * _popen (MSVCRT.@)
*/ */
MSVCRT_FILE* _popen(const char* command, const char* mode) MSVCRT_FILE* MSVCRT__popen(const char* command, const char* mode)
{ {
FIXME("(command=%s, mode=%s): stub\n", debugstr_a(command), debugstr_a(mode)); FIXME("(command=%s, mode=%s): stub\n", debugstr_a(command), debugstr_a(mode));
return NULL; return NULL;
...@@ -478,7 +478,7 @@ MSVCRT_FILE* _popen(const char* command, const char* mode) ...@@ -478,7 +478,7 @@ MSVCRT_FILE* _popen(const char* command, const char* mode)
/********************************************************************* /*********************************************************************
* _wpopen (MSVCRT.@) * _wpopen (MSVCRT.@)
*/ */
MSVCRT_FILE* _wpopen(const MSVCRT_wchar_t* command, const MSVCRT_wchar_t* mode) MSVCRT_FILE* MSVCRT__wpopen(const MSVCRT_wchar_t* command, const MSVCRT_wchar_t* mode)
{ {
FIXME("(command=%s, mode=%s): stub\n", debugstr_w(command), debugstr_w(mode)); FIXME("(command=%s, mode=%s): stub\n", debugstr_w(command), debugstr_w(mode));
return NULL; return NULL;
...@@ -487,7 +487,7 @@ MSVCRT_FILE* _wpopen(const MSVCRT_wchar_t* command, const MSVCRT_wchar_t* mode) ...@@ -487,7 +487,7 @@ MSVCRT_FILE* _wpopen(const MSVCRT_wchar_t* command, const MSVCRT_wchar_t* mode)
/********************************************************************* /*********************************************************************
* _pclose (MSVCRT.@) * _pclose (MSVCRT.@)
*/ */
int _pclose(MSVCRT_FILE* file) int MSVCRT__pclose(MSVCRT_FILE* file)
{ {
FIXME("(file=%p): stub\n", file); FIXME("(file=%p): stub\n", file);
return 0; return 0;
......
...@@ -102,7 +102,7 @@ char* _strset(char* str, int value) ...@@ -102,7 +102,7 @@ char* _strset(char* str, int value)
/********************************************************************* /*********************************************************************
* _swab (MSVCRT.@) * _swab (MSVCRT.@)
*/ */
void _swab(char* src, char* dst, int len) void MSVCRT__swab(char* src, char* dst, int len)
{ {
if (len > 1) if (len > 1)
{ {
......
...@@ -37,7 +37,7 @@ typedef unsigned int MSVCRT(size_t); ...@@ -37,7 +37,7 @@ typedef unsigned int MSVCRT(size_t);
#ifndef MSVCRT_DISKFREE_T_DEFINED #ifndef MSVCRT_DISKFREE_T_DEFINED
#define MSVCRT_DISKFREE_T_DEFINED #define MSVCRT_DISKFREE_T_DEFINED
struct _diskfree_t { struct MSVCRT(_diskfree_t) {
unsigned int total_clusters; unsigned int total_clusters;
unsigned int avail_clusters; unsigned int avail_clusters;
unsigned int sectors_per_cluster; unsigned int sectors_per_cluster;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifndef MSVCRT_DISKFREE_T_DEFINED #ifndef MSVCRT_DISKFREE_T_DEFINED
#define MSVCRT_DISKFREE_T_DEFINED #define MSVCRT_DISKFREE_T_DEFINED
struct _diskfree_t { struct MSVCRT(_diskfree_t) {
unsigned int total_clusters; unsigned int total_clusters;
unsigned int avail_clusters; unsigned int avail_clusters;
unsigned int sectors_per_cluster; unsigned int sectors_per_cluster;
...@@ -35,7 +35,7 @@ struct _diskfree_t { ...@@ -35,7 +35,7 @@ struct _diskfree_t {
extern "C" { extern "C" {
#endif #endif
unsigned int _getdiskfree(unsigned int, struct _diskfree_t *); unsigned int MSVCRT(_getdiskfree)(unsigned int, struct MSVCRT(_diskfree_t) *);
#ifdef __cplusplus #ifdef __cplusplus
} }
...@@ -43,7 +43,7 @@ unsigned int _getdiskfree(unsigned int, struct _diskfree_t *); ...@@ -43,7 +43,7 @@ unsigned int _getdiskfree(unsigned int, struct _diskfree_t *);
#ifndef USE_MSVCRT_PREFIX #ifndef USE_MSVCRT_PREFIX
#define diskfree_t _diskfree_t #define MSVCRT(diskfree_t) MSVCRT(_diskfree_t)
#endif /* USE_MSVCRT_PREFIX */ #endif /* USE_MSVCRT_PREFIX */
#endif /* __WINE_DOS_H */ #endif /* __WINE_DOS_H */
...@@ -47,23 +47,23 @@ typedef long MSVCRT(time_t); ...@@ -47,23 +47,23 @@ typedef long MSVCRT(time_t);
#endif #endif
#ifndef MSVCRT_FSIZE_T_DEFINED #ifndef MSVCRT_FSIZE_T_DEFINED
typedef unsigned long _fsize_t; typedef unsigned long MSVCRT(_fsize_t);
#define MSVCRT_FSIZE_T_DEFINED #define MSVCRT_FSIZE_T_DEFINED
#endif #endif
#ifndef MSVCRT_FINDDATA_T_DEFINED #ifndef MSVCRT_FINDDATA_T_DEFINED
#define MSVCRT_FINDDATA_T_DEFINED #define MSVCRT_FINDDATA_T_DEFINED
struct _finddata_t struct MSVCRT(_finddata_t)
{ {
unsigned attrib; unsigned attrib;
MSVCRT(time_t) time_create; MSVCRT(time_t) time_create;
MSVCRT(time_t) time_access; MSVCRT(time_t) time_access;
MSVCRT(time_t) time_write; MSVCRT(time_t) time_write;
_fsize_t size; MSVCRT(_fsize_t) size;
char name[260]; char name[260];
}; };
struct _finddatai64_t struct MSVCRT(_finddatai64_t)
{ {
unsigned attrib; unsigned attrib;
MSVCRT(time_t) time_create; MSVCRT(time_t) time_create;
...@@ -76,16 +76,16 @@ struct _finddatai64_t ...@@ -76,16 +76,16 @@ struct _finddatai64_t
#ifndef MSVCRT_WFINDDATA_T_DEFINED #ifndef MSVCRT_WFINDDATA_T_DEFINED
#define MSVCRT_WFINDDATA_T_DEFINED #define MSVCRT_WFINDDATA_T_DEFINED
struct _wfinddata_t { struct MSVCRT(_wfinddata_t) {
unsigned attrib; unsigned attrib;
MSVCRT(time_t) time_create; MSVCRT(time_t) time_create;
MSVCRT(time_t) time_access; MSVCRT(time_t) time_access;
MSVCRT(time_t) time_write; MSVCRT(time_t) time_write;
_fsize_t size; MSVCRT(_fsize_t) size;
MSVCRT(wchar_t) name[260]; MSVCRT(wchar_t) name[260];
}; };
struct _wfinddatai64_t { struct MSVCRT(_wfinddatai64_t) {
unsigned attrib; unsigned attrib;
MSVCRT(time_t) time_create; MSVCRT(time_t) time_create;
MSVCRT(time_t) time_access; MSVCRT(time_t) time_access;
...@@ -111,10 +111,10 @@ int _eof(int); ...@@ -111,10 +111,10 @@ int _eof(int);
__int64 _filelengthi64(int); __int64 _filelengthi64(int);
long _filelength(int); long _filelength(int);
int _findclose(long); int _findclose(long);
long _findfirst(const char*,struct _finddata_t*); long MSVCRT(_findfirst)(const char*,struct MSVCRT(_finddata_t)*);
long _findfirsti64(const char*, struct _finddatai64_t*); long MSVCRT(_findfirsti64)(const char*, struct MSVCRT(_finddatai64_t)*);
int _findnext(long,struct _finddata_t*); int MSVCRT(_findnext)(long,struct MSVCRT(_finddata_t)*);
int _findnexti64(long, struct _finddatai64_t*); int MSVCRT(_findnexti64)(long, struct MSVCRT(_finddatai64_t)*);
long _get_osfhandle(int); long _get_osfhandle(int);
int _isatty(int); int _isatty(int);
int _locking(int,int,long); int _locking(int,int,long);
...@@ -141,10 +141,10 @@ int MSVCRT(rename)(const char*,const char*); ...@@ -141,10 +141,10 @@ int MSVCRT(rename)(const char*,const char*);
int _waccess(const MSVCRT(wchar_t)*,int); int _waccess(const MSVCRT(wchar_t)*,int);
int _wchmod(const MSVCRT(wchar_t)*,int); int _wchmod(const MSVCRT(wchar_t)*,int);
int _wcreat(const MSVCRT(wchar_t)*,int); int _wcreat(const MSVCRT(wchar_t)*,int);
long _wfindfirst(const MSVCRT(wchar_t)*,struct _wfinddata_t*); long MSVCRT(_wfindfirst)(const MSVCRT(wchar_t)*,struct MSVCRT(_wfinddata_t)*);
long _wfindfirsti64(const MSVCRT(wchar_t)*, struct _wfinddatai64_t*); long MSVCRT(_wfindfirsti64)(const MSVCRT(wchar_t)*, struct MSVCRT(_wfinddatai64_t)*);
int _wfindnext(long,struct _wfinddata_t*); int MSVCRT(_wfindnext)(long,struct MSVCRT(_wfinddata_t)*);
int _wfindnexti64(long, struct _wfinddatai64_t*); int MSVCRT(_wfindnexti64)(long, struct MSVCRT(_wfinddatai64_t)*);
MSVCRT(wchar_t)*_wmktemp(MSVCRT(wchar_t)*); MSVCRT(wchar_t)*_wmktemp(MSVCRT(wchar_t)*);
int _wopen(const MSVCRT(wchar_t)*,int,...); int _wopen(const MSVCRT(wchar_t)*,int,...);
int _wrename(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); int _wrename(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
......
...@@ -156,20 +156,20 @@ MSVCRT(FILE)* MSVCRT(__p__iob)(void); ...@@ -156,20 +156,20 @@ MSVCRT(FILE)* MSVCRT(__p__iob)(void);
#ifndef MSVCRT_STDIO_DEFINED #ifndef MSVCRT_STDIO_DEFINED
#define MSVCRT_STDIO_DEFINED #define MSVCRT_STDIO_DEFINED
int _fcloseall(void); int MSVCRT(_fcloseall)(void);
MSVCRT(FILE)* _fdopen(int,const char*); MSVCRT(FILE)* MSVCRT(_fdopen)(int,const char*);
int _fgetchar(void); int _fgetchar(void);
int _filbuf(MSVCRT(FILE*)); int MSVCRT(_filbuf)(MSVCRT(FILE*));
int _fileno(MSVCRT(FILE)*); int MSVCRT(_fileno)(MSVCRT(FILE)*);
int _flsbuf(int,MSVCRT(FILE)*); int MSVCRT(_flsbuf)(int,MSVCRT(FILE)*);
int _flushall(void); int _flushall(void);
int _fputchar(int); int _fputchar(int);
MSVCRT(FILE)* _fsopen(const char*,const char*,int); MSVCRT(FILE)* _fsopen(const char*,const char*,int);
int _getmaxstdio(void); int _getmaxstdio(void);
int _getw(MSVCRT(FILE)*); int MSVCRT(_getw)(MSVCRT(FILE)*);
int _pclose(MSVCRT(FILE)*); int MSVCRT(_pclose)(MSVCRT(FILE)*);
MSVCRT(FILE)* _popen(const char*,const char*); MSVCRT(FILE)* MSVCRT(_popen)(const char*,const char*);
int _putw(int,MSVCRT(FILE)*); int MSVCRT(_putw)(int,MSVCRT(FILE)*);
int _rmtmp(void); int _rmtmp(void);
int _setmaxstdio(int); int _setmaxstdio(int);
int _snprintf(char*,MSVCRT(size_t),const char*,...); int _snprintf(char*,MSVCRT(size_t),const char*,...);
...@@ -227,12 +227,12 @@ MSVCRT(wchar_t)*_getws(MSVCRT(wchar_t)*); ...@@ -227,12 +227,12 @@ MSVCRT(wchar_t)*_getws(MSVCRT(wchar_t)*);
int _putws(const MSVCRT(wchar_t)*); int _putws(const MSVCRT(wchar_t)*);
int _snwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,...); int _snwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,...);
int _vsnwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,va_list); int _vsnwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,va_list);
MSVCRT(FILE)* _wfdopen(int,const MSVCRT(wchar_t)*); MSVCRT(FILE)* MSVCRT(_wfdopen)(int,const MSVCRT(wchar_t)*);
MSVCRT(FILE)* _wfopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); MSVCRT(FILE)* MSVCRT(_wfopen)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
MSVCRT(FILE)* _wfreopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(FILE)*); MSVCRT(FILE)* MSVCRT(_wfreopen)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
MSVCRT(FILE)* _wfsopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,int); MSVCRT(FILE)* MSVCRT(_wfsopen)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,int);
void _wperror(const MSVCRT(wchar_t)*); void _wperror(const MSVCRT(wchar_t)*);
MSVCRT(FILE)* _wpopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); MSVCRT(FILE)* MSVCRT(_wpopen)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
int _wremove(const MSVCRT(wchar_t)*); int _wremove(const MSVCRT(wchar_t)*);
MSVCRT(wchar_t)*_wtempnam(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*); MSVCRT(wchar_t)*_wtempnam(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
MSVCRT(wchar_t)*_wtmpnam(MSVCRT(wchar_t)*); MSVCRT(wchar_t)*_wtmpnam(MSVCRT(wchar_t)*);
......
...@@ -105,7 +105,7 @@ extern MSVCRT(wchar_t)*** __p___wargv(void); ...@@ -105,7 +105,7 @@ extern MSVCRT(wchar_t)*** __p___wargv(void);
extern char*** __p__environ(void); extern char*** __p__environ(void);
extern MSVCRT(wchar_t)*** __p__wenviron(void); extern MSVCRT(wchar_t)*** __p__wenviron(void);
extern int* __p___mb_cur_max(void); extern int* __p___mb_cur_max(void);
extern unsigned long* __doserrno(void); extern unsigned long* MSVCRT(__doserrno)(void);
extern unsigned int* __p__fmode(void); extern unsigned int* __p__fmode(void);
/* FIXME: We need functions to access these: /* FIXME: We need functions to access these:
* int _sys_nerr; * int _sys_nerr;
...@@ -131,7 +131,7 @@ extern int* MSVCRT(_errno)(void); ...@@ -131,7 +131,7 @@ extern int* MSVCRT(_errno)(void);
#endif #endif
typedef int (*_onexit_t)(void); typedef int (*MSVCRT(_onexit_t))(void);
__int64 _atoi64(const char*); __int64 _atoi64(const char*);
...@@ -148,7 +148,7 @@ unsigned long _lrotl(unsigned long,int); ...@@ -148,7 +148,7 @@ unsigned long _lrotl(unsigned long,int);
unsigned long _lrotr(unsigned long,int); unsigned long _lrotr(unsigned long,int);
void _makepath(char*,const char*,const char*,const char*,const char*); void _makepath(char*,const char*,const char*,const char*,const char*);
MSVCRT(size_t) _mbstrlen(const char*); MSVCRT(size_t) _mbstrlen(const char*);
_onexit_t _onexit(_onexit_t); MSVCRT(_onexit_t) MSVCRT(_onexit)(MSVCRT(_onexit_t));
int _putenv(const char*); int _putenv(const char*);
unsigned int _rotl(unsigned int,int); unsigned int _rotl(unsigned int,int);
unsigned int _rotr(unsigned int,int); unsigned int _rotr(unsigned int,int);
...@@ -158,7 +158,7 @@ void _seterrormode(int); ...@@ -158,7 +158,7 @@ void _seterrormode(int);
void _sleep(unsigned long); void _sleep(unsigned long);
void _splitpath(const char*,char*,char*,char*,char*); void _splitpath(const char*,char*,char*,char*,char*);
long double _strtold(const char*,char**); long double _strtold(const char*,char**);
void _swab(char*,char*,int); void MSVCRT(_swab)(char*,char*,int);
char* _ui64toa(unsigned __int64,char*,int); char* _ui64toa(unsigned __int64,char*,int);
char* _ultoa(unsigned long,char*,int); char* _ultoa(unsigned long,char*,int);
......
...@@ -48,8 +48,8 @@ typedef unsigned int MSVCRT(size_t); ...@@ -48,8 +48,8 @@ typedef unsigned int MSVCRT(size_t);
extern "C" { extern "C" {
#endif #endif
void* _memccpy(void*,const void*,int,MSVCRT(size_t)); void* _memccpy(void*,const void*,int,unsigned int);
int _memicmp(const void*,const void*,MSVCRT(size_t)); int _memicmp(const void*,const void*,unsigned int);
int _strcmpi(const char*,const char*); int _strcmpi(const char*,const char*);
char* _strdup(const char*); char* _strdup(const char*);
char* _strerror(const char*); char* _strerror(const char*);
......
...@@ -35,12 +35,12 @@ typedef unsigned short MSVCRT(wchar_t); ...@@ -35,12 +35,12 @@ typedef unsigned short MSVCRT(wchar_t);
#endif #endif
#ifndef MSVCRT_DEV_T_DEFINED #ifndef MSVCRT_DEV_T_DEFINED
typedef unsigned int _dev_t; typedef unsigned int MSVCRT(_dev_t);
#define MSVCRT_DEV_T_DEFINED #define MSVCRT_DEV_T_DEFINED
#endif #endif
#ifndef MSVCRT_INO_T_DEFINED #ifndef MSVCRT_INO_T_DEFINED
typedef unsigned short _ino_t; typedef unsigned short MSVCRT(_ino_t);
#define MSVCRT_INO_T_DEFINED #define MSVCRT_INO_T_DEFINED
#endif #endif
...@@ -71,14 +71,14 @@ typedef int MSVCRT(_off_t); ...@@ -71,14 +71,14 @@ typedef int MSVCRT(_off_t);
#ifndef MSVCRT_STAT_DEFINED #ifndef MSVCRT_STAT_DEFINED
#define MSVCRT_STAT_DEFINED #define MSVCRT_STAT_DEFINED
struct _stat { struct MSVCRT(_stat) {
_dev_t st_dev; MSVCRT(_dev_t) st_dev;
_ino_t st_ino; MSVCRT(_ino_t) st_ino;
unsigned short st_mode; unsigned short st_mode;
short st_nlink; short st_nlink;
short st_uid; short st_uid;
short st_gid; short st_gid;
_dev_t st_rdev; MSVCRT(_dev_t) st_rdev;
MSVCRT(_off_t) st_size; MSVCRT(_off_t) st_size;
MSVCRT(time_t) st_atime; MSVCRT(time_t) st_atime;
MSVCRT(time_t) st_mtime; MSVCRT(time_t) st_mtime;
...@@ -86,27 +86,27 @@ struct _stat { ...@@ -86,27 +86,27 @@ struct _stat {
}; };
struct MSVCRT(stat) { struct MSVCRT(stat) {
_dev_t st_dev; MSVCRT(_dev_t) st_dev;
_ino_t st_ino; MSVCRT(_ino_t) st_ino;
unsigned short st_mode; unsigned short st_mode;
short st_nlink; short st_nlink;
short st_uid; short st_uid;
short st_gid; short st_gid;
_dev_t st_rdev; MSVCRT(_dev_t) st_rdev;
MSVCRT(_off_t) st_size; MSVCRT(_off_t) st_size;
MSVCRT(time_t) st_atime; MSVCRT(time_t) st_atime;
MSVCRT(time_t) st_mtime; MSVCRT(time_t) st_mtime;
MSVCRT(time_t) st_ctime; MSVCRT(time_t) st_ctime;
}; };
struct _stati64 { struct MSVCRT(_stati64) {
_dev_t st_dev; MSVCRT(_dev_t) st_dev;
_ino_t st_ino; MSVCRT(_ino_t) st_ino;
unsigned short st_mode; unsigned short st_mode;
short st_nlink; short st_nlink;
short st_uid; short st_uid;
short st_gid; short st_gid;
_dev_t st_rdev; MSVCRT(_dev_t) st_rdev;
__int64 st_size; __int64 st_size;
MSVCRT(time_t) st_atime; MSVCRT(time_t) st_atime;
MSVCRT(time_t) st_mtime; MSVCRT(time_t) st_mtime;
...@@ -118,16 +118,16 @@ struct _stati64 { ...@@ -118,16 +118,16 @@ struct _stati64 {
extern "C" { extern "C" {
#endif #endif
int MSVCRT(_fstat)(int,struct _stat*); int MSVCRT(_fstat)(int,struct MSVCRT(_stat)*);
int MSVCRT(_stat)(const char*,struct _stat*); int MSVCRT(_stat)(const char*,struct MSVCRT(_stat)*);
int _fstati64(int,struct _stati64*); int MSVCRT(_fstati64)(int,struct MSVCRT(_stati64)*);
int _stati64(const char*,struct _stati64*); int MSVCRT(_stati64)(const char*,struct MSVCRT(_stati64)*);
int _umask(int); int _umask(int);
#ifndef MSVCRT_WSTAT_DEFINED #ifndef MSVCRT_WSTAT_DEFINED
#define MSVCRT_WSTAT_DEFINED #define MSVCRT_WSTAT_DEFINED
int _wstat(const MSVCRT(wchar_t)*,struct _stat*); int MSVCRT(_wstat)(const MSVCRT(wchar_t)*,struct MSVCRT(_stat)*);
int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*); int MSVCRT(_wstati64)(const MSVCRT(wchar_t)*,struct MSVCRT(_stati64)*);
#endif /* MSVCRT_WSTAT_DEFINED */ #endif /* MSVCRT_WSTAT_DEFINED */
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -105,8 +105,8 @@ MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*); ...@@ -105,8 +105,8 @@ MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*);
#ifndef MSVCRT_WTIME_DEFINED #ifndef MSVCRT_WTIME_DEFINED
#define MSVCRT_WTIME_DEFINED #define MSVCRT_WTIME_DEFINED
MSVCRT(wchar_t)*_wasctime(const struct MSVCRT(tm)*); MSVCRT(wchar_t)* MSVCRT(_wasctime)(const struct MSVCRT(tm)*);
MSVCRT(size_t) wcsftime(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*); MSVCRT(size_t) MSVCRT(wcsftime)(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*);
MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*); MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*);
MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*); MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*);
MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*); MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*);
......
...@@ -130,16 +130,16 @@ typedef struct MSVCRT(_iobuf) ...@@ -130,16 +130,16 @@ typedef struct MSVCRT(_iobuf)
#ifndef MSVCRT_WFINDDATA_T_DEFINED #ifndef MSVCRT_WFINDDATA_T_DEFINED
#define MSVCRT_WFINDDATA_T_DEFINED #define MSVCRT_WFINDDATA_T_DEFINED
struct _wfinddata_t { struct MSVCRT(_wfinddata_t) {
unsigned attrib; unsigned attrib;
MSVCRT(time_t) time_create; MSVCRT(time_t) time_create;
MSVCRT(time_t) time_access; MSVCRT(time_t) time_access;
MSVCRT(time_t) time_write; MSVCRT(time_t) time_write;
_fsize_t size; MSVCRT(_fsize_t) size;
MSVCRT(wchar_t) name[260]; MSVCRT(wchar_t) name[260];
}; };
struct _wfinddatai64_t { struct MSVCRT(_wfinddatai64_t) {
unsigned attrib; unsigned attrib;
MSVCRT(time_t) time_create; MSVCRT(time_t) time_create;
MSVCRT(time_t) time_access; MSVCRT(time_t) time_access;
...@@ -153,28 +153,28 @@ struct _wfinddatai64_t { ...@@ -153,28 +153,28 @@ struct _wfinddatai64_t {
#ifndef MSVCRT_STAT_DEFINED #ifndef MSVCRT_STAT_DEFINED
#define MSVCRT_STAT_DEFINED #define MSVCRT_STAT_DEFINED
struct _stat { struct MSVCRT(_stat) {
_dev_t st_dev; MSVCRT(_dev_t) st_dev;
_ino_t st_ino; MSVCRT(_ino_t) st_ino;
unsigned short st_mode; unsigned short st_mode;
short st_nlink; short st_nlink;
short st_uid; short st_uid;
short st_gid; short st_gid;
_dev_t st_rdev; MSVCRT(_dev_t) st_rdev;
MSVCRT(_off_t) st_size; MSVCRT(_off_t) st_size;
MSVCRT(time_t) st_atime; MSVCRT(time_t) st_atime;
MSVCRT(time_t) st_mtime; MSVCRT(time_t) st_mtime;
MSVCRT(time_t) st_ctime; MSVCRT(time_t) st_ctime;
}; };
struct _stati64 { struct MSVCRT(_stati64) {
_dev_t st_dev; MSVCRT(_dev_t) st_dev;
_ino_t st_ino; MSVCRT(_ino_t) st_ino;
unsigned short st_mode; unsigned short st_mode;
short st_nlink; short st_nlink;
short st_uid; short st_uid;
short st_gid; short st_gid;
_dev_t st_rdev; MSVCRT(_dev_t) st_rdev;
__int64 st_size; __int64 st_size;
MSVCRT(time_t) st_atime; MSVCRT(time_t) st_atime;
MSVCRT(time_t) st_mtime; MSVCRT(time_t) st_mtime;
...@@ -268,8 +268,8 @@ int _wsystem(const MSVCRT(wchar_t)*); ...@@ -268,8 +268,8 @@ int _wsystem(const MSVCRT(wchar_t)*);
#ifndef MSVCRT_WSTAT_DEFINED #ifndef MSVCRT_WSTAT_DEFINED
#define MSVCRT_WSTAT_DEFINED #define MSVCRT_WSTAT_DEFINED
int _wstat(const MSVCRT(wchar_t)*,struct _stat*); int _wstat(const MSVCRT(wchar_t)*,struct MSVCRT(_stat)*);
int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*); int _wstati64(const MSVCRT(wchar_t)*,struct MSVCRT(_stati64)*);
#endif /* MSVCRT_WSTAT_DEFINED */ #endif /* MSVCRT_WSTAT_DEFINED */
#ifndef MSVCRT_WSTDIO_DEFINED #ifndef MSVCRT_WSTDIO_DEFINED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment