crt: Define LFS open64, freopen64, tmpfile64 symbols as aliases in crt-aliases.def.in
All these functions with suffix 64 are specified in the
Large File Specification.
mingw-w64 does not need anything special for them, every opened file on
Windows can be used with 64-bit offset support.
Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/def-include/crt-aliases.def.in b/mingw-w64-crt/def-include/crt-aliases.def.in
index de1961f..1edb042 100644
--- a/mingw-w64-crt/def-include/crt-aliases.def.in
+++ b/mingw-w64-crt/def-include/crt-aliases.def.in
@@ -298,7 +298,10 @@
; This is list of symbol aliases for Large File Specification (extension to Single UNIX Specification)
; https://unix.org/version2/whatsnew/lfs20mar.html#3.1 section 3.1 Transitional Extensions
+open64 == _open
fopen64 == fopen
+freopen64 == freopen
+tmpfile64 == tmpfile
#ifndef NO_FPOS64_ALIASES
; fgetpos and fsetpos are already 64-bit
fgetpos64 == fgetpos
diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def b/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def
index 8348411..405c77b 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def
+++ b/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def
@@ -99,6 +99,7 @@
_mktemp_s
_open
open == _open
+open64 == _open
_open_osfhandle
_pclose
pclose == _pclose
@@ -172,6 +173,7 @@
fread
fread_s
freopen
+freopen64 == freopen
freopen_s
fseek
fseeko == fseek
@@ -195,6 +197,7 @@
setbuf
setvbuf
tmpfile
+tmpfile64 == tmpfile
tmpfile_s
tmpnam
tmpnam_s