[PATCH] api-ms-win-crt-private-l1-1-0: Implement _o__fileno, _o__setmode, _o__wfopen, _o_fclose, _o_fflush

Emilio Cobos Álvarez emilio at crisal.io
Fri May 15 12:18:25 CDT 2020


By delegating to the ucrtbase implementation.

This allows me to get a Firefox build cross-compiled as described in [1], but with newer MSVC
versions.

[1]: https://glandium.org/blog/?p=4020

Signed-off-by: Emilio Cobos Álvarez <emilio at crisal.io>
---
 .../api-ms-win-crt-private-l1-1-0.spec                 | 10 +++++-----
 dlls/ucrtbase/ucrtbase.spec                            | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/dlls/api-ms-win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec b/dlls/api-ms-win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
index 01f295f25f..e185c7900d 100644
--- a/dlls/api-ms-win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
+++ b/dlls/api-ms-win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
@@ -270,7 +270,7 @@
 @ stub _o__fgetwchar
 @ stub _o__filelength
 @ stub _o__filelengthi64
-@ stub _o__fileno
+@ cdecl _o__fileno(ptr) ucrtbase._o__fileno
 @ stub _o__findclose
 @ stub _o__findfirst32
 @ stub _o__findfirst32i64
@@ -673,7 +673,7 @@
 @ stub _o__set_thread_local_invalid_parameter_handler
 @ stub _o__seterrormode
 @ stub _o__setmbcp
-@ stub _o__setmode
+@ cdecl _o__setmode(long long) ucrtbase._o__setmode
 @ stub _o__setsystime
 @ stub _o__sleep
 @ stub _o__sopen
@@ -832,7 +832,7 @@
 @ stub _o__wfindnext32i64
 @ stub _o__wfindnext64
 @ stub _o__wfindnext64i32
-@ stub _o__wfopen
+@ cdecl _o__wfopen(wstr wstr) ucrtbase._o__wfopen
 @ stub _o__wfopen_s
 @ stub _o__wfreopen
 @ stub _o__wfreopen_s
@@ -943,10 +943,10 @@
 @ stub _o_exp2l
 @ stub _o_expf
 @ stub _o_fabs
-@ stub _o_fclose
+@ cdecl _o_fclose(ptr) ucrtbase._o_fclose
 @ stub _o_feof
 @ stub _o_ferror
-@ stub _o_fflush
+@ cdecl _o_fflush(ptr) ucrtbase._o_fflush
 @ stub _o_fgetc
 @ stub _o_fgetpos
 @ stub _o_fgets
diff --git a/dlls/ucrtbase/ucrtbase.spec b/dlls/ucrtbase/ucrtbase.spec
index 1c039d0715..aac19b3ac6 100644
--- a/dlls/ucrtbase/ucrtbase.spec
+++ b/dlls/ucrtbase/ucrtbase.spec
@@ -934,7 +934,7 @@
 @ stub _o__fgetwchar
 @ stub _o__filelength
 @ stub _o__filelengthi64
-@ stub _o__fileno
+@ cdecl _o__fileno(ptr) MSVCRT__fileno
 @ stub _o__findclose
 @ stub _o__findfirst32
 @ stub _o__findfirst32i64
@@ -1337,7 +1337,7 @@
 @ stub _o__set_thread_local_invalid_parameter_handler
 @ stub _o__seterrormode
 @ stub _o__setmbcp
-@ stub _o__setmode
+@ cdecl _o__setmode(long long) MSVCRT__setmode
 @ stub _o__setsystime
 @ stub _o__sleep
 @ stub _o__sopen
@@ -1496,7 +1496,7 @@
 @ stub _o__wfindnext32i64
 @ stub _o__wfindnext64
 @ stub _o__wfindnext64i32
-@ stub _o__wfopen
+@ cdecl _o__wfopen(wstr wstr) MSVCRT__wfopen
 @ stub _o__wfopen_s
 @ stub _o__wfreopen
 @ stub _o__wfreopen_s
@@ -1607,10 +1607,10 @@
 @ stub _o_exp2l
 @ stub _o_expf
 @ stub _o_fabs
-@ stub _o_fclose
+@ cdecl _o_fclose(ptr) MSVCRT_fclose
 @ stub _o_feof
 @ stub _o_ferror
-@ stub _o_fflush
+@ cdecl _o_fflush(ptr) MSVCRT_fflush
 @ stub _o_fgetc
 @ stub _o_fgetpos
 @ stub _o_fgets
-- 
2.26.2




More information about the wine-devel mailing list