msvcrt: The __p_* functions are only exported on i386.

This commit is contained in:
Alexandre Julliard 2008-12-15 16:20:08 +01:00
parent b19913ac70
commit e2b3ee535f
10 changed files with 194 additions and 168 deletions

View File

@ -121,35 +121,35 @@
@ extern __lc_handle msvcrt.__lc_handle @ extern __lc_handle msvcrt.__lc_handle
@ cdecl __lconv_init() msvcrt.__lconv_init @ cdecl __lconv_init() msvcrt.__lconv_init
@ extern __mb_cur_max msvcrt.__mb_cur_max @ extern __mb_cur_max msvcrt.__mb_cur_max
@ cdecl __p___argc() msvcrt.__p___argc @ cdecl -arch=i386 __p___argc() msvcrt.__p___argc
@ cdecl __p___argv() msvcrt.__p___argv @ cdecl -arch=i386 __p___argv() msvcrt.__p___argv
@ cdecl __p___initenv() msvcrt.__p___initenv @ cdecl -arch=i386 __p___initenv() msvcrt.__p___initenv
@ cdecl __p___mb_cur_max() msvcrt.__p___mb_cur_max @ cdecl -arch=i386 __p___mb_cur_max() msvcrt.__p___mb_cur_max
@ cdecl __p___wargv() msvcrt.__p___wargv @ cdecl -arch=i386 __p___wargv() msvcrt.__p___wargv
@ cdecl __p___winitenv() msvcrt.__p___winitenv @ cdecl -arch=i386 __p___winitenv() msvcrt.__p___winitenv
@ cdecl __p__acmdln() msvcrt.__p__acmdln @ cdecl -arch=i386 __p__acmdln() msvcrt.__p__acmdln
@ cdecl __p__amblksiz() msvcrt.__p__amblksiz @ cdecl -arch=i386 __p__amblksiz() msvcrt.__p__amblksiz
@ cdecl __p__commode() msvcrt.__p__commode @ cdecl -arch=i386 __p__commode() msvcrt.__p__commode
@ cdecl __p__daylight() msvcrt.__p__daylight @ cdecl -arch=i386 __p__daylight() msvcrt.__p__daylight
@ cdecl __p__dstbias() msvcrt.__p__dstbias @ cdecl -arch=i386 __p__dstbias() msvcrt.__p__dstbias
@ cdecl __p__environ() msvcrt.__p__environ @ cdecl -arch=i386 __p__environ() msvcrt.__p__environ
@ cdecl __p__fileinfo() msvcrt.__p__fileinfo @ cdecl -arch=i386 __p__fileinfo() msvcrt.__p__fileinfo
@ cdecl __p__fmode() msvcrt.__p__fmode @ cdecl -arch=i386 __p__fmode() msvcrt.__p__fmode
@ cdecl -arch=i386 __p__iob() msvcrt.__p__iob @ cdecl -arch=i386 __p__iob() msvcrt.__p__iob
@ cdecl __p__mbcasemap() msvcrt.__p__mbcasemap @ cdecl -arch=i386 __p__mbcasemap() msvcrt.__p__mbcasemap
@ cdecl __p__mbctype() msvcrt.__p__mbctype @ cdecl -arch=i386 __p__mbctype() msvcrt.__p__mbctype
@ cdecl __p__osver() msvcrt.__p__osver @ cdecl -arch=i386 __p__osver() msvcrt.__p__osver
@ cdecl __p__pctype() msvcrt.__p__pctype @ cdecl -arch=i386 __p__pctype() msvcrt.__p__pctype
@ cdecl __p__pgmptr() msvcrt.__p__pgmptr @ cdecl -arch=i386 __p__pgmptr() msvcrt.__p__pgmptr
@ cdecl __p__pwctype() msvcrt.__p__pwctype @ cdecl -arch=i386 __p__pwctype() msvcrt.__p__pwctype
@ cdecl __p__timezone() msvcrt.__p__timezone @ cdecl -arch=i386 __p__timezone() msvcrt.__p__timezone
@ cdecl __p__tzname() msvcrt.__p__tzname @ cdecl -arch=i386 __p__tzname() msvcrt.__p__tzname
@ cdecl __p__wcmdln() msvcrt.__p__wcmdln @ cdecl -arch=i386 __p__wcmdln() msvcrt.__p__wcmdln
@ cdecl __p__wenviron() msvcrt.__p__wenviron @ cdecl -arch=i386 __p__wenviron() msvcrt.__p__wenviron
@ cdecl __p__winmajor() msvcrt.__p__winmajor @ cdecl -arch=i386 __p__winmajor() msvcrt.__p__winmajor
@ cdecl __p__winminor() msvcrt.__p__winminor @ cdecl -arch=i386 __p__winminor() msvcrt.__p__winminor
@ cdecl __p__winver() msvcrt.__p__winver @ cdecl -arch=i386 __p__winver() msvcrt.__p__winver
@ cdecl __p__wpgmptr() msvcrt.__p__wpgmptr @ cdecl -arch=i386 __p__wpgmptr() msvcrt.__p__wpgmptr
@ cdecl __pctype_func() msvcrt.__pctype_func @ cdecl __pctype_func() msvcrt.__pctype_func
@ extern __pioinfo msvcrt.__pioinfo @ extern __pioinfo msvcrt.__pioinfo
@ stub __pwctype_func @ stub __pwctype_func

