msvcrt: Implement _ftime64_s and _ftime32_s.
This commit is contained in:
parent
f6990085cc
commit
b6acca6696
|
@ -659,9 +659,9 @@
|
|||
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
|
||||
@ stub _ftelli64_nolock
|
||||
@ cdecl _ftime32(ptr) msvcrt._ftime32
|
||||
@ stub _ftime32_s
|
||||
@ cdecl _ftime32_s(ptr) msvcrt._ftime32_s
|
||||
@ cdecl _ftime64(ptr) msvcrt._ftime64
|
||||
@ stub _ftime64_s
|
||||
@ cdecl _ftime64_s(ptr) msvcrt._ftime64_s
|
||||
@ cdecl -ret64 _ftol() msvcrt._ftol
|
||||
@ cdecl _fullpath(ptr str long) msvcrt._fullpath
|
||||
@ cdecl _futime32(long ptr) msvcrt._futime32
|
||||
|
|
|
@ -500,9 +500,9 @@
|
|||
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
|
||||
@ stub _ftelli64_nolock
|
||||
@ cdecl _ftime32(ptr) msvcrt._ftime32
|
||||
@ stub _ftime32_s
|
||||
@ cdecl _ftime32_s(ptr) msvcrt._ftime32_s
|
||||
@ cdecl _ftime64(ptr) msvcrt._ftime64
|
||||
@ stub _ftime64_s
|
||||
@ cdecl _ftime64_s(ptr) msvcrt._ftime64_s
|
||||
@ cdecl -ret64 _ftol() msvcrt._ftol
|
||||
@ cdecl _fullpath(ptr str long) msvcrt._fullpath
|
||||
@ cdecl _futime32(long ptr) msvcrt._futime32
|
||||
|
|
|
@ -492,9 +492,9 @@
|
|||
@ cdecl -ret64 _ftelli64(ptr) msvcrt._ftelli64
|
||||
@ stub _ftelli64_nolock
|
||||
@ cdecl _ftime32(ptr) msvcrt._ftime32
|
||||
@ stub _ftime32_s
|
||||
@ cdecl _ftime32_s(ptr) msvcrt._ftime32_s
|
||||
@ cdecl _ftime64(ptr) msvcrt._ftime64
|
||||
@ stub _ftime64_s
|
||||
@ cdecl _ftime64_s(ptr) msvcrt._ftime64_s
|
||||
@ cdecl -ret64 _ftol() msvcrt._ftol
|
||||
@ cdecl _fullpath(ptr str long) msvcrt._fullpath
|
||||
@ cdecl _futime32(long ptr) msvcrt._futime32
|
||||
|
|
|
@ -444,9 +444,9 @@
|
|||
@ cdecl -ret64 _ftelli64(ptr) MSVCRT__ftelli64
|
||||
@ cdecl _ftime(ptr) MSVCRT__ftime
|
||||
@ cdecl _ftime32(ptr) MSVCRT__ftime32
|
||||
# stub _ftime32_s
|
||||
@ cdecl _ftime32_s(ptr) MSVCRT__ftime32_s
|
||||
@ cdecl _ftime64(ptr) MSVCRT__ftime64
|
||||
# stub _ftime64_s
|
||||
@ cdecl _ftime64_s(ptr) MSVCRT__ftime64_s
|
||||
@ cdecl -ret64 _ftol() ntdll._ftol
|
||||
@ cdecl -ret64 _ftol2() ntdll._ftol
|
||||
@ cdecl -ret64 _ftol2_sse() ntdll._ftol #FIXME: SSE variant should be implemented
|
||||
|
|
|
@ -601,6 +601,20 @@ void CDECL MSVCRT__ftime64(struct MSVCRT___timeb64 *buf)
|
|||
buf->dstflag = (tzid == TIME_ZONE_ID_DAYLIGHT?1:0);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _ftime64_s (MSVCRT.@)
|
||||
*/
|
||||
int CDECL MSVCRT__ftime64_s(struct MSVCRT___timeb64 *buf)
|
||||
{
|
||||
if( !MSVCRT_CHECK_PMT( buf != NULL ) )
|
||||
{
|
||||
*MSVCRT__errno() = MSVCRT_EINVAL;
|
||||
return MSVCRT_EINVAL;
|
||||
}
|
||||
MSVCRT__ftime64(buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _ftime32 (MSVCRT.@)
|
||||
*/
|
||||
|
@ -615,6 +629,20 @@ void CDECL MSVCRT__ftime32(struct MSVCRT___timeb32 *buf)
|
|||
buf->dstflag = buf64.dstflag;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _ftime32_s (MSVCRT.@)
|
||||
*/
|
||||
int CDECL MSVCRT__ftime32_s(struct MSVCRT___timeb32 *buf)
|
||||
{
|
||||
if( !MSVCRT_CHECK_PMT( buf != NULL ) )
|
||||
{
|
||||
*MSVCRT__errno() = MSVCRT_EINVAL;
|
||||
return MSVCRT_EINVAL;
|
||||
}
|
||||
MSVCRT__ftime32(buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _ftime (MSVCRT.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue