Remove duplicated code, unify UCRT vs msvcrt builds and allow to call
native CRT functions where possible.

Pali Rohár (10):
  crt: Add hyperlink for Large File Specification section 3.1
    Transitional Extensions
  crt: Define fseeko and ftello symbols as aliases to fseek and ftell
  crt: Use native _fseeki64 symbol from msvcrt.dll on Windows Vista+
  crt: Define fseeko64 symbol as alias to _fseeki64
  crt: Define ftello64 symbol as alias to _ftelli64
  crt: Define fopen64 symbol as alias in crt-aliases.def.in
  crt: Provide _lseeki64() function for pre-msvcrt40 builds
  crt: Define lseek64 as alias in crt-aliases.def.in
  crt: Define LFS open64, freopen64, tmpfile64 symbols as aliases in
    crt-aliases.def.in
  headers: Deinline UCRT fseeko(), fseeko64(), ftello() and ftello64()
    functions

 mingw-w64-crt/Makefile.am                     |  4 +--
 mingw-w64-crt/def-include/crt-aliases.def.in  | 12 +++++++
 .../api-ms-win-crt-stdio-l1-1-0.def           |  9 +++++
 mingw-w64-crt/stdio/_fseeki64.c               | 11 ++++--
 mingw-w64-crt/stdio/_ftelli64.c               |  3 ++
 mingw-w64-crt/stdio/_lseeki64.c               | 25 ++++++++++++++
 mingw-w64-crt/stdio/fopen64.c                 | 11 ------
 mingw-w64-crt/stdio/fseeko32.c                |  7 ----
 mingw-w64-crt/stdio/fseeko64.c                | 34 -------------------
 mingw-w64-crt/stdio/ftello.c                  |  5 ---
 mingw-w64-crt/stdio/ftello64.c                | 16 ---------
 mingw-w64-crt/stdio/lseek64.c                 | 12 -------
 mingw-w64-headers/crt/stdio.h                 | 26 +++-----------
 13 files changed, 64 insertions(+), 111 deletions(-)
 create mode 100644 mingw-w64-crt/stdio/_lseeki64.c
 delete mode 100644 mingw-w64-crt/stdio/fopen64.c
 delete mode 100644 mingw-w64-crt/stdio/fseeko32.c
 delete mode 100644 mingw-w64-crt/stdio/fseeko64.c
 delete mode 100644 mingw-w64-crt/stdio/ftello.c
 delete mode 100644 mingw-w64-crt/stdio/ftello64.c
 delete mode 100644 mingw-w64-crt/stdio/lseek64.c

-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to