View File

@ -113,35 +113,35 @@
@ extern __lc_handle MSVCRT___lc_handle @ extern __lc_handle MSVCRT___lc_handle
@ cdecl __lconv_init() @ cdecl __lconv_init()
@ extern __mb_cur_max MSVCRT___mb_cur_max @ extern __mb_cur_max MSVCRT___mb_cur_max
@ cdecl __p___argc() @ cdecl -arch=i386 __p___argc()
@ cdecl __p___argv() @ cdecl -arch=i386 __p___argv()
@ cdecl __p___initenv() @ cdecl -arch=i386 __p___initenv()
@ cdecl __p___mb_cur_max() MSVCRT____mb_cur_max_func @ cdecl -arch=i386 __p___mb_cur_max() MSVCRT____mb_cur_max_func
@ cdecl __p___wargv() @ cdecl -arch=i386 __p___wargv()
@ cdecl __p___winitenv() @ cdecl -arch=i386 __p___winitenv()
@ cdecl __p__acmdln() @ cdecl -arch=i386 __p__acmdln()
@ cdecl __p__amblksiz() @ cdecl -arch=i386 __p__amblksiz()
@ cdecl __p__commode() @ cdecl -arch=i386 __p__commode()
@ cdecl __p__daylight() MSVCRT___p__daylight @ cdecl -arch=i386 __p__daylight() MSVCRT___p__daylight
@ cdecl __p__dstbias() @ cdecl -arch=i386 __p__dstbias()
@ cdecl __p__environ() @ cdecl -arch=i386 __p__environ()
@ stub __p__fileinfo #() @ stub -arch=i386 __p__fileinfo #()
@ cdecl __p__fmode() @ cdecl -arch=i386 __p__fmode()
@ cdecl -arch=i386 __p__iob() MSVCRT___iob_func @ cdecl -arch=i386 __p__iob() MSVCRT___iob_func
@ stub __p__mbcasemap #() @ stub -arch=i386 __p__mbcasemap #()
@ cdecl __p__mbctype() @ cdecl -arch=i386 __p__mbctype()
@ cdecl __p__osver() @ cdecl -arch=i386 __p__osver()
@ cdecl __p__pctype() MSVCRT___pctype_func @ cdecl -arch=i386 __p__pctype() MSVCRT___pctype_func
@ cdecl __p__pgmptr() @ cdecl -arch=i386 __p__pgmptr()
@ stub __p__pwctype #() @ stub -arch=i386 __p__pwctype #()
@ cdecl __p__timezone() MSVCRT___p__timezone @ cdecl -arch=i386 __p__timezone() MSVCRT___p__timezone
@ cdecl __p__tzname() @ cdecl -arch=i386 __p__tzname()
@ cdecl __p__wcmdln() @ cdecl -arch=i386 __p__wcmdln()
@ cdecl __p__wenviron() @ cdecl -arch=i386 __p__wenviron()
@ cdecl __p__winmajor() @ cdecl -arch=i386 __p__winmajor()
@ cdecl __p__winminor() @ cdecl -arch=i386 __p__winminor()
@ cdecl __p__winver() @ cdecl -arch=i386 __p__winver()
@ cdecl __p__wpgmptr() @ cdecl -arch=i386 __p__wpgmptr()
@ cdecl __pctype_func() MSVCRT___pctype_func @ cdecl __pctype_func() MSVCRT___pctype_func
@ extern __pioinfo MSVCRT___pioinfo @ extern __pioinfo MSVCRT___pioinfo
@ stub __pxcptinfoptrs #() @ stub __pxcptinfoptrs #()

