Skip to content

Commit 07a0140

Browse files
author
Git for Windows Build Agent
committed
Update 13 packages
mingw-w64-i686-crt-git (12.0.0.r723.gad150be87-2 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-i686-headers-git (12.0.0.r723.gad150be87-2 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-i686-libmangle-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-i686-libwinpthread-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-i686-tools-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-i686-winpthreads-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-x86_64-crt-git (12.0.0.r723.gad150be87-2 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-x86_64-headers-git (12.0.0.r723.gad150be87-2 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-x86_64-libmangle-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-x86_64-libwinpthread-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-x86_64-tools-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) mingw-w64-x86_64-winpthreads-git (12.0.0.r723.gad150be87-1 -> 12.0.0.r724.g7e3f2dd90-1) rebase (4.5.0-4 -> 4.5.0-5) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent d12f586 commit 07a0140

File tree

255 files changed

+189
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+189
-144
lines changed

autorebase.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22

3-
set PATH=%~dp0\usr\bin;%PATH%
4-
%~dp0\usr\bin\dash /usr/bin/rebaseall -p
3+
set "PATH=%~dp0\usr\bin;%PATH%"
4+
"%~dp0\usr\bin\dash" /usr/bin/rebaseall -p

mingw32/bin/gendef.exe

0 Bytes
Binary file not shown.

mingw32/bin/genidl.exe

0 Bytes
Binary file not shown.

mingw32/bin/genpeimg.exe

0 Bytes
Binary file not shown.

mingw32/bin/libwinpthread-1.dll

0 Bytes
Binary file not shown.

mingw32/bin/widl.exe

0 Bytes
Binary file not shown.

mingw32/include/_mingw_stat64.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#ifndef _STAT_DEFINED
22

3+
/* __stat64 is needed for compatibility with msvc */
4+
#define __stat64 _stat64
5+
36
#ifdef _USE_32BIT_TIME_T
47
#define _fstat _fstat32
58
#define _fstati64 _fstat32i64
@@ -30,22 +33,6 @@
3033
__time32_t st_ctime;
3134
};
3235

33-
#ifndef NO_OLDNAMES
34-
struct stat {
35-
_dev_t st_dev;
36-
_ino_t st_ino;
37-
unsigned short st_mode;
38-
short st_nlink;
39-
short st_uid;
40-
short st_gid;
41-
_dev_t st_rdev;
42-
_off_t st_size;
43-
time_t st_atime;
44-
time_t st_mtime;
45-
time_t st_ctime;
46-
};
47-
#endif /* NO_OLDNAMES */
48-
4936
struct _stat32i64 {
5037
_dev_t st_dev;
5138
_ino_t st_ino;
@@ -88,9 +75,5 @@
8875
__time64_t st_ctime;
8976
};
9077

91-
#define __stat64 _stat64
92-
#define stat64 _stat64 /* for POSIX */
93-
#define fstat64 _fstat64 /* for POSIX */
94-
9578
#define _STAT_DEFINED
9679
#endif /* _STAT_DEFINED */

mingw32/include/sys/stat.h

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -124,31 +124,69 @@ extern "C" {
124124

125125
#endif
126126

127-
#if !defined (RC_INVOKED) && !defined (NO_OLDNAMES)
128-
int __cdecl fstat(int _Desc,struct stat *_Stat);
129-
#ifdef _UCRT
130-
__mingw_ovr int __cdecl stat(const char *_Filename,struct stat *_Stat)
131-
{
132-
return _stat(_Filename, (struct _stat *)_Stat);
133-
}
134-
__mingw_ovr int __cdecl wstat(const wchar_t *_Filename,struct stat *_Stat)
135-
{
136-
return _wstat(_Filename, (struct _stat *)_Stat);
137-
}
138-
#else
139-
int __cdecl stat(const char *_Filename,struct stat *_Stat);
140-
int __cdecl wstat(const wchar_t *_Filename,struct stat *_Stat);
141-
#endif
142-
#endif /* !RC_INVOKED && !NO_OLDNAMES */
143-
127+
#if !defined(NO_OLDNAMES) || defined(_POSIX)
128+
129+
/*
130+
* When building mingw-w64 CRT files it is required that the fstat, stat and
131+
* wstat functions are not declared with __MINGW_ASM_CALL redirection.
132+
* Otherwise the mingw-w64 would provide broken fstat, stat and wstat symbols.
133+
* To prevent ABI issues, the mingw-w64 runtime should not call the fstat,
134+
* stat and wstat functions, instead it should call the fixed-size variants.
135+
*/
136+
#ifndef _CRTBLD
137+
struct stat {
138+
_dev_t st_dev;
139+
_ino_t st_ino;
140+
unsigned short st_mode;
141+
short st_nlink;
142+
short st_uid;
143+
short st_gid;
144+
_dev_t st_rdev;
145+
off_t st_size; /* off_t follows _FILE_OFFSET_BITS */
146+
time_t st_atime; /* time_t follows _USE_32BIT_TIME_T */
147+
time_t st_mtime;
148+
time_t st_ctime;
149+
};
144150
#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
145151
#ifdef _USE_32BIT_TIME_T
146-
#define stat _stat32i64
147-
#define fstat _fstat32i64
152+
int __cdecl fstat(int _Desc, struct stat *_Stat) __MINGW_ASM_CALL(_fstat32i64);
153+
int __cdecl stat(const char *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(stat32i64);
154+
int __cdecl wstat(const wchar_t *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(wstat32i64);
148155
#else
149-
#define stat _stat64
150-
#define fstat _fstat64
156+
int __cdecl fstat(int _Desc, struct stat *_Stat) __MINGW_ASM_CALL(_fstat64);
157+
int __cdecl stat(const char *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(stat64);
158+
int __cdecl wstat(const wchar_t *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(wstat64);
151159
#endif
160+
#else
161+
#ifdef _USE_32BIT_TIME_T
162+
int __cdecl fstat(int _Desc, struct stat *_Stat) __MINGW_ASM_CALL(_fstat32);
163+
int __cdecl stat(const char *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(stat32);
164+
int __cdecl wstat(const wchar_t *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(wstat32);
165+
#else
166+
int __cdecl fstat(int _Desc, struct stat *_Stat) __MINGW_ASM_CALL(_fstat64i32);
167+
int __cdecl stat(const char *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(stat64i32);
168+
int __cdecl wstat(const wchar_t *_Filename, struct stat *_Stat) __MINGW_ASM_CALL(wstat64i32);
169+
#endif
170+
#endif
171+
#endif
172+
173+
struct stat64 {
174+
_dev_t st_dev;
175+
_ino_t st_ino;
176+
unsigned short st_mode;
177+
short st_nlink;
178+
short st_uid;
179+
short st_gid;
180+
_dev_t st_rdev;
181+
__MINGW_EXTENSION __int64 st_size;
182+
__time64_t st_atime;
183+
__time64_t st_mtime;
184+
__time64_t st_ctime;
185+
};
186+
int __cdecl fstat64(int _Desc, struct stat64 *_Stat);
187+
int __cdecl stat64(const char *_Filename, struct stat64 *_Stat);
188+
int __cdecl wstat64(const wchar_t *_Filename, struct stat64 *_Stat);
189+
152190
#endif
153191

154192
#ifdef __cplusplus

mingw32/lib/CRT_fp10.o

0 Bytes
Binary file not shown.

mingw32/lib/CRT_fp8.o

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)