winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
May 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
793 discussions
Start a n
N
ew thread
Alexandre Julliard : msvcrt: Replace long by MSVCRT_long.
by Alexandre Julliard
25 May '09
25 May '09
Module: wine Branch: master Commit: 82f175e9b5ab98a9b3a59d7f65bf42f8d55e4b8e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=82f175e9b5ab98a9b3a59d7f6…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 23 11:49:09 2009 +0200 msvcrt: Replace long by MSVCRT_long. --- dlls/msvcrt/errno.c | 4 +- dlls/msvcrt/file.c | 22 ++++++++++---------- dlls/msvcrt/math.c | 14 ++++++------ dlls/msvcrt/misc.c | 4 +- dlls/msvcrt/msvcrt.h | 14 +++++++----- dlls/msvcrt/process.c | 4 +- dlls/msvcrt/tests/file.c | 48 +++++++++++++++++++++++----------------------- dlls/msvcrt/time.c | 6 ++-- dlls/msvcrt/undname.c | 4 +- 9 files changed, 61 insertions(+), 59 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=82f175e9b5ab98a9b3a59…
1
0
0
0
Alexandre Julliard : include/msvcrt: Add explicit msvcrt_long types to replace long for 64-bit compatibility.
by Alexandre Julliard
25 May '09
25 May '09
Module: wine Branch: master Commit: 580e07e7ba22de1a86defeb560674eb367abfd71 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=580e07e7ba22de1a86defeb56…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 23 11:38:59 2009 +0200 include/msvcrt: Add explicit msvcrt_long types to replace long for 64-bit compatibility. --- include/msvcrt/conio.h | 4 +- include/msvcrt/crtdbg.h | 10 ++++---- include/msvcrt/crtdefs.h | 9 +++++++- include/msvcrt/direct.h | 2 +- include/msvcrt/float.h | 2 +- include/msvcrt/io.h | 22 ++++++++++---------- include/msvcrt/stddef.h | 4 +- include/msvcrt/stdio.h | 4 +- include/msvcrt/stdlib.h | 48 ++++++++++++++++++++++---------------------- include/msvcrt/sys/types.h | 2 +- include/msvcrt/time.h | 10 ++++---- include/msvcrt/wchar.h | 20 +++++++++--------- 12 files changed, 72 insertions(+), 65 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=580e07e7ba22de1a86def…
1
0
0
0
Alexandre Julliard : msvcrt/tests: Make all msvcrt function pointers cdecl.
by Alexandre Julliard
25 May '09
25 May '09
Module: wine Branch: master Commit: 7e082f66082cba5a54e03f996c84e04dcd1990be URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7e082f66082cba5a54e03f996…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 23 11:21:28 2009 +0200 msvcrt/tests: Make all msvcrt function pointers cdecl. --- dlls/msvcrt/tests/cpp.c | 16 ++++++++-------- dlls/msvcrt/tests/data.c | 6 +++--- dlls/msvcrt/tests/heap.c | 10 +++++----- dlls/msvcrt/tests/printf.c | 6 +++--- dlls/msvcrt/tests/string.c | 12 ++++++------ 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/dlls/msvcrt/tests/cpp.c b/dlls/msvcrt/tests/cpp.c index 9c9158d..d640d67 100644 --- a/dlls/msvcrt/tests/cpp.c +++ b/dlls/msvcrt/tests/cpp.c @@ -55,10 +55,10 @@ typedef struct __type_info /* Function pointers. We need to use these to call these funcs as __thiscall */ static HMODULE hMsvcrt; -static void* (*poperator_new)(unsigned int); -static void (*poperator_delete)(void*); -static void* (*pmalloc)(unsigned int); -static void (*pfree)(void*); +static void* (__cdecl *poperator_new)(unsigned int); +static void (__cdecl *poperator_delete)(void*); +static void* (__cdecl *pmalloc)(unsigned int); +static void (__cdecl *pfree)(void*); /* exception */ static void (WINAPI *pexception_ctor)(exception*,LPCSTR*); @@ -113,12 +113,12 @@ static int (WINAPI *ptype_info_opequals_equals)(type_info*,type_info*); static int (WINAPI *ptype_info_opnot_equals)(type_info*,type_info*); /* RTTI */ -static type_info* (*p__RTtypeid)(void*); -static void* (*p__RTCastToVoid)(void*); -static void* (*p__RTDynamicCast)(void*,int,void*,void*,int); +static type_info* (__cdecl *p__RTtypeid)(void*); +static void* (__cdecl *p__RTCastToVoid)(void*); +static void* (__cdecl *p__RTDynamicCast)(void*,int,void*,void*,int); /*Demangle*/ -static char* (*p__unDName)(char*,const char*,int,void*,void*,unsigned short int); +static char* (__cdecl *p__unDName)(char*,const char*,int,void*,void*,unsigned short int); /* _very_ early native versions have serious RTTI bugs, so we check */ diff --git a/dlls/msvcrt/tests/data.c b/dlls/msvcrt/tests/data.c index 01704ac..a27ca27 100644 --- a/dlls/msvcrt/tests/data.c +++ b/dlls/msvcrt/tests/data.c @@ -31,12 +31,12 @@ #include <process.h> #include <errno.h> -typedef void (*_INITTERMFUN)(void); -static void (*p_initterm)(_INITTERMFUN *start, _INITTERMFUN *end); +typedef void (__cdecl *_INITTERMFUN)(void); +static void (__cdecl *p_initterm)(_INITTERMFUN *start, _INITTERMFUN *end); static int callbacked; -static void initcallback(void) +static void __cdecl initcallback(void) { callbacked++; } diff --git a/dlls/msvcrt/tests/heap.c b/dlls/msvcrt/tests/heap.c index 7d3db23..3587e0e 100644 --- a/dlls/msvcrt/tests/heap.c +++ b/dlls/msvcrt/tests/heap.c @@ -23,11 +23,11 @@ #include <errno.h> #include "wine/test.h" -static void (*p_aligned_free)(void*) = NULL; -static void * (*p_aligned_malloc)(size_t,size_t) = NULL; -static void * (*p_aligned_offset_malloc)(size_t,size_t,size_t) = NULL; -static void * (*p_aligned_realloc)(void*,size_t,size_t) = NULL; -static void * (*p_aligned_offset_realloc)(void*,size_t,size_t,size_t) = NULL; +static void (__cdecl *p_aligned_free)(void*) = NULL; +static void * (__cdecl *p_aligned_malloc)(size_t,size_t) = NULL; +static void * (__cdecl *p_aligned_offset_malloc)(size_t,size_t,size_t) = NULL; +static void * (__cdecl *p_aligned_realloc)(void*,size_t,size_t) = NULL; +static void * (__cdecl *p_aligned_offset_realloc)(void*,size_t,size_t,size_t) = NULL; static void test_aligned_malloc(unsigned int size, unsigned int alignment) { diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c index 66bab15..cea4db3 100644 --- a/dlls/msvcrt/tests/printf.c +++ b/dlls/msvcrt/tests/printf.c @@ -782,7 +782,7 @@ static void test_xcvt(void) } } -static int _vsnwprintf_wrapper(wchar_t *str, size_t len, const wchar_t *format, ...) +static int __cdecl _vsnwprintf_wrapper(wchar_t *str, size_t len, const wchar_t *format, ...) { int ret; __ms_va_list valist; @@ -810,8 +810,8 @@ static void test_vsnwprintf(void) ok( !strcmp(buf, "onetwothree"), "got %s expected 'onetwothree'\n", buf ); } -static int (*p__vscprintf)(const char *format, __ms_va_list valist); -static int (*p__vscwprintf)(const wchar_t *format, __ms_va_list valist); +static int (__cdecl *p__vscprintf)(const char *format, __ms_va_list valist); +static int (__cdecl *p__vscwprintf)(const wchar_t *format, __ms_va_list valist); static int __cdecl _vscprintf_wrapper(const char *format, ...) { diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c index 3286e91..96bcb7f 100644 --- a/dlls/msvcrt/tests/string.c +++ b/dlls/msvcrt/tests/string.c @@ -45,12 +45,12 @@ static char *buf_to_string(const unsigned char *bin, int len, int nr) #define expect_eq(expr, value, type, format) { type ret = (expr); ok((value) == ret, #expr " expected " format " got " format "\n", value, ret); } #define expect_bin(buf, value, len) { ok(memcmp((buf), value, len) == 0, "Binary buffer mismatch - expected %s, got %s\n", buf_to_string((unsigned char *)value, len, 1), buf_to_string((buf), len, 0)); } -static void* (*pmemcpy)(void *, const void *, size_t n); -static int* (*pmemcmp)(void *, const void *, size_t n); -static int (*pstrcpy_s)(char *dst, size_t len, const char *src); -static int (*pstrcat_s)(char *dst, size_t len, const char *src); -static int (*p_mbsnbcpy_s)(unsigned char * dst, size_t size, const unsigned char * src, size_t count); -static int (*p_wcscpy_s)(wchar_t *wcDest, size_t size, const wchar_t *wcSrc); +static void* (__cdecl *pmemcpy)(void *, const void *, size_t n); +static int* (__cdecl *pmemcmp)(void *, const void *, size_t n); +static int (__cdecl *pstrcpy_s)(char *dst, size_t len, const char *src); +static int (__cdecl *pstrcat_s)(char *dst, size_t len, const char *src); +static int (__cdecl *p_mbsnbcpy_s)(unsigned char * dst, size_t size, const unsigned char * src, size_t count); +static int (__cdecl *p_wcscpy_s)(wchar_t *wcDest, size_t size, const wchar_t *wcSrc); static int *p__mb_cur_max; static unsigned char *p_mbctype;
1
0
0
0
Alexandre Julliard : msvcrt: Fix the stat and finddata structures for 64-bit.
by Alexandre Julliard
25 May '09
25 May '09
Module: wine Branch: master Commit: ac760a47f3f27594bd3ace8853c6e34e94074ab4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ac760a47f3f27594bd3ace885…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 23 11:15:19 2009 +0200 msvcrt: Fix the stat and finddata structures for 64-bit. --- dlls/msvcrt/file.c | 10 +- dlls/msvcrt/msvcrt.h | 187 +++++++++++++++++++++++++++---------------- dlls/msvcrt/msvcrt.spec | 6 +- dlls/msvcrt/tests/headers.c | 57 ------------- 4 files changed, 126 insertions(+), 134 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ac760a47f3f27594bd3ac…
1
0
0
0
Alexandre Julliard : msvcrt: Add explicit 32- and 64-bit versions of the utime functions.
by Alexandre Julliard
25 May '09
25 May '09
Module: wine Branch: master Commit: 4a7b3460ef6eacc895e13b1bb35c8e6518f96fc2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4a7b3460ef6eacc895e13b1bb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 23 11:10:05 2009 +0200 msvcrt: Add explicit 32- and 64-bit versions of the utime functions. --- dlls/msvcrt/file.c | 117 ++++++++++++++++++++++++++++++++++++------ dlls/msvcrt/msvcrt.h | 12 +++- dlls/msvcrt/msvcrt.spec | 6 ++ dlls/msvcrt/tests/headers.c | 9 ++- include/msvcrt/sys/utime.h | 29 ++++++++++- 5 files changed, 147 insertions(+), 26 deletions(-) diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index 7e1210c..dd15b5d 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -141,6 +141,16 @@ static void msvcrt_stat64_to_stati64(const struct MSVCRT__stat64 *buf64, struct buf->st_ctime = buf64->st_ctime; } +static void time_to_filetime( MSVCRT___time64_t time, FILETIME *ft ) +{ + /* 1601 to 1970 is 369 years plus 89 leap days */ + static const __int64 secs_1601_to_1970 = ((369 * 365 + 89) * (__int64)86400); + + __int64 ticks = (time + secs_1601_to_1970) * 10000000; + ft->dwHighDateTime = ticks >> 32; + ft->dwLowDateTime = ticks; +} + static inline BOOL msvcrt_is_valid_fd(int fd) { return fd >= 0 && fd < MSVCRT_fdend && (MSVCRT_fdesc[fd].wxflag & WX_OPEN); @@ -1213,27 +1223,22 @@ int CDECL MSVCRT__fstat(int fd, struct MSVCRT__stat* buf) } /********************************************************************* - * _futime (MSVCRT.@) + * _futime64 (MSVCRT.@) */ -int CDECL _futime(int fd, struct MSVCRT__utimbuf *t) +int CDECL _futime64(int fd, struct MSVCRT___utimbuf64 *t) { HANDLE hand = msvcrt_fdtoh(fd); FILETIME at, wt; if (!t) { - MSVCRT_time_t currTime; - MSVCRT_time(&currTime); - RtlSecondsSince1970ToTime(currTime, (LARGE_INTEGER *)&at); - wt = at; + time_to_filetime( MSVCRT__time64(NULL), &at ); + wt = at; } else { - RtlSecondsSince1970ToTime(t->actime, (LARGE_INTEGER *)&at); - if (t->actime == t->modtime) - wt = at; - else - RtlSecondsSince1970ToTime(t->modtime, (LARGE_INTEGER *)&wt); + time_to_filetime( t->actime, &at ); + time_to_filetime( t->modtime, &wt ); } if (!SetFileTime(hand, NULL, &at, &wt)) @@ -1245,6 +1250,32 @@ int CDECL _futime(int fd, struct MSVCRT__utimbuf *t) } /********************************************************************* + * _futime32 (MSVCRT.@) + */ +int CDECL _futime32(int fd, struct MSVCRT___utimbuf32 *t) +{ + struct MSVCRT___utimbuf64 t64; + t64.actime = t->actime; + t64.modtime = t->modtime; + return _futime64( fd, &t64 ); +} + +/********************************************************************* + * _futime (MSVCRT.@) + */ +#ifdef _WIN64 +int CDECL _futime(int fd, struct MSVCRT___utimbuf64 *t) +{ + return _futime64( fd, t ); +} +#else +int CDECL _futime(int fd, struct MSVCRT___utimbuf32 *t) +{ + return _futime32( fd, t ); +} +#endif + +/********************************************************************* * _get_osfhandle (MSVCRT.@) */ MSVCRT_intptr_t CDECL _get_osfhandle(int fd) @@ -2053,15 +2084,15 @@ int CDECL MSVCRT__umask(int umask) } /********************************************************************* - * _utime (MSVCRT.@) + * _utime64 (MSVCRT.@) */ -int CDECL _utime(const char* path, struct MSVCRT__utimbuf *t) +int CDECL _utime64(const char* path, struct MSVCRT___utimbuf64 *t) { int fd = MSVCRT__open(path, MSVCRT__O_WRONLY | MSVCRT__O_BINARY); if (fd > 0) { - int retVal = _futime(fd, t); + int retVal = _futime64(fd, t); MSVCRT__close(fd); return retVal; } @@ -2069,15 +2100,41 @@ int CDECL _utime(const char* path, struct MSVCRT__utimbuf *t) } /********************************************************************* - * _wutime (MSVCRT.@) + * _utime32 (MSVCRT.@) + */ +int CDECL _utime32(const char* path, struct MSVCRT___utimbuf32 *t) +{ + struct MSVCRT___utimbuf64 t64; + t64.actime = t->actime; + t64.modtime = t->modtime; + return _utime64( path, &t64 ); +} + +/********************************************************************* + * _utime (MSVCRT.@) */ -int CDECL _wutime(const MSVCRT_wchar_t* path, struct MSVCRT__utimbuf *t) +#ifdef _WIN64 +int CDECL _utime(const char* path, struct MSVCRT___utimbuf64 *t) +{ + return _utime64( path, t ); +} +#else +int CDECL _utime(const char* path, struct MSVCRT___utimbuf32 *t) +{ + return _utime32( path, t ); +} +#endif + +/********************************************************************* + * _wutime64 (MSVCRT.@) + */ +int CDECL _wutime64(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf64 *t) { int fd = _wopen(path, MSVCRT__O_WRONLY | MSVCRT__O_BINARY); if (fd > 0) { - int retVal = _futime(fd, t); + int retVal = _futime64(fd, t); MSVCRT__close(fd); return retVal; } @@ -2085,6 +2142,32 @@ int CDECL _wutime(const MSVCRT_wchar_t* path, struct MSVCRT__utimbuf *t) } /********************************************************************* + * _wutime32 (MSVCRT.@) + */ +int CDECL _wutime32(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf32 *t) +{ + struct MSVCRT___utimbuf64 t64; + t64.actime = t->actime; + t64.modtime = t->modtime; + return _wutime64( path, &t64 ); +} + +/********************************************************************* + * _wutime (MSVCRT.@) + */ +#ifdef _WIN64 +int CDECL _wutime(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf64 *t) +{ + return _wutime64( path, t ); +} +#else +int CDECL _wutime(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf32 *t) +{ + return _wutime32( path, t ); +} +#endif + +/********************************************************************* * _write (MSVCRT.@) */ int CDECL MSVCRT__write(int fd, const void* buf, unsigned int count) diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h index 70ad8e2..c10c8d3 100644 --- a/dlls/msvcrt/msvcrt.h +++ b/dlls/msvcrt/msvcrt.h @@ -335,10 +335,16 @@ struct MSVCRT__wfinddatai64_t { MSVCRT_wchar_t name[260]; }; -struct MSVCRT__utimbuf +struct MSVCRT___utimbuf32 { - MSVCRT_time_t actime; - MSVCRT_time_t modtime; + MSVCRT___time32_t actime; + MSVCRT___time32_t modtime; +}; + +struct MSVCRT___utimbuf64 +{ + MSVCRT___time64_t actime; + MSVCRT___time64_t modtime; }; /* for FreeBSD */ diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 759d0c0..b56aba0 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -272,6 +272,8 @@ @ cdecl -ret64 _ftol() ntdll._ftol @ cdecl _fullpath(ptr str long) @ cdecl _futime(long ptr) +@ cdecl _futime32(long ptr) +@ cdecl _futime64(long ptr) @ cdecl _gcvt(double long str) @ cdecl _get_osfhandle(long) @ cdecl _get_sbh_threshold() @@ -521,6 +523,8 @@ @ cdecl _unlink(str) MSVCRT__unlink @ cdecl _unloaddll(long) @ cdecl _unlock(long) +@ cdecl _utime32(str ptr) +@ cdecl _utime64(str ptr) @ cdecl _utime(str ptr) @ cdecl _vscprintf(str ptr) @ cdecl _vscwprintf(wstr ptr) @@ -608,6 +612,8 @@ @ cdecl _wtol(wstr) ntdll._wtol @ cdecl _wunlink(wstr) @ cdecl _wutime(wstr ptr) +@ cdecl _wutime32(wstr ptr) +@ cdecl _wutime64(wstr ptr) @ cdecl _y0(double) @ cdecl _y1(double) @ cdecl _yn(long double ) diff --git a/dlls/msvcrt/tests/headers.c b/dlls/msvcrt/tests/headers.c index 603134f..b9fdbd7 100644 --- a/dlls/msvcrt/tests/headers.c +++ b/dlls/msvcrt/tests/headers.c @@ -219,9 +219,12 @@ static void test_structs(void) CHECK_FIELD(_wfinddatai64_t, time_write); CHECK_FIELD(_wfinddatai64_t, size); CHECK_FIELD(_wfinddatai64_t, name[260]); - CHECK_STRUCT(_utimbuf); - CHECK_FIELD(_utimbuf, actime); - CHECK_FIELD(_utimbuf, modtime); + CHECK_STRUCT(__utimbuf32); + CHECK_FIELD(__utimbuf32, actime); + CHECK_FIELD(__utimbuf32, modtime); + CHECK_STRUCT(__utimbuf64); + CHECK_FIELD(__utimbuf64, actime); + CHECK_FIELD(__utimbuf64, modtime); CHECK_STRUCT(_stat); CHECK_FIELD(_stat, st_dev); CHECK_FIELD(_stat, st_ino); diff --git a/include/msvcrt/sys/utime.h b/include/msvcrt/sys/utime.h index 95b1f9b..014351b 100644 --- a/include/msvcrt/sys/utime.h +++ b/include/msvcrt/sys/utime.h @@ -31,15 +31,38 @@ struct _utimbuf time_t actime; time_t modtime; }; +struct __utimbuf32 +{ + __time32_t actime; + __time32_t modtime; +}; +struct __utimbuf64 +{ + __time64_t actime; + __time64_t modtime; +}; #endif /* _UTIMBUF_DEFINED */ #ifdef __cplusplus extern "C" { #endif -int __cdecl _futime(int,struct _utimbuf*); -int __cdecl _utime(const char*,struct _utimbuf*); -int __cdecl _wutime(const wchar_t*,struct _utimbuf*); +int __cdecl _futime32(int,struct __utimbuf32*); +int __cdecl _futime64(int,struct __utimbuf64*); +int __cdecl _utime32(const char*,struct __utimbuf32*); +int __cdecl _utime64(const char*,struct __utimbuf64*); +int __cdecl _wutime32(const wchar_t*,struct __utimbuf32*); +int __cdecl _wutime64(const wchar_t*,struct __utimbuf64*); + +#ifdef _USE_32BIT_TIME_T +static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); } +static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime32(s, (struct __utimbuf32*)buf); } +static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime32(s, (struct __utimbuf32*)buf); } +#else +static inline int _futime(int fd, struct _utimbuf *buf) { return _futime64(fd, (struct __utimbuf64*)buf); } +static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime64(s, (struct __utimbuf64*)buf); } +static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime64(s, (struct __utimbuf64*)buf); } +#endif #ifdef __cplusplus }
1
0
0
0
Alexandre Julliard : msvcrt: Add explicit 32- and 64-bit versions of the time functions.
by Alexandre Julliard
25 May '09
25 May '09
Module: wine Branch: master Commit: 8408e3a9551475a06e25b470ca5201935bf03478 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8408e3a9551475a06e25b470c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat May 23 11:06:29 2009 +0200 msvcrt: Add explicit 32- and 64-bit versions of the time functions. --- dlls/msvcrt/msvcrt.h | 18 ++-- dlls/msvcrt/msvcrt.spec | 16 +++ dlls/msvcrt/tests/headers.c | 15 ++- dlls/msvcrt/time.c | 245 +++++++++++++++++++++++++++++++++++++++---- include/msvcrt/crtdefs.h | 14 ++- include/msvcrt/sys/timeb.h | 22 ++++- include/msvcrt/time.h | 49 ++++++++-- include/msvcrt/wchar.h | 13 ++- 8 files changed, 346 insertions(+), 46 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=8408e3a9551475a06e25b…
1
0
0
0
Maik Schulz : website: german translation of release 1.1.22 news item
by Maik Schulz
23 May '09
23 May '09
Module: website Branch: master Commit: 81a0877541b107e3fda5fba11adf98ee5f7ff07e URL:
http://source.winehq.org/git/website.git/?a=commit;h=81a0877541b107e3fda5fb…
Author: Maik Schulz <maik.schulz(a)gmail.com> Date: Sat May 23 13:59:42 2009 +0200 website: german translation of release 1.1.22 news item --- news/de/2009052201.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/news/de/2009052201.xml b/news/de/2009052201.xml new file mode 100644 index 0000000..ca7784b --- /dev/null +++ b/news/de/2009052201.xml @@ -0,0 +1,17 @@ +<news> +<date>22. Mai 2009</date> +<title>Wine 1.1.22 Freigegeben</title> +<body> +<p> Die Entwicklungsversion 1.1.22 von Wine ist jetzt verfügbar.</p> +<p> <a href="{$root}/announce/1.1.22">Neuerungen (en)</a> in dieser Version: +<ul> + <li>Weitere Verbesserungen am OLE Kopieren/Einfügen.</li> + <li>Erste Behandlung von x86_64 Exceptions.</li> + <li>Korrekturen am Direct3D Locking.</li> + <li>Verbesserungen an ARB Shadern.</li> + <li>Bessere Unterstützung des OpenGL Pixel Formats.</li> + <li>Verschiedenste Fehlerbehebungen.</li> +</ul></p> +<p><p>Der Quellcode ist jetzt <a href="
http://prdownloads.sourceforge.net/wine/wine-1.1.22.tar.bz2
">verfügbar</a>. +Binär-Downloads werden gerade erstellt und stehen bald auf den jeweiligen <a href="{$root}/download">Download-Seiten</a> zur Verfügung. +</p></body></news>
1
0
0
0
Alexandre Julliard : Wine release 1.1.22
by Alexandre Julliard
22 May '09
22 May '09
Module: website Branch: master Commit: 64947efc104df3c1a7ff89e76954f2baf7fba6dd URL:
http://source.winehq.org/git/website.git/?a=commit;h=64947efc104df3c1a7ff89…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri May 22 18:04:46 2009 +0200 Wine release 1.1.22 --- news/en/2009052201.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/news/en/2009052201.xml b/news/en/2009052201.xml new file mode 100644 index 0000000..932d60a --- /dev/null +++ b/news/en/2009052201.xml @@ -0,0 +1,17 @@ +<news> +<date>May 22, 2009</date> +<title>Wine 1.1.22 Released</title> +<body> +<p> The Wine development release 1.1.22 is now available.</p> +<p> <a href="{$root}/announce/1.1.22">What's new</a> in this release: +<ul> + <li>More improvements to OLE copy/paste.</li> + <li>Beginnings of x86_64 exception handling.</li> + <li>Direct3D locking fixes.</li> + <li>ARB shaders improvements.</li> + <li>Better OpenGL pixel format support.</li> + <li>Various bug fixes.</li> +</ul></p> +<p><p>The source is <a href="
http://prdownloads.sourceforge.net/wine/wine-1.1.22.tar.bz2
">available now</a>. +Binary packages are in the process of being built, and will appear soon at their respective <a href="{$root}/download">download locations</a>. +</p></body></news>
1
0
0
0
Tag wine-1.1.22 : Alexandre Julliard : Release 1.1.22
by Alexandre Julliard
22 May '09
22 May '09
Module: wine Branch: refs/tags/wine-1.1.22 Tag: 0639eb72b6aa4ae2cce3be392f301a553a7e777e URL:
http://source.winehq.org/git/wine.git/?a=tag;h=0639eb72b6aa4ae2cce3be392f30…
Tagger: Alexandre Julliard <julliard(a)winehq.org> Date: Fri May 22 17:58:15 2009 +0200 Release 1.1.22
1
0
0
0
Alexandre Julliard : Release 1.1.22.
by Alexandre Julliard
22 May '09
22 May '09
Module: wine Branch: master Commit: b175a43fb8439a33a686512935597d4c43c19733 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b175a43fb8439a33a68651293…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri May 22 17:58:14 2009 +0200 Release 1.1.22. --- ANNOUNCE | 950 ++++++++++++++++++++++++++++++++---------------------------- VERSION | 2 +- configure | 18 +- 3 files changed, 517 insertions(+), 453 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b175a43fb8439a33a6865…
1
0
0
0
← Newer
1
...
20
21
22
23
24
25
26
...
80
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Results per page:
10
25
50
100
200