View File

@ -471,32 +471,32 @@
@ cdecl __iscsymf(long) msvcrt.__iscsymf @ cdecl __iscsymf(long) msvcrt.__iscsymf
@ cdecl __lconv_init() msvcrt.__lconv_init @ cdecl __lconv_init() msvcrt.__lconv_init
@ extern __mb_cur_max msvcrt.__mb_cur_max @ extern __mb_cur_max msvcrt.__mb_cur_max
@ cdecl __p___argc() msvcrt.__p___argc @ cdecl -arch=i386 __p___argc() msvcrt.__p___argc
@ cdecl __p___argv() msvcrt.__p___argv @ cdecl -arch=i386 __p___argv() msvcrt.__p___argv
@ cdecl __p___initenv() msvcrt.__p___initenv @ cdecl -arch=i386 __p___initenv() msvcrt.__p___initenv
@ cdecl __p___mb_cur_max() msvcrt.__p___mb_cur_max @ cdecl -arch=i386 __p___mb_cur_max() msvcrt.__p___mb_cur_max
@ cdecl __p___wargv() msvcrt.__p___wargv @ cdecl -arch=i386 __p___wargv() msvcrt.__p___wargv
@ cdecl __p___winitenv() msvcrt.__p___winitenv @ cdecl -arch=i386 __p___winitenv() msvcrt.__p___winitenv
@ cdecl __p__acmdln() msvcrt.__p__acmdln @ cdecl -arch=i386 __p__acmdln() msvcrt.__p__acmdln
@ cdecl __p__amblksiz() msvcrt.__p__amblksiz @ cdecl -arch=i386 __p__amblksiz() msvcrt.__p__amblksiz
@ cdecl __p__commode() msvcrt.__p__commode @ cdecl -arch=i386 __p__commode() msvcrt.__p__commode
@ cdecl __p__daylight() msvcrt.__p__daylight @ cdecl -arch=i386 __p__daylight() msvcrt.__p__daylight
@ cdecl __p__environ() msvcrt.__p__environ @ cdecl -arch=i386 __p__environ() msvcrt.__p__environ
@ cdecl __p__fmode() msvcrt.__p__fmode @ cdecl -arch=i386 __p__fmode() msvcrt.__p__fmode
@ cdecl -arch=i386 __p__iob() msvcrt.__p__iob @ cdecl -arch=i386 __p__iob() msvcrt.__p__iob
@ cdecl __p__mbctype() msvcrt.__p__mbctype @ cdecl -arch=i386 __p__mbctype() msvcrt.__p__mbctype
@ cdecl __p__osver() msvcrt.__p__osver @ cdecl -arch=i386 __p__osver() msvcrt.__p__osver
@ cdecl __p__pctype() msvcrt.__p__pctype @ cdecl -arch=i386 __p__pctype() msvcrt.__p__pctype
@ cdecl __p__pgmptr() msvcrt.__p__pgmptr @ cdecl -arch=i386 __p__pgmptr() msvcrt.__p__pgmptr
@ cdecl __p__pwctype() msvcrt.__p__pwctype @ cdecl -arch=i386 __p__pwctype() msvcrt.__p__pwctype
@ cdecl __p__timezone() msvcrt.__p__timezone @ cdecl -arch=i386 __p__timezone() msvcrt.__p__timezone
@ cdecl __p__tzname() msvcrt.__p__tzname @ cdecl -arch=i386 __p__tzname() msvcrt.__p__tzname
@ cdecl __p__wcmdln() msvcrt.__p__wcmdln @ cdecl -arch=i386 __p__wcmdln() msvcrt.__p__wcmdln
@ cdecl __p__wenviron() msvcrt.__p__wenviron @ cdecl -arch=i386 __p__wenviron() msvcrt.__p__wenviron
@ cdecl __p__winmajor() msvcrt.__p__winmajor @ cdecl -arch=i386 __p__winmajor() msvcrt.__p__winmajor
@ cdecl __p__winminor() msvcrt.__p__winminor @ cdecl -arch=i386 __p__winminor() msvcrt.__p__winminor
@ cdecl __p__winver() msvcrt.__p__winver @ cdecl -arch=i386 __p__winver() msvcrt.__p__winver
@ cdecl __p__wpgmptr() msvcrt.__p__wpgmptr @ cdecl -arch=i386 __p__wpgmptr() msvcrt.__p__wpgmptr
@ cdecl __pxcptinfoptrs() msvcrt.__pxcptinfoptrs @ cdecl __pxcptinfoptrs() msvcrt.__pxcptinfoptrs
@ cdecl __threadhandle() msvcrt.__threadhandle @ cdecl __threadhandle() msvcrt.__threadhandle
@ cdecl __threadid() msvcrt.__threadid @ cdecl __threadid() msvcrt.__threadid

View File

@ -519,33 +519,33 @@
@ cdecl __iscsymf(long) msvcrt.__iscsymf @ cdecl __iscsymf(long) msvcrt.__iscsymf
@ cdecl __lconv_init() msvcrt.__lconv_init @ cdecl __lconv_init() msvcrt.__lconv_init
@ extern __mb_cur_max msvcrt.__mb_cur_max @ extern __mb_cur_max msvcrt.__mb_cur_max
@ cdecl __p___argc() msvcrt.__p___argc @ cdecl -arch=i386 __p___argc() msvcrt.__p___argc
@ cdecl __p___argv() msvcrt.__p___argv @ cdecl -arch=i386 __p___argv() msvcrt.__p___argv
@ cdecl __p___initenv() msvcrt.__p___initenv @ cdecl -arch=i386 __p___initenv() msvcrt.__p___initenv
@ cdecl __p___mb_cur_max() msvcrt.__p___mb_cur_max @ cdecl -arch=i386 __p___mb_cur_max() msvcrt.__p___mb_cur_max
@ cdecl __p___wargv() msvcrt.__p___wargv @ cdecl -arch=i386 __p___wargv() msvcrt.__p___wargv
@ cdecl __p___winitenv() msvcrt.__p___winitenv @ cdecl -arch=i386 __p___winitenv() msvcrt.__p___winitenv
@ cdecl __p__acmdln() msvcrt.__p__acmdln @ cdecl -arch=i386 __p__acmdln() msvcrt.__p__acmdln
@ cdecl __p__amblksiz() msvcrt.__p__amblksiz @ cdecl -arch=i386 __p__amblksiz() msvcrt.__p__amblksiz
@ cdecl __p__commode() msvcrt.__p__commode @ cdecl -arch=i386 __p__commode() msvcrt.__p__commode
@ cdecl __p__daylight() msvcrt.__p__daylight @ cdecl -arch=i386 __p__daylight() msvcrt.__p__daylight
@ cdecl __p__dstbias() msvcrt.__p__dstbias @ cdecl -arch=i386 __p__dstbias() msvcrt.__p__dstbias
@ cdecl __p__environ() msvcrt.__p__environ @ cdecl -arch=i386 __p__environ() msvcrt.__p__environ
@ cdecl __p__fmode() msvcrt.__p__fmode @ cdecl -arch=i386 __p__fmode() msvcrt.__p__fmode
@ cdecl -arch=i386 __p__iob() msvcrt.__p__iob @ cdecl -arch=i386 __p__iob() msvcrt.__p__iob
@ cdecl __p__mbctype() msvcrt.__p__mbctype @ cdecl -arch=i386 __p__mbctype() msvcrt.__p__mbctype
@ cdecl __p__osver() msvcrt.__p__osver @ cdecl -arch=i386 __p__osver() msvcrt.__p__osver
@ cdecl __p__pctype() msvcrt.__p__pctype @ cdecl -arch=i386 __p__pctype() msvcrt.__p__pctype
@ cdecl __p__pgmptr() msvcrt.__p__pgmptr @ cdecl -arch=i386 __p__pgmptr() msvcrt.__p__pgmptr
@ cdecl __p__pwctype() msvcrt.__p__pwctype @ cdecl -arch=i386 __p__pwctype() msvcrt.__p__pwctype
@ cdecl __p__timezone() msvcrt.__p__timezone @ cdecl -arch=i386 __p__timezone() msvcrt.__p__timezone
@ cdecl __p__tzname() msvcrt.__p__tzname @ cdecl -arch=i386 __p__tzname() msvcrt.__p__tzname
@ cdecl __p__wcmdln() msvcrt.__p__wcmdln @ cdecl -arch=i386 __p__wcmdln() msvcrt.__p__wcmdln
@ cdecl __p__wenviron() msvcrt.__p__wenviron @ cdecl -arch=i386 __p__wenviron() msvcrt.__p__wenviron
@ cdecl __p__winmajor() msvcrt.__p__winmajor @ cdecl -arch=i386 __p__winmajor() msvcrt.__p__winmajor
@ cdecl __p__winminor() msvcrt.__p__winminor @ cdecl -arch=i386 __p__winminor() msvcrt.__p__winminor
@ cdecl __p__winver() msvcrt.__p__winver @ cdecl -arch=i386 __p__winver() msvcrt.__p__winver
@ cdecl __p__wpgmptr() msvcrt.__p__wpgmptr @ cdecl -arch=i386 __p__wpgmptr() msvcrt.__p__wpgmptr
@ cdecl __pxcptinfoptrs() msvcrt.__pxcptinfoptrs @ cdecl __pxcptinfoptrs() msvcrt.__pxcptinfoptrs
@ cdecl __set_app_type(long) msvcrt.__set_app_type @ cdecl __set_app_type(long) msvcrt.__set_app_type
@ cdecl __setusermatherr(ptr) msvcrt.__setusermatherr @ cdecl __setusermatherr(ptr) msvcrt.__setusermatherr

View File

@ -120,38 +120,38 @@
@ extern __lc_handle msvcrt.__lc_handle @ extern __lc_handle msvcrt.__lc_handle
@ cdecl __lconv_init() msvcrt.__lconv_init @ cdecl __lconv_init() msvcrt.__lconv_init
@ extern __mb_cur_max msvcrt.__mb_cur_max @ extern __mb_cur_max msvcrt.__mb_cur_max
@ cdecl __p___argc() msvcrt.__p___argc @ cdecl -arch=i386 __p___argc() msvcrt.__p___argc
@ cdecl __p___argv() msvcrt.__p___argv @ cdecl -arch=i386 __p___argv() msvcrt.__p___argv
@ cdecl __p___initenv() msvcrt.__p___initenv @ cdecl -arch=i386 __p___initenv() msvcrt.__p___initenv
@ cdecl __p___mb_cur_max() msvcrt.__p___mb_cur_max @ cdecl -arch=i386 __p___mb_cur_max() msvcrt.__p___mb_cur_max
@ cdecl __p___wargv() msvcrt.__p___wargv @ cdecl -arch=i386 __p___wargv() msvcrt.__p___wargv
@ cdecl __p___winitenv() msvcrt.__p___winitenv @ cdecl -arch=i386 __p___winitenv() msvcrt.__p___winitenv
@ cdecl __p__acmdln() msvcrt.__p__acmdln @ cdecl -arch=i386 __p__acmdln() msvcrt.__p__acmdln
@ cdecl __p__amblksiz() msvcrt.__p__amblksiz @ cdecl -arch=i386 __p__amblksiz() msvcrt.__p__amblksiz
@ cdecl __p__commode() msvcrt.__p__commode @ cdecl -arch=i386 __p__commode() msvcrt.__p__commode
@ cdecl __p__crtAssertBusy() @ cdecl -arch=i386 __p__crtAssertBusy()
@ cdecl __p__crtBreakAlloc() @ cdecl -arch=i386 __p__crtBreakAlloc()
@ cdecl __p__crtDbgFlag() @ cdecl -arch=i386 __p__crtDbgFlag()
@ cdecl __p__daylight() msvcrt.__p__daylight @ cdecl -arch=i386 __p__daylight() msvcrt.__p__daylight
@ cdecl __p__dstbias() msvcrt.__p__dstbias @ cdecl -arch=i386 __p__dstbias() msvcrt.__p__dstbias
@ cdecl __p__environ() msvcrt.__p__environ @ cdecl -arch=i386 __p__environ() msvcrt.__p__environ
@ cdecl __p__fileinfo() msvcrt.__p__fileinfo @ cdecl -arch=i386 __p__fileinfo() msvcrt.__p__fileinfo
@ cdecl __p__fmode() msvcrt.__p__fmode @ cdecl -arch=i386 __p__fmode() msvcrt.__p__fmode
@ cdecl -arch=i386 __p__iob() msvcrt.__p__iob @ cdecl -arch=i386 __p__iob() msvcrt.__p__iob
@ cdecl __p__mbcasemap() msvcrt.__p__mbcasemap @ cdecl -arch=i386 __p__mbcasemap() msvcrt.__p__mbcasemap
@ cdecl __p__mbctype() msvcrt.__p__mbctype @ cdecl -arch=i386 __p__mbctype() msvcrt.__p__mbctype
@ cdecl __p__osver() msvcrt.__p__osver @ cdecl -arch=i386 __p__osver() msvcrt.__p__osver
@ cdecl __p__pctype() msvcrt.__p__pctype @ cdecl -arch=i386 __p__pctype() msvcrt.__p__pctype
@ cdecl __p__pgmptr() msvcrt.__p__pgmptr @ cdecl -arch=i386 __p__pgmptr() msvcrt.__p__pgmptr
@ cdecl __p__pwctype() msvcrt.__p__pwctype @ cdecl -arch=i386 __p__pwctype() msvcrt.__p__pwctype
@ cdecl __p__timezone() msvcrt.__p__timezone @ cdecl -arch=i386 __p__timezone() msvcrt.__p__timezone
@ cdecl __p__tzname() msvcrt.__p__tzname @ cdecl -arch=i386 __p__tzname() msvcrt.__p__tzname
@ cdecl __p__wcmdln() msvcrt.__p__wcmdln @ cdecl -arch=i386 __p__wcmdln() msvcrt.__p__wcmdln
@ cdecl __p__wenviron() msvcrt.__p__wenviron @ cdecl -arch=i386 __p__wenviron() msvcrt.__p__wenviron
@ cdecl __p__winmajor() msvcrt.__p__winmajor @ cdecl -arch=i386 __p__winmajor() msvcrt.__p__winmajor
@ cdecl __p__winminor() msvcrt.__p__winminor @ cdecl -arch=i386 __p__winminor() msvcrt.__p__winminor
@ cdecl __p__winver() msvcrt.__p__winver @ cdecl -arch=i386 __p__winver() msvcrt.__p__winver
@ cdecl __p__wpgmptr() msvcrt.__p__wpgmptr @ cdecl -arch=i386 __p__wpgmptr() msvcrt.__p__wpgmptr
@ cdecl __pctype_func() msvcrt.__pctype_func @ cdecl __pctype_func() msvcrt.__pctype_func
@ extern __pioinfo msvcrt.__pioinfo @ extern __pioinfo msvcrt.__pioinfo
@ cdecl __pxcptinfoptrs() msvcrt.__pxcptinfoptrs @ cdecl __pxcptinfoptrs() msvcrt.__pxcptinfoptrs

View File

@ -43,8 +43,12 @@ typedef struct _heapinfo
} _HEAPINFO; } _HEAPINFO;
#endif /* _HEAPINFO_DEFINED */ #endif /* _HEAPINFO_DEFINED */
#ifdef __i386__
extern unsigned int* __p__amblksiz(void); extern unsigned int* __p__amblksiz(void);
#define _amblksiz (*__p__amblksiz()); #define _amblksiz (*__p__amblksiz());
#else
extern unsigned int _amblksiz;
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -26,8 +26,12 @@
extern "C" { extern "C" {
#endif #endif
#ifdef __i386__
unsigned char* __p__mbctype(void); unsigned char* __p__mbctype(void);
#define _mbctype (__p__mbctype()) #define _mbctype (__p__mbctype())
#else
extern unsigned char MSVCRT_mbctype[];
#endif
#define _MS 0x01 #define _MS 0x01
#define _MP 0x02 #define _MP 0x02

View File

@ -81,13 +81,8 @@ extern "C" {
#endif #endif
#ifndef _STDIO_DEFINED #ifndef _STDIO_DEFINED
# ifdef _WIN64 /* __p__iob is not exported in Win64 */
FILE* __iob_func(void); FILE* __iob_func(void);
# define _iob (__iob_func()) # define _iob (__iob_func())
# else
FILE* __p__iob(void);
# define _iob (__p__iob())
# endif /* _WIN64 */
#endif /* _STDIO_DEFINED */ #endif /* _STDIO_DEFINED */
#define stdin (_iob+STDIN_FILENO) #define stdin (_iob+STDIN_FILENO)

View File

@ -76,39 +76,55 @@ typedef struct _ldiv_t {
extern "C" { extern "C" {
#endif #endif
extern unsigned int* __p__osver(void); #ifdef __i386__
extern unsigned int* __p__winver(void);
extern unsigned int* __p__winmajor(void);
extern unsigned int* __p__winminor(void);
#define _osver (*__p__osver())
#define _winver (*__p__winver())
#define _winmajor (*__p__winmajor())
#define _winminor (*__p__winminor())
extern unsigned int* __p__osver(void);
#define _osver (*__p__osver())
extern unsigned int* __p__winver(void);
#define _winver (*__p__winver())
extern unsigned int* __p__winmajor(void);
#define _winmajor (*__p__winmajor())
extern unsigned int* __p__winminor(void);
#define _winminor (*__p__winminor())
extern int* __p___argc(void); extern int* __p___argc(void);
#define __argc (*__p___argc())
extern char*** __p___argv(void); extern char*** __p___argv(void);
extern wchar_t*** __p___wargv(void); #define __argv (*__p___argv())
extern wchar_t*** __p___wargv(void);
#define __wargv (*__p___wargv())
extern char*** __p__environ(void); extern char*** __p__environ(void);
extern wchar_t*** __p__wenviron(void); #define _environ (*__p__environ())
extern int* ___mb_cur_max_func(void); extern wchar_t*** __p__wenviron(void);
extern unsigned long* __doserrno(void); #define _wenviron (*__p__wenviron())
extern unsigned int* __p__fmode(void); extern unsigned int* __p__fmode(void);
#define _fmode (*__p__fmode())
#else /* __i386__ */
extern unsigned int _osver;
extern unsigned int _winver;
extern unsigned int _winmajor;
extern unsigned int _winminor;
extern int __argc;
extern char **__argv;
extern wchar_t **__wargv;
extern char **_environ;
extern wchar_t **_wenviron;
extern unsigned int _fmode;
#endif /* __i386__ */
extern int* ___mb_cur_max_func(void);
#define __mb_cur_max (*___mb_cur_max_func())
extern unsigned long* __doserrno(void);
#define _doserrno (*__doserrno())
extern int* _errno(void);
#define errno (*_errno())
/* FIXME: We need functions to access these: /* FIXME: We need functions to access these:
* int _sys_nerr; * int _sys_nerr;
* char** _sys_errlist; * char** _sys_errlist;
*/ */
#define __argc (*__p___argc())
#define __argv (*__p___argv())
#define __wargv (*__p___wargv())
#define _environ (*__p__environ())
#define _wenviron (*__p__wenviron())
#define __mb_cur_max (*___mb_cur_max_func())
#define _doserrno (*__doserrno())
#define _fmode (*_fmode)
extern int* _errno(void);
#define errno (*_errno())
typedef int (*_onexit_t)(void); typedef int (*_onexit_t)(void);

View File

@ -60,6 +60,7 @@ struct tm {
extern "C" { extern "C" {
#endif #endif
#ifdef __i386__
#define _daylight (*__p__daylight()) #define _daylight (*__p__daylight())
#define _dstbias (*__p__dstbias()) #define _dstbias (*__p__dstbias())
#define _timezone (*__p__timezone()) #define _timezone (*__p__timezone())
@ -69,6 +70,12 @@ int *__p__daylight(void);
long *__p__dstbias(void); long *__p__dstbias(void);
long *__p__timezone(void); long *__p__timezone(void);
char **__p__tzname(void); char **__p__tzname(void);
#else
extern int _daylight;
extern long _dstbias;
extern long _timezone;
extern char *_tzname;
#endif
unsigned _getsystime(struct tm*); unsigned _getsystime(struct tm*);
unsigned _setsystime(struct tm*,unsigned); unsigned _setsystime(struct tm*,unsigned);